[ { "input": "Problem Statement:\nProblem 9: https://projecteuler.net/problem=9\n\nProblem Statement:\nProblem 9: https://projecteuler.net/problem=9\nProblem Statement:\nProblem 9: https://projecteuler.net/problem=9\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TheAlgorithms/Python/commit/899870be4cc759941751477b75e744de5a180a30", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 3 ] }, { "input": "def solution():\ndef solution() -> int:\ndef solution():\ndef solution() -> int:\ndef solution(n):\ndef solution(n: int = 1000) -> int:\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/TheAlgorithms/Python/commit/899870be4cc759941751477b75e744de5a180a30", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 4 ] }, { "input": " d = 0\n candidate = 0\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TheAlgorithms/Python/commit/899870be4cc759941751477b75e744de5a180a30", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " d = a * b * c\n if d >= product:\n product = d\n candidate = a * b * c\n if candidate >= product:\n product = candidate\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/TheAlgorithms/Python/commit/899870be4cc759941751477b75e744de5a180a30", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " def is_value_block(nid: str) -> bool:\n def is_static_output_block(nid: str) -> bool:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Significant-Gravitas/AutoGPT/commit/526364297c9dc7bd3242c6bac19dee9ee61916da", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " if is_value_block(link.source_id):\n if is_static_output_block(link.source_id):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Significant-Gravitas/AutoGPT/commit/526364297c9dc7bd3242c6bac19dee9ee61916da", "target_edit_idx": 10, "propagatable_edit_idx": [ 8 ] }, { "input": " available: Literal[True] | Callable[[BaseAgent], bool] = True,\n available: bool | Callable[[BaseAgent], bool] = True,\n available: Literal[True] | Callable[[BaseAgent], bool] = True,\n available: bool | Callable[[BaseAgent], bool] = True,\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/Significant-Gravitas/AutoGPT/commit/1262b72f5cab890907db00df9b4752d31d123f12", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " activity_log_handler.setFormatter(AutoGptFormatter(SIMPLE_LOG_FORMAT))\n activity_log_handler.setFormatter(\n AutoGptFormatter(SIMPLE_LOG_FORMAT, no_color=True)\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/Significant-Gravitas/AutoGPT/commit/5acb5ad9b78750ad90a26f1c67128c62334923be", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " debug_log_handler.setFormatter(AutoGptFormatter(DEBUG_LOG_FORMAT))\n debug_log_handler.setFormatter(\n AutoGptFormatter(DEBUG_LOG_FORMAT, no_color=True)\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/Significant-Gravitas/AutoGPT/commit/5acb5ad9b78750ad90a26f1c67128c62334923be", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " error_log_handler.setFormatter(AutoGptFormatter(DEBUG_LOG_FORMAT))\n error_log_handler.setFormatter(AutoGptFormatter(DEBUG_LOG_FORMAT, no_color=True))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/Significant-Gravitas/AutoGPT/commit/5acb5ad9b78750ad90a26f1c67128c62334923be", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " setTimeout(extraNetworksApplyFilter[tabname_full], 1);\n var doFilter = function() {\n extraNetworksApplyFilter[tabname_full](true);\n };\n setTimeout(doFilter, 1);\n setTimeout(extraNetworksApplySort[tabname_full], 1);\n var doSort = function() {\n extraNetworksApplySort[tabname_full](true);\n };\n setTimeout(doSort, 1);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/1ff1c5be6420d5088a94285bad2faf4258de42e4", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " for key_diffusers, weight in sd.items():\n key_diffusers_without_lora_parts, lora_key = key_diffusers.split(\".\", 1)\n key = convert_diffusers_name_to_compvis(key_diffusers_without_lora_parts, is_sd2)\n for key_lora, weight in sd.items():\n key_lora_without_lora_parts, lora_key = key_lora.split(\".\", 1)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/6c5f83b19b331d51bde28c5033d13d0d64c11e54", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " keys_failed_to_match[key_diffusers] = key\n keys_failed_to_match[key_lora] = key\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/6c5f83b19b331d51bde28c5033d13d0d64c11e54", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": " if sd_vae_approx_model is None:\n model_path = os.path.join(paths.models_path, \"VAE-approx\", \"model.pt\")\n sd_vae_approx_model = VAEApprox()\n if loaded_model is None:\n model_path = os.path.join(paths.models_path, \"VAE-approx\", model_name)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/b8159d0919dcaa3a1a8f29e3aa30c25fe8e5f13b", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " return sd_vae_approx_model\n return loaded_model\n if sd_vae_approx_model is None:\n model_path = os.path.join(paths.models_path, \"VAE-approx\", \"model.pt\")\n sd_vae_approx_model = VAEApprox()\n if loaded_model is None:\n model_path = os.path.join(paths.models_path, \"VAE-approx\", model_name)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/b8159d0919dcaa3a1a8f29e3aa30c25fe8e5f13b", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": " if sd_vae_taesd is None:\n model_path = os.path.join(paths_internal.models_path, \"VAE-taesd\", \"taesd_decoder.pth\")\n download_model(model_path)\n if loaded_model is None:\n model_path = os.path.join(paths_internal.models_path, \"VAE-taesd\", model_name)\n download_model(model_path, 'https://github.com/madebyollin/taesd/raw/main/' + model_name)\n sd_vae_taesd = TAESD(model_path)\n sd_vae_taesd.eval()\n sd_vae_taesd.to(devices.device, devices.dtype)\n loaded_model = TAESD(model_path)\n loaded_model.eval()\n loaded_model.to(devices.device, devices.dtype)\n sd_vae_taesd_models[model_name] = loaded_model\n return sd_vae_taesd.decoder\n return loaded_model.decoder", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/b8159d0919dcaa3a1a8f29e3aa30c25fe8e5f13b", "target_edit_idx": 12, "propagatable_edit_idx": [ 13, 14 ] }, { "input": " return sd_vae_taesd.decoder\n return loaded_model.decoder", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/b8159d0919dcaa3a1a8f29e3aa30c25fe8e5f13b", "target_edit_idx": 14, "propagatable_edit_idx": [ 12, 13 ] }, { "input": " if \"http\" in file:\n if file.startswith(\"http\"):\n if \"http\" in file:\n if file.startswith(\"http\"):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/0afbc0c2355ead3a0ce7149a6d678f1f2e2fbfee", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " if \"http\" in path:\n if path.startswith(\"http\"):\n if \"http\" in path:\n if path.startswith(\"http\"):\n if \"http\" in path:\n if path.startswith(\"http\"):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/0afbc0c2355ead3a0ce7149a6d678f1f2e2fbfee", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " model = local_ckpt_path if local_ckpt_path is not None else load_file_from_url(url=self.model_url, model_dir=self.model_path, file_name=\"model.ckpt\", progress=True)\n model = local_ckpt_path if local_ckpt_path is not None else load_file_from_url(url=self.model_url, model_dir=self.model_download_path, file_name=\"model.ckpt\", progress=True)\n yaml = local_yaml_path if local_yaml_path is not None else load_file_from_url(url=self.yaml_url, model_dir=self.model_path, file_name=\"project.yaml\", progress=True)\n yaml = local_yaml_path if local_yaml_path is not None else load_file_from_url(url=self.yaml_url, model_dir=self.model_download_path, file_name=\"project.yaml\", progress=True)\n filename = load_file_from_url(url=path, model_dir=self.model_path, file_name=dl_name, progress=True)\n filename = load_file_from_url(url=path, model_dir=self.model_download_path, file_name=dl_name, progress=True)\n model_dir=self.model_path,\n model_dir=self.model_download_path,\n info.local_data_path = load_file_from_url(url=info.data_path, model_dir=self.model_path, progress=True)\n info.local_data_path = load_file_from_url(url=info.data_path, model_dir=self.model_download_path, progress=True)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3125, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/df6fffb054f8d3444baa887151a4874506a68be1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 7 ] }, { "input": " yaml = local_yaml_path if local_yaml_path is not None else load_file_from_url(url=self.yaml_url, model_dir=self.model_path, file_name=\"project.yaml\", progress=True)\n yaml = local_yaml_path if local_yaml_path is not None else load_file_from_url(url=self.yaml_url, model_dir=self.model_download_path, file_name=\"project.yaml\", progress=True)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3125, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/df6fffb054f8d3444baa887151a4874506a68be1", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 7 ] }, { "input": " model_dir=self.model_path,\n model_dir=self.model_download_path,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3125, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/df6fffb054f8d3444baa887151a4874506a68be1", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3, 7 ] }, { "input": "def sample_to_image(samples, index=0):\n return single_sample_to_image(samples[index])\ndef sample_to_image(samples, index=0, approximation=False):\n return single_sample_to_image(samples[index], approximation)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/11dd79e346bd780bc5c3119df962e7a9c20f2493", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " shared.state.current_image = sample_to_image(decoded)\n shared.state.current_image = sample_to_image(decoded, approximation=opts.show_progress_approximate)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/11dd79e346bd780bc5c3119df962e7a9c20f2493", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " self.url_txt2img = \"http://localhost:7860/sdapi/v1/txt2img\"\n self.url_txt2img = \"http://127.0.0.1:7860/sdapi/v1/txt2img\"\n self.url_img2img = \"http://localhost:7860/sdapi/v1/img2img\"\n self.url_img2img = \"http://127.0.0.1:7860/sdapi/v1/img2img\"\n self.url_txt2img = \"http://localhost:7860/sdapi/v1/txt2img\"\n self.url_txt2img = \"http://127.0.0.1:7860/sdapi/v1/txt2img\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/0646040667b59526ac8346d53efd14dc0e75b01e", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " return TextToImageResponse(images=b64images, parameters=json.dumps(vars(txt2imgreq)), info=json.dumps(processed.info))\n return TextToImageResponse(images=b64images, parameters=json.dumps(vars(txt2imgreq)), info=processed.js())\n return ImageToImageResponse(images=b64images, parameters=json.dumps(vars(img2imgreq)), info=json.dumps(processed.info))\n if (not img2imgreq.include_init_images):\n # remove img2imgreq.init_images and img2imgreq.mask\n img2imgreq.init_images = None\n img2imgreq.mask = None\n\n return ImageToImageResponse(images=b64images, parameters=json.dumps(vars(img2imgreq)), info=processed.js())\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/db9ab1a46b5ad4d36ecce76dfee04b7164249829", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " img = img.unsqueeze(0).to(devices.device_esrgan)\n img = devices.mps_contiguous_to(img.unsqueeze(0), devices.device_esrgan)\n img = img.unsqueeze(0).to(devices.device_swinir)\n img = devices.mps_contiguous_to(img.unsqueeze(0), devices.device_swinir)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/faed465a0b1a7d19669568738c93e04907c10415", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " ydl = YDL()\n ydl = YDL({'format': 'best/bestvideo'})\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.03125, "commit_url": "https://github.com/ytdl-org/youtube-dl/commit/8dd5418803a25de89d08cdb9d32f80f71c5d6c47", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " self.assertEqual(len(subtitles), 0)\n self.assertFalse(subtitles)\n self.assertEqual(len(subtitles), 0)\n self.assertFalse(subtitles)\n self.assertEqual(len(subtitles), 0)\n self.assertFalse(subtitles)\n self.assertEqual(len(subtitles), 0)\n self.assertFalse(subtitles)\n self.assertEqual(len(subtitles), 0)\n self.assertFalse(subtitles)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ytdl-org/youtube-dl/commit/4d1718481755dde078678b6e55d457fc6351fcdd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " ydl.add_downloader_progress_hook(_hook)\n ydl.add_progress_hook(_hook)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ytdl-org/youtube-dl/commit/933605d7e8c00df065f04024c3206a3352058484", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " self._fd_progress_hooks = []\n self._progress_hooks = []\n for ph in self._fd_progress_hooks:\n for ph in self._progress_hooks:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ytdl-org/youtube-dl/commit/933605d7e8c00df065f04024c3206a3352058484", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " def add_downloader_progress_hook(self, ph):\n \"\"\"Add the progress hook to the file downloader\"\"\"\n self._fd_progress_hooks.append(ph)\n def add_progress_hook(self, ph):\n \"\"\"Add the progress hook (currently only for the file downloader)\"\"\"\n self._progress_hooks.append(ph)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ytdl-org/youtube-dl/commit/933605d7e8c00df065f04024c3206a3352058484", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " for ph in self._fd_progress_hooks:\n for ph in self._progress_hooks:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ytdl-org/youtube-dl/commit/933605d7e8c00df065f04024c3206a3352058484", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "from .subtitles import SubtitlesIE\nfrom .subtitles import NoAutoSubtitlesIE\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ytdl-org/youtube-dl/commit/69df680b973841b61594c246a9cf4a708f09cb17", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "class DailyMotionSubtitlesIE(SubtitlesIE):\nclass DailyMotionSubtitlesIE(NoAutoSubtitlesIE):\nfrom .subtitles import SubtitlesIE\nfrom .subtitles import NoAutoSubtitlesIE\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ytdl-org/youtube-dl/commit/69df680b973841b61594c246a9cf4a708f09cb17", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " u\"title\": u\"Terraria 1.1 Trailer\"\n u\"title\": u\"Terraria 1.1 Trailer\",\n u'playlist_index': 1,\n u\"title\": u\"Terraria Trailer\"\n u\"title\": u\"Terraria Trailer\",\n u'playlist_index': 2,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ytdl-org/youtube-dl/commit/a4311547064bd5f4a58922137c74cc8b0e95343d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " if not torch.cuda.is_available():\n raise RuntimeError(\"No GPU found. A GPU is needed for quantization.\")\n\n if not torch.cuda.is_available():\n raise RuntimeError(\"No GPU found. A GPU is needed for quantization.\")\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/1872bde7fc6a5d6796bd742bc2dc38eaf8069c5d", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " if getattr(self.config, \"sliding_window\", None) is not None and kv_seq_len > self.config.sliding_window:\n cache_has_contents = past_key_value.get_seq_length(self.layer_idx) > 0\n if (\n getattr(self.config, \"sliding_window\", None) is not None\n and kv_seq_len > self.config.sliding_window\n and cache_has_contents\n ):\n if getattr(self.config, \"sliding_window\", None) is not None and kv_seq_len > self.config.sliding_window:\n cache_has_contents = past_key_value.get_seq_length(self.layer_idx) > 0\n if (\n getattr(self.config, \"sliding_window\", None) is not None\n and kv_seq_len > self.config.sliding_window\n and cache_has_contents\n ):\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/huggingface/transformers/commit/388fd314d8dd6bcb685f5223a7a46caa17e577f2", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " past_key = past_key_value[0]\n past_value = past_key_value[1]\n past_key = past_key_value[self.layer_idx][0]\n past_value = past_key_value[self.layer_idx][1]\n past_key = past_key_value[0]\n past_value = past_key_value[1]\n past_key = past_key_value[self.layer_idx][0]\n past_value = past_key_value[self.layer_idx][1]\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/huggingface/transformers/commit/388fd314d8dd6bcb685f5223a7a46caa17e577f2", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " past_key_value = (past_key, past_value)\n\n past_key_value = (past_key, past_value)\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/huggingface/transformers/commit/388fd314d8dd6bcb685f5223a7a46caa17e577f2", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " expected_image = image.astype(np.float32) * (2 / 255.0) - 1\n expected_image = (image * (2 / 255.0)).astype(np.float32) - 1\n expected_image = image.astype(np.float32) / 255.0\n expected_image = (image / 255.0).astype(np.float32)\n expected_image = image.astype(np.float32) * (2 / 255.0) - 1\n expected_image = (image * (2 / 255.0)).astype(np.float32) - 1\n expected_image = image.astype(np.float32) / 255.0\n expected_image = (image / 255.0).astype(np.float32)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/1b35409768c61f417498ea678e8acb56e548ad8f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " self.register_buffer(\"inv_freq\", inv_freq)\n self.register_buffer(\"inv_freq\", inv_freq, persistent=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.012244897959183673, "commit_url": "https://github.com/huggingface/transformers/commit/95f96b45ffb57291c69a43d7a11a5bb166220d0b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " # change view [batch_size, num_heads, q_length, head_dim]\n # change view [batch_size, q_length, num_heads * head_dim]\n # change view [batch_size, num_heads, q_length, head_dim]\n # change view [batch_size, q_length, num_heads * head_dim]\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/huggingface/transformers/commit/c965d302791cf935d6ea7776428749be678cf509", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " self.gamma = nn.Parameter(torch.zeros(1, 1, 1, dim))\n self.beta = nn.Parameter(torch.zeros(1, 1, 1, dim))\n self.weight = nn.Parameter(torch.zeros(1, 1, 1, dim))\n self.bias = nn.Parameter(torch.zeros(1, 1, 1, dim))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/56b8d49ddfceb4278e7d893f6ef7d13c86b67078", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " hidden_states = self.gamma * (hidden_states * norm_features) + self.beta + hidden_states\n hidden_states = self.weight * (hidden_states * norm_features) + self.bias + hidden_states\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/56b8d49ddfceb4278e7d893f6ef7d13c86b67078", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " try:\n model = TFBlipTextModel.from_pretrained(model_name)\n except OSError:\n model = TFBlipTextModel.from_pretrained(model_name, from_pt=True)\n model = TFBlipTextModel.from_pretrained(model_name)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/huggingface/transformers/commit/e577bd0f13e1820650810f6864253d70dc76ce08", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": " context_layer = natten2dav(attention_probs, value_layer, self.dilation)\n context_layer = natten2dav(attention_probs, value_layer, self.kernel_size, self.dilation)\n context_layer = natten2dav(attention_probs, value_layer, 1)\n context_layer = natten2dav(attention_probs, value_layer, self.kernel_size, 1)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/huggingface/transformers/commit/5990743fddb4780b15b8af2ed7ab55145ab40455", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " context_layer = natten2dav(attention_probs, value_layer, 1)\n context_layer = natten2dav(attention_probs, value_layer, self.kernel_size, 1)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/huggingface/transformers/commit/5990743fddb4780b15b8af2ed7ab55145ab40455", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " IMAGENET_STANDARD_MEAN,\n IMAGENET_STANDARD_STD,\n IMAGENET_DEFAULT_MEAN,\n IMAGENET_DEFAULT_STD,\n IMAGENET_STANDARD_MEAN,\n IMAGENET_STANDARD_STD,\n IMAGENET_DEFAULT_MEAN,\n IMAGENET_DEFAULT_STD,\n IMAGENET_STANDARD_MEAN,\n IMAGENET_STANDARD_STD,\n IMAGENET_DEFAULT_MEAN,\n IMAGENET_DEFAULT_STD,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/huggingface/transformers/commit/d68c46026b4d0a8a6406439250ac51c334ae132b", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " resample (`PILImageResampling`, *optional*, defaults to `PILImageResampling.BILINEAR`):\n resample (`PILImageResampling`, *optional*, defaults to `PILImageResampling.BICUBIC`):\n resample (`PILImageResampling`, *optional*, defaults to `PIL.Image.BICUBIC`):\n resample (`PILImageResampling`, *optional*, defaults to `PIL.Image.BILINEAR`):\n resample (`PILImageResampling`, *optional*, defaults to `PIL.Image.BILINEAR`):\n resample (`PILImageResampling`, *optional*, defaults to `PIL.Image.BICUBIC`):\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/huggingface/transformers/commit/d68c46026b4d0a8a6406439250ac51c334ae132b", "target_edit_idx": 2, "propagatable_edit_idx": [ 12, 6 ] }, { "input": " self.image_mean = image_mean if image_mean is not None else IMAGENET_STANDARD_MEAN\n self.image_std = image_std if image_std is not None else IMAGENET_STANDARD_STD\n self.image_mean = image_mean if image_mean is not None else IMAGENET_DEFAULT_MEAN\n self.image_std = image_std if image_std is not None else IMAGENET_DEFAULT_STD\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.19230769230769232, "commit_url": "https://github.com/huggingface/transformers/commit/d68c46026b4d0a8a6406439250ac51c334ae132b", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 10 ] }, { "input": " sequence_masked = tf.gather(\n sequence_unmasked = tf.gather(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/ba71bf4caedaa90a11f02735eb8bb375aabe70f5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " return sequence_masked, mask, ids_restore\n return sequence_unmasked, mask, ids_restore\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/ba71bf4caedaa90a11f02735eb8bb375aabe70f5", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " sequence_masked = torch.gather(sequence, dim=1, index=ids_keep.unsqueeze(-1).repeat(1, 1, dim))\n sequence_unmasked = torch.gather(sequence, dim=1, index=ids_keep.unsqueeze(-1).repeat(1, 1, dim))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/ba71bf4caedaa90a11f02735eb8bb375aabe70f5", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " segmentation = None\n segments: List[Dict] = []\n height, width = target_sizes[i] if target_sizes is not None else mask_probs_item.shape[1:]\n segmentation = torch.zeros((height, width)) - 1\n results.append({\"segmentation\": segmentation, \"segments_info\": []})\n segmentation = None\n segments: List[Dict] = []\n height, width = target_sizes[i] if target_sizes is not None else mask_probs_item.shape[1:]\n segmentation = torch.zeros((height, width)) - 1\n results.append({\"segmentation\": segmentation, \"segments_info\": []})\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/7598791c092d49555ec2aae1c92cf08a2eadb9e9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " fature_extractor = self.feature_extraction_class(num_labels=self.feature_extract_tester.num_classes)\n feature_extractor = self.feature_extraction_class(num_labels=self.feature_extract_tester.num_classes)\n segmentation = fature_extractor.post_process_panoptic_segmentation(outputs, threshold=0)\n\n segmentation = feature_extractor.post_process_panoptic_segmentation(outputs, threshold=0)\n print(len(segmentation))\n print(self.feature_extract_tester.batch_size)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/7598791c092d49555ec2aae1c92cf08a2eadb9e9", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " segmentation = fature_extractor.post_process_panoptic_segmentation(outputs, threshold=0)\n\n segmentation = feature_extractor.post_process_panoptic_segmentation(outputs, threshold=0)\n print(len(segmentation))\n print(self.feature_extract_tester.batch_size)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/7598791c092d49555ec2aae1c92cf08a2eadb9e9", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " def rescale_image(self, image: np.ndarray, scale: Union[float, int]) -> np.ndarray:\n def rescale(self, image: np.ndarray, scale: Union[float, int]) -> np.ndarray:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/8c4a11493f2c7a9153d1711150a8830b96eacd2e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " image = self.rescale_image(image.astype(np.float32), 1 / 255.0)\n image = self.rescale(image.astype(np.float32), 1 / 255.0)\n def rescale_image(self, image: np.ndarray, scale: Union[float, int]) -> np.ndarray:\n def rescale(self, image: np.ndarray, scale: Union[float, int]) -> np.ndarray:\n image = self.rescale_image(image.astype(np.float32), 1 / 255.0)\n image = self.rescale(image.astype(np.float32), 1 / 255.0)\n image = self.rescale_image(image.float(), 1 / 255.0)\n image = self.rescale(image.float(), 1 / 255.0)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/8c4a11493f2c7a9153d1711150a8830b96eacd2e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " image = self.rescale_image(image.astype(np.float32), 1 / 255.0)\n image = self.rescale(image.astype(np.float32), 1 / 255.0)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/8c4a11493f2c7a9153d1711150a8830b96eacd2e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " image = self.rescale_image(image.float(), 1 / 255.0)\n image = self.rescale(image.float(), 1 / 255.0)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/8c4a11493f2c7a9153d1711150a8830b96eacd2e", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " (\"pixel_values\", {0: \"batch\", 1: \"sequence\"}),\n (\"pixel_values\", {0: \"batch\", 1: \"num_channels\"}),\n (\"pixel_values\", {0: \"batch\", 1: \"sequence\"}),\n (\"pixel_values\", {0: \"batch\", 1: \"num_channels\"}),\n (\"pixel_values\", {0: \"batch\", 1: \"sequence\"}),\n (\"pixel_values\", {0: \"batch\", 1: \"num_channels\"}),\n (\"pixel_values\", {0: \"batch\", 1: \"sequence\"}),\n (\"pixel_values\", {0: \"batch\", 1: \"num_channels\"}),\n (\"pixel_values\", {0: \"batch\", 1: \"sequence\"}),\n (\"pixel_values\", {0: \"batch\", 1: \"num_channels\"}),\n (\"pixel_values\", {0: \"batch\", 1: \"sequence\"}),\n (\"pixel_values\", {0: \"batch\", 1: \"num_channels\"}),\n (\"pixel_values\", {0: \"batch\", 1: \"sequence\"}),\n (\"pixel_values\", {0: \"batch\", 1: \"num_channels\"}),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/huggingface/transformers/commit/76454b08c8ec09b0debeb1c94a3855cde8167d84", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5, 7, 8 ] }, { "input": " drop_path_rates = [x.item() for x in torch.linspace(0, config.drop_path_rate, sum(config.depths))]\n cur = 0\n drop_path_rates = [\n x.tolist() for x in torch.linspace(0, config.drop_path_rate, sum(config.depths)).split(config.depths)\n ]\n drop_path_rates = [x for x in tf.linspace(0.0, config.drop_path_rate, sum(config.depths))]\n cur = 0\n drop_path_rates = tf.linspace(0.0, config.drop_path_rate, sum(config.depths))\n drop_path_rates = tf.split(drop_path_rates, config.depths)\n drop_path_rates = [x.numpy().tolist() for x in drop_path_rates]\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/huggingface/transformers/commit/ec7f8af1061658701acae1d3e14bc50f68d8c62c", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " drop_path_rates=drop_path_rates[cur],\n drop_path_rates=drop_path_rates[i],\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/ec7f8af1061658701acae1d3e14bc50f68d8c62c", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " cur += config.depths[i]\n cur += config.depths[i]\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/huggingface/transformers/commit/ec7f8af1061658701acae1d3e14bc50f68d8c62c", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "from typing import List, Optional, Tuple\nfrom typing import List, Optional, Tuple, Union\nfrom typing import List, Optional, Tuple\nfrom typing import List, Optional, Tuple, Union\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/huggingface/transformers/commit/460f36d352c1b091d7c1d06c0881d021728e9b24", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " @unittest.skip(\"Re-enable this test once this issue is fixed: https://github.com/google/jax/issues/9941\")\n def test_encoder_decoder_model_from_encoder_decoder_pretrained(self):\n pass\n\n\n @unittest.skip(\"Re-enable this test once this issue is fixed: https://github.com/google/jax/issues/9941\")\n def test_encoder_decoder_model_from_encoder_decoder_pretrained(self):\n pass", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/b25b92ac4ffb8b66fb517f8888cbdc37075a9fd7", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " {\"params\": self.params},\n {\"params\": params or self.params},\n {\"params\": self.params},\n {\"params\": params or self.params},\n {\"params\": self.params},\n {\"params\": params or self.params},\n {\"params\": self.params},\n {\"params\": params or self.params},\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/f5cd27694a0c7d0036954c8350f774a5c1181a57", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 7 ] }, { "input": " def get_image_features(self, pixel_values, dropout_rng: jax.random.PRNGKey = None, train=False):\n def get_image_features(\n self, pixel_values, params: dict = None, dropout_rng: jax.random.PRNGKey = None, train=False\n ):\n def get_image_features(self, pixel_values, dropout_rng: jax.random.PRNGKey = None, train=False):\n def get_image_features(\n self, pixel_values, params: dict = None, dropout_rng: jax.random.PRNGKey = None, train=False\n ):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/huggingface/transformers/commit/f5cd27694a0c7d0036954c8350f774a5c1181a57", "target_edit_idx": 6, "propagatable_edit_idx": [ 2 ] }, { "input": "def get_dataset(args: DataTrainingArguments, tokenizer: PreTrainedTokenizer, evaluate=False):\ndef get_dataset(\n args: DataTrainingArguments,\n tokenizer: PreTrainedTokenizer,\n evaluate: bool = False,\n cache_dir: Optional[str] = None,\n):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/21d719238c68154798bff21581b82410f303e9ba", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " train_dataset = get_dataset(data_args, tokenizer=tokenizer) if training_args.do_train else None\n eval_dataset = get_dataset(data_args, tokenizer=tokenizer, evaluate=True) if training_args.do_eval else None\n train_dataset = (\n get_dataset(data_args, tokenizer=tokenizer, cache_dir=model_args.cache_dir) if training_args.do_train else None\n )\n eval_dataset = (\n get_dataset(data_args, tokenizer=tokenizer, evaluate=True, cache_dir=model_args.cache_dir)\n if training_args.do_eval\n else None\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/huggingface/transformers/commit/21d719238c68154798bff21581b82410f303e9ba", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " self.summary = SequenceSummary(config)\n self.sequence_summary = SequenceSummary(config)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/0e36e515154f686e3927eb6269cc0b80d4669ba1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " pooled_output = self.summary(sequence_output)\n pooled_output = self.sequence_summary(sequence_output)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/0e36e515154f686e3927eb6269cc0b80d4669ba1", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "def prepare_generation_special_tokens():\n return {\"bos_token_id\": 50256, \"eos_token_id\": 50256}\n\n\ndef prepare_generation_special_tokens():\n return {\"bos_token_id\": 0, \"pad_token_id\": 2}\n\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/huggingface/transformers/commit/e645dcbb70a295e2bcece9b02092fbf292a6b11e", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": " special_tokens = prepare_generation_special_tokens()\n\n special_tokens = prepare_generation_special_tokens()\n\n special_tokens = prepare_generation_special_tokens()\n\n special_tokens = prepare_generation_special_tokens()\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/e645dcbb70a295e2bcece9b02092fbf292a6b11e", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 11, 5 ] }, { "input": " # TODO: add cached compute states\n pasts = None\n past = None\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/d891fd0ae0d43ae71723c1df9622ffef33ce84aa", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 5 ] }, { "input": " lr_this_step = args.learning_rate * warmup_linear(global_step/num_train_optimization_steps, args.warmup_proportion)\n lr_this_step = args.learning_rate * warmup_linear.get_lr(global_step/num_train_optimization_steps,\n args.warmup_proportion)\n lr_this_step = args.learning_rate * warmup_linear(global_step/num_train_optimization_steps, args.warmup_proportion)\n lr_this_step = args.learning_rate * warmup_linear.get_lr(global_step/num_train_optimization_steps,\n args.warmup_proportion)\n lr_this_step = args.learning_rate * warmup_linear(global_step/num_train_optimization_steps, args.warmup_proportion)\n lr_this_step = args.learning_rate * warmup_linear.get_lr(global_step/num_train_optimization_steps,\n args.warmup_proportion)\n lr_this_step = args.learning_rate * warmup_linear(global_step/num_train_optimization_steps, args.warmup_proportion)\n lr_this_step = args.learning_rate * warmup_linear.get_lr(global_step/num_train_optimization_steps,\n args.warmup_proportion)\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/huggingface/transformers/commit/d94c6b01445531a649f61b2faebfa767d8b1915f", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 11, 14 ] }, { "input": " losses.append(loss_fct(lm_logits.view(-1, lm_logits.size(-1)), lm_labels.view(-1)))\n losses.append(loss_fct(shift_logits.view(-1,\n shift_logits.size(-1)), shift_labels.view(-1)))\n losses.append(loss_fct(lm_logits.view(-1, lm_logits.size(-1)), lm_labels.view(-1)))\n losses.append(loss_fct(shift_logits.view(-1,\n shift_logits.size(-1)), shift_labels.view(-1)))\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/huggingface/transformers/commit/0dd796e359d1fbf9c0ea39b04e9b5655e5a09dee", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " s = 1 if x <= warmup else 0\n return s*(x/warmup) + (1-s)*1\n \"\"\" Linearly increases learning rate over `warmup`*`t_total` (as provided to BertAdam) training steps.\n Learning rate is 1. afterwards. \"\"\"\n if x < warmup:\n return x/warmup\n return 1.0\n s = 1 if x <= warmup else 0\n return (s*(x/warmup) + (1-s))*(1-x)\n \"\"\" Specifies a triangular learning rate schedule where peak is reached at `warmup`*`t_total`-th (as provided to BertAdam) training step.\n After `t_total`-th training step, learning rate is zero. \"\"\"\n if x < warmup:\n return x/warmup\n return max(1.0 - x, 0)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/transformers/commit/e04bab59e1cf7e683e0365fd78e9e59e83c16d32", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " with open(input_file, \"r\") as reader:\n with open(input_file, \"r\", encoding='utf-8') as reader:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.35, "commit_url": "https://github.com/huggingface/transformers/commit/ae88eb88a4baffdd23fa38acf7493aedd23fa6b5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 5, 7, 8, 9, 10 ] }, { "input": " with open(input_file, \"r\") as f:\n with open(input_file, \"r\", encoding='utf-8') as f:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.35, "commit_url": "https://github.com/huggingface/transformers/commit/ae88eb88a4baffdd23fa38acf7493aedd23fa6b5", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 5, 7, 8, 9, 10 ] }, { "input": " logger.info(\"device %s n_gpu %d distributed training %r\", device, n_gpu, bool(args.local_rank != -1))\n logger.info(\"device: {} n_gpu: {}, distributed training: {}, 16-bits training: {}\".format(\n device, n_gpu, bool(args.local_rank != -1), args.fp16))\n logger.info(\"device %s n_gpu %d distributed training %r\", device, n_gpu, bool(args.local_rank != -1))\n logger.info(\"device: {} n_gpu: {}, distributed training: {}, 16-bits training: {}\".format(\n device, n_gpu, bool(args.local_rank != -1), args.fp16))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/huggingface/transformers/commit/ae88eb88a4baffdd23fa38acf7493aedd23fa6b5", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " with open(input_file, 'r') as f:\n with open(input_file, 'r', encoding='utf-8') as f:\n with open(input_file, \"r\") as reader:\n with open(input_file, \"r\", encoding='utf-8') as reader:\n with open(input_file, \"r\") as f:\n with open(input_file, \"r\", encoding='utf-8') as f:\n with open(input_file, \"r\") as reader:\n with open(input_file, \"r\", encoding='utf-8') as reader:\n with open(filename, 'r') as file_:\n with open(filename, 'r', encoding='utf-8') as file_:\n with open(vocab_size_or_config_json_file, \"r\") as reader:\n with open(vocab_size_or_config_json_file, \"r\", encoding='utf-8') as reader:\n with open(json_file, \"r\") as reader:\n with open(json_file, \"r\", encoding='utf-8') as reader:\n long_description=open(\"README.md\", \"r\").read(),\n long_description=open(\"README.md\", \"r\", encoding='utf-8').read(),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.35, "commit_url": "https://github.com/huggingface/transformers/commit/ae88eb88a4baffdd23fa38acf7493aedd23fa6b5", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 3, 7, 8, 9, 10 ] }, { "input": " logger.info(\"device %s n_gpu %d distributed training %r\", device, n_gpu, bool(args.local_rank != -1))\n logger.info(\"device: {} n_gpu: {}, distributed training: {}, 16-bits training: {}\".format(\n device, n_gpu, bool(args.local_rank != -1), args.fp16))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/huggingface/transformers/commit/ae88eb88a4baffdd23fa38acf7493aedd23fa6b5", "target_edit_idx": 6, "propagatable_edit_idx": [ 2 ] }, { "input": " with open(vocab_size_or_config_json_file, \"r\") as reader:\n with open(vocab_size_or_config_json_file, \"r\", encoding='utf-8') as reader:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.35, "commit_url": "https://github.com/huggingface/transformers/commit/ae88eb88a4baffdd23fa38acf7493aedd23fa6b5", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 3, 5, 7, 9, 10 ] }, { "input": " with open(json_file, \"r\") as reader:\n with open(json_file, \"r\", encoding='utf-8') as reader:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.35, "commit_url": "https://github.com/huggingface/transformers/commit/ae88eb88a4baffdd23fa38acf7493aedd23fa6b5", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 3, 5, 7, 8, 10 ] }, { "input": " long_description=open(\"README.md\", \"r\").read(),\n long_description=open(\"README.md\", \"r\", encoding='utf-8').read(),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.35, "commit_url": "https://github.com/huggingface/transformers/commit/ae88eb88a4baffdd23fa38acf7493aedd23fa6b5", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 3, 5, 7, 8, 9 ] }, { "input": " side_effect='*' if side_effect else '',\n side_effect=' (+side effect)' if side_effect else '',\n side_effect='*' if side_effect else '',\n side_effect=' (+side effect)' if side_effect else '',\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nvbn/thefuck/commit/3173ef10c6ed9a8e99ba47ddce51e716144a755c", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " assert subp_mock.check_output.called\n assert subp_mock.check_output.called", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nvbn/thefuck/commit/51b5dd04608a809d26fc519b735652601a30f799", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " get_new_command=get_new_command)) as load_source:\n assert main.load_rule(Path('/rules/bash.py')) == main.Rule('bash', match, get_new_command)\n get_new_command=get_new_command,\n enabled_by_default=True)) as load_source:\n assert main.load_rule(Path('/rules/bash.py')) \\\n == main.Rule('bash', match, get_new_command, True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.45, "commit_url": "https://github.com/nvbn/thefuck/commit/957209bdb681ba169dc7b0ce4088554b51f7b6fd", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 5, 6, 8, 9 ] }, { "input": " Mock(rules=['bash'])) == [main.Rule('bash', 'bash', 'bash'),\n main.Rule('bash', 'bash', 'bash')]\n Mock(rules=['bash']))) == [main.Rule('bash', 'bash', 'bash', True),\n main.Rule('bash', 'bash', 'bash', True)]\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3611111111111111, "commit_url": "https://github.com/nvbn/thefuck/commit/957209bdb681ba169dc7b0ce4088554b51f7b6fd", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 4, 6, 8, 9 ] }, { "input": " @parameterized('param', {'foo': None, 'bar': None})\n @parameterized_with_device('param', {'foo': None, 'bar': None})\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/pytorch/pytorch/commit/57f48cc691f088a94655be11d6191b4ac1e69869", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " @parameterized('training', {'train': True, 'eval': False})\n @parameterized('track_running_stats', {'running_stats1': True, 'running_stats0': False})\n @parameterized('affine', {'affine1': True, 'affine0': False})\n @parameterized_with_device('training', {'train': True, 'eval': False})\n @parameterized_with_device('track_running_stats', {'running_stats1': True, 'running_stats0': False})\n @parameterized_with_device('affine', {'affine1': True, 'affine0': False})\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/pytorch/pytorch/commit/57f48cc691f088a94655be11d6191b4ac1e69869", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " parameters (Iterable[Tensor]): an iterable of Tensors that will have\n gradients normalized\n parameters (Iterable[Tensor] or Tensor): an iterable of Tensors or a\n single Tensor that will have gradients normalized\n parameters (Iterable[Tensor]): an iterable of Tensors that will have\n gradients normalized\n parameters (Iterable[Tensor] or Tensor): an iterable of Tensors or a\n single Tensor that will have gradients normalized\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pytorch/pytorch/commit/2222fc766656d968dd95e1a4f16c6046952336ad", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " super(TestCase, self).assertEqual(a.size(), b.size())\n super(TestCase, self).assertEqual(a.size(), b.size(), message)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/pytorch/pytorch/commit/ffa7fab67f6b96816361cad5ab4c4378d7404dc3", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " super(TestCase, self).assertEqual(x, y)\n super(TestCase, self).assertEqual(x, y, message)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/pytorch/pytorch/commit/ffa7fab67f6b96816361cad5ab4c4378d7404dc3", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5, 6 ] }, { "input": " super(TestCase, self).assertEqual(len(x), len(y))\n super(TestCase, self).assertEqual(len(x), len(y), message)\n super(TestCase, self).assertEqual(a.size(), b.size())\n super(TestCase, self).assertEqual(a.size(), b.size(), message)\n super(TestCase, self).assertEqual(x, y)\n super(TestCase, self).assertEqual(x, y, message)\n super(TestCase, self).assertEqual(x, y)\n super(TestCase, self).assertEqual(x, y, message)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/pytorch/pytorch/commit/ffa7fab67f6b96816361cad5ab4c4378d7404dc3", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 4, 5 ] }, { "input": " self.assertEqual(float(f), float('inf'))\n self.assertEqual(float(f), float('inf'), allow_inf=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.002102312543798178, "commit_url": "https://github.com/pytorch/pytorch/commit/ffa7fab67f6b96816361cad5ab4c4378d7404dc3", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " self.assertEqual(c[4], c[5][1:4], 0)\n self.assertEqual(c[4][1:4], c[5], 0)\n self.assertEqual(c[4], c[5][1:4], 0)\n self.assertEqual(c[4][1:4], c[5], 0)\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/pytorch/pytorch/commit/7cdd018db4638a7669a5a7482cecf61724d02b08", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " self.save_for_backward(result)\n ctx.save_for_backward(result)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pytorch/pytorch/commit/e3f41a4962d2d012b6ed1c72fb3124f42e3ffff7", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " def backward(self, grad_output):\n result, = self.saved_tensors\n grad_input = grad_output.new()\n backend = type2backend[type(result)]\n backend.Sigmoid_updateGradInput(backend.library_state, None, grad_output,\n grad_input, result)\n return grad_input\n @staticmethod\n def backward(ctx, grad_output):\n result, = ctx.saved_variables\n if grad_output.volatile:\n grad_input = Variable(grad_output.data.new(grad_output.size()), volatile=True)\n backend = type2backend[type(result.data)]\n backend.Sigmoid_updateGradInput(backend.library_state, None, grad_output.data,\n grad_input.data, result.data)\n else:\n grad_input = grad_output * ((1 - result) * result)\n return grad_input, None\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pytorch/pytorch/commit/e3f41a4962d2d012b6ed1c72fb3124f42e3ffff7", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " return Sigmoid()(self)\n return Sigmoid.apply(self)\n return Sigmoid(True)(self)\n return Sigmoid.apply(self, True)\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/pytorch/pytorch/commit/e3f41a4962d2d012b6ed1c72fb3124f42e3ffff7", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " futures = [pool.submit(download_fragment, fragment) for fragment in fragments_to_download]\n futures = [pool.submit(_download_fragment, fragment) for fragment in fragments_to_download]\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/yt-dlp/yt-dlp/commit/d89da64b1d21b7faf107d26104f3210ea01be7a1", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " results = [future.result() for future in futures]\n results = [future.result() for future in futures]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/yt-dlp/yt-dlp/commit/d89da64b1d21b7faf107d26104f3210ea01be7a1", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " for frag_content, frag_index in results:\n for fragment, frag_index in map(lambda x: x.result(), futures):\n fragment_filename = '%s-Frag%d' % (ctx['tmpfilename'], frag_index)\n down, frag_sanitized = sanitize_open(fragment_filename, 'rb')\n fragment['fragment_filename_sanitized'] = frag_sanitized\n frag_content = down.read()\n down.close()\n for frag_content, frag_index in results:\n for fragment, frag_index in map(lambda x: x.result(), futures):\n fragment_filename = '%s-Frag%d' % (ctx['tmpfilename'], frag_index)\n down, frag_sanitized = sanitize_open(fragment_filename, 'rb')\n fragment['fragment_filename_sanitized'] = frag_sanitized\n frag_content = down.read()\n down.close()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/yt-dlp/yt-dlp/commit/d89da64b1d21b7faf107d26104f3210ea01be7a1", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " futures = [pool.submit(download_fragment, fragment) for fragment in fragments]\n futures = [pool.submit(_download_fragment, fragment) for fragment in fragments]\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/yt-dlp/yt-dlp/commit/d89da64b1d21b7faf107d26104f3210ea01be7a1", "target_edit_idx": 5, "propagatable_edit_idx": [ 1 ] }, { "input": " ydl = YDL()\n ydl = YDL({'format': 'best/bestvideo'})\n ydl = YDL()\n ydl = YDL({'format': 'best/bestvideo'})\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.03125, "commit_url": "https://github.com/yt-dlp/yt-dlp/commit/8dd5418803a25de89d08cdb9d32f80f71c5d6c47", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " self._fd_progress_hooks = []\n self._progress_hooks = []\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/yt-dlp/yt-dlp/commit/933605d7e8c00df065f04024c3206a3352058484", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "class DailyMotionSubtitlesIE(SubtitlesIE):\nclass DailyMotionSubtitlesIE(NoAutoSubtitlesIE):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/yt-dlp/yt-dlp/commit/69df680b973841b61594c246a9cf4a708f09cb17", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " self.settings_override = override_settings_tags(\n self.settings_override = override_settings(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/django/django/commit/24b316536a7ee4c54a54f632de1852aecb4038c0", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " @override_settings_tags(MESSAGE_TAGS={\n @override_settings(MESSAGE_TAGS={\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/django/django/commit/24b316536a7ee4c54a54f632de1852aecb4038c0", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " friends_abstract = models.ManyToManyField('self', related_name='friends_abstract', symmetrical=True)\n friends_abstract = models.ManyToManyField('self', symmetrical=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.005037783375314861, "commit_url": "https://github.com/django/django/commit/1fb21ab3770bdc07fc847e131fa252759befadd2", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " friends_base = models.ManyToManyField('self', related_name='friends_base', symmetrical=True)\n friends_base = models.ManyToManyField('self', symmetrical=True)\n friends_abstract = models.ManyToManyField('self', related_name='friends_abstract', symmetrical=True)\n friends_abstract = models.ManyToManyField('self', symmetrical=True)\n friends_inherited = models.ManyToManyField('self', related_name='friends_concrete', symmetrical=True)\n friends_inherited = models.ManyToManyField('self', symmetrical=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.005037783375314861, "commit_url": "https://github.com/django/django/commit/1fb21ab3770bdc07fc847e131fa252759befadd2", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " friends_inherited = models.ManyToManyField('self', related_name='friends_concrete', symmetrical=True)\n friends_inherited = models.ManyToManyField('self', symmetrical=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.005037783375314861, "commit_url": "https://github.com/django/django/commit/1fb21ab3770bdc07fc847e131fa252759befadd2", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " raise DatabaseError('database %s already exists' % parameters['dbname'])\n error = DatabaseError('database %s already exists' % parameters['dbname'])\n error.pgcode = errorcodes.DUPLICATE_DATABASE\n raise DatabaseError() from error\n raise DatabaseError('permission denied to create database')\n error = DatabaseError('permission denied to create database')\n error.pgcode = errorcodes.INSUFFICIENT_PRIVILEGE\n raise DatabaseError() from error\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.00980392156862745, "commit_url": "https://github.com/django/django/commit/e776dd2db677d58dcb50aea20d3bb191537df25b", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " self.assertSpatialIndexExists('gis_neighborhood', 'heatmap')\n self.assertSpatialIndexExists('gis_neighborhood', 'heatmap', raster=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/django/django/commit/a1ad896422437b376462361560086609538779fc", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 12 ] }, { "input": " self.assertSpatialIndexExists('gis_neighborhood', 'rast')\n self.assertSpatialIndexExists('gis_neighborhood', 'rast', raster=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/django/django/commit/a1ad896422437b376462361560086609538779fc", "target_edit_idx": 12, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " def __init__(self, alias, target, source=None):\n if source is None:\n source = target\n super(Col, self).__init__(output_field=source)\n def __init__(self, alias, target, output_field=None):\n if output_field is None:\n output_field = target\n super(Col, self).__init__(output_field=output_field)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/django/django/commit/4755f8fc25331c739a6f932cc8aba0cc9e62e352", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " def get_col(self, alias, source=None):\n if source is None:\n source = self\n if alias != self.model._meta.db_table or source != self:\n def get_col(self, alias, output_field=None):\n if output_field is None:\n output_field = self\n if alias != self.model._meta.db_table or output_field != self:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/django/django/commit/4755f8fc25331c739a6f932cc8aba0cc9e62e352", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " return Col(alias, self, source)\n return Col(alias, self, output_field)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/django/django/commit/4755f8fc25331c739a6f932cc8aba0cc9e62e352", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " content = loader.get_template(template_name).render(context)\n content = loader.render_to_string(template_name, context)\n content = loader.get_template(template_name).render(context, request)\n # In Django 2.0, request should become a positional argument.\n content = loader.render_to_string(template_name, context, request=request)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/django/django/commit/127f9e073d83904defd4bde4eaa4491f3306ca25", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " self.assertEqual(action.old_name, \"author\")\n self.assertEqual(action.new_name, \"writer\")\n self.assertEqual(action.old_name, \"Author\")\n self.assertEqual(action.new_name, \"Writer\")\n self.assertEqual(action.old_name, \"author\")\n self.assertEqual(action.new_name, \"writer\")\n self.assertEqual(action.old_name, \"Author\")\n self.assertEqual(action.new_name, \"Writer\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/django/django/commit/40f6ca54f848f783f65855fcc7188a276de3974b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " If only_with_models_module in True (non-default), only applications\n containing a models module are considered.\n If only_with_models_module in True (non-default), imports models and\n considers only applications containing a models module.\n If only_with_models_module in True (non-default), only applications\n containing a models module are considered.\n If only_with_models_module in True (non-default), imports models and\n considers only applications containing a models module.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/django/django/commit/4582993302262dec06a39028cc878247542c2334", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " self.populate_models()\n if only_with_models_module:\n self.populate_models()\n else:\n self.populate_apps()\n\n self.populate_models()\n if only_with_models_module:\n self.populate_models()\n else:\n self.populate_apps()\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/django/django/commit/4582993302262dec06a39028cc878247542c2334", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " if hasattr(self, 'fixtures'):\n if self.fixtures:\n if hasattr(self, 'fixtures'):\n if self.fixtures:\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/django/django/commit/abb10db06fb2ecb3e897462ec72417d10b39b8a4", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " self.message_user(request, msg)\n self.message_user(request, msg, messages.SUCCESS)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5789473684210527, "commit_url": "https://github.com/django/django/commit/3be368c73e8e6696e7cc74421aeb4d06d8e828c8", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " self.message_user(request, msg)\n self.message_user(request, msg, messages.SUCCESS)\n self.message_user(request, msg)\n self.message_user(request, msg, messages.SUCCESS)\n self.message_user(request, msg)\n self.message_user(request, msg, messages.SUCCESS)\n self.message_user(request, msg)\n self.message_user(request, msg, messages.SUCCESS)\n self.message_user(request, msg)\n self.message_user(request, msg, messages.SUCCESS)\n self.message_user(request, msg)\n self.message_user(request, msg, messages.SUCCESS)\n self.message_user(request, msg)\n self.message_user(request, msg, messages.SUCCESS)\n self.message_user(request, msg)\n self.message_user(request, msg, messages.WARNING)\n self.message_user(request, msg)\n self.message_user(request, msg, messages.WARNING)\n self.message_user(request, msg)\n self.message_user(request, msg, messages.WARNING)\n self.message_user(request, msg)\n self.message_user(request, msg, messages.SUCCESS)\n self.message_user(request, _('The %(name)s \"%(obj)s\" was deleted successfully.') % {'name': force_text(opts.verbose_name), 'obj': force_text(obj_display)})\n self.message_user(request, _(\n 'The %(name)s \"%(obj)s\" was deleted successfully.') % {\n 'name': force_text(opts.verbose_name),\n 'obj': force_text(obj_display)},\n messages.SUCCESS)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5789473684210527, "commit_url": "https://github.com/django/django/commit/3be368c73e8e6696e7cc74421aeb4d06d8e828c8", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " self.message_user(request, msg)\n self.message_user(request, msg, messages.WARNING)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5789473684210527, "commit_url": "https://github.com/django/django/commit/3be368c73e8e6696e7cc74421aeb4d06d8e828c8", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13 ] }, { "input": " self.message_user(request, _('The %(name)s \"%(obj)s\" was deleted successfully.') % {'name': force_text(opts.verbose_name), 'obj': force_text(obj_display)})\n self.message_user(request, _(\n 'The %(name)s \"%(obj)s\" was deleted successfully.') % {\n 'name': force_text(opts.verbose_name),\n 'obj': force_text(obj_display)},\n messages.SUCCESS)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5789473684210527, "commit_url": "https://github.com/django/django/commit/3be368c73e8e6696e7cc74421aeb4d06d8e828c8", "target_edit_idx": 13, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": "def _render_value_in_context(value, context):\ndef render_value_in_context(value, context):\n return _render_value_in_context(output, context)\n return render_value_in_context(output, context)\n return _render_value_in_context(value, context)\n return render_value_in_context(value, context)\n return _render_value_in_context(value, context)\n return render_value_in_context(value, context)\nfrom django.template.base import _render_value_in_context\nfrom django.template.base import render_value_in_context\n value = _render_value_in_context(output, context)\n value = render_value_in_context(output, context)\n data = dict([(v, _render_value_in_context(context.get(v, ''), context)) for v in vars])\n data = dict([(v, render_value_in_context(context.get(v, ''), context)) for v in vars])\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/django/django/commit/3ded2aef71e35e00e9822a39b3805b31deb0eef5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5, 6, 7 ] }, { "input": " return _render_value_in_context(output, context)\n return render_value_in_context(output, context)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/django/django/commit/3ded2aef71e35e00e9822a39b3805b31deb0eef5", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 5, 6, 7 ] }, { "input": "from django.template.base import _render_value_in_context\nfrom django.template.base import render_value_in_context\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/django/django/commit/3ded2aef71e35e00e9822a39b3805b31deb0eef5", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 3, 4, 6, 7 ] }, { "input": " value = _render_value_in_context(output, context)\n value = render_value_in_context(output, context)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/django/django/commit/3ded2aef71e35e00e9822a39b3805b31deb0eef5", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 7 ] }, { "input": " data = dict([(v, _render_value_in_context(context.get(v, ''), context)) for v in vars])\n data = dict([(v, render_value_in_context(context.get(v, ''), context)) for v in vars])\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/django/django/commit/3ded2aef71e35e00e9822a39b3805b31deb0eef5", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6 ] }, { "input": " super(TransformerEncoderBlock, self).build(input_shape)\n super().build(input_shape)\n base_config = super(TransformerEncoderBlock, self).get_config()\n base_config = super().get_config()\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0008257638315441783, "commit_url": "https://github.com/tensorflow/models/commit/0c6567cd9fc4ce606b056543cca416ae628f209f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " base_config = super(TransformerEncoderBlock, self).get_config()\n base_config = super().get_config()\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0008257638315441783, "commit_url": "https://github.com/tensorflow/models/commit/0c6567cd9fc4ce606b056543cca416ae628f209f", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " source_tensor = input_tensor[:, 0:self._output_range, :]\n source_tensor = input_tensor[:, 0:output_range, :]\n target_tensor = input_tensor[:, 0:self._output_range, :]\n target_tensor = input_tensor[:, 0:output_range, :]\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tensorflow/models/commit/0c6567cd9fc4ce606b056543cca416ae628f209f", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "flags.DEFINE_bool('gen_report', False,\n 'Generate an API report containing the health of the '\n 'docstrings of the public API.')\nflags.DEFINE_bool('gen_report', False,\n 'Generate an API report containing the health of the '\n 'docstrings of the public API.')\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/ea90f0c118fd39d93a1ac740a99094687f1e243a", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "def gen_api_docs(code_url_prefix, site_path, output_dir, gen_report,\n project_short_name, project_full_name, search_hints):\ndef gen_api_docs(code_url_prefix, site_path, output_dir, project_short_name,\n project_full_name, search_hints):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/tensorflow/models/commit/ea90f0c118fd39d93a1ac740a99094687f1e243a", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " gen_report=gen_report,\n gen_report=FLAGS.gen_report,\n gen_report=gen_report,\n gen_report=FLAGS.gen_report,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/ea90f0c118fd39d93a1ac740a99094687f1e243a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 6, 7 ] }, { "input": " use_experimental_api=True):\n use_experimental_api=False):\n use_experimental_api=True):\n use_experimental_api=False):\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tensorflow/models/commit/417aa07384824ab567bd651444f5210e9f2e5bfb", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " loss_scale=runtime_config.loss_scale)\n loss_scale=runtime_config.loss_scale,\n use_experimental_api=True)\n loss_scale=runtime_config.loss_scale)\n loss_scale=runtime_config.loss_scale,\n use_experimental_api=True)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tensorflow/models/commit/417aa07384824ab567bd651444f5210e9f2e5bfb", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " params.runtime.loss_scale)\n params.runtime.loss_scale,\n use_experimental_api=True)\n params.runtime.loss_scale)\n params.runtime.loss_scale,\n use_experimental_api=True)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tensorflow/models/commit/417aa07384824ab567bd651444f5210e9f2e5bfb", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " dataset = dataset.shuffle(self._shuffle_buffer_size)\n dataset = dataset.shuffle(self._shuffle_buffer_size, seed=self._seed)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09523809523809523, "commit_url": "https://github.com/tensorflow/models/commit/e52c88e5bbf9c7b36177372b050a7f5d3462a3f0", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " dataset = dataset.shuffle(self._shuffle_buffer_size)\n dataset = dataset.shuffle(self._shuffle_buffer_size, seed=self._seed)\n dataset = dataset.shuffle(self._shuffle_buffer_size)\n dataset = dataset.shuffle(self._shuffle_buffer_size, seed=self._seed)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09523809523809523, "commit_url": "https://github.com/tensorflow/models/commit/e52c88e5bbf9c7b36177372b050a7f5d3462a3f0", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " \"\"\"Generate consisitant fake integer input sequences.\"\"\"\n \"\"\"Generate consistent fake integer input sequences.\"\"\"\n \"\"\"Generate consisitant fake integer input sequences.\"\"\"\n \"\"\"Generate consistent fake integer input sequences.\"\"\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tensorflow/models/commit/4d5e9122bd355e1fec30466348169325fba7e2f9", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " max_sequence_length=attention.MAX_SEQ_LEN,\n max_position_embeddings=attention.MAX_SEQ_LEN,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/6e0b2ccf5414878cbae45b2656919d6fc0cea477", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 6, 7, 8, 9 ] }, { "input": " max_length=max_sequence_length,\n max_length=max_position_embeddings,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/6e0b2ccf5414878cbae45b2656919d6fc0cea477", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 4, 7, 8, 9 ] }, { "input": " max_rand_mask_length=max_sequence_length,\n max_rand_mask_length=max_position_embeddings,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/6e0b2ccf5414878cbae45b2656919d6fc0cea477", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 4, 6, 8, 9 ] }, { "input": " num_layers=1, vocab_size=1024, max_sequence_length=4096)\n num_layers=1, vocab_size=1024, max_position_embeddings=4096)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/6e0b2ccf5414878cbae45b2656919d6fc0cea477", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 4, 6, 7, 9 ] }, { "input": " flat_ids = _flatten_beam_dim(alive_seq) # [batch_size * beam_size]\n flat_cache = tf.nest.map_structure(_flatten_beam_dim, alive_cache)\n flat_ids = flatten_beam_dim(alive_seq) # [batch_size * beam_size]\n flat_cache = tf.nest.map_structure(flatten_beam_dim, alive_cache)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/tensorflow/models/commit/4b81982ebba723a836ab9e7d65851087ca0f2c9d", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": " alive_seq = _expand_to_beam_size(initial_ids, self.beam_size)\n alive_seq = expand_to_beam_size(initial_ids, self.beam_size)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/4b81982ebba723a836ab9e7d65851087ca0f2c9d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 6 ] }, { "input": " lambda t: _expand_to_beam_size(t, self.beam_size), initial_cache)\n lambda t: expand_to_beam_size(t, self.beam_size), initial_cache)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/4b81982ebba723a836ab9e7d65851087ca0f2c9d", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 6 ] }, { "input": "def _expand_to_beam_size(tensor, beam_size):\ndef expand_to_beam_size(tensor, beam_size):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/4b81982ebba723a836ab9e7d65851087ca0f2c9d", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 6 ] }, { "input": " x = beam_search._expand_to_beam_size(x, 3)\n x = beam_search.expand_to_beam_size(x, 3)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/4b81982ebba723a836ab9e7d65851087ca0f2c9d", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " x = beam_search._flatten_beam_dim(x)\n x = beam_search.flatten_beam_dim(x)\n flat_ids = _flatten_beam_dim(alive_seq) # [batch_size * beam_size]\n flat_cache = tf.nest.map_structure(_flatten_beam_dim, alive_cache)\n flat_ids = flatten_beam_dim(alive_seq) # [batch_size * beam_size]\n flat_cache = tf.nest.map_structure(flatten_beam_dim, alive_cache)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/4b81982ebba723a836ab9e7d65851087ca0f2c9d", "target_edit_idx": 7, "propagatable_edit_idx": [ 0 ] }, { "input": "def single_file_dataset(input_file, name_to_features):\ndef single_file_dataset(input_file, name_to_features, num_samples=None):\n dataset = single_file_dataset(file_path, name_to_features)\n dataset = single_file_dataset(file_path, name_to_features,\n num_samples=num_samples)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/tensorflow/models/commit/1c89b792ccdb53dd0cc2504f3bce502e5f0aa4e5", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " include_sample_weights=False):\n include_sample_weights=False,\n num_samples=None):\n include_sample_weights=False):\n include_sample_weights=False,\n num_samples=None):\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/tensorflow/models/commit/1c89b792ccdb53dd0cc2504f3bce502e5f0aa4e5", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " include_sample_weights=include_sample_weights)\n include_sample_weights=include_sample_weights,\n num_samples=num_samples)\n include_sample_weights=include_sample_weights)\n include_sample_weights=include_sample_weights,\n num_samples=FLAGS.train_data_size)\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/tensorflow/models/commit/1c89b792ccdb53dd0cc2504f3bce502e5f0aa4e5", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": "def single_file_dataset(input_file, name_to_features):\ndef single_file_dataset(input_file, name_to_features, num_samples=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/tensorflow/models/commit/2454e6ea3d23d2d9c2c0ecb1b0213d48abc33438", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " all_reduce_sum_gradients=True):\n experimental_aggregate_gradients=True):\n if all_reduce_sum_gradients:\n # when all_reduce_sum_gradients = False, apply_gradients() no longer\n # implicitly allreduce gradients, users manually allreduce gradient and\n # passed the allreduced grads_and_vars. For now, the clip_by_global_norm\n # will be moved to before the explicit allreduce to keep the math\n # the same as TF 1 and pre TF 2.2 implementation.\n if experimental_aggregate_gradients:\n # when experimental_aggregate_gradients = False, apply_gradients() no\n # longer implicitly allreduce gradients, users manually allreduce gradient\n # and passed the allreduced grads_and_vars. For now, the\n # clip_by_global_norm will be moved to before the explicit allreduce to\n # keep the math the same as TF 1 and pre TF 2.2 implementation.\n all_reduce_sum_gradients=all_reduce_sum_gradients)\n experimental_aggregate_gradients=experimental_aggregate_gradients)\n all_reduce_sum_gradients=False).\n experimental_aggregate_gradients=False).\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/9fc4fd082968c0c959c1d7bc938a9fcbf0f9e50d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " if all_reduce_sum_gradients:\n # when all_reduce_sum_gradients = False, apply_gradients() no longer\n # implicitly allreduce gradients, users manually allreduce gradient and\n # passed the allreduced grads_and_vars. For now, the clip_by_global_norm\n # will be moved to before the explicit allreduce to keep the math\n # the same as TF 1 and pre TF 2.2 implementation.\n if experimental_aggregate_gradients:\n # when experimental_aggregate_gradients = False, apply_gradients() no\n # longer implicitly allreduce gradients, users manually allreduce gradient\n # and passed the allreduced grads_and_vars. For now, the\n # clip_by_global_norm will be moved to before the explicit allreduce to\n # keep the math the same as TF 1 and pre TF 2.2 implementation.\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/9fc4fd082968c0c959c1d7bc938a9fcbf0f9e50d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " def compute_output_shape(self, input_shape):\n data_tensor_shape = tf.TensorShape(input_shape[0])\n batch = data_tensor_shape[0]\n sequence_length = data_tensor_shape[1]\n\n return tf.TensorShape((batch, sequence_length, self._output_einsum_shape))\n\n def compute_output_shape(self, input_shape):\n data_tensor_shape = tf.TensorShape(input_shape[0])\n batch = data_tensor_shape[0]\n sequence_length = data_tensor_shape[1]\n\n return tf.TensorShape((batch, sequence_length, self._output_einsum_shape))\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/0e0a94a6d1e0c149697994db726b6c1de1002276", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "from . import vggish_input\nfrom . import vggish_params\nfrom . import vggish_postprocess\nfrom . import vggish_slim\n\nfrom . import vggish_input\nfrom . import vggish_params\nfrom . import vggish_postprocess\nfrom . import vggish_slim\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tensorflow/models/commit/7d2da5cbc9d364ca597575f61c8edff781058ac4", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": " w = tf.transpose(w, [1, 0])\n w = tf.reshape(w, [-1])\n l = tf.transpose(l, [1, 0])\n l = tf.reshape(l, [-1])\n ew = tf.transpose(ew, [1, 0])\n ew = tf.reshape(ew, [-1])\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/ed54e8ddee4b265a98c6dfdda279848f9e7a117c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " true_classes=labels,\n true_classes=labels_reshaped,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/tensorflow/models/commit/ed54e8ddee4b265a98c6dfdda279848f9e7a117c", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " labels=labels,\n inputs=x,\n labels=labels_reshaped,\n inputs=inputs_reshaped,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/tensorflow/models/commit/ed54e8ddee4b265a98c6dfdda279848f9e7a117c", "target_edit_idx": 8, "propagatable_edit_idx": [ 6 ] }, { "input": " def __init__(self, resnet_size, data_format=None):\n \"\"\"These are the parameters that work for CIFAR-10 data.\n \"\"\"\n\n def __init__(self, resnet_size, data_format=None, num_classes=_NUM_CLASSES):\n \"\"\"These are the parameters that work for CIFAR-10 data.\"\"\"\n def __init__(self, resnet_size, data_format=None):\n \"\"\"These are the parameters that work for Imagenet data.\n \"\"\"\n\n def __init__(self, resnet_size, data_format=None, num_classes=_NUM_CLASSES):\n \"\"\"These are the parameters that work for Imagenet data.\"\"\"\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/4d053deb0cae63f748928ba8d18802d4e0be2692", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " num_classes=_NUM_CLASSES,\n num_classes=num_classes,\n num_classes=_NUM_CLASSES,\n num_classes=num_classes,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/tensorflow/models/commit/4d053deb0cae63f748928ba8d18802d4e0be2692", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " num_classes=_NUM_CLASSES,\n num_classes=num_classes,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/tensorflow/models/commit/4d053deb0cae63f748928ba8d18802d4e0be2692", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "def run_once(model, summary_writer, summary_op):\ndef run_once(model, saver, summary_writer, summary_op):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/cd5e9b7c2b92ce39e68024978d292722466177ed", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " run_once(model, summary_writer, summary_op)\n run_once(model, saver, summary_writer, summary_op)\ndef run_once(model, summary_writer, summary_op):\ndef run_once(model, saver, summary_writer, summary_op):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tensorflow/models/commit/cd5e9b7c2b92ce39e68024978d292722466177ed", "target_edit_idx": 6, "propagatable_edit_idx": [ 2 ] }, { "input": "def async_start(hass, entity_id=None):\ndef async_start(hass: HomeAssistant, entity_id: str | None = None) -> None:\ndef async_stop(hass, entity_id=None):\ndef async_stop(hass: HomeAssistant, entity_id: str | None = None) -> None:\ndef async_restart(hass, entity_id=None):\ndef async_restart(hass: HomeAssistant, entity_id: str | None = None) -> None:\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/24680b731faef233b3dc6e713d27795514ee139f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "from homeassistant.core import HomeAssistant\nfrom homeassistant.core import HomeAssistant, ServiceResponse\nfrom homeassistant.core import HomeAssistant\nfrom homeassistant.core import HomeAssistant, ServiceResponse\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/home-assistant/core/commit/24680b731faef233b3dc6e713d27795514ee139f", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": " return hass.services.async_call(\n return await hass.services.async_call(\n return hass.services.async_call(\n return await hass.services.async_call(\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/24680b731faef233b3dc6e713d27795514ee139f", "target_edit_idx": 10, "propagatable_edit_idx": [ 13 ] }, { "input": " created_at=entity[\"created_at\"],\n created_at=datetime.fromisoformat(entity[\"created_at\"]),\n created_at=entity[\"created_at\"],\n created_at=datetime.fromisoformat(entity[\"created_at\"]),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/e00f159ebeb0cb5f0b6ff27f7d8005b5ff51c096", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " modified_at=entity[\"modified_at\"],\n modified_at=datetime.fromisoformat(entity[\"modified_at\"]),\n modified_at=entity[\"modified_at\"],\n modified_at=datetime.fromisoformat(entity[\"modified_at\"]),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/e00f159ebeb0cb5f0b6ff27f7d8005b5ff51c096", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " vol.Optional(CONF_DEVICE_ID): selector.DeviceSelector(),\n vol.Optional(CONF_DEVICE_ID): selector.DeviceSelector(),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/0d48d5a5ec945a0615d361322b0170c0b825050a", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " validated_config = BINARY_SENSOR_SCHEMA(_options)\n validated_config = BINARY_SENSOR_CONFIG_SCHEMA(_options)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/0d48d5a5ec945a0615d361322b0170c0b825050a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " validated_config = BINARY_SENSOR_SCHEMA(config | {CONF_NAME: name})\n validated_config = BINARY_SENSOR_CONFIG_SCHEMA(config | {CONF_NAME: name})\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/0d48d5a5ec945a0615d361322b0170c0b825050a", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " validated_config = SENSOR_SCHEMA(_options)\n validated_config = SENSOR_CONFIG_SCHEMA(_options)\n validated_config = SENSOR_SCHEMA(config | {CONF_NAME: name})\n validated_config = SENSOR_CONFIG_SCHEMA(config | {CONF_NAME: name})\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/0d48d5a5ec945a0615d361322b0170c0b825050a", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " validated_config = SENSOR_SCHEMA(config | {CONF_NAME: name})\n validated_config = SENSOR_CONFIG_SCHEMA(config | {CONF_NAME: name})\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/0d48d5a5ec945a0615d361322b0170c0b825050a", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " provider=PlayQueueItemType(value=\"deezer\"),\n provider=PlayQueueItemType(value=media_type),\n provider=PlayQueueItemType(value=\"deezer\"),\n provider=PlayQueueItemType(value=media_type),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/3046329f4f77baa3817437fda0151c40834d5e36", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " mock_ista: MagicMock,\n mock_ista: MagicMock,\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/6e8d6f599419f6cea2c9b5531743fbcbb8582d23", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "def disable_translations_once(translations_once):\ndef disable_translations_once(\n translations_once: _patch,\n) -> Generator[None, None, None]:\ndef _disable_translations_once(disable_translations_once):\ndef _disable_translations_once(disable_translations_once: None) -> None:\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/37fc16d7b6af3fe9addfe4e46a199223294622b6", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " tool_calls = [\n function_calls = [\n if not tool_calls or not llm_api:\n if not function_calls or not llm_api:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/7dab255c150a894bbb99ce86a2d143807db9871a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " if not tool_calls or not llm_api:\n if not function_calls or not llm_api:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/7dab255c150a894bbb99ce86a2d143807db9871a", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " mock_part.function_call.name = \"test_tool\"\n mock_part.function_call.args = {\"param1\": [\"test_value\"]}\n mock_part.function_call = FunctionCall(\n name=\"test_tool\",\n args={\n \"param1\": [\"test_value\", \"param1\\\\'s value\"],\n \"param2\": \"param2\\\\'s value\",\n },\n )\n mock_part.function_call.name = \"test_tool\"\n mock_part.function_call.args = {\"param1\": 1}\n mock_part.function_call = FunctionCall(name=\"test_tool\", args={\"param1\": 1})\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/7dab255c150a894bbb99ce86a2d143807db9871a", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " tool_calls = [\n function_calls = [\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/272c51fb389cfb2edec0ada32c7412c8579ef56c", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " for item in self.bring_list[\"purchase_items\"]\n for item in self.bring_list[\"purchase\"]\n for item in self.bring_list[\"recently_items\"]\n for item in self.bring_list[\"recently\"]\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/98710e6c918bb7f5cd14bd2d2eb70b866ff7dc01", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " (i for i in bring_list[\"purchase_items\"] if i[\"uuid\"] == item.uid),\n (i for i in bring_list[\"purchase\"] if i[\"uuid\"] == item.uid),\n (i for i in bring_list[\"recently_items\"] if i[\"uuid\"] == item.uid),\n (i for i in bring_list[\"recently\"] if i[\"uuid\"] == item.uid),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/98710e6c918bb7f5cd14bd2d2eb70b866ff7dc01", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " itemId=item.summary,\n spec=item.description,\n itemId=item.summary or \"\",\n spec=item.description or \"\",\n itemId=item.summary,\n spec=item.description,\n itemId=item.summary or \"\",\n spec=item.description or \"\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/98710e6c918bb7f5cd14bd2d2eb70b866ff7dc01", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": "from typing import Any, TypeVar, cast\nfrom typing import Any, cast\nfrom typing import Any, TypeVar\nfrom typing import Any\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/9cbcf5f2a5ad40656f44d77491236d6229a53266", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " raise ValueError(f\"{hvac_mode} mode not supported for {self.name}\")\n raise ServiceValidationError(\n f\"{hvac_mode} mode not supported for {self.name}\"\n )\n raise ValueError(f\"{hvac_mode} mode not supported for {self.name}\")\n raise ServiceValidationError(\n f\"{hvac_mode} mode not supported for {self.name}\"\n )", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/d4fbaef4f6265e050696d3f3f5ba741e0f1c231d", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " return self._async_add_hass_job(HassJob(target), *args, eager_start=eager_start)\n return self._async_add_hass_job(HassJob(target), *args)\n return self._async_add_hass_job(\n hassjob, *args, eager_start=eager_start, background=background\n )\n return self._async_add_hass_job(hassjob, *args, background=background)\n return self._async_add_hass_job(\n hassjob, *args, eager_start=True, background=background\n )\n return self._async_add_hass_job(hassjob, *args, background=background)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.47058823529411764, "commit_url": "https://github.com/home-assistant/core/commit/e215270c0564e80ef698ba83a0940b9cf539a715", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " return self._async_add_hass_job(\n hassjob, *args, eager_start=eager_start, background=background\n )\n return self._async_add_hass_job(hassjob, *args, background=background)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.47058823529411764, "commit_url": "https://github.com/home-assistant/core/commit/e215270c0564e80ef698ba83a0940b9cf539a715", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 7 ] }, { "input": " eager_start: bool = False,\n eager_start: bool = False,\n eager_start: bool = False,\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/home-assistant/core/commit/e215270c0564e80ef698ba83a0940b9cf539a715", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " return self._async_add_hass_job(\n hassjob, *args, eager_start=True, background=background\n )\n return self._async_add_hass_job(hassjob, *args, background=background)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.47058823529411764, "commit_url": "https://github.com/home-assistant/core/commit/e215270c0564e80ef698ba83a0940b9cf539a715", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " task = ha.HomeAssistant._async_add_hass_job(hass, job, eager_start=True)\n task = ha.HomeAssistant._async_add_hass_job(hass, job)\n task = ha.HomeAssistant._async_add_hass_job(hass, hass_job, eager_start=True)\n task = ha.HomeAssistant._async_add_hass_job(hass, hass_job)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.47058823529411764, "commit_url": "https://github.com/home-assistant/core/commit/e215270c0564e80ef698ba83a0940b9cf539a715", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " task = ha.HomeAssistant._async_add_hass_job(hass, hass_job, eager_start=True)\n task = ha.HomeAssistant._async_add_hass_job(hass, hass_job)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.47058823529411764, "commit_url": "https://github.com/home-assistant/core/commit/e215270c0564e80ef698ba83a0940b9cf539a715", "target_edit_idx": 11, "propagatable_edit_idx": [ 9 ] }, { "input": " entity_entries = er.async_entries_for_config_entry(\n entity_registry, mock_config_entry.entry_id\n await snapshot_platform(\n hass, entity_registry, snapshot, mock_config_entry.entry_id\n entity_entries = er.async_entries_for_config_entry(\n entity_registry, mock_config_entry.entry_id\n await snapshot_platform(\n hass, entity_registry, snapshot, mock_config_entry.entry_id\n entity_entries = er.async_entries_for_config_entry(\n entity_registry, mock_config_entry.entry_id\n await snapshot_platform(\n hass, entity_registry, snapshot, mock_config_entry.entry_id\n entity_entries = er.async_entries_for_config_entry(\n entity_registry, mock_config_entry.entry_id\n await snapshot_platform(\n hass, entity_registry, snapshot, mock_config_entry.entry_id\n entity_entries = er.async_entries_for_config_entry(\n entity_registry, mock_config_entry.entry_id\n await snapshot_platform(\n hass, entity_registry, snapshot, mock_config_entry.entry_id\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d4b801af3251ad0315a9967339ca0ff21eb8f320", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 4, 13, 7 ] }, { "input": "\n assert entity_entries\n for entity_entry in entity_entries:\n assert hass.states.get(entity_entry.entity_id) == snapshot(\n name=f\"{entity_entry.entity_id}-state\"\n )\n assert entity_entry == snapshot(name=f\"{entity_entry.entity_id}-entry\")\n assert entity_entries\n for entity_entry in entity_entries:\n assert hass.states.get(entity_entry.entity_id) == snapshot(\n name=f\"{entity_entry.entity_id}-state\"\n )\n assert entity_entry == snapshot(name=f\"{entity_entry.entity_id}-entry\")\n assert entity_entries\n for entity_entry in entity_entries:\n assert hass.states.get(entity_entry.entity_id) == snapshot(\n name=f\"{entity_entry.entity_id}-state\"\n )\n assert entity_entry == snapshot(name=f\"{entity_entry.entity_id}-entry\")\n assert entity_entries\n for entity_entry in entity_entries:\n assert hass.states.get(entity_entry.entity_id) == snapshot(\n name=f\"{entity_entry.entity_id}-state\"\n )\n assert entity_entry == snapshot(name=f\"{entity_entry.entity_id}-entry\")\n assert entity_entries\n for entity_entry in entity_entries:\n assert hass.states.get(entity_entry.entity_id) == snapshot(\n name=f\"{entity_entry.entity_id}-state\"\n )\n assert entity_entry == snapshot(name=f\"{entity_entry.entity_id}-entry\")", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d4b801af3251ad0315a9967339ca0ff21eb8f320", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 11, 5, 14 ] }, { "input": "from tests.common import MockConfigEntry\nfrom tests.common import MockConfigEntry, snapshot_platform\nfrom tests.common import MockConfigEntry\nfrom tests.common import MockConfigEntry, snapshot_platform\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/home-assistant/core/commit/d4b801af3251ad0315a9967339ca0ff21eb8f320", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " \" deprecated and will be removed in Assistant 2025.5\",\n \" deprecated and will be removed in Home Assistant 2025.5\",\n \"deprecated and will be removed in Assistant 2025.5\",\n \"deprecated and will be removed in Home Assistant 2025.5\",\n \"deprecated and will be removed in Assistant 2025.5.\"\n \"deprecated and will be removed in Home Assistant 2025.5.\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/b70edb89bf9205601fb6253b320b06e98bc7fd94", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " ha.HomeAssistant.async_create_task(hass, job())\n ha.HomeAssistant.async_create_task(hass, job(), eager_start=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0017064846416382253, "commit_url": "https://github.com/home-assistant/core/commit/c33a23404805bfd1a49d109be7d40cede48b9d8a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " task = ha.HomeAssistant.async_create_task(hass, job(), \"named task\")\n task = ha.HomeAssistant.async_create_task(\n hass, job(), \"named task\", eager_start=False\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0017064846416382253, "commit_url": "https://github.com/home-assistant/core/commit/c33a23404805bfd1a49d109be7d40cede48b9d8a", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, _async_stop_homekit_controller)\n hass.bus.async_listen_once(\n EVENT_HOMEASSISTANT_STOP, _async_stop_homekit_controller, run_immediately=True\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.00411522633744856, "commit_url": "https://github.com/home-assistant/core/commit/309fcb5c30223935fff73a6bf5d26cd354356cb0", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "from homeassistant.helpers.registry import SAVE_DELAY, SAVE_DELAY_STARTING, BaseRegistry\nfrom homeassistant.helpers.registry import SAVE_DELAY, SAVE_DELAY_LONG, BaseRegistry\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/3528cc86d718da0961e3d7c0969c3be3fdbfaccb", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " freezer.tick(SAVE_DELAY_STARTING)\n freezer.tick(SAVE_DELAY_LONG)\nfrom homeassistant.helpers.registry import SAVE_DELAY, SAVE_DELAY_STARTING, BaseRegistry\nfrom homeassistant.helpers.registry import SAVE_DELAY, SAVE_DELAY_LONG, BaseRegistry\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/3528cc86d718da0961e3d7c0969c3be3fdbfaccb", "target_edit_idx": 8, "propagatable_edit_idx": [ 3 ] }, { "input": " hass.create_task(hass.services.async_call(DOMAIN, SERVICE_SEE, data))\n hass.async_create_task(hass.services.async_call(DOMAIN, SERVICE_SEE, data))", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/aaac879c839420a08b774f3954043b2545e8c8b0", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6 ] }, { "input": "import importlib\nimport importlib\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/4341b21a61f9994a426f0dcf82c50b941ae721fc", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "@dataclass(frozen=True)\nclass PlenticoreNumberEntityDescriptionMixin:\n \"\"\"Define an entity description mixin for number entities.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass PlenticoreNumberEntityDescription(NumberEntityDescription):\n \"\"\"Describes a Plenticore number entity.\"\"\"\n@dataclass(frozen=True)\nclass PlenticoreRequiredKeysMixin:\n \"\"\"A class that describes required properties for plenticore select entities.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass PlenticoreSelectEntityDescription(SelectEntityDescription):\n \"\"\"A class that describes plenticore select entities.\"\"\"\n@dataclass(frozen=True)\nclass PlenticoreRequiredKeysMixin:\n \"\"\"A class that describes required properties for plenticore sensor entities.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass PlenticoreSensorEntityDescription(SensorEntityDescription):\n \"\"\"A class that describes plenticore sensor entities.\"\"\"\n@dataclass(frozen=True)\nclass PlenticoreRequiredKeysMixin:\n \"\"\"A class that describes required properties for plenticore switch entities.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass PlenticoreSwitchEntityDescription(SwitchEntityDescription):\n \"\"\"A class that describes plenticore switch entities.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0037817396002160996, "commit_url": "https://github.com/home-assistant/core/commit/067c222bd9a19360f28fdf003b9b9bb010d30db9", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 6 ] }, { "input": "@dataclass(frozen=True)\nclass PlenticoreRequiredKeysMixin:\n \"\"\"A class that describes required properties for plenticore select entities.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass PlenticoreSelectEntityDescription(SelectEntityDescription):\n \"\"\"A class that describes plenticore select entities.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0037817396002160996, "commit_url": "https://github.com/home-assistant/core/commit/067c222bd9a19360f28fdf003b9b9bb010d30db9", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4, 6 ] }, { "input": "@dataclass(frozen=True)\nclass PlenticoreSelectEntityDescription(\n SelectEntityDescription, PlenticoreRequiredKeysMixin\n):\n \"\"\"A class that describes plenticore select entities.\"\"\"\n\n\n@dataclass(frozen=True)\nclass PlenticoreSensorEntityDescription(\n SensorEntityDescription, PlenticoreRequiredKeysMixin\n):\n \"\"\"A class that describes plenticore sensor entities.\"\"\"\n\n\n@dataclass(frozen=True)\nclass PlenticoreSwitchEntityDescription(\n SwitchEntityDescription, PlenticoreRequiredKeysMixin\n):\n \"\"\"A class that describes plenticore switch entities.\"\"\"\n\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/067c222bd9a19360f28fdf003b9b9bb010d30db9", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 7 ] }, { "input": "@dataclass(frozen=True)\nclass PlenticoreRequiredKeysMixin:\n \"\"\"A class that describes required properties for plenticore switch entities.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass PlenticoreSwitchEntityDescription(SwitchEntityDescription):\n \"\"\"A class that describes plenticore switch entities.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0037817396002160996, "commit_url": "https://github.com/home-assistant/core/commit/067c222bd9a19360f28fdf003b9b9bb010d30db9", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": "@dataclass(frozen=True)\nclass XiaomiMiioNumberMixin:\n@dataclass(frozen=True, kw_only=True)\nclass XiaomiMiioNumberDescription(NumberEntityDescription):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0015772870662460567, "commit_url": "https://github.com/home-assistant/core/commit/85b6d70b049c31f67b1e0e44178a59a9899a2a9b", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "@dataclass(frozen=True)\nclass XiaomiMiioSwitchRequiredKeyMixin:\n@dataclass(frozen=True, kw_only=True)\nclass XiaomiMiioSwitchDescription(SwitchEntityDescription):\n@dataclass(frozen=True)\nclass XiaomiMiioNumberMixin:\n@dataclass(frozen=True, kw_only=True)\nclass XiaomiMiioNumberDescription(NumberEntityDescription):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0015772870662460567, "commit_url": "https://github.com/home-assistant/core/commit/85b6d70b049c31f67b1e0e44178a59a9899a2a9b", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "@dataclass(frozen=True)\n@dataclass(frozen=True, kw_only=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0041258380608561115, "commit_url": "https://github.com/home-assistant/core/commit/2a5be33f341dd06088da954fe160a909c562b839", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 6, 7, 8 ] }, { "input": "@dataclass(frozen=True)\nclass SynologyDSMbuttonDescriptionMixin:\n \"\"\"Mixin to describe a Synology DSM button entity.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass SynologyDSMbuttonDescription(ButtonEntityDescription):\n \"\"\"Class to describe a Synology DSM button entity.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0041258380608561115, "commit_url": "https://github.com/home-assistant/core/commit/2a5be33f341dd06088da954fe160a909c562b839", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 6, 7, 8 ] }, { "input": "@dataclass(frozen=True)\nclass SynologyDSMRequiredKeysMixin:\n \"\"\"Mixin for required keys.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass SynologyDSMEntityDescription(EntityDescription):\n \"\"\"Generic Synology DSM entity description.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0041258380608561115, "commit_url": "https://github.com/home-assistant/core/commit/2a5be33f341dd06088da954fe160a909c562b839", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3, 6, 7, 8 ] }, { "input": "@dataclass(frozen=True)\nclass TractiveRequiredKeysMixin:\n \"\"\"Mixin for required keys.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass TractiveSensorEntityDescription(SensorEntityDescription):\n \"\"\"Class describing Tractive sensor entities.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0015455950540958269, "commit_url": "https://github.com/home-assistant/core/commit/a7f71eaa3550699687cdfe36caaa3335b2caa2d3", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\n@dataclass(frozen=True)\nclass TractiveSensorEntityDescription(\n SensorEntityDescription, TractiveRequiredKeysMixin\n):\n \"\"\"Class describing Tractive sensor entities.\"\"\"\n\n@dataclass(frozen=True)\nclass TractiveSwitchEntityDescription(\n SwitchEntityDescription, TractiveRequiredKeysMixin\n):\n \"\"\"Class describing Tractive switch entities.\"\"\"\n\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/a7f71eaa3550699687cdfe36caaa3335b2caa2d3", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "@dataclass(frozen=True)\nclass TractiveRequiredKeysMixin:\n \"\"\"Mixin for required keys.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass TractiveSwitchEntityDescription(SwitchEntityDescription):\n \"\"\"Class describing Tractive switch entities.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0015455950540958269, "commit_url": "https://github.com/home-assistant/core/commit/a7f71eaa3550699687cdfe36caaa3335b2caa2d3", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "@dataclass(frozen=True)\nclass VodafoneStationBaseEntityDescriptionMixin:\n \"\"\"Mixin to describe a Button entity.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass VodafoneStationEntityDescription(ButtonEntityDescription):\n \"\"\"Vodafone Station entity description.\"\"\"\n@dataclass(frozen=True)\nclass VodafoneStationBaseEntityDescription:\n \"\"\"Vodafone Station entity base description.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass VodafoneStationEntityDescription(SensorEntityDescription):\n \"\"\"Vodafone Station entity description.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0015353121801432957, "commit_url": "https://github.com/home-assistant/core/commit/5d231ed61f82ecbe556d920d5244caa4cb1e4dc4", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " if task := self.hass.async_run_hass_job(self._job):\n if task := self.hass.async_run_hass_job(self._job, eager_start=True):\n if task := self.hass.async_run_hass_job(self._job):\n if task := self.hass.async_run_hass_job(self._job, eager_start=True):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.013513513513513514, "commit_url": "https://github.com/home-assistant/core/commit/a2318c26c9d70cbdde8415cfa3746094893bd828", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "@dataclass(frozen=True)\nclass DeviceBaseEntityDescriptionMixin:\n \"\"\"Mixin for required Trafikverket Camera base description keys.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass TVCameraSensorEntityDescription(BinarySensorEntityDescription):\n \"\"\"Describes Trafikverket Camera binary sensor entity.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0015267175572519084, "commit_url": "https://github.com/home-assistant/core/commit/5f4881cb2807d5b466e9ad51925d29fcb2af045b", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "@dataclass(frozen=True)\nclass TVCameraSensorEntityDescription(\n BinarySensorEntityDescription, DeviceBaseEntityDescriptionMixin\n):\n \"\"\"Describes Trafikverket Camera binary sensor entity.\"\"\"\n\n\n@dataclass(frozen=True)\nclass TVCameraSensorEntityDescription(\n SensorEntityDescription, DeviceBaseEntityDescriptionMixin\n):\n \"\"\"Describes Trafikverket Camera sensor entity.\"\"\"\n\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/5f4881cb2807d5b466e9ad51925d29fcb2af045b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "@dataclass(frozen=True)\nclass DeviceBaseEntityDescriptionMixin:\n \"\"\"Mixin for required Trafikverket Camera base description keys.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass TVCameraSensorEntityDescription(SensorEntityDescription):\n \"\"\"Describes Trafikverket Camera sensor entity.\"\"\"\n@dataclass(frozen=True)\nclass DeviceBaseEntityDescriptionMixin:\n \"\"\"Mixin for required Trafikverket Camera base description keys.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass TVCameraSensorEntityDescription(BinarySensorEntityDescription):\n \"\"\"Describes Trafikverket Camera binary sensor entity.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0015267175572519084, "commit_url": "https://github.com/home-assistant/core/commit/5f4881cb2807d5b466e9ad51925d29fcb2af045b", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "@dataclass(frozen=True)\nclass SFRBoxBinarySensorMixin(Generic[_T]):\n \"\"\"Mixin for SFR Box sensors.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass SFRBoxBinarySensorEntityDescription(BinarySensorEntityDescription, Generic[_T]):\n \"\"\"Description for SFR Box binary sensors.\"\"\"\n@dataclass(frozen=True)\nclass SFRBoxButtonMixin:\n \"\"\"Mixin for SFR Box buttons.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass SFRBoxButtonEntityDescription(ButtonEntityDescription):\n \"\"\"Description for SFR Box buttons.\"\"\"\n@dataclass(frozen=True)\nclass SFRBoxSensorMixin(Generic[_T]):\n \"\"\"Mixin for SFR Box sensors.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass SFRBoxSensorEntityDescription(SensorEntityDescription, Generic[_T]):\n \"\"\"Description for SFR Box sensors.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0025227043390514633, "commit_url": "https://github.com/home-assistant/core/commit/ae003c21c8839434add531d4f3250f215b0f7258", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "@dataclass(frozen=True)\nclass SFRBoxBinarySensorEntityDescription(\n BinarySensorEntityDescription, SFRBoxBinarySensorMixin[_T]\n):\n \"\"\"Description for SFR Box binary sensors.\"\"\"\n\n\n@dataclass(frozen=True)\nclass SFRBoxSensorEntityDescription(SensorEntityDescription, SFRBoxSensorMixin[_T]):\n \"\"\"Description for SFR Box sensors.\"\"\"\n\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/ae003c21c8839434add531d4f3250f215b0f7258", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "@dataclass(frozen=True)\nclass SFRBoxButtonMixin:\n \"\"\"Mixin for SFR Box buttons.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass SFRBoxButtonEntityDescription(ButtonEntityDescription):\n \"\"\"Description for SFR Box buttons.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0025227043390514633, "commit_url": "https://github.com/home-assistant/core/commit/ae003c21c8839434add531d4f3250f215b0f7258", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4 ] }, { "input": "@dataclass(frozen=True)\nclass SFRBoxSensorMixin(Generic[_T]):\n \"\"\"Mixin for SFR Box sensors.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass SFRBoxSensorEntityDescription(SensorEntityDescription, Generic[_T]):\n \"\"\"Description for SFR Box sensors.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0025227043390514633, "commit_url": "https://github.com/home-assistant/core/commit/ae003c21c8839434add531d4f3250f215b0f7258", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "@dataclass(frozen=True)\nclass IdasenDeskButtonDescriptionMixin:\n \"\"\"Mixin to describe a IdasenDesk button entity.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass IdasenDeskButtonDescription(ButtonEntityDescription):\n \"\"\"Class to describe a IdasenDesk button entity.\"\"\"\n@dataclass(frozen=True)\nclass IdasenDeskSensorDescriptionMixin:\n \"\"\"Required values for IdasenDesk sensors.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass IdasenDeskSensorDescription(SensorEntityDescription):\n \"\"\"Class describing IdasenDesk sensor entities.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0015082956259426848, "commit_url": "https://github.com/home-assistant/core/commit/24b7f03e3104bb550a200dea067058709ddb7b85", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "@dataclass(frozen=True)\nclass FullyButtonEntityDescriptionMixin:\n \"\"\"Mixin to describe a Fully Kiosk Browser button entity.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass FullyButtonEntityDescription(ButtonEntityDescription):\n \"\"\"Fully Kiosk Browser button description.\"\"\"\n@dataclass(frozen=True)\nclass FullySwitchEntityDescriptionMixin:\n \"\"\"Fully Kiosk Browser switch entity description mixin.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass FullySwitchEntityDescription(SwitchEntityDescription):\n \"\"\"Fully Kiosk Browser switch entity description.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0014955134596211367, "commit_url": "https://github.com/home-assistant/core/commit/945710874bf549a0ec9d1281d53dbba99d203128", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "@dataclass(frozen=True)\nclass Dremel3DPrinterBinarySensorEntityMixin:\n \"\"\"Mixin for Dremel 3D Printer binary sensor.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass Dremel3DPrinterBinarySensorEntityDescription(BinarySensorEntityDescription):\n \"\"\"Describes a Dremel 3D Printer binary sensor.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0024925224327018943, "commit_url": "https://github.com/home-assistant/core/commit/5400b4055a066ee0979b413b080e4b77cd3f3523", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "@dataclass(frozen=True)\nclass Dremel3DPrinterButtonEntityMixin:\n \"\"\"Mixin for required keys.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass Dremel3DPrinterButtonEntityDescription(ButtonEntityDescription):\n \"\"\"Describes a Dremel 3D Printer button entity.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0024925224327018943, "commit_url": "https://github.com/home-assistant/core/commit/5400b4055a066ee0979b413b080e4b77cd3f3523", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4 ] }, { "input": "@dataclass(frozen=True)\nclass Dremel3DPrinterSensorEntityMixin:\n \"\"\"Mixin for Dremel 3D Printer sensor.\"\"\"\n\n value_fn: Callable[[Dremel3DPrinter, str], StateType | datetime]\n\n\n@dataclass(frozen=True)\nclass Dremel3DPrinterSensorEntityDescription(\n SensorEntityDescription, Dremel3DPrinterSensorEntityMixin\n):\n@dataclass(frozen=True, kw_only=True)\nclass Dremel3DPrinterSensorEntityDescription(SensorEntityDescription):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.00199501246882793, "commit_url": "https://github.com/home-assistant/core/commit/5400b4055a066ee0979b413b080e4b77cd3f3523", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " hass.bus.async_listen_once(EVENT_HOMEASSISTANT_START, _start)\n hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STARTED, _start)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.010416666666666666, "commit_url": "https://github.com/home-assistant/core/commit/72ac2f127f955ba8ebbf86e8e47848197f51126e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "from homeassistant.const import EVENT_HOMEASSISTANT_START\nfrom homeassistant.const import EVENT_HOMEASSISTANT_STARTED\n hass.bus.async_listen_once(EVENT_HOMEASSISTANT_START, _start)\n hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STARTED, _start)\n hass.bus.async_fire(EVENT_HOMEASSISTANT_START)\n hass.bus.async_fire(EVENT_HOMEASSISTANT_STARTED)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.010416666666666666, "commit_url": "https://github.com/home-assistant/core/commit/72ac2f127f955ba8ebbf86e8e47848197f51126e", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " hass.bus.async_fire(EVENT_HOMEASSISTANT_START)\n hass.bus.async_fire(EVENT_HOMEASSISTANT_STARTED)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.010416666666666666, "commit_url": "https://github.com/home-assistant/core/commit/72ac2f127f955ba8ebbf86e8e47848197f51126e", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " [\n ValloxNumberEntity(\n data[\"name\"], data[\"coordinator\"], description, data[\"client\"]\n )\n for description in NUMBER_ENTITIES\n ]\n ValloxNumberEntity(\n data[\"name\"], data[\"coordinator\"], description, data[\"client\"]\n )\n for description in NUMBER_ENTITIES\n [\n ValloxSwitchEntity(\n data[\"name\"], data[\"coordinator\"], description, data[\"client\"]\n )\n for description in SWITCH_ENTITIES\n ]\n ValloxSwitchEntity(\n data[\"name\"], data[\"coordinator\"], description, data[\"client\"]\n )\n for description in SWITCH_ENTITIES\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/fc732ecf1773299b6d8a2ac966e9e488b54d9b60", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "@dataclass(frozen=True)\nclass AndroidIPWebcamSensorEntityDescriptionMixin:\n \"\"\"Mixin for required keys.\"\"\"\n\n value_fn: Callable[[PyDroidIPCam], StateType]\n\n\n@dataclass(frozen=True)\nclass AndroidIPWebcamSensorEntityDescription(\n SensorEntityDescription, AndroidIPWebcamSensorEntityDescriptionMixin\n):\n@dataclass(frozen=True, kw_only=True)\nclass AndroidIPWebcamSensorEntityDescription(SensorEntityDescription):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0009799118079372856, "commit_url": "https://github.com/home-assistant/core/commit/71be56e1fd7bd7626347f6918e26e75b5ae43bd0", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "@dataclass(frozen=True)\nclass AndroidIPWebcamSwitchEntityDescriptionMixin:\n \"\"\"Mixin for required keys.\"\"\"\n@dataclass(frozen=True, kw_only=True)\nclass AndroidIPWebcamSwitchEntityDescription(SwitchEntityDescription):\n \"\"\"Entity description class for Android IP Webcam switches.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0009799118079372856, "commit_url": "https://github.com/home-assistant/core/commit/71be56e1fd7bd7626347f6918e26e75b5ae43bd0", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " [\n SmartThingsFan(device)\n for device in broker.devices.values()\n if broker.any_assigned(device.device_id, \"fan\")\n ]\n SmartThingsFan(device)\n for device in broker.devices.values()\n if broker.any_assigned(device.device_id, \"fan\")\n [\n SmartThingsLock(device)\n for device in broker.devices.values()\n if broker.any_assigned(device.device_id, \"lock\")\n ]\n SmartThingsLock(device)\n for device in broker.devices.values()\n if broker.any_assigned(device.device_id, \"lock\")\n [\n SmartThingsSwitch(device)\n for device in broker.devices.values()\n if broker.any_assigned(device.device_id, \"switch\")\n ]\n SmartThingsSwitch(device)\n for device in broker.devices.values()\n if broker.any_assigned(device.device_id, \"switch\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/b025d6c6f271212a3e7bf08f3999ad3e8487ed64", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " raise HomeAssistantError(error) from error\n raise HomeAssistantError(f\"Error while loading {filename}: {error}\") from error\n raise HomeAssistantError(error) from error\n raise HomeAssistantError(f\"Error while loading {filename}: {error}\") from error\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/640de7dbc9bab190433a85e6570ba74ed535e743", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " issue_entry.translation_placeholders[\"error\"]\n == \"unexpected character: line 1 column 1 (char 0)\"\n \"unexpected character: line 1 column 1 (char 0)\"\n in issue_entry.translation_placeholders[\"error\"]\n issue_entry.translation_placeholders[\"error\"]\n == \"unexpected content after document: line 1 column 17 (char 16)\"\n \"unexpected content after document: line 1 column 17 (char 16)\"\n in issue_entry.translation_placeholders[\"error\"]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/640de7dbc9bab190433a85e6570ba74ed535e743", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " return await asyncio.gather(\n *(async_validate_condition_config(hass, cond) for cond in conditions)\n )\n # No gather here because async_validate_condition_config is unlikely\n # to suspend and the overhead of creating many tasks is not worth it\n return [await async_validate_condition_config(hass, cond) for cond in conditions]\n return await asyncio.gather(\n *(async_validate_action_config(hass, action) for action in actions)\n )\n # No gather here because async_validate_action_config is unlikely\n # to suspend and the overhead of creating many tasks is not worth it\n return [await async_validate_action_config(hass, action) for action in actions]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/3877a56d230f6703a0ffbaa5a070b07649b23b33", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " macaddress=TEST_MAC,\n macaddress=DHCP_FORMATTED_MAC,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/4627e8b1fc45195fef255614e6e6bd23402c97e5", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " return str(self._min_value)\n val = self._min_value\n return str(self._max_value)\n val = self._max_value\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/543870d5f122757832f7463f2731a76a78774ffd", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " self._async_abort_entries_match(\n {\n CONF_START: user_input[CONF_START],\n CONF_DESTINATION: user_input[CONF_DESTINATION],\n }\n await self.async_set_unique_id(\n f\"{user_input[CONF_START]} {user_input[CONF_DESTINATION]}\"\n self._async_abort_entries_match(\n {\n CONF_START: import_input[CONF_START],\n CONF_DESTINATION: import_input[CONF_DESTINATION],\n }\n await self.async_set_unique_id(\n f\"{import_input[CONF_START]} {import_input[CONF_DESTINATION]}\"\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/802f0da493cc3c59f0240ad6d80cc4dd3f561b98", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " result = await hass.config_entries.flow.async_init(\n config_flow.DOMAIN, context={\"source\": \"user\"}\n )\n result = await hass.config_entries.flow.async_init(\n config_flow.DOMAIN, context={\"source\": \"user\"}\n )\n with patch(\n \"homeassistant.components.swiss_public_transport.config_flow.OpendataTransport.async_get_data\",\n autospec=True,\n return_value=True,\n ):\n result = await hass.config_entries.flow.async_init(\n config_flow.DOMAIN, context={\"source\": \"user\"}\n )\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/home-assistant/core/commit/802f0da493cc3c59f0240ad6d80cc4dd3f561b98", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " if WaterHeaterEntityFeature.OPERATION_MODE in self.supported_features:\n if WaterHeaterEntityFeature.OPERATION_MODE in self.supported_features_compat:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/d600b7680174854a41c7c37129434457744acc6b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " supported_features = self.supported_features\n supported_features = self.supported_features_compat\n if WaterHeaterEntityFeature.OPERATION_MODE in self.supported_features:\n if WaterHeaterEntityFeature.OPERATION_MODE in self.supported_features_compat:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/d600b7680174854a41c7c37129434457744acc6b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " assert entity.supported_features_compat is WaterHeaterEntityFeature(1)\n entity.hass = hass\n assert entity.supported_features_compat is WaterHeaterEntityFeature(2)\n assert entity.supported_features_compat is WaterHeaterEntityFeature(1)\n assert entity.supported_features_compat is WaterHeaterEntityFeature(2)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/d600b7680174854a41c7c37129434457744acc6b", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " supported_features = self.supported_features\n supported_features = self.supported_features_compat\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/1a08bcce778fdd6e9f59eb2d20b63bf6720e560b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " _add_entities(set(coordinator.data.devices.keys()))\n _add_entities(set(coordinator.data.devices))\n _add_entities(set(coordinator.data.templates.keys()))\n _add_entities(set(coordinator.data.templates))\n _add_entities(set(coordinator.data.devices.keys()))\n _add_entities(set(coordinator.data.devices))\n _add_entities(set(coordinator.data.devices.keys()))\n _add_entities(set(coordinator.data.devices))\n _add_entities(set(coordinator.data.devices.keys()))\n _add_entities(set(coordinator.data.devices))\n _add_entities(set(coordinator.data.devices.keys()))\n _add_entities(set(coordinator.data.devices))\n _add_entities(set(coordinator.data.devices.keys()))\n _add_entities(set(coordinator.data.devices))\n", "class": "clone", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/home-assistant/core/commit/e16fb3a9d3c3d1be4cb58c6ed8a21a2d0a55211a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": " json={\"zone\": \"5\", \"temp\": 32, \"addr\": 1},\n json={\"zone\": \"5\", \"temp\": 32.0, \"addr\": 1},\n json={\"pin\": \"7\", \"temp\": 32, \"addr\": 1},\n json={\"pin\": \"7\", \"temp\": 32.0, \"addr\": 1},\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/home-assistant/core/commit/eb3fde7261bcd2140fcd68f5da64dfa41d6fa4ea", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "from .helpers import entities_may_have_state_changes_after\nfrom .helpers import entities_may_have_state_changes_after, has_recorder_run_after\nfrom .helpers import entities_may_have_state_changes_after\nfrom .helpers import entities_may_have_state_changes_after, has_recorder_run_after\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/50f2c411456b8f53b199d7782328da0c8e8138be", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " not include_start_time_state\n (end_time and not has_recorder_run_after(hass, end_time))\n or not include_start_time_state\n not include_start_time_state\n (end_time and not has_recorder_run_after(hass, end_time))\n or not include_start_time_state\n", "class": "clone", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/home-assistant/core/commit/50f2c411456b8f53b199d7782328da0c8e8138be", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " websocket_api.async_register_command(hass, websocket_node_comments)\n websocket_api.async_register_command(hass, websocket_node_alerts)\nasync def websocket_node_comments(\nasync def websocket_node_alerts(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/a074c06f9289bb57e786a821d43ee040dabc6a97", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "async def websocket_node_comments(\nasync def websocket_node_alerts(\n websocket_api.async_register_command(hass, websocket_node_comments)\n websocket_api.async_register_command(hass, websocket_node_alerts)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/a074c06f9289bb57e786a821d43ee040dabc6a97", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " with assert_setup_component(0, \"switch\"):\n with assert_setup_component(0, \"switch\"), patch(\n \"homeassistant.config.async_notify_setup_error\"\n ) as mock_notify:\n with assert_setup_component(1, \"switch\"):\n with assert_setup_component(1, \"switch\"), patch(\n \"homeassistant.config.async_notify_setup_error\"\n ) as mock_notify:\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/3a42bd35e750733dcf5e30c6bf26f13ac27211a7", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "@dataclass\nclass RDWBinarySensorEntityDescriptionMixin:\n \"\"\"Mixin for required keys.\"\"\"\n@dataclass(kw_only=True)\nclass RDWBinarySensorEntityDescription(BinarySensorEntityDescription):\n \"\"\"Describes RDW binary sensor entity.\"\"\"\n@dataclass\nclass RDWSensorEntityDescriptionMixin:\n \"\"\"Mixin for required keys.\"\"\"\n@dataclass(kw_only=True)\nclass RDWSensorEntityDescription(SensorEntityDescription):\n \"\"\"Describes RDW sensor entity.\"\"\"\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/a101bb93548cda8163d3c37bcbd3823a30b1735e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "@dataclass\nclass RDWBinarySensorEntityDescription(\n BinarySensorEntityDescription, RDWBinarySensorEntityDescriptionMixin\n):\n \"\"\"Describes RDW binary sensor entity.\"\"\"\n\n\n@dataclass\nclass RDWSensorEntityDescription(\n SensorEntityDescription, RDWSensorEntityDescriptionMixin\n):\n \"\"\"Describes RDW sensor entity.\"\"\"\n\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/a101bb93548cda8163d3c37bcbd3823a30b1735e", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "@dataclass\nclass TailscaleBinarySensorEntityDescriptionMixin:\n \"\"\"Mixin for required keys.\"\"\"\n@dataclass(kw_only=True)\nclass TailscaleBinarySensorEntityDescription(BinarySensorEntityDescription):\n \"\"\"Describes a Tailscale binary sensor entity.\"\"\"\n@dataclass\nclass TailscaleSensorEntityDescriptionMixin:\n \"\"\"Mixin for required keys.\"\"\"\n@dataclass(kw_only=True)\nclass TailscaleSensorEntityDescription(SensorEntityDescription):\n \"\"\"Describes a Tailscale sensor entity.\"\"\"\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/599579b26dafeed00f60fe8c947ecfd2bc77a273", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "@dataclass\nclass TailscaleBinarySensorEntityDescription(\n BinarySensorEntityDescription, TailscaleBinarySensorEntityDescriptionMixin\n):\n \"\"\"Describes a Tailscale binary sensor entity.\"\"\"\n\n\n@dataclass\nclass TailscaleSensorEntityDescription(\n SensorEntityDescription, TailscaleSensorEntityDescriptionMixin\n):\n \"\"\"Describes a Tailscale sensor entity.\"\"\"\n\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/599579b26dafeed00f60fe8c947ecfd2bc77a273", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "from homeassistant.helpers.device_registry import DeviceRegistry, async_get\nfrom homeassistant.helpers.device_registry import (\n CONNECTION_BLUETOOTH,\n DeviceRegistry,\n async_get,\n)\nfrom homeassistant.helpers.device_registry import DeviceRegistry, async_get\nfrom homeassistant.helpers.device_registry import (\n CONNECTION_BLUETOOTH,\n DeviceRegistry,\n async_get,\n)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/6fae50cb75196bc846033e9611450c44cc8bd8e5", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " hass: HomeAssistant, mqtt_mock_entry: MqttMockHAClientGenerator\n hass: HomeAssistant,\n mqtt_mock_entry: MqttMockHAClientGenerator,\n caplog: pytest.LogCaptureFixture,\n hass: HomeAssistant, mqtt_mock_entry: MqttMockHAClientGenerator\n hass: HomeAssistant,\n mqtt_mock_entry: MqttMockHAClientGenerator,\n caplog: pytest.LogCaptureFixture,\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/home-assistant/core/commit/5eb0a337956b3d53aa3bee115e0d03e771caa143", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " with pytest.raises(AssertionError):\n await mqtt_mock_entry()\n assert await mqtt_mock_entry()\n assert \"not a valid value\" in caplog.text\n with pytest.raises(AssertionError):\n await mqtt_mock_entry()\n assert await mqtt_mock_entry()\n assert \"not a valid value\" in caplog.text\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/5eb0a337956b3d53aa3bee115e0d03e771caa143", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " \"unit_prefix\": \"none\",\n \"unit_prefix\": \"none\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/1915fee9ba2e9bdd268b15e8aa25d942e36580b3", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " if isinstance(self._code, str) and re.search(\"^\\\\d+$\", self._code):\n if isinstance(self._code, str) and self._code.isdigit():\n if isinstance(self._code, str) and re.search(\"^\\\\d+$\", self._code):\n if isinstance(self._code, str) and self._code.isdigit():\n if isinstance(self._code, str) and re.search(\"^\\\\d+$\", self._code):\n if isinstance(self._code, str) and self._code.isdigit():\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/5551a345ea898e2d8e3abd2e9570b4cec5428182", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "from .util import has_connection_problem\nfrom .util import is_connected\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/56678851af9802d8dab431e9aeea25f71ed70eb0", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " if has_connection_problem(self.hass, existing_entry):\n if is_connected(self.hass, existing_entry):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/56678851af9802d8dab431e9aeea25f71ed70eb0", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " \"long_press_ongoing\",\n \"long_press\",\n \"long_press_ongoing\",\n \"long_press\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/9e03f8a8d6cf56e93e5145c41ef5588487182846", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " task.cancel()\n task.cancel(\"Home Assistant is stopping\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0625, "commit_url": "https://github.com/home-assistant/core/commit/99def97ed976e65bddb9e54d2b3642b4912c5668", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " task.cancel()\n task.cancel(\"Home Assistant stage 2 shutdown\")\n task.cancel()\n task.cancel(\"Home Assistant is stopping\")\n task.cancel()\n task.cancel(\"Final process shutdown\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0625, "commit_url": "https://github.com/home-assistant/core/commit/99def97ed976e65bddb9e54d2b3642b4912c5668", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " task.cancel()\n task.cancel(\"Final process shutdown\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0625, "commit_url": "https://github.com/home-assistant/core/commit/99def97ed976e65bddb9e54d2b3642b4912c5668", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " self._task.cancel()\n self._task.cancel(\"Global task timeout\")\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/99def97ed976e65bddb9e54d2b3642b4912c5668", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " self._task.cancel()\n self._task.cancel(\"Zone timeout\")\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/99def97ed976e65bddb9e54d2b3642b4912c5668", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "from .coordinator import Coordinator, GardenaBluetoothEntity\nfrom .coordinator import (\n Coordinator,\n GardenaBluetoothDescriptorEntity,\n GardenaBluetoothEntity,\n)\nfrom .coordinator import Coordinator, GardenaBluetoothEntity\nfrom .coordinator import (\n Coordinator,\n GardenaBluetoothDescriptorEntity,\n GardenaBluetoothEntity,\n)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/d80b7d0145c15d2dd593a84d98c4f6704b82fdb8", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "class GardenaBluetoothNumber(GardenaBluetoothEntity, NumberEntity):\nclass GardenaBluetoothNumber(GardenaBluetoothDescriptorEntity, NumberEntity):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/d80b7d0145c15d2dd593a84d98c4f6704b82fdb8", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " def __init__(\n self,\n coordinator: Coordinator,\n description: GardenaBluetoothNumberEntityDescription,\n ) -> None:\n \"\"\"Initialize the number entity.\"\"\"\n super().__init__(coordinator, {description.key})\n self._attr_unique_id = f\"{coordinator.address}-{description.key}\"\n self.entity_description = description\n\n def __init__(\n self,\n coordinator: Coordinator,\n description: GardenaBluetoothSensorEntityDescription,\n ) -> None:\n \"\"\"Initialize the sensor.\"\"\"\n super().__init__(coordinator, {description.key})\n self._attr_native_value = None\n self._attr_unique_id = f\"{coordinator.address}-{description.key}\"\n self.entity_description = description\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d80b7d0145c15d2dd593a84d98c4f6704b82fdb8", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": "class GardenaBluetoothSensor(GardenaBluetoothEntity, SensorEntity):\nclass GardenaBluetoothSensor(GardenaBluetoothDescriptorEntity, SensorEntity):\nclass GardenaBluetoothNumber(GardenaBluetoothEntity, NumberEntity):\nclass GardenaBluetoothNumber(GardenaBluetoothDescriptorEntity, NumberEntity):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/d80b7d0145c15d2dd593a84d98c4f6704b82fdb8", "target_edit_idx": 7, "propagatable_edit_idx": [ 3 ] }, { "input": " self.async_set_state(hass, ConfigEntryState.SETUP_IN_PROGRESS, None)\n self._async_set_state(hass, ConfigEntryState.SETUP_IN_PROGRESS, None)\n self.async_set_state(hass, ConfigEntryState.MIGRATION_ERROR, None)\n self._async_set_state(hass, ConfigEntryState.MIGRATION_ERROR, None)\n self.async_set_state(hass, ConfigEntryState.SETUP_RETRY, str(ex) or None)\n self._async_set_state(hass, ConfigEntryState.SETUP_RETRY, str(ex) or None)\n self.async_set_state(hass, ConfigEntryState.LOADED, None)\n self._async_set_state(hass, ConfigEntryState.LOADED, None)\n self.async_set_state(hass, ConfigEntryState.SETUP_ERROR, error_reason)\n self._async_set_state(hass, ConfigEntryState.SETUP_ERROR, error_reason)\n self.async_set_state(hass, ConfigEntryState.NOT_LOADED, None)\n self._async_set_state(hass, ConfigEntryState.NOT_LOADED, None)\n self.async_set_state(hass, ConfigEntryState.NOT_LOADED, None)\n self._async_set_state(hass, ConfigEntryState.NOT_LOADED, None)\n self.async_set_state(hass, ConfigEntryState.NOT_LOADED, None)\n self._async_set_state(hass, ConfigEntryState.NOT_LOADED, None)\n self.async_set_state(\n self._async_set_state(\n self.async_set_state(hass, ConfigEntryState.NOT_LOADED, None)\n self._async_set_state(hass, ConfigEntryState.NOT_LOADED, None)\n self.async_set_state(\n self._async_set_state(\n def async_set_state(\n def _async_set_state(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/085eebc903f842dd76000c8673fead77feaf14c1", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " self.async_set_state(hass, ConfigEntryState.SETUP_ERROR, \"Import error\")\n self._async_set_state(\n hass, ConfigEntryState.SETUP_ERROR, \"Import error\"\n )\n self.async_set_state(hass, ConfigEntryState.SETUP_ERROR, \"Import error\")\n self._async_set_state(\n hass, ConfigEntryState.SETUP_ERROR, \"Import error\"\n )\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/085eebc903f842dd76000c8673fead77feaf14c1", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " self.async_set_state(hass, ConfigEntryState.MIGRATION_ERROR, None)\n self._async_set_state(hass, ConfigEntryState.MIGRATION_ERROR, None)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/085eebc903f842dd76000c8673fead77feaf14c1", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " self.async_set_state(hass, ConfigEntryState.SETUP_RETRY, str(ex) or None)\n self._async_set_state(hass, ConfigEntryState.SETUP_RETRY, str(ex) or None)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/085eebc903f842dd76000c8673fead77feaf14c1", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " self.async_set_state(hass, ConfigEntryState.SETUP_ERROR, error_reason)\n self._async_set_state(hass, ConfigEntryState.SETUP_ERROR, error_reason)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/085eebc903f842dd76000c8673fead77feaf14c1", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " self.async_set_state(hass, ConfigEntryState.NOT_LOADED, None)\n self._async_set_state(hass, ConfigEntryState.NOT_LOADED, None)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/085eebc903f842dd76000c8673fead77feaf14c1", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14 ] }, { "input": " self.async_set_state(\n self._async_set_state(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/085eebc903f842dd76000c8673fead77feaf14c1", "target_edit_idx": 11, "propagatable_edit_idx": [ 1, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14 ] }, { "input": " send_message: Callable[[str | dict[str, Any] | Callable[[], str]], None],\n send_message: Callable[[str | dict[str, Any]], None],\n send_message: Callable[[str | dict[str, Any] | Callable[[], str]], None],\n send_message: Callable[[str | dict[str, Any]], None],\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d242eaa37524b8a4f07884b39c3dec6fd8f097c0", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " if (process := message_queue.popleft()) is None:\n if (message := message_queue.popleft()) is None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d242eaa37524b8a4f07884b39c3dec6fd8f097c0", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "from .config import MQTT_RO_SCHEMA\nfrom .config import MQTT_BASE_SCHEMA\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/home-assistant/core/commit/a81fe517c1dd0d0674ce179c0384dce7adc9aebd", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "PLATFORM_SCHEMA_MODERN = MQTT_RO_SCHEMA.extend(\n\ndef valid_config(config: ConfigType) -> ConfigType:\n \"\"\"Check if there is a state topic or json_attributes_topic.\"\"\"\n if CONF_STATE_TOPIC not in config and CONF_JSON_ATTRS_TOPIC not in config:\n raise vol.MultipleInvalid(\n f\"Invalid device tracker config, missing {CONF_STATE_TOPIC} or {CONF_JSON_ATTRS_TOPIC}, got: {config}\"\n )\n return config\n\n\nPLATFORM_SCHEMA_MODERN_BASE = MQTT_BASE_SCHEMA.extend(\nfrom .config import MQTT_RO_SCHEMA\nfrom .config import MQTT_BASE_SCHEMA\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/home-assistant/core/commit/a81fe517c1dd0d0674ce179c0384dce7adc9aebd", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " entity_registry = er.async_get(hass)\n entity_registry = er.async_get(hass)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/820c7b77cea661ab0a36afce78179e0e15dcb3c5", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "def setup_mock_device(mock_device):\ndef setup_mock_device(mock_device, capabilities=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/home-assistant/core/commit/14d2645de28fc924b10dd365312d8610a90732e2", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " setup_mock_device(mock_device)\n setup_mock_device(mock_device, capabilities=capabilities)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/home-assistant/core/commit/14d2645de28fc924b10dd365312d8610a90732e2", "target_edit_idx": 8, "propagatable_edit_idx": [ 5 ] }, { "input": " self._stream_uri,\n stream_uri,\n self._stream_uri,\n stream_uri,\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/home-assistant/core/commit/82340907c23d99db427d0d7f502d0a6cfb8be159", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": "from homeassistant.core import HomeAssistant\nfrom homeassistant.core import Context, HomeAssistant\nfrom homeassistant.core import HomeAssistant\nfrom homeassistant.core import Context, HomeAssistant\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/090f59aaa2ddcc72f18f9bf1359074370236b2f9", "target_edit_idx": 6, "propagatable_edit_idx": [ 10 ] }, { "input": " await self._async_process_on_unload()\n await self._async_process_on_unload(hass)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/3364f0fce222fe8553e56e3b3d9295ed8dca54fa", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " await self._async_process_on_unload()\n await self._async_process_on_unload(hass)\n await self._async_process_on_unload()\n await self._async_process_on_unload(hass)\n await self._async_process_on_unload()\n await self._async_process_on_unload(hass)\n await self._async_process_on_unload()\n await self._async_process_on_unload(hass)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/3364f0fce222fe8553e56e3b3d9295ed8dca54fa", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " user_id=bytes_to_uuid_hex_or_none(self.context_user_id),\n user_id=bytes_to_uuid_hex_or_none(self.context_user_id_bin),\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/0a8f399655a1c85d4d0332866eef096c436e615a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " \"Invalid RGB color value received for entity %s\", self.entity_id\n \"Invalid RGB color value '%s' received for entity %s\",\n values,\n self.entity_id,\n \"Invalid XY color value received for entity %s\", self.entity_id\n \"Invalid XY color value '%s' received for entity %s\",\n values,\n self.entity_id,\n \"Invalid HS color value received for entity %s\", self.entity_id\n \"Invalid HS color value '%s' received for entity %s\",\n values,\n self.entity_id,\n \"Invalid color mode received for entity %s\", self.entity_id\n \"Invalid color mode '%s' received for entity %s\",\n color_mode,\n self.entity_id,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/179cc4d7f78b685e7f8cdac7ed13ee85ae08ce43", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " \"Invalid brightness value received for entity %s\",\n \"Invalid brightness value '%s' received for entity %s\",\n values[\"brightness\"],\n \"Invalid color temp value received for entity %s\",\n \"Invalid color temp value '%s' received for entity %s\",\n values[\"color_temp\"],\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/home-assistant/core/commit/179cc4d7f78b685e7f8cdac7ed13ee85ae08ce43", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " assert \"Invalid or incomplete color value received\" in caplog.text\n assert (\n \"Invalid or incomplete color value '{'state': 'ON', 'color_mode': 'rgb'}' received\"\n in caplog.text\n )\n assert \"Invalid or incomplete color value received\" in caplog.text\n assert (\n \"Invalid or incomplete color value '{'state': 'ON', 'color_mode': 'rgb', 'color': {'r': 64, 'g': 128, 'b': 'cow'}}' received\"\n in caplog.text\n )\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/179cc4d7f78b685e7f8cdac7ed13ee85ae08ce43", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "from unittest.mock import patch\nfrom collections.abc import Generator\nfrom unittest.mock import AsyncMock, patch\nfrom unittest.mock import patch\nfrom unittest.mock import AsyncMock, patch\n\nimport pytest\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/adfd26363539b9f5d8ef3b1d06d7d094edc610eb", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " \"homeassistant.components.gree.climate.async_setup_entry\", return_value=True\n ) as setup, patch(\n \"homeassistant.components.gree.bridge.Discovery\", return_value=FakeDiscovery()\n ), patch(\n \"homeassistant.components.gree.climate.async_setup_entry\", return_value=True\n ) as setup, patch(\n \"homeassistant.components.gree.bridge.Discovery\", return_value=FakeDiscovery()\n ) as discovery, patch(\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/adfd26363539b9f5d8ef3b1d06d7d094edc610eb", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " assert len(setup.mock_calls) == 1\n assert len(mock_setup_entry.mock_calls) == 1\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/adfd26363539b9f5d8ef3b1d06d7d094edc610eb", "target_edit_idx": 6, "propagatable_edit_idx": [ 11 ] }, { "input": " assert len(setup.mock_calls) == 0\n assert len(mock_setup_entry.mock_calls) == 0", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/adfd26363539b9f5d8ef3b1d06d7d094edc610eb", "target_edit_idx": 11, "propagatable_edit_idx": [ 6 ] }, { "input": " await entity.async_lock(**service_call.data)\n await entity.async_lock(**remove_entity_service_fields(service_call))\n await entity.async_unlock(**service_call.data)\n await entity.async_unlock(**remove_entity_service_fields(service_call))\n await entity.async_open(**service_call.data)\n await entity.async_open(**remove_entity_service_fields(service_call))\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/bea81d3f631a743aec25eb61bf0eabb93d25eba2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "def _get_trigger_platform(config: ConfigType) -> TriggersPlatformModule:\ndef _get_trigger_platform(config: ConfigType) -> TriggerProtocol:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/fdc06c2fc2741232418be9454c66ad0e3094d4bb", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " return cast(TriggersPlatformModule, TRIGGERS[platform_split[1]])\n return cast(TriggerProtocol, TRIGGERS[platform_split[1]])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/fdc06c2fc2741232418be9454c66ad0e3094d4bb", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "from homeassistant.helpers.json import JSONEncoder, JsonObjectType, json_loads_object\nfrom homeassistant.helpers.json import JSONEncoder, JsonValueType, json_loads\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.10526315789473684, "commit_url": "https://github.com/home-assistant/core/commit/b21bf8763e68505cb1fe21d49470ece1439cf941", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": ") -> JsonObjectType | None:\n) -> JsonValueType | None:\nfrom homeassistant.helpers.json import JSONEncoder, JsonObjectType, json_loads_object\nfrom homeassistant.helpers.json import JSONEncoder, JsonValueType, json_loads\ndef _decrypt_payload(key: str | None, ciphertext: str) -> JsonObjectType | None:\ndef _decrypt_payload(key: str | None, ciphertext: str) -> JsonValueType | None:\ndef _decrypt_payload_legacy(key: str | None, ciphertext: str) -> JsonObjectType | None:\ndef _decrypt_payload_legacy(key: str | None, ciphertext: str) -> JsonValueType | None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1875, "commit_url": "https://github.com/home-assistant/core/commit/b21bf8763e68505cb1fe21d49470ece1439cf941", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4 ] }, { "input": " message = json_loads_object(msg_bytes)\n message = json_loads(msg_bytes)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.045454545454545456, "commit_url": "https://github.com/home-assistant/core/commit/b21bf8763e68505cb1fe21d49470ece1439cf941", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "def _decrypt_payload(key: str | None, ciphertext: str) -> JsonObjectType | None:\ndef _decrypt_payload(key: str | None, ciphertext: str) -> JsonValueType | None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1875, "commit_url": "https://github.com/home-assistant/core/commit/b21bf8763e68505cb1fe21d49470ece1439cf941", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": "def _decrypt_payload_legacy(key: str | None, ciphertext: str) -> JsonObjectType | None:\ndef _decrypt_payload_legacy(key: str | None, ciphertext: str) -> JsonValueType | None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1875, "commit_url": "https://github.com/home-assistant/core/commit/b21bf8763e68505cb1fe21d49470ece1439cf941", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " _create_index(session_maker, \"events\", \"ix_events_time_fired\")\n # This used to create ix_events_time_fired, but it was removed in version 32\n pass\n _create_index(session_maker, \"events\", \"ix_events_event_type_time_fired\")\n # This used to create ix_events_event_type_time_fired, but it was removed in version 32\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/f14771ccf2108b2b87194890b4e7cfbcee50dad8", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": "\n _create_index(session_maker, \"states\", \"ix_states_entity_id_last_updated\")\n # This used to create ix_states_entity_id_last_updated, but it was removed in version 32\n _create_index(session_maker, \"states\", \"ix_states_context_user_id\")\n # This used to create ix_states_context_user_id, but it was removed in version 28\n _create_index(session_maker, \"states\", \"ix_states_entity_id\")\n # There used to be a ix_states_entity_id index here, but it was removed in later schema\n pass\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/f14771ccf2108b2b87194890b4e7cfbcee50dad8", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " _create_index(session_maker, \"events\", \"ix_events_context_user_id\")\n # This used to create ix_events_context_user_id, but it was removed in version 28\n _create_index(session_maker, \"events\", \"ix_events_context_parent_id\")\n # This used to create ix_events_context_parent_id, but it was removed in version 28\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/f14771ccf2108b2b87194890b4e7cfbcee50dad8", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " hass, one_adapter, hass_storage\n hass, one_adapter, hass_storage, disable_new_discovery_flows\n hass, one_adapter, hass_storage\n hass, one_adapter, hass_storage, disable_new_discovery_flows\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/60b96f19b79be05e46e68c5a031ca92eb948c285", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " \"Another kitchen sink openable lock\",\n \"Another openable lock\",\n \"Another kitchen sink lock\",\n \"Another basic lock\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/33fb27eb1ade7e8c7886069f88f9b33fea0b1eda", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " \"lock.openable_kitchen_sink_lock\",\n \"lock.another_kitchen_sink_openable_lock\",\n \"lock.openable_lock\",\n \"lock.another_openable_lock\",\n \"lock.basic_kitchen_sink_lock\",\n \"lock.another_kitchen_sink_lock\",\n \"lock.basic_lock\",\n \"lock.another_basic_lock\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/33fb27eb1ade7e8c7886069f88f9b33fea0b1eda", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": " assert hass.states.get(\"lock.openable_kitchen_sink_lock\").state == STATE_LOCKED\n assert (\n hass.states.get(\"lock.another_kitchen_sink_openable_lock\").state\n == STATE_UNLOCKED\n )\n assert hass.states.get(\"lock.openable_lock\").state == STATE_LOCKED\n assert hass.states.get(\"lock.another_openable_lock\").state == STATE_UNLOCKED\n assert hass.states.get(\"lock.openable_kitchen_sink_lock\").state == STATE_UNLOCKED\n assert (\n hass.states.get(\"lock.another_kitchen_sink_openable_lock\").state\n == STATE_UNLOCKED\n )\n assert hass.states.get(\"lock.openable_lock\").state == STATE_UNLOCKED\n assert hass.states.get(\"lock.another_openable_lock\").state == STATE_UNLOCKED\n assert hass.states.get(\"lock.openable_kitchen_sink_lock\").state == STATE_UNLOCKED\n assert (\n hass.states.get(\"lock.another_kitchen_sink_openable_lock\").state\n == STATE_UNLOCKED\n )\n assert hass.states.get(\"lock.openable_lock\").state == STATE_UNLOCKED\n assert hass.states.get(\"lock.another_openable_lock\").state == STATE_UNLOCKED\n assert hass.states.get(\"lock.openable_kitchen_sink_lock\").state == STATE_LOCKED\n assert (\n hass.states.get(\"lock.another_kitchen_sink_openable_lock\").state == STATE_LOCKED\n )\n assert hass.states.get(\"lock.openable_lock\").state == STATE_LOCKED\n assert hass.states.get(\"lock.another_openable_lock\").state == STATE_LOCKED\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/home-assistant/core/commit/33fb27eb1ade7e8c7886069f88f9b33fea0b1eda", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": " assert hass.states.get(\"lock.basic_kitchen_sink_lock\").state == STATE_LOCKED\n assert hass.states.get(\"lock.another_kitchen_sink_lock\").state == STATE_UNLOCKED\n assert hass.states.get(\"lock.basic_lock\").state == STATE_LOCKED\n assert hass.states.get(\"lock.another_basic_lock\").state == STATE_UNLOCKED\n assert hass.states.get(\"lock.basic_kitchen_sink_lock\").state == STATE_LOCKED\n assert hass.states.get(\"lock.another_kitchen_sink_lock\").state == STATE_LOCKED\n assert hass.states.get(\"lock.basic_lock\").state == STATE_LOCKED\n assert hass.states.get(\"lock.another_basic_lock\").state == STATE_LOCKED\n assert hass.states.get(\"lock.basic_kitchen_sink_lock\").state == STATE_UNLOCKED\n assert hass.states.get(\"lock.another_kitchen_sink_lock\").state == STATE_UNLOCKED\n assert hass.states.get(\"lock.basic_lock\").state == STATE_UNLOCKED\n assert hass.states.get(\"lock.another_basic_lock\").state == STATE_UNLOCKED\n", "class": "clone", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/home-assistant/core/commit/33fb27eb1ade7e8c7886069f88f9b33fea0b1eda", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 12 ] }, { "input": " return self.async_create_entry(title=\"\", data=options)\n return self.async_create_entry(data=options)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.02564102564102564, "commit_url": "https://github.com/home-assistant/core/commit/b80997cc433e7891a0127cef866c2dc9e9303106", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " return self.async_create_entry(title=\"\", data=user_input)\n return self.async_create_entry(data=user_input)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.02564102564102564, "commit_url": "https://github.com/home-assistant/core/commit/b80997cc433e7891a0127cef866c2dc9e9303106", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": " return self.async_create_entry(title=\"\", data=user_input)\n return self.async_create_entry(data=user_input)\n return self.async_create_entry(title=\"\", data=options)\n return self.async_create_entry(data=options)\n return self.async_create_entry(title=\"\", data=options)\n return self.async_create_entry(data=options) return self.async_create_entry(title=\"\", data=user_input)\n return self.async_create_entry(data=user_input)\n return self.async_create_entry(title=\"\", data=user_input)\n return self.async_create_entry(data=user_input)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.02564102564102564, "commit_url": "https://github.com/home-assistant/core/commit/b80997cc433e7891a0127cef866c2dc9e9303106", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " self._attr_supported_features = 0\n self._attr_supported_features = 0\n self._attr_supported_features = 0\n self._attr_supported_features = 0\n self._attr_supported_features = 0\n self._attr_supported_features = 0\n self._attr_supported_features = 0\n self._attr_supported_features = 0\n", "class": "clone", "binary_label": 1, "regression_label": 0.3181818181818182, "commit_url": "https://github.com/home-assistant/core/commit/da2efde35439360b431c9b11ad85a6a8cf98a04c", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 7, 8, 9, 10 ] }, { "input": " domain_data = self.domain_data\n entry_data = self.entry_data\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/c36260dd17e2ac4e64362d796076e35b79260401", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " cached_services := domain_data.get_gatt_services_cache(address_as_int)\n cached_services := entry_data.get_gatt_services_cache(address_as_int)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/c36260dd17e2ac4e64362d796076e35b79260401", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " domain_data.set_gatt_services_cache(address_as_int, services)\n entry_data.set_gatt_services_cache(address_as_int, services)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/c36260dd17e2ac4e64362d796076e35b79260401", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " cached_services := domain_data.get_gatt_services_cache(address_as_int)\n cached_services := entry_data.get_gatt_services_cache(address_as_int)\n domain_data = self.domain_data\n entry_data = self.entry_data\n domain_data.set_gatt_services_cache(address_as_int, services)\n entry_data.set_gatt_services_cache(address_as_int, services)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/c8a3392471ee00633103bcb081b2c3d305251752", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " device_class=SensorDeviceClass.VOLUME,\n device_class=SensorDeviceClass.WATER,\n device_class=SensorDeviceClass.VOLUME,\n device_class=SensorDeviceClass.WATER,\n assert state.attributes.get(ATTR_DEVICE_CLASS) == SensorDeviceClass.VOLUME\n assert state.attributes.get(ATTR_DEVICE_CLASS) == SensorDeviceClass.WATER\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.06451612903225806, "commit_url": "https://github.com/home-assistant/core/commit/5b32540a844ad95aac1a5ae5cee342c0f1bc836f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " assert state.attributes.get(ATTR_DEVICE_CLASS) == SensorDeviceClass.VOLUME\n assert state.attributes.get(ATTR_DEVICE_CLASS) == SensorDeviceClass.WATER\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.06451612903225806, "commit_url": "https://github.com/home-assistant/core/commit/5b32540a844ad95aac1a5ae5cee342c0f1bc836f", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "INIT_BYTES = b\"init\"\nINIT_BYTES = b\"\\x00\\x00\\x00\\x08moov\"\nINIT_BYTES = b\"init\"\nINIT_BYTES = b\"\\x00\\x00\\x00\\x08moov\"\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/c73162e5ea539417a9b2b7761cfc09a1491e3e79", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " self.queue_task(ImportStatisticsTask(metadata, stats))\n self.queue_task(ImportStatisticsTask(metadata, stats, table))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/2e261d5dc28479b1d1d0ea8b8ef6cfa2cf6c4917", "target_edit_idx": 3, "propagatable_edit_idx": [ 12 ] }, { "input": " session, Statistics, metadata_id, stat[\"start\"]\n session, table, metadata_id, stat[\"start\"]\n _insert_statistics(session, Statistics, metadata_id, stat)\n _insert_statistics(session, table, metadata_id, stat)\n _update_statistics(session, Statistics, stat_id, stat)\n _update_statistics(session, table, stat_id, stat)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.041666666666666664, "commit_url": "https://github.com/home-assistant/core/commit/2e261d5dc28479b1d1d0ea8b8ef6cfa2cf6c4917", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " _update_statistics(session, Statistics, stat_id, stat)\n _update_statistics(session, table, stat_id, stat)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.041666666666666664, "commit_url": "https://github.com/home-assistant/core/commit/2e261d5dc28479b1d1d0ea8b8ef6cfa2cf6c4917", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " _insert_statistics(session, Statistics, metadata_id, stat)\n _insert_statistics(session, table, metadata_id, stat)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.041666666666666664, "commit_url": "https://github.com/home-assistant/core/commit/2e261d5dc28479b1d1d0ea8b8ef6cfa2cf6c4917", "target_edit_idx": 8, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " instance.queue_task(ImportStatisticsTask(self.metadata, self.statistics))\n instance.queue_task(\n ImportStatisticsTask(self.metadata, self.statistics, self.table)\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/2e261d5dc28479b1d1d0ea8b8ef6cfa2cf6c4917", "target_edit_idx": 12, "propagatable_edit_idx": [ 3 ] }, { "input": " \"value_template\": None,\n \"value_template\": None,\n \"value_template\": None,\n \"value_template\": None,\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/home-assistant/core/commit/18be5f1387f44b325f24227d5e09c6cbbaabf60e", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 4, 5 ] }, { "input": " assert mqtt_mock.async_connect.call_count == 1\n assert config_entry.title == \"another-broker\"\n # assert that the entry was reloaded with the new config\n assert mock_reload_after_entry_update.call_count == 1\n assert mqtt_mock.async_connect.call_count == 1\n # assert that the entry was reloaded with the new config\n assert mock_reload_after_entry_update.call_count == 1\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/c5a58c85018664405da81f5dcd3b3a3077577a60", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " hass, mqtt_mock_entry_no_yaml_config, mock_try_connection\n hass,\n mqtt_mock_entry_no_yaml_config,\n mock_try_connection,\n mock_reload_after_entry_update,\n hass, mqtt_mock_entry_no_yaml_config, mock_try_connection_success\n hass,\n mqtt_mock_entry_no_yaml_config,\n mock_try_connection_success,\n mock_reload_after_entry_update,\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/c5a58c85018664405da81f5dcd3b3a3077577a60", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " state = hass.states.get(\"sensor.radarr_disk_space_downloads\")\n state = hass.states.get(\"sensor.mock_title_disk_space_downloads\")\n state = hass.states.get(\"sensor.radarr_disk_space_tv\")\n state = hass.states.get(\"sensor.mock_title_disk_space_tv\")\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/c2209111b29e34ddad5b8dd8bf2b1aa42008d792", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " identifiers={(DOMAIN, self._device_id)},\n identifiers={(DOMAIN, f\"{self._device_id}-{self._number}\")},\n identifiers={(DOMAIN, self._device_id)},\n identifiers={(DOMAIN, f\"{self._device_id}-{self._number}\")},\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/3efc5bb0bea3fcb96ff625af2ed31c5074351317", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "from homeassistant.data_entry_flow import RESULT_TYPE_CREATE_ENTRY, RESULT_TYPE_FORM\nfrom homeassistant.data_entry_flow import FlowResultType\nfrom homeassistant.data_entry_flow import RESULT_TYPE_CREATE_ENTRY, RESULT_TYPE_FORM\nfrom homeassistant.data_entry_flow import FlowResultType\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/6ebdf0580bfa28ff29d886833a3dd6b26bd84071", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " assert result[\"type\"] == RESULT_TYPE_FORM\n assert result[\"type\"] == FlowResultType.FORM\n assert result[\"type\"] == RESULT_TYPE_FORM\n assert result[\"type\"] == FlowResultType.FORM\n assert result2[\"type\"] == RESULT_TYPE_FORM\n assert result2[\"type\"] == FlowResultType.FORM\n assert result2[\"type\"] == RESULT_TYPE_FORM\n assert result2[\"type\"] == FlowResultType.FORM\n assert result[\"type\"] == RESULT_TYPE_FORM\n assert result[\"type\"] == FlowResultType.FORM\n", "class": "clone", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/home-assistant/core/commit/6ebdf0580bfa28ff29d886833a3dd6b26bd84071", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 3, 4, 6 ] }, { "input": " assert result2[\"type\"] == RESULT_TYPE_CREATE_ENTRY\n assert result2[\"type\"] == FlowResultType.CREATE_ENTRY\n assert result[\"type\"] == RESULT_TYPE_CREATE_ENTRY\n assert result[\"type\"] == FlowResultType.CREATE_ENTRY\n assert result[\"type\"] == RESULT_TYPE_CREATE_ENTRY\n assert result[\"type\"] == FlowResultType.CREATE_ENTRY\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/6ebdf0580bfa28ff29d886833a3dd6b26bd84071", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " async def json(self) -> Any:\n async def json(self, loads: JSONDecoder = json_loads) -> Any:\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/2f78faa7181f8832a68fb102e95a92feb9c56e59", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " \"more_info\": \"/hassio/system\",\n \"more_info\": \"/hassio/system\",\n \"more_info\": \"/hassio/system\",\n \"more_info\": \"/hassio/system\",\n \"more_info\": \"/hassio/system\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/03ab9d07a836af6dc3af3ccb745bfc9a025a1c88", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": " self.hass, domains, include_entity_category=True\n self.hass, domains, include_entity_category=True, include_hidden=True\n self.hass, domains, include_entity_category=True\n self.hass, domains, include_entity_category=True, include_hidden=True\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/c9eca4033669133ed8e01135f2b963be062f3acb", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " # so it should not be selectable since it will always be excluded\n with pytest.raises(voluptuous.error.MultipleInvalid):\n await hass.config_entries.options.async_configure(\n result2[\"flow_id\"],\n user_input={\"entities\": [sonos_hidden_switch.entity_id]},\n )\n\n result4 = await hass.config_entries.options.async_configure(\n # we allow it to be selected in include mode only\n result3 = await hass.config_entries.options.async_configure(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/c9eca4033669133ed8e01135f2b963be062f3acb", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " assert result4[\"type\"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY\n assert result3[\"type\"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY\n # so it should not be selectable since it will always be excluded\n with pytest.raises(voluptuous.error.MultipleInvalid):\n await hass.config_entries.options.async_configure(\n result2[\"flow_id\"],\n user_input={\"entities\": [sonos_hidden_switch.entity_id]},\n )\n\n result4 = await hass.config_entries.options.async_configure(\n # we allow it to be selected in include mode only\n result3 = await hass.config_entries.options.async_configure(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/c9eca4033669133ed8e01135f2b963be062f3acb", "target_edit_idx": 9, "propagatable_edit_idx": [ 7 ] }, { "input": " assert result4[\"type\"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY\n assert result3[\"type\"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/60bfcc6be4d7d3944995182a038075c126221af6", "target_edit_idx": 9, "propagatable_edit_idx": [ 7 ] }, { "input": " ent_reg = await entity_registry.async_get_registry(hass)\n ent_reg = entity_registry.async_get(hass)\n ent_reg = await entity_registry.async_get_registry(hass)\n ent_reg = entity_registry.async_get(hass)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/c37fec67a120b5ada715556e7880431cb1207799", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " hass, f\"{const.URI_SCHEME}{DOMAIN}/{device.id}/{EVENT_SESSION_ID}\"\n hass, f\"{const.URI_SCHEME}{DOMAIN}/{device.id}/{event_identifier}\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/home-assistant/core/commit/bab9f4ba768bca3a906a57e100d6157135c32a33", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " assert media.url == f\"/api/nest/event_media/{device.id}/{EVENT_SESSION_ID}\"\n assert media.url == f\"/api/nest/event_media/{device.id}/{event_identifier}\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/home-assistant/core/commit/bab9f4ba768bca3a906a57e100d6157135c32a33", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "from pydeconz.light import Cover\nfrom pydeconz.models.light.cover import Cover\nfrom pydeconz.light import (\nfrom pydeconz.models.light.fan import (\nfrom pydeconz.light import (\nfrom pydeconz.interfaces.lights import LightResources\nfrom pydeconz.models.group import Group\nfrom pydeconz.models.light import (\nfrom pydeconz.light import Lock\nfrom pydeconz.models.light.lock import Lock\nfrom pydeconz.light import Siren\nfrom pydeconz.models.light.siren import Siren\nfrom pydeconz.light import Light, Siren\nfrom pydeconz.models.light.light import Light\nfrom pydeconz.models.light.siren import Siren\n", "class": "clone", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/home-assistant/core/commit/790beb1346a268b37c1b938a63ed7b5252db03dc", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 6, 9, 10, 11 ] }, { "input": "from pydeconz.light import LightBase as DeconzLight\nfrom pydeconz.light import LightBase as DeconzLight\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/790beb1346a268b37c1b938a63ed7b5252db03dc", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " with _patch_discovery(), patch(\n \"homeassistant.components.unifiprotect.async_setup_entry\",\n return_value=True,\n ) as mock_setup_entry:\n with _patch_discovery():\n with _patch_discovery(), patch(\n \"homeassistant.components.unifiprotect.async_setup_entry\",\n return_value=True,\n ) as mock_setup_entry:\n with _patch_discovery():\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/home-assistant/core/commit/02d245a31a03805708e8de0471eb3656458e7ffe", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " assert len(mock_setup_entry.mock_calls) == 1\n assert len(mock_setup_entry.mock_calls) == 1\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/02d245a31a03805708e8de0471eb3656458e7ffe", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " # binary sensors have state off if unavailable\n # binary sensors have state off if unavailable\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/c5dd5e18c0443b332dddfbbf4a8ff03374c5c070", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " _coordinator: PhilipsTVDataUpdateCoordinator\n coordinator: PhilipsTVDataUpdateCoordinator\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/2594500452ba59e8056bcdee8f2f884d0cd68172", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": " if self._coordinator.turn_on or (\n if self.coordinator.turn_on or (\n _coordinator: PhilipsTVDataUpdateCoordinator\n coordinator: PhilipsTVDataUpdateCoordinator\n await self._coordinator.turn_on.async_run(self.hass, self._context)\n await self.coordinator.turn_on.async_run(self.hass, self._context)\n _coordinator: PhilipsTVDataUpdateCoordinator\n coordinator: PhilipsTVDataUpdateCoordinator\n await self._coordinator.turn_on.async_run(self.hass, self._context)\n await self.coordinator.turn_on.async_run(self.hass, self._context)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/2594500452ba59e8056bcdee8f2f884d0cd68172", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4, 5 ] }, { "input": " await self._coordinator.turn_on.async_run(self.hass, self._context)\n await self.coordinator.turn_on.async_run(self.hass, self._context)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/2594500452ba59e8056bcdee8f2f884d0cd68172", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": " if self._coordinator.turn_on or (\n if self.coordinator.turn_on or (\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/ad09e875a6e572cb08ee209caff1b45e0ab866ac", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4, 5 ] }, { "input": "from .const import DOMAIN, SOCKET_DEVICE_STR\nfrom .const import DOMAIN\nfrom .const import DOMAIN, SOCKET_DEVICE_STR\nfrom .const import DOMAIN\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/ace74279f1ec1ce5ec637f38a1e3f57eacae1179", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " if SOCKET_DEVICE_STR not in wiz_data.bulb.bulbtype.name:\n if wiz_data.bulb.bulbtype.bulb_type != BulbClass.SOCKET:\n if SOCKET_DEVICE_STR in wiz_data.bulb.bulbtype.name:\n if wiz_data.bulb.bulbtype.bulb_type == BulbClass.SOCKET:\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/ace74279f1ec1ce5ec637f38a1e3f57eacae1179", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " async_add_entities(entities, False)\n async_add_entities(entities)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/8b99adc1dc47b23c066dc4deb821e64de5bee268", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " async_add_entities(entities, False)\n async_add_entities(entities)\n async_add_entities(entities, False)\n async_add_entities(entities)\n async_add_entities(entities, False)\n async_add_entities(entities)\n async_add_entities(entities, False)\n async_add_entities(entities)\n async_add_entities(entities, False)\n async_add_entities(entities)\n async_add_entities(entities, False)\n async_add_entities(entities)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/8b99adc1dc47b23c066dc4deb821e64de5bee268", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5 ] }, { "input": " assert thermostat.attributes[ATTR_HVAC_ACTION] == CURRENT_HVAC_OFF\n assert thermostat.attributes[ATTR_HVAC_ACTION] == CURRENT_HVAC_IDLE\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.06315789473684211, "commit_url": "https://github.com/home-assistant/core/commit/0bcad5579b806284ae0c565bb27ca59ea061b4a1", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7, 8, 9 ] }, { "input": " rendered_headers = render_templates(self._headers)\n rendered_params = render_templates(self._params)\n rendered_headers = render_templates(self._headers, False)\n rendered_params = render_templates(self._params, True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/home-assistant/core/commit/793bdebc1399102efdeee4e5e21037643529c9cd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "def render_templates(tpl_dict: dict[str, Template] | None):\ndef render_templates(tpl_dict: dict[str, Template] | None, parse_result: bool):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/home-assistant/core/commit/793bdebc1399102efdeee4e5e21037643529c9cd", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " event_timestamp_string = event_timestamp.isoformat(timespec=\"seconds\", sep=\" \")\n event_timestamp_string = event_timestamp.strftime(DATE_STR_FORMAT)\n event_timestamp_string = event_timestamp2.isoformat(timespec=\"seconds\", sep=\" \")\n event_timestamp_string = event_timestamp2.strftime(DATE_STR_FORMAT)\n event_timestamp_string = event_timestamp1.isoformat(timespec=\"seconds\", sep=\" \")\n event_timestamp_string = event_timestamp1.strftime(DATE_STR_FORMAT)\n event_timestamp_string = event_timestamp.isoformat(timespec=\"seconds\", sep=\" \")\n event_timestamp_string = event_timestamp.strftime(DATE_STR_FORMAT)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/08003c5287c02fd285256bd8af2a92aa75482648", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": "def _build_forecast_data(timestep):\ndef _build_forecast_data(timestep, use_3hourly):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d0da0eef3608e961babe419c848ba1b488899064", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " _build_forecast_data(timestep)\n _build_forecast_data(timestep, self._use_3hourly)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d0da0eef3608e961babe419c848ba1b488899064", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": " \"ds18b20_sensors\": [{\"pin\": \"7\"}],\n \"ds18b20_sensors\": [{\"poll_interval\": 3, \"pin\": \"7\"}],\n \"ds18b20_sensors\": [{\"zone\": \"7\"}],\n \"ds18b20_sensors\": [{\"poll_interval\": 1, \"zone\": \"7\"}],\n \"ds18b20_sensors\": [{\"pin\": \"7\"}],\n \"ds18b20_sensors\": [{\"poll_interval\": 3, \"pin\": \"7\"}],\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/3b5a7d001f3b0ff57859133dbdc21bd4959025fb", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " _attr_entity_category = ENTITY_CATEGORY_CONFIG\n _attr_entity_category = ENTITY_CATEGORY_DIAGNOSTIC\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.016304347826086956, "commit_url": "https://github.com/home-assistant/core/commit/c97160bf971944b996bf1b97e108608a3c1123ce", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "from homeassistant.util import dt\nfrom homeassistant.util import dt\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/968e582468ed62ad2cee8b50f4e02d9d3400e91a", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " attr[ATTR_LAST_KNX_UPDATE] = str(\n dt.as_utc(self._device.last_telegram.timestamp)\n )\n attr[ATTR_LAST_KNX_UPDATE] = str(\n dt.as_utc(self._device.last_telegram.timestamp)\n )\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/968e582468ed62ad2cee8b50f4e02d9d3400e91a", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " DEVICE_CLASS_MONETARY,\n DEVICE_CLASS_MONETARY,\n", "class": "clone", "binary_label": 1, "regression_label": 0.4117647058823529, "commit_url": "https://github.com/home-assistant/core/commit/efbe8a8689e63ae8cc71cc890b084845eddcecb8", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " device_class=DEVICE_CLASS_MONETARY,\n native_unit_of_measurement=CURRENCY_EURO,\n state_class=STATE_CLASS_MEASUREMENT,\n native_unit_of_measurement=f\"{CURRENCY_EURO}/{VOLUME_CUBIC_METERS}\",\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.010666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/efbe8a8689e63ae8cc71cc890b084845eddcecb8", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 7, 8 ] }, { "input": " device_class=DEVICE_CLASS_MONETARY,\n native_unit_of_measurement=CURRENCY_EURO,\n state_class=STATE_CLASS_MEASUREMENT,\n native_unit_of_measurement=f\"{CURRENCY_EURO}/{ENERGY_KILO_WATT_HOUR}\",\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.010666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/efbe8a8689e63ae8cc71cc890b084845eddcecb8", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 5, 7, 8 ] }, { "input": " device_class=DEVICE_CLASS_MONETARY,\n native_unit_of_measurement=CURRENCY_EURO,\n state_class=STATE_CLASS_MEASUREMENT,\n native_unit_of_measurement=f\"{CURRENCY_EURO}/{ENERGY_KILO_WATT_HOUR}\",\n device_class=DEVICE_CLASS_MONETARY,\n native_unit_of_measurement=CURRENCY_EURO,\n state_class=STATE_CLASS_MEASUREMENT,\n native_unit_of_measurement=f\"{CURRENCY_EURO}/{VOLUME_CUBIC_METERS}\",\n device_class=DEVICE_CLASS_MONETARY,\n native_unit_of_measurement=CURRENCY_EURO,\n state_class=STATE_CLASS_MEASUREMENT,\n native_unit_of_measurement=f\"{CURRENCY_EURO}/{ENERGY_KILO_WATT_HOUR}\",\n device_class=DEVICE_CLASS_MONETARY,\n native_unit_of_measurement=CURRENCY_EURO,\n state_class=STATE_CLASS_MEASUREMENT,\n native_unit_of_measurement=f\"{CURRENCY_EURO}/{ENERGY_KILO_WATT_HOUR}\",\n device_class=DEVICE_CLASS_MONETARY,\n native_unit_of_measurement=CURRENCY_EURO,\n state_class=STATE_CLASS_MEASUREMENT,\n native_unit_of_measurement=f\"{CURRENCY_EURO}/{ENERGY_KILO_WATT_HOUR}\",\n assert state.attributes.get(ATTR_DEVICE_CLASS) == DEVICE_CLASS_MONETARY\n assert state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) == CURRENCY_EURO\n assert state.attributes.get(ATTR_STATE_CLASS) == STATE_CLASS_MEASUREMENT\n assert (\n state.attributes.get(ATTR_UNIT_OF_MEASUREMENT)\n == f\"{CURRENCY_EURO}/{ENERGY_KILO_WATT_HOUR}\"\n )\n assert state.attributes.get(ATTR_DEVICE_CLASS) == DEVICE_CLASS_MONETARY\n assert state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) == CURRENCY_EURO\n assert state.attributes.get(ATTR_STATE_CLASS) == STATE_CLASS_MEASUREMENT\n assert (\n state.attributes.get(ATTR_UNIT_OF_MEASUREMENT)\n == f\"{CURRENCY_EURO}/{ENERGY_KILO_WATT_HOUR}\"\n )\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.010666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/efbe8a8689e63ae8cc71cc890b084845eddcecb8", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 5, 7, 8 ] }, { "input": " assert state.attributes.get(ATTR_DEVICE_CLASS) == DEVICE_CLASS_MONETARY\n assert state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) == CURRENCY_EURO\n assert state.attributes.get(ATTR_STATE_CLASS) == STATE_CLASS_MEASUREMENT\n assert (\n state.attributes.get(ATTR_UNIT_OF_MEASUREMENT)\n == f\"{CURRENCY_EURO}/{ENERGY_KILO_WATT_HOUR}\"\n )\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.016822429906542057, "commit_url": "https://github.com/home-assistant/core/commit/efbe8a8689e63ae8cc71cc890b084845eddcecb8", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 8 ] }, { "input": " hass.data[DOMAIN][DATA_COORDINATOR][entry.entry_id][\n hass.data[DOMAIN][entry.entry_id][DATA_COORDINATOR][\n hass.data[DOMAIN][DATA_COORDINATOR][entry.entry_id][\n hass.data[DOMAIN][entry.entry_id][DATA_COORDINATOR][\n", "class": "clone", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/home-assistant/core/commit/8bc10db0bb79f780922b1bddc51b3204fca58bf7", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " controller = hass.data[DOMAIN][DATA_CONTROLLER][entry.entry_id]\n coordinators = hass.data[DOMAIN][DATA_COORDINATOR][entry.entry_id]\n controller = hass.data[DOMAIN][entry.entry_id][DATA_CONTROLLER]\n coordinators = hass.data[DOMAIN][entry.entry_id][DATA_COORDINATOR]\n controller = hass.data[DOMAIN][DATA_CONTROLLER][entry.entry_id]\n coordinators = hass.data[DOMAIN][DATA_COORDINATOR][entry.entry_id]\n controller = hass.data[DOMAIN][entry.entry_id][DATA_CONTROLLER]\n coordinators = hass.data[DOMAIN][entry.entry_id][DATA_COORDINATOR]\n controller = hass.data[DOMAIN][DATA_CONTROLLER][entry.entry_id]\n programs_coordinator = hass.data[DOMAIN][DATA_COORDINATOR][entry.entry_id][\n controller = hass.data[DOMAIN][entry.entry_id][DATA_CONTROLLER]\n programs_coordinator = hass.data[DOMAIN][entry.entry_id][DATA_COORDINATOR][\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/8bc10db0bb79f780922b1bddc51b3204fca58bf7", "target_edit_idx": 11, "propagatable_edit_idx": [ 12, 13 ] }, { "input": " async_get_sensor(description.api_category)(entry, controller, description)\n async_get_sensor(description.api_category)(controller, description)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/2edad82078335760261b6d8bcc4e43e2b0c08ade", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "#!/usr/bin/env python3\n#!/usr/bin/env python3\n#!/usr/bin/env python3\n#!/usr/bin/env python3\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/2059cbacbdce9e3e8bec7f318c14347dbfac2737", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " state=lambda cart: cart.get(\"total_price\", 0) / 100,\n value_fn=lambda cart: cart.get(\"total_price\", 0) / 100,\n state: Callable[[Any], StateType]\n value_fn: Callable[[Any], StateType]\n state=lambda cart: cart.get(\"total_count\", 0),\n value_fn=lambda cart: cart.get(\"total_count\", 0),\n state=lambda slot: slot.get(\"window_start\"),\n value_fn=lambda slot: slot.get(\"window_start\"),\n state=lambda slot: slot.get(\"window_end\"),\n value_fn=lambda slot: slot.get(\"window_end\"),\n state=lambda slot: slot.get(\"cut_off_time\"),\n value_fn=lambda slot: slot.get(\"cut_off_time\"),\n state=lambda slot: (\n value_fn=lambda slot: (\n state=lambda last_order: last_order.get(\"slot\", {}).get(\"window_start\"),\n value_fn=lambda last_order: last_order.get(\"slot\", {}).get(\"window_start\"),\n state=lambda last_order: last_order.get(\"slot\", {}).get(\"window_end\"),\n value_fn=lambda last_order: last_order.get(\"slot\", {}).get(\"window_end\"),\n state=lambda last_order: last_order.get(\"status\"),\n value_fn=lambda last_order: last_order.get(\"status\"),\n state=lambda last_order: last_order.get(\"eta\", {}).get(\"start\"),\n value_fn=lambda last_order: last_order.get(\"eta\", {}).get(\"start\"),\n state=lambda last_order: last_order.get(\"eta\", {}).get(\"end\"),\n value_fn=lambda last_order: last_order.get(\"eta\", {}).get(\"end\"),\n state=lambda last_order: last_order.get(\"delivery_time\", {}).get(\"start\"),\n value_fn=lambda last_order: last_order.get(\"delivery_time\", {}).get(\"start\"),\n state=lambda last_order: last_order.get(\"total_price\", 0) / 100,\n value_fn=lambda last_order: last_order.get(\"total_price\", 0) / 100,\n return self.entity_description.state(data_set)\n return self.entity_description.value_fn(data_set)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/home-assistant/core/commit/954bd49849f9f63c7bea5fb0ebbbb3593859ffa4", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " state_provider: Callable[[AugustData, DoorbellDetail], bool]\n value_fn: Callable[[AugustData, DoorbellDetail], bool]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/ee28dd57c1af8f5f21d3b011b617001c2293702f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5, 6, 7, 8, 9 ] }, { "input": " state_provider=_retrieve_ding_state,\n value_fn=_retrieve_ding_state,\n state_provider: Callable[[AugustData, DoorbellDetail], bool]\n value_fn: Callable[[AugustData, DoorbellDetail], bool]\n state_provider=_retrieve_motion_state,\n value_fn=_retrieve_motion_state,\n state_provider=_retrieve_online_state,\n value_fn=_retrieve_online_state,\n state_provider: Callable[[T], int | None]\n value_fn: Callable[[T], int | None]\n state_provider=_retrieve_device_battery_state,\n value_fn=_retrieve_device_battery_state,\n state_provider=_retrieve_linked_keypad_battery_state,\n value_fn=_retrieve_linked_keypad_battery_state,\n if detail is None or SENSOR_TYPE_DEVICE_BATTERY.state_provider(detail) is None:\n if detail is None or SENSOR_TYPE_DEVICE_BATTERY.value_fn(detail) is None:\n self._attr_native_value = self.entity_description.state_provider(self._detail)\n self._attr_native_value = self.entity_description.value_fn(self._detail)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/ee28dd57c1af8f5f21d3b011b617001c2293702f", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 5, 6, 7, 8, 9 ] }, { "input": " state_provider=_retrieve_motion_state,\n value_fn=_retrieve_motion_state,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/ee28dd57c1af8f5f21d3b011b617001c2293702f", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 5, 6, 7, 8, 9 ] }, { "input": " state_provider=_retrieve_online_state,\n value_fn=_retrieve_online_state,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/ee28dd57c1af8f5f21d3b011b617001c2293702f", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 5, 6, 7, 8, 9 ] }, { "input": " state_provider=_retrieve_device_battery_state,\n value_fn=_retrieve_device_battery_state,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/ee28dd57c1af8f5f21d3b011b617001c2293702f", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 7, 8, 9 ] }, { "input": " if detail is None or SENSOR_TYPE_DEVICE_BATTERY.state_provider(detail) is None:\n if detail is None or SENSOR_TYPE_DEVICE_BATTERY.value_fn(detail) is None:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/ee28dd57c1af8f5f21d3b011b617001c2293702f", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 9 ] }, { "input": " self._attr_native_value = self.entity_description.state_provider(self._detail)\n self._attr_native_value = self.entity_description.value_fn(self._detail)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/ee28dd57c1af8f5f21d3b011b617001c2293702f", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8 ] }, { "input": " self._aiohttp_client = aiohttp_client\n self._hass_client = hass_client_no_auth\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/43b5dcff7631124e4509b6c951f3875ef7be905c", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " client: TestClient = await self._aiohttp_client(self._hass.http.app)\n client: TestClient = await self._hass_client()\n client: TestClient = await self._aiohttp_client(self._hass.http.app)\n client: TestClient = await self._hass_client()\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/43b5dcff7631124e4509b6c951f3875ef7be905c", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " hass: HomeAssistant, aiohttp_client, aioclient_mock: AiohttpClientMocker\n hass: HomeAssistant, hass_client_no_auth, aioclient_mock: AiohttpClientMocker\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/43b5dcff7631124e4509b6c951f3875ef7be905c", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 6 ] }, { "input": " hass: HomeAssistant, aiohttp_client, aioclient_mock, current_request_with_host\n hass: HomeAssistant, hass_client_no_auth, aioclient_mock, current_request_with_host\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/43b5dcff7631124e4509b6c951f3875ef7be905c", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " self._attr_state_class = STATE_CLASS_TOTAL_INCREASING\n self._attr_state_class = STATE_CLASS_TOTAL\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.022026431718061675, "commit_url": "https://github.com/home-assistant/core/commit/b1dbdec2ea37fc066a3c908253fdbd8e14235f3e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 6 ] }, { "input": "from homeassistant.components.sensor import STATE_CLASS_TOTAL_INCREASING\nfrom homeassistant.components.sensor import STATE_CLASS_TOTAL\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.022026431718061675, "commit_url": "https://github.com/home-assistant/core/commit/b1dbdec2ea37fc066a3c908253fdbd8e14235f3e", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 6 ] }, { "input": " assert state.attributes.get(\"state_class\") == STATE_CLASS_TOTAL_INCREASING\n assert state.attributes.get(\"state_class\") == STATE_CLASS_TOTAL\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.022026431718061675, "commit_url": "https://github.com/home-assistant/core/commit/b1dbdec2ea37fc066a3c908253fdbd8e14235f3e", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 6 ] }, { "input": " assert state.attributes.get(\"state_class\") == STATE_CLASS_TOTAL_INCREASING\n assert state.attributes.get(\"state_class\") == STATE_CLASS_TOTAL\n self._attr_state_class = STATE_CLASS_TOTAL_INCREASING\n self._attr_state_class = STATE_CLASS_TOTAL\nfrom homeassistant.components.sensor import STATE_CLASS_TOTAL_INCREASING\nfrom homeassistant.components.sensor import STATE_CLASS_TOTAL\n assert state.attributes.get(\"state_class\") == STATE_CLASS_TOTAL_INCREASING\n assert state.attributes.get(\"state_class\") == STATE_CLASS_TOTAL\n assert state.attributes.get(\"state_class\") == STATE_CLASS_TOTAL_INCREASING\n assert state.attributes.get(\"state_class\") == STATE_CLASS_TOTAL\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.022026431718061675, "commit_url": "https://github.com/home-assistant/core/commit/b1dbdec2ea37fc066a3c908253fdbd8e14235f3e", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 6 ] }, { "input": " for disc_info in async_discover_values(node):\n for disc_info in async_discover_values(node, device):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/948f191f16a1edc7927e779a4af315439b12e114", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "def async_discover_values(node: ZwaveNode) -> Generator[ZwaveDiscoveryInfo, None, None]:\ndef async_discover_values(\n node: ZwaveNode, device: DeviceEntry\n) -> Generator[ZwaveDiscoveryInfo, None, None]:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/948f191f16a1edc7927e779a4af315439b12e114", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " ), patch(\n \"aiorecollect.client.Client.async_get_next_pickup_event\", return_value=True\n ):\n ), patch(\"aiorecollect.client.Client.async_get_pickup_events\", return_value=True):\n ), patch(\n \"aiorecollect.client.Client.async_get_next_pickup_event\", return_value=True\n ):\n ), patch(\"aiorecollect.client.Client.async_get_pickup_events\", return_value=True):\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/d96e416d260732ce6e46147d2b992a2012792a5c", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " ATTR_STATE_CLASS: STATE_CLASS_MEASUREMENT,\n ATTR_LAST_RESET: LAST_RESET_NEVER,\n ATTR_STATE_CLASS: STATE_CLASS_TOTAL_INCREASING,\n ATTR_STATE_CLASS: STATE_CLASS_MEASUREMENT,\n ATTR_LAST_RESET: LAST_RESET_NEVER,\n ATTR_STATE_CLASS: STATE_CLASS_TOTAL_INCREASING,\n ATTR_STATE_CLASS: STATE_CLASS_MEASUREMENT,\n ATTR_LAST_RESET: LAST_RESET_NEVER,\n ATTR_STATE_CLASS: STATE_CLASS_TOTAL_INCREASING,\n ATTR_STATE_CLASS: STATE_CLASS_MEASUREMENT,\n ATTR_LAST_RESET: LAST_RESET_NEVER,\n ATTR_STATE_CLASS: STATE_CLASS_TOTAL_INCREASING,\n ATTR_STATE_CLASS: STATE_CLASS_MEASUREMENT,\n ATTR_LAST_RESET: LAST_RESET_NEVER,\n ATTR_STATE_CLASS: STATE_CLASS_TOTAL_INCREASING,\n ATTR_STATE_CLASS: STATE_CLASS_MEASUREMENT,\n ATTR_LAST_RESET: LAST_RESET_NEVER,\n ATTR_STATE_CLASS: STATE_CLASS_TOTAL_INCREASING,\n ATTR_STATE_CLASS: STATE_CLASS_MEASUREMENT,\n ATTR_LAST_RESET: LAST_RESET_NEVER,\n ATTR_STATE_CLASS: STATE_CLASS_TOTAL_INCREASING,\n ATTR_STATE_CLASS: STATE_CLASS_MEASUREMENT,\n ATTR_LAST_RESET: LAST_RESET_NEVER,\n ATTR_STATE_CLASS: STATE_CLASS_TOTAL_INCREASING,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0016722408026755853, "commit_url": "https://github.com/home-assistant/core/commit/aef8ec968bf604df9f46addbe33adada4733642e", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " ATTR_STATE_CLASS: STATE_CLASS_MEASUREMENT,\n ATTR_LAST_RESET: LAST_RESET_NEVER,\n ATTR_STATE_CLASS: STATE_CLASS_TOTAL_INCREASING,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0033444816053511705, "commit_url": "https://github.com/home-assistant/core/commit/aef8ec968bf604df9f46addbe33adada4733642e", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5, 6, 7, 8, 9 ] }, { "input": " \"unit\": \"watts\",\n \"unit\": POWER_WATT,\n \"unit\": \"watts\",\n \"unit\": POWER_WATT,\n \"unit\": \"watts\",\n \"unit\": POWER_WATT,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d414b58769a7ed2bb1fa95fe64ee58d534946114", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " @property\n def available(self) -> bool:\n \"\"\"Return if thermostat is available.\"\"\"\n return self.device.present # type: ignore [no-any-return]\n\n @property\n def available(self) -> bool:\n \"\"\"Return if switch is available.\"\"\"\n return self.device.present # type: ignore [no-any-return]\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/4241c4ca5bea487a667486ac5cc8184f6a918026", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " coordinator = hass.data[DOMAIN][config_entry.entry_id][BRAVIA_COORDINATOR]\n coordinator = hass.data[DOMAIN][config_entry.entry_id]\n coordinator = hass.data[DOMAIN][config_entry.entry_id][BRAVIA_COORDINATOR]\n coordinator = hass.data[DOMAIN][config_entry.entry_id]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/01a26f134850ca3002e47d9e7f9d03bd818f3027", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " self._attr_max_mired = max_mired\n self._attr_min_mired = min_mired\n self._attr_max_mireds = max_mired\n self._attr_min_mireds = min_mired\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/c65d1206337275a84d885da6665cebda8eb6af29", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " _attr_max_mired: int = 500\n _attr_min_mired: int = 153\n _attr_max_mireds: int = 500\n _attr_min_mireds: int = 153\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/c65d1206337275a84d885da6665cebda8eb6af29", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " return self._attr_max_mired\n return self._attr_max_mireds\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/c65d1206337275a84d885da6665cebda8eb6af29", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " self._completed_database_setup = None\n self._completed_first_database_setup = None\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/72288710cad1814a5e27d2700605b9ab927e2755", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " self._completed_database_setup = False\n self._completed_first_database_setup = False\n self._completed_database_setup = None\n self._completed_first_database_setup = None\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/72288710cad1814a5e27d2700605b9ab927e2755", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " assert util.setup_connection_for_dialect(\"mysql\", dbapi_connection) is False\n util.setup_connection_for_dialect(\"mysql\", dbapi_connection, True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/home-assistant/core/commit/72288710cad1814a5e27d2700605b9ab927e2755", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " assert util.setup_connection_for_dialect(\"sqlite\", dbapi_connection) is True\n util.setup_connection_for_dialect(\"sqlite\", dbapi_connection, True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/home-assistant/core/commit/72288710cad1814a5e27d2700605b9ab927e2755", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": " if speaker.media.playback_status == STATE_PLAYING:\n if speaker.media.playback_status == SONOS_STATE_PLAYING:\n if self.media.playback_status == STATE_PLAYING:\n if self.media.playback_status == SONOS_STATE_PLAYING:\n self.media.playback_status != STATE_PLAYING\n self.media.playback_status != SONOS_STATE_PLAYING\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.01195219123505976, "commit_url": "https://github.com/home-assistant/core/commit/afe02a4ad2b19108e2d970561465c2a1d401b369", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " self.media.playback_status != STATE_PLAYING\n self.media.playback_status != SONOS_STATE_PLAYING\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.01195219123505976, "commit_url": "https://github.com/home-assistant/core/commit/afe02a4ad2b19108e2d970561465c2a1d401b369", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 5 ] }, { "input": " if self.media.playback_status == STATE_PLAYING:\n if self.media.playback_status == SONOS_STATE_PLAYING:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.01195219123505976, "commit_url": "https://github.com/home-assistant/core/commit/afe02a4ad2b19108e2d970561465c2a1d401b369", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " assert state.attributes[\"hs_color\"] == (110, 90)\n assert state.attributes[\"hs_color\"] == (77, 78)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/b00ccf98f03803528393f6212cf8c6d2ee16f0ca", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " async def got_connected(self, _=None):\n async def async_got_connected(self, _=None):\n \"connected\": self.got_connected,\n \"disconnected\": self.got_disconnected,\n \"activity_starting\": self._activity_update,\n \"activity_started\": self._activity_update,\n \"connected\": self.async_got_connected,\n \"disconnected\": self.async_got_disconnected,\n \"activity_starting\": self._async_activity_update,\n \"activity_started\": self._async_activity_update,\n \"connected\": self.got_connected,\n \"disconnected\": self.got_disconnected,\n \"config_updated\": self.new_config,\n \"activity_starting\": self.new_activity,\n \"activity_started\": self._new_activity_finished,\n \"connected\": self.async_got_connected,\n \"disconnected\": self.async_got_disconnected,\n \"config_updated\": self.async_new_config,\n \"activity_starting\": self.async_new_activity,\n \"activity_started\": self.async_new_activity_finished,\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/05982ffc6052e9fc1aad80c52b9510a2b966b156", "target_edit_idx": 0, "propagatable_edit_idx": [ 10, 3 ] }, { "input": " \"connected\": self.got_connected,\n \"disconnected\": self.got_disconnected,\n \"config_updated\": self.new_config,\n \"activity_starting\": self.new_activity,\n \"activity_started\": self._new_activity_finished,\n \"connected\": self.async_got_connected,\n \"disconnected\": self.async_got_disconnected,\n \"config_updated\": self.async_new_config,\n \"activity_starting\": self.async_new_activity,\n \"activity_started\": self.async_new_activity_finished,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/05982ffc6052e9fc1aad80c52b9510a2b966b156", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 10 ] }, { "input": " await self.new_config()\n await self.async_new_config()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/05982ffc6052e9fc1aad80c52b9510a2b966b156", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " def new_activity(self, activity_info: tuple) -> None:\n @callback\n def async_new_activity(self, activity_info: tuple) -> None:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/05982ffc6052e9fc1aad80c52b9510a2b966b156", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " async def new_config(self, _=None):\n async def async_new_config(self, _=None):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/05982ffc6052e9fc1aad80c52b9510a2b966b156", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": " self.new_activity(self._data.current_activity)\n self.async_new_activity(self._data.current_activity)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/05982ffc6052e9fc1aad80c52b9510a2b966b156", "target_edit_idx": 8, "propagatable_edit_idx": [ 6 ] }, { "input": " return self.thermostat[\"runtime\"][\"desiredHeat\"] / 10.0\n return round(self.thermostat[\"runtime\"][\"desiredHeat\"] / 10.0)\n return self.thermostat[\"runtime\"][\"desiredCool\"] / 10.0\n return round(self.thermostat[\"runtime\"][\"desiredCool\"] / 10.0)\n return self.thermostat[\"runtime\"][\"desiredHeat\"] / 10.0\n return round(self.thermostat[\"runtime\"][\"desiredHeat\"] / 10.0)\n return self.thermostat[\"runtime\"][\"desiredCool\"] / 10.0\n return round(self.thermostat[\"runtime\"][\"desiredCool\"] / 10.0)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/523a71ac208b1d5e5ca923b2b4b66b400fae97c2", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " if await self.hass.async_add_executor_job(\n self.gateway.set_heat_temp, int(self._data_key), int(temperature)\n ):\n async with self.coordinator.api_lock:\n success = await self.hass.async_add_executor_job(\n self.gateway.set_heat_temp, int(self._data_key), int(temperature)\n )\n\n if success:\n if await self.hass.async_add_executor_job(\n self.gateway.set_heat_mode, int(self._data_key), int(mode)\n ):\n\n async with self.coordinator.api_lock:\n success = await self.hass.async_add_executor_job(\n self.gateway.set_heat_mode, int(self._data_key), int(mode)\n )\n\n if success:\n if await self.hass.async_add_executor_job(\n self.gateway.set_heat_mode, int(self._data_key), int(mode)\n ):\n\n async with self.coordinator.api_lock:\n success = await self.hass.async_add_executor_job(\n self.gateway.set_heat_mode, int(self._data_key), int(mode)\n )\n\n if success:\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/42a060ad33ebd6d2d18fe5ce2f6d191042c49bd9", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " self.gf = graphite.GraphiteFeeder(self.hass, \"foo\", 123, \"ha\")\n self.gf = graphite.GraphiteFeeder(self.hass, \"foo\", 123, \"tcp\", \"ha\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/642bb91a9a905f1b8b19ddce911831ac9277f6c4", "target_edit_idx": 10, "propagatable_edit_idx": [ 13 ] }, { "input": " gf = graphite.GraphiteFeeder(fake_hass, \"foo\", 123, \"ha\")\n gf = graphite.GraphiteFeeder(fake_hass, \"foo\", 123, \"tcp\", \"ha\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/642bb91a9a905f1b8b19ddce911831ac9277f6c4", "target_edit_idx": 13, "propagatable_edit_idx": [ 10 ] }, { "input": " for entry in self._async_current_entries()\n for entry in self._async_current_entries(include_ignore=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.00819672131147541, "commit_url": "https://github.com/home-assistant/core/commit/6b93c4073d0f782c95e8159a8a532fdc98a7c8ca", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " _verify(hass, STATE_OFF, SPEED_OFF, 0, None, None, None)\n _verify(hass, STATE_ON, SPEED_OFF, 0, None, None, None)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.002028397565922921, "commit_url": "https://github.com/home-assistant/core/commit/9601cb74450cf5f7a51e01a72f9fa46a6682c0f6", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " _verify(hass, STATE_OFF, SPEED_OFF, 0, None, None, None)\n _verify(hass, STATE_ON, SPEED_OFF, 0, None, None, None)\n _verify(hass, STATE_OFF, SPEED_OFF, 0, None, None, None)\n _verify(hass, STATE_ON, SPEED_OFF, 0, None, None, None)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.002028397565922921, "commit_url": "https://github.com/home-assistant/core/commit/9601cb74450cf5f7a51e01a72f9fa46a6682c0f6", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " values[\"transition\"] = int(kwargs[ATTR_TRANSITION])\n values[\"transition\"] = kwargs[ATTR_TRANSITION]\n values[\"transition\"] = int(kwargs[ATTR_TRANSITION])\n values[\"transition\"] = kwargs[ATTR_TRANSITION]\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/5ce49c62b143a4b0d9913687e9a37a8e9fdee35d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " await common.async_turn_on(hass, \"light.test\", transition=10)\n await common.async_turn_on(hass, \"light.test\", transition=10.0)\n await common.async_turn_off(hass, \"light.test\", transition=20)\n await common.async_turn_off(hass, \"light.test\", transition=20.0)\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/home-assistant/core/commit/5ce49c62b143a4b0d9913687e9a37a8e9fdee35d", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " \"state\": {\"bri\": 255, \"on\": False, \"reachable\": True},\n \"state\": {\"bri\": 254, \"on\": False, \"reachable\": True},\n \"state\": {\"bri\": 254, \"on\": True, \"reachable\": True},\n \"state\": {\"bri\": 253, \"on\": True, \"reachable\": True},\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/home-assistant/core/commit/7214d6517ac05b39470581acac09eb60c3374b5b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " set_callback.assert_called_with(\"put\", \"/lights/2/state\", json={\"lift\": 50})\n set_callback.assert_called_with(\"put\", \"/lights/2/state\", json={\"lift\": 60})\n set_callback.assert_called_with(\"put\", \"/lights/1/state\", json={\"bri\": 127})\n set_callback.assert_called_with(\"put\", \"/lights/1/state\", json={\"bri\": 152})\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/home-assistant/core/commit/7214d6517ac05b39470581acac09eb60c3374b5b", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " _LOGGER.error(\"Invalid username and/or password\")\n LOGGER.error(\"Invalid username and/or password\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/b4381c50059c6c5d303a30ffad3b747579c99332", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 3 ] }, { "input": " _LOGGER.error(\"Config entry failed: %s\", err)\n LOGGER.error(\"Config entry failed: %s\", err)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/b4381c50059c6c5d303a30ffad3b747579c99332", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 2 ] }, { "input": " _LOGGER.error(\n LOGGER.error(\n _LOGGER.error(\"Invalid username and/or password\")\n LOGGER.error(\"Invalid username and/or password\")\n _LOGGER.error(\"Config entry failed: %s\", err)\n LOGGER.error(\"Config entry failed: %s\", err)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/b4381c50059c6c5d303a30ffad3b747579c99332", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " _LOGGER.debug(\"Migrating from version %s\", version)\n LOGGER.debug(\"Migrating from version %s\", version)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/87795929525b0a89bc316543adbfe83aae48d41c", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5, 6, 7, 8, 9, 10 ] }, { "input": " _LOGGER.info(\"Migration to version %s successful\", version)\n LOGGER.info(\"Migration to version %s successful\", version)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/87795929525b0a89bc316543adbfe83aae48d41c", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4, 6, 7, 8, 9, 10 ] }, { "input": " _LOGGER.error(\"Error with the websocket connection: %s\", err)\n LOGGER.error(\"Error with the websocket connection: %s\", err)\n _LOGGER.error(\"Config entry failed: %s\", err)\n LOGGER.error(\"Config entry failed: %s\", err)\n _LOGGER.debug(\"Migrating from version %s\", version)\n LOGGER.debug(\"Migrating from version %s\", version)\n _LOGGER.info(\"Migration to version %s successful\", version)\n LOGGER.info(\"Migration to version %s successful\", version)\n _LOGGER.info(\"Connected to websocket\")\n LOGGER.info(\"Connected to websocket\")\n _LOGGER.debug(\"New data received: %s\", data)\n LOGGER.debug(\"New data received: %s\", data)\n _LOGGER.info(\"Disconnected from websocket\")\n LOGGER.info(\"Disconnected from websocket\")\n _LOGGER.debug(\"New station subscription: %s\", data)\n LOGGER.debug(\"New station subscription: %s\", data)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/87795929525b0a89bc316543adbfe83aae48d41c", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 5, 7, 8, 9, 10 ] }, { "input": " _LOGGER.info(\"Connected to websocket\")\n LOGGER.info(\"Connected to websocket\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/87795929525b0a89bc316543adbfe83aae48d41c", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 4, 5, 6, 8, 9, 10 ] }, { "input": " _LOGGER.debug(\"New data received: %s\", data)\n LOGGER.debug(\"New data received: %s\", data)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/87795929525b0a89bc316543adbfe83aae48d41c", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 9, 10 ] }, { "input": " _LOGGER.info(\"Disconnected from websocket\")\n LOGGER.info(\"Disconnected from websocket\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/87795929525b0a89bc316543adbfe83aae48d41c", "target_edit_idx": 9, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8, 10 ] }, { "input": " _LOGGER.error(\"Error connecting to the Flo API: %s\", request_error)\n LOGGER.error(\"Error connecting to the Flo API: %s\", request_error)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/a880ef6a4e354eeb533765950b17f7756443ab38", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " _LOGGER.debug(\"Flo device data: %s\", self._device_information)\n LOGGER.debug(\"Flo device data: %s\", self._device_information)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/a880ef6a4e354eeb533765950b17f7756443ab38", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 2 ] }, { "input": " _LOGGER.debug(\"Updated Flo consumption data: %s\", self._water_usage)\n LOGGER.debug(\"Updated Flo consumption data: %s\", self._water_usage)", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/a880ef6a4e354eeb533765950b17f7756443ab38", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " seslector_class = SELECTORS.get(selector_type)\n selector_class = SELECTORS.get(selector_type)\n if seslector_class is None:\n if selector_class is None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/5dcbb634f66aa0fbd2ac4c669c32906b8132ce0b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " if seslector_class is None:\n if selector_class is None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/5dcbb634f66aa0fbd2ac4c669c32906b8132ce0b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "CONF_DEFAULT_IP = \"169.254.1.1\" # This IP is valid for all FRITZ!Box routers.\nDEFAULT_HOST = \"169.254.1.1\" # This IP is valid for all FRITZ!Box routers.\nDEFAULT_USERNAME = \"admin\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/1366354725351ba5ae846a33b39140449e7d6f82", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " vol.Optional(CONF_HOST, default=CONF_DEFAULT_IP): cv.string,\n vol.Optional(CONF_PASSWORD, default=\"admin\"): cv.string,\n vol.Optional(CONF_USERNAME, default=\"\"): cv.string,\n vol.Optional(CONF_HOST, default=DEFAULT_HOST): cv.string,\n vol.Optional(CONF_USERNAME, default=DEFAULT_USERNAME): cv.string,\n vol.Optional(CONF_PASSWORD): cv.string,\nCONF_DEFAULT_IP = \"169.254.1.1\" # This IP is valid for all FRITZ!Box routers.\nDEFAULT_HOST = \"169.254.1.1\" # This IP is valid for all FRITZ!Box routers.\nDEFAULT_USERNAME = \"admin\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/1366354725351ba5ae846a33b39140449e7d6f82", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " name = config.get(CONF_NAME)\n host = config.get(CONF_HOST)\n name = config[CONF_NAME]\n host = config[CONF_HOST]\n name = config.get(CONF_NAME)\n host = config.get(CONF_HOST)\n name = config[CONF_NAME]\n host = config[CONF_HOST]\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/1366354725351ba5ae846a33b39140449e7d6f82", "target_edit_idx": 6, "propagatable_edit_idx": [ 11 ] }, { "input": "CONF_DEFAULT_NAME = \"fritz_netmonitor\"\nCONF_DEFAULT_IP = \"169.254.1.1\" # This IP is valid for all FRITZ!Box routers.\nDEFAULT_NAME = \"fritz_netmonitor\"\nDEFAULT_HOST = \"169.254.1.1\" # This IP is valid for all FRITZ!Box routers.\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/1366354725351ba5ae846a33b39140449e7d6f82", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " vol.Optional(CONF_NAME, default=CONF_DEFAULT_NAME): cv.string,\n vol.Optional(CONF_HOST, default=CONF_DEFAULT_IP): cv.string,\n vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,\n vol.Optional(CONF_HOST, default=DEFAULT_HOST): cv.string,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/1366354725351ba5ae846a33b39140449e7d6f82", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": "from . import SimpliSafeEntity\nfrom . import SimpliSafeBaseSensor\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/home-assistant/core/commit/943cc243b5e8af4b0ed0d18b92e8ef369dbd718a", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 11, 12 ] }, { "input": "class BatteryBinarySensor(SimpliSafeEntity, BinarySensorEntity):\nclass BatteryBinarySensor(SimpliSafeBaseSensor, BinarySensorEntity):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/home-assistant/core/commit/943cc243b5e8af4b0ed0d18b92e8ef369dbd718a", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 11, 12 ] }, { "input": "from . import SimpliSafeEntity\nfrom . import SimpliSafeBaseSensor\nfrom . import SimpliSafeEntity\nfrom . import SimpliSafeBaseSensor\nclass SimplisafeFreezeSensor(SimpliSafeEntity):\nclass SimplisafeFreezeSensor(SimpliSafeBaseSensor):\nclass BatteryBinarySensor(SimpliSafeEntity, BinarySensorEntity):\nclass BatteryBinarySensor(SimpliSafeBaseSensor, BinarySensorEntity):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/home-assistant/core/commit/943cc243b5e8af4b0ed0d18b92e8ef369dbd718a", "target_edit_idx": 11, "propagatable_edit_idx": [ 1, 12, 9 ] }, { "input": "class SimplisafeFreezeSensor(SimpliSafeEntity):\nclass SimplisafeFreezeSensor(SimpliSafeBaseSensor):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/home-assistant/core/commit/943cc243b5e8af4b0ed0d18b92e8ef369dbd718a", "target_edit_idx": 12, "propagatable_edit_idx": [ 1, 11, 9 ] }, { "input": " entities_unavailable = []\n devices_unavailable = []\n entities_unavailable.append(device)\n devices_unavailable.append(device)\n hass.data[TPLINK_DOMAIN][f\"{device_type}_remaining\"] = entities_unavailable\n\n if entities_ready:\n async_add_entities(entities_ready, update_before_add=True)\n hass.data[TPLINK_DOMAIN][f\"{device_type}_remaining\"] = devices_unavailable\n return entities_ready", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/68d2938c6b0c32101099ae4ac304b519d3cd8928", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " entities_unavailable.append(device)\n devices_unavailable.append(device)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/68d2938c6b0c32101099ae4ac304b519d3cd8928", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " hass.data[TPLINK_DOMAIN][f\"{device_type}_remaining\"] = entities_unavailable\n\n if entities_ready:\n async_add_entities(entities_ready, update_before_add=True)\n hass.data[TPLINK_DOMAIN][f\"{device_type}_remaining\"] = devices_unavailable\n return entities_ready", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/68d2938c6b0c32101099ae4ac304b519d3cd8928", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " entities_unavailable = []\n devices_unavailable = []\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d42bdcfc2adaf510c5a5a2ef7bbff80ce705c6bb", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "def async_get_platform(\ndef async_get_platform_without_config_entry(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/35d2badb2478cd52a062f430579173950bdd1edc", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " platform = async_get_platform(hass, PLATFORM, DOMAIN)\n platform = async_get_platform_without_config_entry(hass, PLATFORM, DOMAIN)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/35d2badb2478cd52a062f430579173950bdd1edc", "target_edit_idx": 7, "propagatable_edit_idx": [ 2 ] }, { "input": " self._shuffle = None\n self._repeat = None\n self._play_mode = None\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/home-assistant/core/commit/30b454ddb7b2c88b2ec26cb305b3ebcba71c0e4f", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " self._shuffle = self.soco.shuffle\n self._repeat = self.soco.repeat\n self._play_mode = self.soco.play_mode\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/home-assistant/core/commit/30b454ddb7b2c88b2ec26cb305b3ebcba71c0e4f", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " await self.hass.async_add_job(self.bh1750_sensor.update)\n await self.hass.async_add_executor_job(self.bh1750_sensor.update)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.12, "commit_url": "https://github.com/home-assistant/core/commit/2e05592039a8f41ba2599d4e0013e8ca089f66a6", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " await self.hass.async_add_job(self.bme280_client.update)\n await self.hass.async_add_executor_job(self.bme280_client.update)\n sensor = await hass.async_add_job(\n sensor = await hass.async_add_executor_job(\n await self.hass.async_add_job(self.bh1750_sensor.update)\n await self.hass.async_add_executor_job(self.bh1750_sensor.update)\n sensor = await hass.async_add_job(\n sensor = await hass.async_add_executor_job(\n sensor_handler = await hass.async_add_job(BME280Handler, sensor)\n sensor_handler = await hass.async_add_executor_job(BME280Handler, sensor)\n sensor_handler = await hass.async_add_job(_setup_bme680, config)\n sensor_handler = await hass.async_add_executor_job(_setup_bme680, config)\n await self.hass.async_add_job(self.bme680_client.update)\n await self.hass.async_add_executor_job(self.bme680_client.update)\n sensor = await hass.async_add_job(partial(HTU21D, bus, logger=_LOGGER))\n sensor = await hass.async_add_executor_job(partial(HTU21D, bus, logger=_LOGGER))\n sensor_handler = await hass.async_add_job(HTU21DHandler, sensor)\n sensor_handler = await hass.async_add_executor_job(HTU21DHandler, sensor)\n await self.hass.async_add_job(self._client.update)\n await self.hass.async_add_executor_job(self._client.update)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.12, "commit_url": "https://github.com/home-assistant/core/commit/2e05592039a8f41ba2599d4e0013e8ca089f66a6", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9 ] }, { "input": " await self.hass.async_add_job(self.bme680_client.update)\n await self.hass.async_add_executor_job(self.bme680_client.update)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.12, "commit_url": "https://github.com/home-assistant/core/commit/2e05592039a8f41ba2599d4e0013e8ca089f66a6", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 9 ] }, { "input": " await self.hass.async_add_job(self._client.update)\n await self.hass.async_add_executor_job(self._client.update)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.12, "commit_url": "https://github.com/home-assistant/core/commit/2e05592039a8f41ba2599d4e0013e8ca089f66a6", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " self.entry_id = entry_id or uuid_util.uuid_v1mc_hex()\n self.entry_id = entry_id or uuid_util.random_uuid_hex()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/8d5c124debcdcc42ebfdde3922c1750b548dbb40", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": " id: str = attr.ib(factory=uuid_util.uuid_v1mc_hex)\n id: str = attr.ib(factory=uuid_util.random_uuid_hex)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/8d5c124debcdcc42ebfdde3922c1750b548dbb40", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 5 ] }, { "input": " id: str = attr.ib(factory=uuid_util.uuid_v1mc_hex)\n id: str = attr.ib(factory=uuid_util.random_uuid_hex)\n self.entry_id = entry_id or uuid_util.uuid_v1mc_hex()\n self.entry_id = entry_id or uuid_util.random_uuid_hex()\n id: str = attr.ib(factory=uuid_util.uuid_v1mc_hex)\n id: str = attr.ib(factory=uuid_util.random_uuid_hex)\n id: str = attr.ib(factory=uuid_util.uuid_v1mc_hex)\n id: str = attr.ib(factory=uuid_util.random_uuid_hex)\ndef uuid_v1mc_hex() -> str:\n \"\"\"Generate a uuid1 with a random multicast MAC address.\ndef random_uuid_hex() -> str:\n \"\"\"Generate a random UUID hex.\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/8d5c124debcdcc42ebfdde3922c1750b548dbb40", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 5 ] }, { "input": "def uuid_v1mc_hex() -> str:\n \"\"\"Generate a uuid1 with a random multicast MAC address.\ndef random_uuid_hex() -> str:\n \"\"\"Generate a random UUID hex.\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/8d5c124debcdcc42ebfdde3922c1750b548dbb40", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " if _need_auth(path) and not request[KEY_AUTHENTICATED]:\n hass = request.app[\"hass\"]\n if _need_auth(hass, path) and not request[KEY_AUTHENTICATED]:\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/a42736e4379c7fc404d8c9588f19167e7240df4f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "def _need_auth(path: str) -> bool:\ndef _need_auth(hass, path: str) -> bool:\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/a42736e4379c7fc404d8c9588f19167e7240df4f", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "from homeassistant.core import State\nfrom homeassistant.core import CoreState, State\nfrom homeassistant.core import State\nfrom homeassistant.core import CoreState, State\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/3880ac0b0daacf8b47c2bf94fb0231d9e2de1bda", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " \"netdisco.ssdp.scan\", return_value=[Mock(st=\"mock-st\", location=None)]\n \"netdisco.ssdp.scan\",\n return_value=[\n Mock(\n st=\"mock-st\",\n location=None,\n values={\"usn\": \"mock-usn\", \"server\": \"mock-server\", \"ext\": \"\"},\n )\n ],\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0049261083743842365, "commit_url": "https://github.com/home-assistant/core/commit/eb0af3752c9ca2c5c6f9dd4148d5808458b3495a", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 10, 11, 12 ] }, { "input": " return_value=[Mock(st=\"mock-st\", location=\"http://1.1.1.1\")],\n return_value=[Mock(st=\"mock-st\", location=\"http://1.1.1.1\", values={})],\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0049261083743842365, "commit_url": "https://github.com/home-assistant/core/commit/eb0af3752c9ca2c5c6f9dd4148d5808458b3495a", "target_edit_idx": 8, "propagatable_edit_idx": [ 6, 9, 10, 11, 12 ] }, { "input": " return_value=[Mock(st=\"mock-st\", location=\"http://1.1.1.1\")],\n return_value=[Mock(st=\"mock-st\", location=\"http://1.1.1.1\", values={})],\n \"netdisco.ssdp.scan\", return_value=[Mock(st=\"mock-st\", location=None)]\n \"netdisco.ssdp.scan\",\n return_value=[\n Mock(\n st=\"mock-st\",\n location=None,\n values={\"usn\": \"mock-usn\", \"server\": \"mock-server\", \"ext\": \"\"},\n )\n ],\n return_value=[Mock(st=\"mock-st\", location=\"http://1.1.1.1\")],\n return_value=[Mock(st=\"mock-st\", location=\"http://1.1.1.1\", values={})],\n return_value=[Mock(st=\"mock-st\", location=\"http://1.1.1.1\")],\n return_value=[Mock(st=\"mock-st\", location=\"http://1.1.1.1\", values={})],\n return_value=[Mock(st=\"mock-st\", location=\"http://1.1.1.1\")],\n return_value=[Mock(st=\"mock-st\", location=\"http://1.1.1.1\", values={})],\n return_value=[Mock(st=\"mock-st\", location=\"http://1.1.1.1\")],\n return_value=[Mock(st=\"mock-st\", location=\"http://1.1.1.1\", values={})],\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0049261083743842365, "commit_url": "https://github.com/home-assistant/core/commit/eb0af3752c9ca2c5c6f9dd4148d5808458b3495a", "target_edit_idx": 11, "propagatable_edit_idx": [ 6, 8, 9, 10, 12 ] }, { "input": " await setup_platform(hass, COVER_DOMAIN, shades(\"name-1\"))\n await setup_platform(\n hass,\n COVER_DOMAIN,\n shades(\"name-1\"),\n bond_version={\"bondid\": \"test-hub-id\"},\n bond_device_id=\"test-device-id\",\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06818181818181818, "commit_url": "https://github.com/home-assistant/core/commit/542c6cce257c33e3f218b101b090efe61e25c519", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 4, 6 ] }, { "input": " assert [key for key in registry.entities] == [\"cover.name_1\"]\n entity = registry.entities[\"cover.name_1\"]\n assert entity.unique_id == \"test-hub-id_test-device-id\"\n assert [key for key in registry.entities] == [\"switch.name_1\"]\n entity = registry.entities[\"switch.name_1\"]\n assert entity.unique_id == \"test-hub-id_test-device-id\"\n assert [key for key in registry.entities] == [\"fan.name_1\"]\n entity = registry.entities[\"fan.name_1\"]\n assert entity.unique_id == \"test-hub-id_test-device-id\"\n assert [key for key in registry.entities] == [\"light.name_1\"]\n entity = registry.entities[\"light.name_1\"]\n assert entity.unique_id == \"test-hub-id_test-device-id\"\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/542c6cce257c33e3f218b101b090efe61e25c519", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 5, 7 ] }, { "input": " await setup_platform(hass, FAN_DOMAIN, ceiling_fan(\"name-1\"))\n await setup_platform(\n hass,\n FAN_DOMAIN,\n ceiling_fan(\"name-1\"),\n bond_version={\"bondid\": \"test-hub-id\"},\n bond_device_id=\"test-device-id\",\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06818181818181818, "commit_url": "https://github.com/home-assistant/core/commit/542c6cce257c33e3f218b101b090efe61e25c519", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 2, 6 ] }, { "input": " await setup_platform(hass, LIGHT_DOMAIN, ceiling_fan(\"name-1\"))\n await setup_platform(\n hass,\n LIGHT_DOMAIN,\n ceiling_fan(\"name-1\"),\n bond_version={\"bondid\": \"test-hub-id\"},\n bond_device_id=\"test-device-id\",\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06818181818181818, "commit_url": "https://github.com/home-assistant/core/commit/542c6cce257c33e3f218b101b090efe61e25c519", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 2, 4 ] }, { "input": " await setup_platform(hass, SWITCH_DOMAIN, generic_device(\"name-1\"))\n await setup_platform(\n hass,\n SWITCH_DOMAIN,\n generic_device(\"name-1\"),\n bond_version={\"bondid\": \"test-hub-id\"},\n bond_device_id=\"test-device-id\",\n )\n await setup_platform(hass, COVER_DOMAIN, shades(\"name-1\"))\n await setup_platform(\n hass,\n COVER_DOMAIN,\n shades(\"name-1\"),\n bond_version={\"bondid\": \"test-hub-id\"},\n bond_device_id=\"test-device-id\",\n )\n await setup_platform(hass, FAN_DOMAIN, ceiling_fan(\"name-1\"))\n await setup_platform(\n hass,\n FAN_DOMAIN,\n ceiling_fan(\"name-1\"),\n bond_version={\"bondid\": \"test-hub-id\"},\n bond_device_id=\"test-device-id\",\n )\n await setup_platform(hass, LIGHT_DOMAIN, ceiling_fan(\"name-1\"))\n await setup_platform(\n hass,\n LIGHT_DOMAIN,\n ceiling_fan(\"name-1\"),\n bond_version={\"bondid\": \"test-hub-id\"},\n bond_device_id=\"test-device-id\",\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06818181818181818, "commit_url": "https://github.com/home-assistant/core/commit/542c6cce257c33e3f218b101b090efe61e25c519", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 4, 6 ] }, { "input": " hass.bus.async_fire(EVENT_TIME_CHANGED, {ATTR_NOW: now})\n hass.bus.async_fire(EVENT_TIME_CHANGED, {ATTR_NOW: now}, context=timer_context)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.017857142857142856, "commit_url": "https://github.com/home-assistant/core/commit/d7811a4adfb7325bee89aeb700d94a1313018225", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " hass.bus.async_fire(EVENT_TIMER_OUT_OF_SYNC, {ATTR_SECONDS: late})\n hass.bus.async_fire(\n EVENT_TIMER_OUT_OF_SYNC, {ATTR_SECONDS: late}, context=timer_context\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.017857142857142856, "commit_url": "https://github.com/home-assistant/core/commit/d7811a4adfb7325bee89aeb700d94a1313018225", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "class CecDevice(Entity):\nclass CecEntity(Entity):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/b784cc011da1e5ed705de0585759bb7263ebf0de", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 5, 6, 8, 9 ] }, { "input": "from . import ATTR_NEW, CecDevice\nfrom . import ATTR_NEW, CecEntity\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/b784cc011da1e5ed705de0585759bb7263ebf0de", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4, 5, 6, 8, 9 ] }, { "input": " entities.append(CecPlayerDevice(hdmi_device, hdmi_device.logical_address))\n entities.append(CecPlayerEntity(hdmi_device, hdmi_device.logical_address))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/b784cc011da1e5ed705de0585759bb7263ebf0de", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "class CecPlayerDevice(CecDevice, MediaPlayerEntity):\nclass CecPlayerEntity(CecEntity, MediaPlayerEntity):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/b784cc011da1e5ed705de0585759bb7263ebf0de", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3, 5, 6, 8, 9 ] }, { "input": " CecDevice.__init__(self, device, logical)\n CecEntity.__init__(self, device, logical)\nclass CecDevice(Entity):\nclass CecEntity(Entity):\nfrom . import ATTR_NEW, CecDevice\nfrom . import ATTR_NEW, CecEntity\nclass CecPlayerDevice(CecDevice, MediaPlayerEntity):\nclass CecPlayerEntity(CecEntity, MediaPlayerEntity):\nfrom . import ATTR_NEW, CecDevice\nfrom . import ATTR_NEW, CecEntity\nclass CecSwitchDevice(CecDevice, SwitchEntity):\nclass CecSwitchEntity(CecEntity, SwitchEntity):\n CecDevice.__init__(self, device, logical)\n CecEntity.__init__(self, device, logical)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/b784cc011da1e5ed705de0585759bb7263ebf0de", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 4, 6, 8, 9 ] }, { "input": " entities.append(CecSwitchDevice(hdmi_device, hdmi_device.logical_address))\n entities.append(CecSwitchEntity(hdmi_device, hdmi_device.logical_address))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/b784cc011da1e5ed705de0585759bb7263ebf0de", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "class CecSwitchDevice(CecDevice, SwitchEntity):\nclass CecSwitchEntity(CecEntity, SwitchEntity):\nclass CecDevice(Entity):\nclass CecEntity(Entity):\nfrom . import ATTR_NEW, CecDevice\nfrom . import ATTR_NEW, CecEntity\nclass CecPlayerDevice(CecDevice, MediaPlayerEntity):\nclass CecPlayerEntity(CecEntity, MediaPlayerEntity):\n CecDevice.__init__(self, device, logical)\n CecEntity.__init__(self, device, logical)\nfrom . import ATTR_NEW, CecDevice\nfrom . import ATTR_NEW, CecEntity\n entities.append(CecSwitchDevice(hdmi_device, hdmi_device.logical_address))\n entities.append(CecSwitchEntity(hdmi_device, hdmi_device.logical_address))\n CecDevice.__init__(self, device, logical)\n CecEntity.__init__(self, device, logical)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/b784cc011da1e5ed705de0585759bb7263ebf0de", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 2, 4, 5, 6, 7, 9 ] }, { "input": " CecDevice.__init__(self, device, logical)\n CecEntity.__init__(self, device, logical)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/b784cc011da1e5ed705de0585759bb7263ebf0de", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 2, 4, 5, 6, 8 ] }, { "input": "class CecSwitchDevice(CecDevice, SwitchEntity):\nclass CecSwitchEntity(CecEntity, SwitchEntity):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/1e8676bf2c19b7ab7703de110539676a2170a11b", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 2, 4, 5, 6, 7, 9 ] }, { "input": "from simplejson import JSONDecodeError\nfrom simplejson import JSONDecodeError\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/90c308a393ef9538630d373e09a5e4d86bfbc36c", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " opt_hash = ctypes.c_size_t(hash(frozenset({\"voice\": \"alex\"}))).value\n opt_hash = tts._hash_options({\"voice\": \"alex\", \"age\": 5})\n opt_hash = ctypes.c_size_t(hash(frozenset({\"voice\": \"alex\"}))).value\n opt_hash = tts._hash_options({\"voice\": \"alex\"})\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/dfac9c5e039e90f85c43bfa93b50f94311721631", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " with patch(\n \"homeassistant.components.homekit.img_util.TurboJPEG\", return_value=False\n ):\n with patch(\"turbojpeg.TurboJPEG\", return_value=False):\n with patch(\n \"homeassistant.components.homekit.img_util.TurboJPEG\", return_value=turbo_jpeg\n ):\n with patch(\"turbojpeg.TurboJPEG\", return_value=turbo_jpeg):\n with patch(\n \"homeassistant.components.homekit.img_util.TurboJPEG\", return_value=turbo_jpeg\n ):\n with patch(\"turbojpeg.TurboJPEG\", return_value=turbo_jpeg):\n with patch(\n \"homeassistant.components.homekit.img_util.TurboJPEG\", return_value=turbo_jpeg\n ):\n with patch(\"turbojpeg.TurboJPEG\", return_value=turbo_jpeg):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/f452e262694adba62bf4e976a407e45da5074637", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 7 ] }, { "input": " for loaded, translations in loaded_translations.items():\n for loaded, loaded_translation in loaded_translations.items():\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/ed4441a1c2d186875caee02a44990423e247cb1e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " if \"title\" not in translations:\n translations[\"title\"] = integrations[loaded].name\n if \"title\" not in loaded_translation:\n loaded_translation[\"title\"] = integrations[loaded].name\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/ed4441a1c2d186875caee02a44990423e247cb1e", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "from homeassistant.helpers.dispatcher import async_dispatcher_connect, dispatcher_send\nfrom homeassistant.helpers.dispatcher import (\n async_dispatcher_connect,\n async_dispatcher_send,\n)\nfrom homeassistant.helpers.dispatcher import async_dispatcher_send, dispatcher_send\nfrom homeassistant.core import callback\nfrom homeassistant.helpers.dispatcher import async_dispatcher_send\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/d92d74a14f1d6a61b48051224d1407443cb26547", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " dispatcher_send(\n async_dispatcher_send(\n dispatcher_send(\n async_dispatcher_send(\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d92d74a14f1d6a61b48051224d1407443cb26547", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " def refresh_entity(self, machine_identifier, device, session):\n @callback\n def async_refresh_entity(self, machine_identifier, device, session):\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/d92d74a14f1d6a61b48051224d1407443cb26547", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " self.refresh_entity(\n self.async_refresh_entity(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d92d74a14f1d6a61b48051224d1407443cb26547", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " self.refresh_entity(client_id, None, None)\n self.async_refresh_entity(client_id, None, None)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d92d74a14f1d6a61b48051224d1407443cb26547", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " self.refresh_entity(client_id, None, None)\n self.async_refresh_entity(client_id, None, None)\n def refresh_entity(self, machine_identifier, device, session):\n @callback\n def async_refresh_entity(self, machine_identifier, device, session):\n self.refresh_entity(\n self.async_refresh_entity(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/3873b237046bb73436756938345d2817c54062d9", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " entry = Mock()\n entry = Mock(async_setup=Mock(return_value=mock_coro(Mock())))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0029455081001472753, "commit_url": "https://github.com/home-assistant/core/commit/977f1a691612e90e96deab1640005c33b32f6cf9", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " async_setup=CoroutineMock(return_value=True),\n api=Mock(\n config=Mock(\n bridgeid=\"\", mac=\"\", modelid=\"BSB002\", swversion=\"1935144020\"\n )\n ),\n async_setup=CoroutineMock(return_value=True), api=Mock(config=config)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.004411764705882353, "commit_url": "https://github.com/home-assistant/core/commit/977f1a691612e90e96deab1640005c33b32f6cf9", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " hass.states.async_remove(entity_id)\n hass.states.async_remove(entity_id, call.context)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/home-assistant/core/commit/fb22f6c3011d8ab9afb71a287deac08c6a0b23b6", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 10, 3 ] }, { "input": " self.hass.states.async_remove(self.entity_id)\n self.hass.states.async_remove(self.entity_id, context=self._context)\n self.hass.states.async_remove(entity_id)\n self.hass.states.async_remove(entity_id, context=event.context)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.001584786053882726, "commit_url": "https://github.com/home-assistant/core/commit/fb22f6c3011d8ab9afb71a287deac08c6a0b23b6", "target_edit_idx": 7, "propagatable_edit_idx": [ 2 ] }, { "input": " hass.states.async_remove(event.data[\"entity_id\"])\n hass.states.async_remove(event.data[\"entity_id\"], context=event.context)\n assert hass.states.async_remove(\"test.entity\")\n assert hass.states.async_remove(\"test.entity\", context=context)\n hass.states.async_remove(entity.entity_id)\n hass.states.async_remove(entity.entity_id, service.context)\n hass.states.async_remove(entity_id)\n hass.states.async_remove(entity_id, call.context)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/home-assistant/core/commit/fb22f6c3011d8ab9afb71a287deac08c6a0b23b6", "target_edit_idx": 8, "propagatable_edit_idx": [ 10, 3, 4 ] }, { "input": "from . import ATTR_BRIGHTNESS, ATTR_BRIGHTNESS_STEP_PCT, DOMAIN, SUPPORT_BRIGHTNESS\nfrom . import ATTR_BRIGHTNESS_PCT, ATTR_BRIGHTNESS_STEP_PCT, DOMAIN, SUPPORT_BRIGHTNESS\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.012135922330097087, "commit_url": "https://github.com/home-assistant/core/commit/e666485ea9ffd391541ac9d6975a6610b21c8ae9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " vol.Optional(ATTR_BRIGHTNESS): vol.All(\n vol.Optional(ATTR_BRIGHTNESS_PCT): vol.All(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.012135922330097087, "commit_url": "https://github.com/home-assistant/core/commit/e666485ea9ffd391541ac9d6975a6610b21c8ae9", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " elif ATTR_BRIGHTNESS in config:\n data[ATTR_BRIGHTNESS] = config[ATTR_BRIGHTNESS]\n elif ATTR_BRIGHTNESS_PCT in config:\n data[ATTR_BRIGHTNESS_PCT] = config[ATTR_BRIGHTNESS_PCT]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.007281553398058253, "commit_url": "https://github.com/home-assistant/core/commit/e666485ea9ffd391541ac9d6975a6610b21c8ae9", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " vol.Optional(ATTR_BRIGHTNESS): vol.All(\n vol.Optional(ATTR_BRIGHTNESS_PCT): vol.All(\nfrom . import ATTR_BRIGHTNESS, ATTR_BRIGHTNESS_STEP_PCT, DOMAIN, SUPPORT_BRIGHTNESS\nfrom . import ATTR_BRIGHTNESS_PCT, ATTR_BRIGHTNESS_STEP_PCT, DOMAIN, SUPPORT_BRIGHTNESS\n vol.Optional(ATTR_BRIGHTNESS): vol.All(\n vol.Optional(ATTR_BRIGHTNESS_PCT): vol.All(\n elif ATTR_BRIGHTNESS in config:\n data[ATTR_BRIGHTNESS] = config[ATTR_BRIGHTNESS]\n elif ATTR_BRIGHTNESS_PCT in config:\n data[ATTR_BRIGHTNESS_PCT] = config[ATTR_BRIGHTNESS_PCT]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.012135922330097087, "commit_url": "https://github.com/home-assistant/core/commit/e666485ea9ffd391541ac9d6975a6610b21c8ae9", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "async def test_get_image_http(hass, hass_client):\nasync def test_get_image_http(hass, aiohttp_client):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d885853b355d9457c56ce7ac4485510048de39e9", "target_edit_idx": 7, "propagatable_edit_idx": [ 11 ] }, { "input": "async def test_get_image_http_url(hass, hass_client):\nasync def test_get_image_http_remote(hass, aiohttp_client):\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/d885853b355d9457c56ce7ac4485510048de39e9", "target_edit_idx": 11, "propagatable_edit_idx": [ 7 ] }, { "input": " assert len(hass.states.async_all()) == 3\n assert len(hass.states.async_all()) == 4\n assert len(hass.states.async_all()) == 4\n assert \"switch.on_off_relay\" in gateway.deconz_ids\n assert len(hass.states.async_all()) == 5\n", "class": "clone", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/home-assistant/core/commit/59a9ca71ceb99f4b4ab02051d7415335ac244cf7", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " CONF_IS_LOCKED,\n CONF_IS_NOT_LOCKED,\n CONF_IS_NOT_LOCKED,\n CONF_IS_LOCKED,\n CONF_LOCKED,\n CONF_NOT_LOCKED,\n CONF_NOT_LOCKED,\n CONF_LOCKED,\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/80a1084f2d647c177dd507231ce2fc46bdaab955", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "from .const import DATA_LISTENER, DOMAIN, SENSOR_ICONS, TESLA_COMPONENTS\nfrom .const import DATA_LISTENER, DOMAIN, ICONS, TESLA_COMPONENTS\nSENSOR_ICONS = {\nICONS = {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/5ed44297e6de8492f5c851cc5bc4e638b6c47086", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "SENSOR_ICONS = {\nICONS = {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/5ed44297e6de8492f5c851cc5bc4e638b6c47086", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " from haffmpeg.sensor import SensorMotion\n from haffmpeg.sensor import SensorNoise\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/ccb05764b6346184ae30de2c8743ee142a3d732a", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " self.ffmpeg = SensorMotion(manager.binary, hass.loop, self._async_callback)\n self.ffmpeg = ffmpeg_sensor.SensorMotion(\n manager.binary, hass.loop, self._async_callback\n )\n self.ffmpeg = SensorNoise(manager.binary, hass.loop, self._async_callback)\n self.ffmpeg = ffmpeg_sensor.SensorNoise(\n manager.binary, hass.loop, self._async_callback\n )\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/ccb05764b6346184ae30de2c8743ee142a3d732a", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "from homeassistant import config_entries, data_entry_flow\nfrom homeassistant import config_entries\nfrom homeassistant import config_entries, data_entry_flow\nfrom homeassistant import config_entries\nfrom homeassistant import config_entries, data_entry_flow\nfrom homeassistant import config_entries\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/3463cc9cbdc99ac90e6df21dfa9b507bd63279cf", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "class IpmaFlowHandler(data_entry_flow.FlowHandler):\nclass IpmaFlowHandler(config_entries.ConfigFlow):\nclass MetFlowHandler(data_entry_flow.FlowHandler):\nclass MetFlowHandler(config_entries.ConfigFlow):\nclass SmhiFlowHandler(data_entry_flow.FlowHandler):\nclass SmhiFlowHandler(config_entries.ConfigFlow):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.10526315789473684, "commit_url": "https://github.com/home-assistant/core/commit/3463cc9cbdc99ac90e6df21dfa9b507bd63279cf", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "class MetFlowHandler(data_entry_flow.FlowHandler):\nclass MetFlowHandler(config_entries.ConfigFlow):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.10526315789473684, "commit_url": "https://github.com/home-assistant/core/commit/3463cc9cbdc99ac90e6df21dfa9b507bd63279cf", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 5 ] }, { "input": "class SmhiFlowHandler(data_entry_flow.FlowHandler):\nclass SmhiFlowHandler(config_entries.ConfigFlow):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.10526315789473684, "commit_url": "https://github.com/home-assistant/core/commit/3463cc9cbdc99ac90e6df21dfa9b507bd63279cf", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " def _async_remove_device(self, device_id):\n def async_remove_device(self, device_id):\n \"\"\"Remove a device from the device registry.\"\"\"\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d9420c1f7323864394506519d5b6ef492fd81767", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " self._async_remove_device(dev_id)\n self.async_remove_device(dev_id)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/d9420c1f7323864394506519d5b6ef492fd81767", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " \"lightlevel\": 0,\n \"lightlevel\": 1,\n \"lightlevel\": 100,\n \"lightlevel\": 10001,\n \"lightlevel\": 0,\n \"lightlevel\": 1,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/df3ceb8d8744cf1ebbfae21db9a3bc6ce6fe9d1b", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " assert light_level_sensor_1.state == '0'\n assert light_level_sensor_1.state == '1.0'\n assert light_level_sensor_2.state == '100'\n assert light_level_sensor_2.state == '10.0'\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/df3ceb8d8744cf1ebbfae21db9a3bc6ce6fe9d1b", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " self._unsub = async_call_later(self._stream.hass, 300, self._cleanup)\n self._unsub = async_call_later(self._stream.hass, 300, self._timeout)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/1c9b750e36c4141f20b04935840f55a92e902477", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " self._stream.hass, 300, self._cleanup)\n self._stream.hass, 300, self._timeout)\n self._unsub = async_call_later(self._stream.hass, 300, self._cleanup)\n self._unsub = async_call_later(self._stream.hass, 300, self._timeout)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/1c9b750e36c4141f20b04935840f55a92e902477", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "class GeoLocationEvent(Entity):\nclass GeolocationEvent(Entity):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/6d3343e4d1728708f68f711872dd153c75354045", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5, 6, 7, 8, 9, 13 ] }, { "input": "from homeassistant.components.geo_location import GeoLocationEvent\nfrom homeassistant.components.geo_location import GeolocationEvent\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/6d3343e4d1728708f68f711872dd153c75354045", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 5, 6, 7, 8, 9, 13 ] }, { "input": " return DemoGeoLocationEvent(event_name, radius_in_km, latitude,\n return DemoGeolocationEvent(event_name, radius_in_km, latitude,\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/6d3343e4d1728708f68f711872dd153c75354045", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "class DemoGeoLocationEvent(GeoLocationEvent):\nclass DemoGeolocationEvent(GeolocationEvent):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/6d3343e4d1728708f68f711872dd153c75354045", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 13 ] }, { "input": " PLATFORM_SCHEMA, GeoLocationEvent)\n PLATFORM_SCHEMA, GeolocationEvent)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/6d3343e4d1728708f68f711872dd153c75354045", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3, 5, 6, 7, 8, 9, 13 ] }, { "input": "class GeoJsonLocationEvent(GeoLocationEvent):\nclass GeoJsonLocationEvent(GeolocationEvent):\nclass GeoLocationEvent(Entity):\nclass GeolocationEvent(Entity):\nfrom homeassistant.components.geo_location import GeoLocationEvent\nfrom homeassistant.components.geo_location import GeolocationEvent\nclass DemoGeoLocationEvent(GeoLocationEvent):\nclass DemoGeolocationEvent(GeolocationEvent):\n PLATFORM_SCHEMA, GeoLocationEvent)\n PLATFORM_SCHEMA, GeolocationEvent)\n PLATFORM_SCHEMA, GeoLocationEvent)\n PLATFORM_SCHEMA, GeolocationEvent)\nclass NswRuralFireServiceLocationEvent(GeoLocationEvent):\nclass NswRuralFireServiceLocationEvent(GeolocationEvent):\n PLATFORM_SCHEMA, GeoLocationEvent)\n PLATFORM_SCHEMA, GeolocationEvent)\nclass UsgsEarthquakesEvent(GeoLocationEvent):\nclass UsgsEarthquakesEvent(GeolocationEvent):\nfrom homeassistant.components.geo_location import GeoLocationEvent\nfrom homeassistant.components.geo_location import GeolocationEvent\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/6d3343e4d1728708f68f711872dd153c75354045", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 3, 4, 6, 7, 8, 9, 13 ] }, { "input": "class NswRuralFireServiceLocationEvent(GeoLocationEvent):\nclass NswRuralFireServiceLocationEvent(GeolocationEvent):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/6d3343e4d1728708f68f711872dd153c75354045", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 8, 9, 13 ] }, { "input": " data['namespace'], data['name'], name)\n data['request']['namespace'],\n data['request']['name'], name)\n data['namespace'], data['name'])\n data['request']['namespace'], data['request']['name'])\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/a66db5935901c96549423352fc8818c20c49dc6e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " }),\n ha.Event(EVENT_ALEXA_SMART_HOME, {\n }}),\n ha.Event(EVENT_ALEXA_SMART_HOME, {'request': {\n }),\n ha.Event(EVENT_ALEXA_SMART_HOME, {\n }}),\n ha.Event(EVENT_ALEXA_SMART_HOME, {'request': {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/home-assistant/core/commit/a66db5935901c96549423352fc8818c20c49dc6e", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " super().__init__(hass, config)\n super().__init__(config)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/19514ea500c444d11ed05879c7da734b16143d2a", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " super().__init__(hass, device_info)\n super().__init__(device_info)\n super().__init__(hass, config)\n super().__init__(config)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/19514ea500c444d11ed05879c7da734b16143d2a", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " password, recipient, debug):\n password, recipients, debug):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/89164d0244028e965bb12d239f03f85deadd5881", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " self.recipient = recipient\n self.recipients = recipients\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/89164d0244028e965bb12d239f03f85deadd5881", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " mail.sendmail(self._sender, self.recipient,\n mail.sendmail(self._sender, self.recipients,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/89164d0244028e965bb12d239f03f85deadd5881", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "from homeassistant.const import (STATE_OFF, STATE_ON)\nfrom homeassistant.const import (STATE_OFF, STATE_ON)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/dcbc0b490cb305f8aa0beb121bdc0dbefe21b022", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " self._state = STATE_ON\n self._state = True\n self._state = STATE_OFF\n self._state = False\n self._state = STATE_ON\n self._state = True\n self._state = STATE_OFF\n self._state = False\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/dcbc0b490cb305f8aa0beb121bdc0dbefe21b022", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4, 5 ] }, { "input": "def async_setup_platform(hass, config, add_devices, discovery_info=None):\ndef async_setup_platform(hass, config, async_add_devices, discovery_info=None):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/754e93ff6ae11c9457ec98bf665dc24bdccf5639", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " hass.loop.create_task(add_devices(sensors))\n hass.loop.create_task(async_add_devices(sensors))\ndef async_setup_platform(hass, config, add_devices, discovery_info=None):\ndef async_setup_platform(hass, config, async_add_devices, discovery_info=None):\ndef async_setup_platform(hass, config, add_devices, discovery_info=None):\ndef async_setup_platform(hass, config, async_add_devices, discovery_info=None):\n hass.loop.create_task(add_devices(sensors))\n hass.loop.create_task(async_add_devices(sensors))\ndef async_setup_platform(hass, config, add_devices, discovery_info=None):\ndef async_setup_platform(hass, config, async_add_devices, discovery_info=None):\n hass.loop.create_task(add_devices(switches))\n hass.loop.create_task(async_add_devices(switches))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/754e93ff6ae11c9457ec98bf665dc24bdccf5639", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5 ] }, { "input": " hass.loop.create_task(add_devices(sensors))\n hass.loop.create_task(async_add_devices(sensors))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/754e93ff6ae11c9457ec98bf665dc24bdccf5639", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5 ] }, { "input": " hass.loop.create_task(add_devices(switches))\n hass.loop.create_task(async_add_devices(switches))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/754e93ff6ae11c9457ec98bf665dc24bdccf5639", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4 ] }, { "input": "DEPENDENCIES = ['tellduslive']\nDEPENDENCIES = ['tellduslive']\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/c2d72bbf09a465e22f36f040e2a80d65fd67559f", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " if self._corr_factor is not None \\\n and self._decimal_places is not None:\n return round((float(values['value']) *\n float(self._corr_factor)), self._decimal_places)\n elif self._corr_factor is not None \\\n and self._decimal_places is None:\n return round(float(values['value']) * float(self._corr_factor))\n else:\n return values['value']\n value = values['value']\n if self._corr_factor is not None:\n value = float(value) * float(self._corr_factor)\n if self._decimal_places is not None:\n value = round(value, self._decimal_places)\n return value\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.05357142857142857, "commit_url": "https://github.com/home-assistant/core/commit/d84bea3621e55fbb76b5b89ffa0c22f527ed2434", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " if self._corr_factor is not None \\\n and self._decimal_places is not None:\n self._state = round(\n (float(value) *\n float(self._corr_factor)),\n self._decimal_places)\n elif self._corr_factor is not None \\\n and self._decimal_places is None:\n self._state = round(float(value) *\n float(self._corr_factor))\n else:\n self._state = value\n if self._corr_factor is not None:\n value = float(value) * float(self._corr_factor)\n if self._decimal_places is not None:\n value = round(value, self._decimal_places)\n self._state = value\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.03636363636363636, "commit_url": "https://github.com/home-assistant/core/commit/d84bea3621e55fbb76b5b89ffa0c22f527ed2434", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " enable_logging(hass, verbose, daemon)\n enable_logging(hass, verbose, daemon, log_rotate_days)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/2e636f598eaa79f3634bed0981332b70840342be", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "def enable_logging(hass, verbose=False, daemon=False):\ndef enable_logging(hass, verbose=False, daemon=False, log_rotate_days=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/home-assistant/core/commit/2e636f598eaa79f3634bed0981332b70840342be", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 7 ] }, { "input": "from common import (\nfrom tests.common import (\nfrom common import (\nfrom tests.common import (\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/home-assistant/core/commit/df3ee6005a0dffd7c7e71455bb907ce7a86f44f1", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "from common import get_test_home_assistant\nfrom tests.common import get_test_home_assistant\nfrom common import get_test_home_assistant\nfrom tests.common import get_test_home_assistant\nfrom common import get_test_home_assistant\nfrom tests.common import get_test_home_assistant\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/home-assistant/core/commit/df3ee6005a0dffd7c7e71455bb907ce7a86f44f1", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " type = event_data['type']\n event_type = event_data['type']\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/7e9a254d878007c9905227cdc9f242b4533c32c6", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " if type in ('time'):\n if event_type in ('time'):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/home-assistant/core/commit/7e9a254d878007c9905227cdc9f242b4533c32c6", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " # print '%s, %s, %s vs %s, %s, %s' % (e1, v1, r1, e2, v2, r2)\n # print '%s, %s, %s vs %s, %s, %s = %s' % (e1, v1, r1, e2, v2, r2, rc)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/3d6a60b481befeb783fc5a2879f88f2e71f5d8e5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " report_locale()\n report_locale(isinstance(config, TestConfig) and not config.delegate)\ndef report_locale() -> None:\ndef report_locale(show_warning: bool) -> None:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/8367af9cdd734f67c7a8f997213cb4f84095b85a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "def report_locale() -> None:\ndef report_locale(show_warning: bool) -> None:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/8367af9cdd734f67c7a8f997213cb4f84095b85a", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " self._connection = get_resource_connection(module)\n self.state = module.params['state']\n self._connection = None\n\n if self.state not in ['rendered', 'parsed']:\n self._connection = get_resource_connection(module) self._connection = get_resource_connection(module)\n self._connection = None\n if module.params.get('state') not in ['rendered', 'parsed']:\n self._connection = get_resource_connection(module)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/4352e39989d95787b416e135aed4f10a3342caf8", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "def find_datastore_by_name(content, datastore_name):\n return find_object_by_name(content, datastore_name, [vim.Datastore])\ndef find_datastore_by_name(content, datastore_name, datacenter_name=None):\n return find_object_by_name(content, datastore_name, [vim.Datastore], datacenter_name)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/ansible/ansible/commit/dc59880c31ee894f6545bdef25acbc792b9c1a9c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " def find_datastore_by_name(self, datastore_name):\n def find_datastore_by_name(self, datastore_name, datacenter_name=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ansible/ansible/commit/dc59880c31ee894f6545bdef25acbc792b9c1a9c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " return find_datastore_by_name(self.content, datastore_name=datastore_name)\n return find_datastore_by_name(self.content, datastore_name=datastore_name, datacenter_name=datacenter_name)\ndef find_datastore_by_name(content, datastore_name):\n return find_object_by_name(content, datastore_name, [vim.Datastore])\ndef find_datastore_by_name(content, datastore_name, datacenter_name=None):\n return find_object_by_name(content, datastore_name, [vim.Datastore], datacenter_name)\n def find_datastore_by_name(self, datastore_name):\n def find_datastore_by_name(self, datastore_name, datacenter_name=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/ansible/ansible/commit/dc59880c31ee894f6545bdef25acbc792b9c1a9c", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " conn_params = get_conn_params(module, module.params)\n conn_params = get_conn_params(module, module.params, warn_db_default=False)\n conn_params = get_conn_params(module, module.params)\n conn_params = get_conn_params(module, module.params, warn_db_default=False)\n conn_params = get_conn_params(module, module.params)\n # When slot_type is logical and parameter db is not passed,\n # the default database will be used to create the slot and\n # the user should know about this.\n # When the slot type is physical,\n # it doesn't matter which database will be used\n # because physical slots are global objects.\n if slot_type == 'logical':\n warn_db_default = True\n else:\n warn_db_default = False\n\n conn_params = get_conn_params(module, module.params, warn_db_default=warn_db_default)\n conn_params = get_conn_params(module, module.params)\n conn_params = get_conn_params(module, module.params, warn_db_default=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09375, "commit_url": "https://github.com/ansible/ansible/commit/d2cc9f5f06816935747638f5b4019b84d5932a51", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " conn_params = get_conn_params(module, module.params)\n # When slot_type is logical and parameter db is not passed,\n # the default database will be used to create the slot and\n # the user should know about this.\n # When the slot type is physical,\n # it doesn't matter which database will be used\n # because physical slots are global objects.\n if slot_type == 'logical':\n warn_db_default = True\n else:\n warn_db_default = False\n\n conn_params = get_conn_params(module, module.params, warn_db_default=warn_db_default)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09375, "commit_url": "https://github.com/ansible/ansible/commit/d2cc9f5f06816935747638f5b4019b84d5932a51", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " if not os.path.exists(filename):\n b_filename = to_bytes(filename, errors='surrogate_or_strict')\n\n if not os.path.exists(b_filename):\n if os.path.isdir(filename):\n if os.path.isdir(b_filename):\n infile = open(os.path.realpath(filename), 'rb')\n infile = open(os.path.realpath(b_filename), 'rb')\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/ansible/ansible/commit/56418cc274cc2ac853abbc39caff431af23c6cc8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " if os.path.isdir(filename):\n if os.path.isdir(b_filename):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/ansible/ansible/commit/56418cc274cc2ac853abbc39caff431af23c6cc8", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " previous_mtime = os.stat(path).st_mtime\n previous_atime = os.stat(path).st_atime\n previous_mtime = os.stat(b_path).st_mtime\n previous_atime = os.stat(b_path).st_atime\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/ansible/ansible/commit/56418cc274cc2ac853abbc39caff431af23c6cc8", "target_edit_idx": 6, "propagatable_edit_idx": [ 5, 7 ] }, { "input": "- module: aci_tenant\n- module: aci_tenant\n", "class": "clone", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/ansible/ansible/commit/2561fd700096ba83a6880c988fdcb89a91575235", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " timeout=self._play_context.timeout,\n timeout=self.get_option('persistent_connect_timeout'),\n timeout=obj._play_context.timeout\n timeout=obj.get_option('persistent_connect_timeout')\n timeout=obj._play_context.timeout\n timeout=obj.get_option('persistent_connect_timeout')\n timeout=obj._play_context.timeout\n timeout=obj.get_option('persistent_connect_timeout')\n timeout=obj._play_context.timeout\n timeout=obj.get_option('persistent_connect_timeout')\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/ansible/ansible/commit/f547c88adec71b8822cfd30df1a5850bdc778c02", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " if not selinux.is_selinux_enabled():\n ignore_selinux_state = module.params['ignore_selinux_state']\n\n if not get_runtime_status(ignore_selinux_state):\n if not selinux.is_selinux_enabled():\n ignore_selinux_state = module.params['ignore_selinux_state']\n\n if not get_runtime_status(ignore_selinux_state):\n if not selinux.is_selinux_enabled():\n ignore_selinux_state = module.params['ignore_selinux_state']\n\n if not get_runtime_status(ignore_selinux_state):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/04b381b28afb6b5d624c0f712e48a4c355101f64", "target_edit_idx": 3, "propagatable_edit_idx": [ 11, 7 ] }, { "input": " pod_labels = {} if not pod.metadata.labels else pod.metadata.labels\n pod_annotations = {} if not pod.metadata.annotations else pod.metadata.annotations\n pod_annotations = {} if not pod.metadata.annotations else dict(pod.metadata.annotations)\n route_labels = {} if not route.metadata.labels else route.metadata.labels\n route_annotations = {} if not route.metadata.annotations else route.metadata.annotations\n route_annotations = {} if not route.metadata.annotations else dict(route.metadata.annotations)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/15d46ce4284b2759a80523c4896c8e7d70b4d25d", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " section: defaults\n key: private_key_file\n - section: defaults\n key: private_key_file\n section: defaults\n key: private_key_file\n - section: defaults\n key: private_key_file\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ansible/ansible/commit/a5774bd29a93ca4dcdf2626b5dcce44a4c35e6eb", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " section: paramiko_connection\n key: host_key_auto_add\n - section: paramiko_connection\n key: host_key_auto_add\n section: paramiko_connection\n key: host_key_auto_add\n - section: paramiko_connection\n key: host_key_auto_add\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ansible/ansible/commit/a5774bd29a93ca4dcdf2626b5dcce44a4c35e6eb", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " section: privilege_escalation\n key: become\n - section: privilege_escalation\n key: become\n section: privilege_escalation\n key: become_method\n - section: privilege_escalation\n key: become_method\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/a5774bd29a93ca4dcdf2626b5dcce44a4c35e6eb", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " out = connection.get(command, prompt, answer)\n try:\n out = connection.get(command, prompt, answer)\n except ConnectionError as exc:\n module.fail_json(msg=to_text(exc))\n out = connection.get(command, prompt, answer)\n try:\n out = connection.get(command, prompt, answer)\n except ConnectionError as exc:\n module.fail_json(msg=to_text(exc))\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ansible/ansible/commit/50e776877dc23c802f44dde5195bec52f08f0b84", "target_edit_idx": 0, "propagatable_edit_idx": [ 13 ] }, { "input": " out = connection.edit_config(commands)\n try:\n out = connection.edit_config(commands)\n except ConnectionError as exc:\n module.fail_json(msg=to_text(exc))\n out = connection.edit_config(commands)\n try:\n out = connection.edit_config(commands)\n except ConnectionError as exc:\n module.fail_json(msg=to_text(exc))\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/ansible/ansible/commit/50e776877dc23c802f44dde5195bec52f08f0b84", "target_edit_idx": 1, "propagatable_edit_idx": [ 14 ] }, { "input": " except ConnectionError as e:\n except ConnectionError as exc:\n out = e\n out = exc\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/50e776877dc23c802f44dde5195bec52f08f0b84", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " out = e\n out = exc\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/50e776877dc23c802f44dde5195bec52f08f0b84", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " ('2.5.0dev1', None, None, 'major_version', '2.5'),\n ('2.5.0.dev1', None, None, 'major_version', '2.5'),\n ('2.5.0dev1', None, None, 'base_version', '2.5.0'),\n ('2.5.0.dev1', None, None, 'base_version', '2.5.0'),\n ('2.5.0dev1', None, None, 'deb_version', '2.5.0~dev1'),\n ('2.5.0.dev1', None, None, 'deb_version', '2.5.0~dev1'),\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ansible/ansible/commit/0c92b113358d7cac91e9d382360c3c3edfa9e052", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " if v.is_prerelease:\n # treat dev as prerelease for now\n if v.is_prerelease or match.group('dev'):\n if v.is_prerelease:\n # treat presence of dev as prerelease for now\n if v.is_prerelease or match.group('dev'):\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ansible/ansible/commit/0c92b113358d7cac91e9d382360c3c3edfa9e052", "target_edit_idx": 8, "propagatable_edit_idx": [ 12 ] }, { "input": " headers={'X-Auth-Token': api_token,\n 'Content-type': 'application/json'},\n headers={'X-Auth-Token': api_token},\n headers={'X-Auth-Token': api_token,\n 'Content-type': 'application/json'},\n headers={'X-Auth-Token': api_token},\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/afc196acf1275d4adb239a52505f42938c1a1449", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " tenant: anstest\n ap: anstest\n epg: anstest\n tenant: accessport-code-cert\n ap: accessport_code_app\n epg: accessport_epg1\n tenant: anstest\n ap: anstest\n epg: anstest\n tenant: accessport-code-cert\n ap: accessport_code_app\n epg: accessport_epg1\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/a7db945ac6afd38f9b3e4285a76ac09ec31deee2", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " protection_group: ansible_test\n protection_group: leafPair101-vpcGrp\n protection_group: ansible_test\n protection_group: leafPair101-vpcGrp\n protection_group: ansible_test\n protection_group: leafPair101-vpcGrp\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/a7db945ac6afd38f9b3e4285a76ac09ec31deee2", "target_edit_idx": 4, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " self.result['url'] = '%(protocol)s://%(hostname)s/' % self.params + path.lstrip('/')\n\n if 'port' in self.params and self.params['port'] is not None:\n self.result['url'] = '%(protocol)s://%(hostname)s:%(port)s/' % self.params + path.lstrip('/')\n else:\n self.result['url'] = '%(protocol)s://%(hostname)s/' % self.params + path.lstrip('/')\n self.result['url'] = '%(protocol)s://%(hostname)s/' % self.params + path.lstrip('/')\n\n if 'port' in self.params and self.params['port'] is not None:\n self.result['url'] = '%(protocol)s://%(hostname)s:%(port)s/' % self.params + path.lstrip('/')\n else:\n self.result['url'] = '%(protocol)s://%(hostname)s/' % self.params + path.lstrip('/')\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ansible/ansible/commit/39aad91c5c2e931215ed597c6b6dd2c7b8bf9457", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "def _get_shebang(interpreter, task_vars, args=tuple()):\ndef _get_shebang(interpreter, task_vars, templar, args=tuple()):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/b4559019042ac9b4621ffb6f4e3e7debead8d1c6", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " shebang, interpreter = _get_shebang(u'/usr/bin/python', task_vars)\n shebang, interpreter = _get_shebang(u'/usr/bin/python', task_vars, templar)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/b4559019042ac9b4621ffb6f4e3e7debead8d1c6", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 6 ] }, { "input": " new_shebang = to_bytes(_get_shebang(interpreter, task_vars, args[1:])[0], errors='surrogate_or_strict', nonstring='passthru')\n new_shebang = to_bytes(_get_shebang(interpreter, task_vars, templar, args[1:])[0], errors='surrogate_or_strict', nonstring='passthru')\ndef _get_shebang(interpreter, task_vars, args=tuple()):\ndef _get_shebang(interpreter, task_vars, templar, args=tuple()):\n shebang, interpreter = _get_shebang(u'/usr/bin/python', task_vars)\n shebang, interpreter = _get_shebang(u'/usr/bin/python', task_vars, templar)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/b4559019042ac9b4621ffb6f4e3e7debead8d1c6", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " 'supported_by': 'certified'}\n 'supported_by': 'core'}\n 'supported_by': 'certified'}\n 'supported_by': 'core'}\n 'supported_by': 'certified'}\n 'supported_by': 'core'}\n 'supported_by': 'certified'}\n 'supported_by': 'core'}\n 'supported_by': 'certified'}\n 'supported_by': 'core'}\n 'supported_by': 'certified'}\n 'supported_by': 'core'}\n 'supported_by': 'certified'}\n 'supported_by': 'core'}\n 'supported_by': 'certified'}\n 'supported_by': 'core'}\n 'supported_by': 'certified'}\n 'supported_by': 'core'}\n 'supported_by': 'certified'}\n 'supported_by': 'core'}\n 'supported_by': 'certified'}\n 'supported_by': 'core'}\n", "class": "clone", "binary_label": 1, "regression_label": 0.9166666666666666, "commit_url": "https://github.com/ansible/ansible/commit/d02bea75d30e820382a45059b3c126ce2d4bcd25", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 6, 7, 8, 9, 10, 11 ] }, { "input": " if assigned_roles and cmp(sorted(assigned_roles), sorted(role_facts[role_key]['assigned_roles'])) != 0:\n if assigned_roles and sorted(assigned_roles) != sorted(role_facts[role_key]['assigned_roles']):\n if assigned_roles and cmp(sorted(assigned_roles), sorted(role_facts[role_key]['assigned_roles'])) != 0:\n if assigned_roles and (sorted(assigned_roles) != sorted(role_facts[role_key]['assigned_roles'])):\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/5240e5a2304c177ff37271aa010fb34907c06cc2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " if cmp(sorted(usage_roles), sorted(schema_facts[schema_key]['usage_roles'])) != 0:\n if sorted(usage_roles) != sorted(schema_facts[schema_key]['usage_roles']):\n if cmp(sorted(create_roles), sorted(schema_facts[schema_key]['create_roles'])) != 0:\n if sorted(create_roles) != sorted(schema_facts[schema_key]['create_roles']):\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/ansible/ansible/commit/5240e5a2304c177ff37271aa010fb34907c06cc2", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " if (roles and (cmp(sorted(roles), sorted(user_facts[user_key]['roles'])) != 0 or\n cmp(sorted(roles), sorted(user_facts[user_key]['default_roles'])) != 0)):\n if roles and (sorted(roles) != sorted(user_facts[user_key]['roles']) or \\\n sorted(roles) != sorted(user_facts[user_key]['default_roles'])):\n if (roles and (cmp(sorted(roles), sorted(user_facts[user_key]['roles'])) != 0 or\n cmp(sorted(roles), sorted(user_facts[user_key]['default_roles'])) != 0)):\n if roles and (sorted(roles) != sorted(user_facts[user_key]['roles']) or \\\n sorted(roles) != sorted(user_facts[user_key]['default_roles'])):\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/5240e5a2304c177ff37271aa010fb34907c06cc2", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "def load_config(module, commands, commit=False, replace=False, comment=None):\ndef load_config(module, commands, warnings, commit=False, replace=False, comment=None):\n load_config(module, commands, not module.check_mode)\n load_config(module, commands, result['warnings'], not module.check_mode)\n diff = load_config(module, commands, not check_mode,\n replace_config, comment)\n diff = load_config(module, commands, result['warnings'],\n not check_mode, replace_config, comment)\n load_config(module, commands, commit=True)\n load_config(module, commands, result['warnings'], commit=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/cc7e09451a14b50ee9d9f0d17bd8ccb3bd5617a1", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " load_config(module, commands, not module.check_mode)\n load_config(module, commands, result['warnings'], not module.check_mode)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/cc7e09451a14b50ee9d9f0d17bd8ccb3bd5617a1", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4 ] }, { "input": " diff = load_config(module, commands, not check_mode,\n replace_config, comment)\n diff = load_config(module, commands, result['warnings'],\n not check_mode, replace_config, comment)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/cc7e09451a14b50ee9d9f0d17bd8ccb3bd5617a1", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": " load_config(module, commands, commit=True)\n load_config(module, commands, result['warnings'], commit=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/cc7e09451a14b50ee9d9f0d17bd8ccb3bd5617a1", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " self.urlopen = open_url # use the ansible provided open_url\n self.urlopen = open_url # use the ansible provided open_url\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/38d1cce5d1e2cee5f91bae537fdbc237867bb26d", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " f = self.urlopen(url, headers=headers)\n f = open_url(url, headers=headers)\n f = self.urlopen(url, headers=headers)\n f = open_url(url, headers=headers)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/38d1cce5d1e2cee5f91bae537fdbc237867bb26d", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " token=dict(required=False)\n token=dict(required=False, no_log=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0003969829297340214, "commit_url": "https://github.com/ansible/ansible/commit/3796e26a9dd6ccb3c929c044f39c6b1bd369e894", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " mgmt_token=dict(required=True),\n mgmt_token=dict(required=True, no_log=True),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0003969829297340214, "commit_url": "https://github.com/ansible/ansible/commit/3796e26a9dd6ccb3c929c044f39c6b1bd369e894", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " token=dict(required=False),\n token=dict(required=False, no_log=True),\n token=dict(required=False)\n token=dict(required=False, no_log=True)\n mgmt_token=dict(required=True),\n mgmt_token=dict(required=True, no_log=True),\n token=dict(required=False, default='anonymous'),\n token=dict(required=False, default='anonymous', no_log=True),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0003969829297340214, "commit_url": "https://github.com/ansible/ansible/commit/3796e26a9dd6ccb3c929c044f39c6b1bd369e894", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " token=dict(required=False, default='anonymous'),\n token=dict(required=False, default='anonymous', no_log=True),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0003969829297340214, "commit_url": "https://github.com/ansible/ansible/commit/3796e26a9dd6ccb3c929c044f39c6b1bd369e894", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " session_id, account = webfaction.login(\n module.params['login_name'],\n module.params['login_password']\n )\n if module.params['machine']:\n session_id, account = webfaction.login(\n module.params['login_name'],\n module.params['login_password'],\n module.params['machine']\n )\n else:\n session_id, account = webfaction.login(\n module.params['login_name'],\n module.params['login_password']\n )\n session_id, account = webfaction.login(\n module.params['login_name'],\n module.params['login_password']\n )\n if module.params['machine']:\n session_id, account = webfaction.login(\n module.params['login_name'],\n module.params['login_password'],\n module.params['machine']\n )\n else:\n session_id, account = webfaction.login(\n module.params['login_name'],\n module.params['login_password']\n )\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ansible/ansible/commit/e57a771860bd4919acccdcc997b9811884816246", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": " session_id, account = webfaction.login(\n module.params['login_name'],\n module.params['login_password']\n )\n if module.params['machine']:\n session_id, account = webfaction.login(\n module.params['login_name'],\n module.params['login_password'],\n module.params['machine']\n )\n else:\n session_id, account = webfaction.login(\n module.params['login_name'],\n module.params['login_password']\n )\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ansible/ansible/commit/e57a771860bd4919acccdcc997b9811884816246", "target_edit_idx": 9, "propagatable_edit_idx": [ 4 ] }, { "input": " login_password=dict(required=True),\n login_password=dict(required=True, no_log=True),\n status=dict(default=\"enabled\"),\n state=dict(default=\"present\"),\n timeout=dict(default=10),\n status=dict(default=\"enabled\", choices=['enabled', 'disabled']),\n state=dict(default=\"present\", choices=['present', 'absent']),\n timeout=dict(type='int', default=10),\n login_password=dict(required=True),\n login_password=dict(required=True, no_log=True),\n state=dict(default=\"present\"),\n timeout=dict(default=10)\n state=dict(default=\"present\", choices=['present', 'absent']),\n timeout=dict(type='int', default=10)\n login_password=dict(required=True),\n timeout=dict(default=10),\n screens=dict(required=True)\n login_password=dict(required=True, no_log=True),\n timeout=dict(type='int', default=10),\n screens=dict(type='dict', required=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0013780431786862655, "commit_url": "https://github.com/ansible/ansible/commit/47eab562802985757835f2a7d804b4a12945fe6a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " login_password=dict(required=True),\n login_password=dict(required=True, no_log=True),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0013780431786862655, "commit_url": "https://github.com/ansible/ansible/commit/47eab562802985757835f2a7d804b4a12945fe6a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": " state=dict(default=\"present\"),\n timeout=dict(default=10)\n state=dict(default=\"present\", choices=['present', 'absent']),\n timeout=dict(type='int', default=10)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0012249272699433472, "commit_url": "https://github.com/ansible/ansible/commit/47eab562802985757835f2a7d804b4a12945fe6a", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4 ] }, { "input": " login_password=dict(required=True),\n timeout=dict(default=10),\n screens=dict(required=True)\n login_password=dict(required=True, no_log=True),\n timeout=dict(type='int', default=10),\n screens=dict(type='dict', required=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0010718113612004287, "commit_url": "https://github.com/ansible/ansible/commit/47eab562802985757835f2a7d804b4a12945fe6a", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " def _get_parent_attribute(self, attr, extend=False):\n def _get_parent_attribute(self, attr, extend=False, prepend=False):\n def _get_parent_attribute(self, attr, extend=False):\n def _get_parent_attribute(self, attr, extend=False, prepend=False):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ansible/ansible/commit/435ca620b2ce98c415f753300668956cf4fb8e9e", "target_edit_idx": 2, "propagatable_edit_idx": [ 9 ] }, { "input": " value = self._extend_value(value, parent_value)\n value = self._extend_value(value, parent_value, prepend)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/435ca620b2ce98c415f753300668956cf4fb8e9e", "target_edit_idx": 3, "propagatable_edit_idx": [ 10, 4, 5, 6 ] }, { "input": " value = self._extend_value(value, dep_value)\n value = self._extend_value(value, dep_value, prepend)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/435ca620b2ce98c415f753300668956cf4fb8e9e", "target_edit_idx": 5, "propagatable_edit_idx": [ 10, 3, 4, 6 ] }, { "input": " inv_file = open(hostsfile)\n first_line = inv_file.readlines()[0]\n inv_file.close()\n if first_line.startswith('#!'):\n shebang_present = True\n with open(hostsfile, 'rb') as inv_file:\n initial_chars = inv_file.read(2)\n if initial_chars.startswith(b'#!'):\n shebang_present = True\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.00641025641025641, "commit_url": "https://github.com/ansible/ansible/commit/23305540b411eeb0edf44d7190ba2675a224cd24", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " if loader:\n (data, private) = loader._get_file_contents(filename)\n else:\n with open(filename) as fh:\n data = to_text(fh.read())\n data = data.split('\\n')\n with open(filename, 'rb') as fh:\n data = fh.read()\n try:\n # Faster to do to_text once on a long string than many\n # times on smaller strings\n data = to_text(data, errors='surrogate_or_strict')\n data = [line for line in data.splitlines() if not (line.startswith(u';') or line.startswith(u'#'))]\n except UnicodeError:\n # Skip comment lines here to avoid potential undecodable\n # errors in comments: https://github.com/ansible/ansible/issues/17593\n data = [to_text(line, errors='surrogate_or_strict') for line in data.splitlines() if not (line.startswith(b';') or line.startswith(b'#'))]\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.00641025641025641, "commit_url": "https://github.com/ansible/ansible/commit/23305540b411eeb0edf44d7190ba2675a224cd24", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " self._winrm_scheme = host_vars.get('ansible_winrm_scheme', 'http' if self._winrm_port == 5985 else 'https')\n self._winrm_path = host_vars.get('ansible_winrm_path', '/wsman')\n self._winrm_scheme = hostvars.get('ansible_winrm_scheme', 'http' if self._winrm_port == 5985 else 'https')\n self._winrm_path = hostvars.get('ansible_winrm_path', '/wsman')\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/ansible/ansible/commit/ece1ed09d51ea43be888b64eea95680a5c300a5b", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": " self._winrm_transport = host_vars.get('ansible_winrm_transport', self._winrm_transport)\n self._winrm_transport = hostvars.get('ansible_winrm_transport', self._winrm_transport)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/ece1ed09d51ea43be888b64eea95680a5c300a5b", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6, 7 ] }, { "input": " passed_winrm_args = set([v.replace('ansible_winrm_', '') for v in host_vars if v.startswith('ansible_winrm_')])\n passed_winrm_args = set([v.replace('ansible_winrm_', '') for v in hostvars if v.startswith('ansible_winrm_')])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/ece1ed09d51ea43be888b64eea95680a5c300a5b", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5, 7 ] }, { "input": " self._winrm_kwargs[arg] = host_vars['ansible_winrm_%s' % arg]\n self._winrm_kwargs[arg] = hostvars['ansible_winrm_%s' % arg]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/ece1ed09d51ea43be888b64eea95680a5c300a5b", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " raise AnsibleOptionsError(\"- the path %s does not exist. Please specify a valid path with --roles-path\" % roles_path)\n raise AnsibleOptionsError(\"- the path %s does not exist. Please specify a valid path with --roles-path\" % role_path)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ansible/ansible/commit/2bf2e0fdfdb7293e28e3bb0543b2d0d14a65169f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " raise AnsibleOptionsError(\"- %s exists, but it is not a directory. Please specify a valid path with --roles-path\" % roles_path)\n raise AnsibleOptionsError(\"- %s exists, but it is not a directory. Please specify a valid path with --roles-path\" % role_path)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ansible/ansible/commit/2bf2e0fdfdb7293e28e3bb0543b2d0d14a65169f", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "def shell_expand(path):\ndef shell_expand(path, expand_relative_paths=False):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ansible/ansible/commit/2bf2e0fdfdb7293e28e3bb0543b2d0d14a65169f", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "def get_config(p, section, key, env_var, default, boolean=False, integer=False, floating=False, islist=False, isnone=False, ispath=False, ispathlist=False, istmppath=False):\ndef get_config(p, section, key, env_var, default, boolean=False, integer=False, floating=False, islist=False, isnone=False, ispath=False, ispathlist=False, istmppath=False, expand_relative_paths=False):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.007575757575757576, "commit_url": "https://github.com/ansible/ansible/commit/2bf2e0fdfdb7293e28e3bb0543b2d0d14a65169f", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " value = [shell_expand(x) for x in value.split(os.pathsep)]\n value = [shell_expand(x, expand_relative_paths=expand_relative_paths) \\\n for x in value.split(os.pathsep)]\ndef shell_expand(path):\ndef shell_expand(path, expand_relative_paths=False):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ansible/ansible/commit/2bf2e0fdfdb7293e28e3bb0543b2d0d14a65169f", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": "DEFAULT_ROLES_PATH = get_config(p, DEFAULTS, 'roles_path', 'ANSIBLE_ROLES_PATH', '/etc/ansible/roles', ispathlist=True)\nDEFAULT_ROLES_PATH = get_config(p, DEFAULTS, 'roles_path', 'ANSIBLE_ROLES_PATH', '/etc/ansible/roles', ispathlist=True, expand_relative_paths=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.007575757575757576, "commit_url": "https://github.com/ansible/ansible/commit/2bf2e0fdfdb7293e28e3bb0543b2d0d14a65169f", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": "from ansible.utils.unicode import to_str\nfrom ansible.utils.unicode import to_unicode\n display.warning(\"Error accessing plugin paths: %s\" % to_str(e))\n display.warning(\"Error accessing plugin paths: %s\" % to_unicode(e))\n display.warning(\"Skipping plugin (%s) as it seems to be invalid: %s\" % (path, to_str(e)))\n display.warning(\"Skipping plugin (%s) as it seems to be invalid: %s\" % (path, to_unicode(e)))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.037037037037037035, "commit_url": "https://github.com/ansible/ansible/commit/54acdd7eadd974148e8bd3ddfb23fadea6a83ce6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " display.warning(\"Error accessing plugin paths: %s\" % to_str(e))\n display.warning(\"Error accessing plugin paths: %s\" % to_unicode(e))\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.037037037037037035, "commit_url": "https://github.com/ansible/ansible/commit/54acdd7eadd974148e8bd3ddfb23fadea6a83ce6", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " display.warning(\"Skipping plugin (%s) as it seems to be invalid: %s\" % (path, to_str(e)))\n display.warning(\"Skipping plugin (%s) as it seems to be invalid: %s\" % (path, to_unicode(e)))\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.037037037037037035, "commit_url": "https://github.com/ansible/ansible/commit/54acdd7eadd974148e8bd3ddfb23fadea6a83ce6", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " return StrategyBase._process_pending_results(self, iterator, one_pass)\n return super(StrategyModule, self)._process_pending_results(iterator, one_pass)\n results = StrategyBase._process_pending_results(self, iterator, one_pass)\n results = super(StrategyModule, self)._process_pending_results(iterator, one_pass)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/54acdd7eadd974148e8bd3ddfb23fadea6a83ce6", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " _changed_when = FieldAttribute(isa='list')\n _changed_when = FieldAttribute(isa='list', default=[])\n _failed_when = FieldAttribute(isa='list')\n _failed_when = FieldAttribute(isa='list', default=[])\n _until = FieldAttribute(isa='list')\n _until = FieldAttribute(isa='list', default=[])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.017094017094017096, "commit_url": "https://github.com/ansible/ansible/commit/ccf646665b1f5175f26706ebb5b5e9fff4e1d20c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " _failed_when = FieldAttribute(isa='list')\n _failed_when = FieldAttribute(isa='list', default=[])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.017094017094017096, "commit_url": "https://github.com/ansible/ansible/commit/ccf646665b1f5175f26706ebb5b5e9fff4e1d20c", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " _until = FieldAttribute(isa='list')\n _until = FieldAttribute(isa='list', default=[])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.017094017094017096, "commit_url": "https://github.com/ansible/ansible/commit/ccf646665b1f5175f26706ebb5b5e9fff4e1d20c", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " if self._task.changed_when is not None:\n if self._task.changed_when:\n if self._task.failed_when is not None:\n if self._task.failed_when:\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/7067bb32b8eb0a6dc53c0278b8452594744a6f13", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " cond.when = [ self._task.changed_when ]\n cond.when = self._task.changed_when\n cond.when = [ self._task.failed_when ]\n cond.when = self._task.failed_when\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/7067bb32b8eb0a6dc53c0278b8452594744a6f13", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " _changed_when = FieldAttribute(isa='string')\n _changed_when = FieldAttribute(isa='list', default=[])\n _failed_when = FieldAttribute(isa='string')\n _failed_when = FieldAttribute(isa='list', default=[])\n _until = FieldAttribute(isa='string')\n _until = FieldAttribute(isa='list', default=[])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.017094017094017096, "commit_url": "https://github.com/ansible/ansible/commit/7067bb32b8eb0a6dc53c0278b8452594744a6f13", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " _until = FieldAttribute(isa='string')\n _until = FieldAttribute(isa='list', default=[])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.017094017094017096, "commit_url": "https://github.com/ansible/ansible/commit/7067bb32b8eb0a6dc53c0278b8452594744a6f13", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " if self._role and (value is None or extend):\n parent_value = getattr(self._role, attr)\n if self._role and (value is None or extend) and hasattr(self._role, attr):\n parent_value = getattr(self._role, attr, None)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.016, "commit_url": "https://github.com/ansible/ansible/commit/07a9a54b0efb8d15bb03fbb3bf6477318d53b8e6", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " dep_value = getattr(dep, attr)\n dep_value = getattr(dep, attr, None)\n if self._role and (value is None or extend):\n parent_value = getattr(self._role, attr)\n if self._role and (value is None or extend) and hasattr(self._role, attr):\n parent_value = getattr(self._role, attr, None)\n\n if self._play and (value is None or extend):\n parent_value = getattr(self._play, attr)\n if self._play and (value is None or extend) and hasattr(self._play, attr):\n parent_value = getattr(self._play, attr, None)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.016, "commit_url": "https://github.com/ansible/ansible/commit/07a9a54b0efb8d15bb03fbb3bf6477318d53b8e6", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\n if self._play and (value is None or extend):\n parent_value = getattr(self._play, attr)\n if self._play and (value is None or extend) and hasattr(self._play, attr):\n parent_value = getattr(self._play, attr, None)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.016, "commit_url": "https://github.com/ansible/ansible/commit/07a9a54b0efb8d15bb03fbb3bf6477318d53b8e6", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " any_errors_fatal = self._attributes['any_errors_fatal']\n if hasattr(self, '_get_parent_attribute'):\n if self._get_parent_attribute('any_errors_fatal'):\n any_errors_fatal = True\n return any_errors_fatal\n return self._get_parent_attribute('any_errors_fatal')\n any_errors_fatal = self._attributes['any_errors_fatal']\n if hasattr(self, '_get_parent_attribute'):\n if self._get_parent_attribute('any_errors_fatal'):\n any_errors_fatal = True\n return any_errors_fatal\n return self._get_parent_attribute('any_errors_fatal')\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/07a9a54b0efb8d15bb03fbb3bf6477318d53b8e6", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " included_files = IncludedFile.process_include_results(host_results, self._tqm, iterator=iterator,\n loader=self._loader, variable_manager=self._variable_manager)\n included_files = IncludedFile.process_include_results(\n host_results,\n self._tqm,\n iterator=iterator,\n inventory=self._inventory,\n loader=self._loader,\n variable_manager=self._variable_manager\n )\n included_files = IncludedFile.process_include_results(host_results, self._tqm,\n iterator=iterator, loader=self._loader, variable_manager=self._variable_manager)\n included_files = IncludedFile.process_include_results(\n host_results,\n self._tqm,\n iterator=iterator,\n inventory=self._inventory,\n loader=self._loader,\n variable_manager=self._variable_manager\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/ansible/ansible/commit/15135f3c16a87f68bede61415f2571097eaa6268", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " # now add the local action flag to the args, if it was set\n if local_action:\n args['_local_action'] = local_action\n\n return (action, args, connection)\n return (action, args, delegate_to) (action, args, connection) = args_parser.parse()\n (action, args, delegate_to) = args_parser.parse()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/101c8785ec1701c685a3b137efe131008d216fa0", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " (action, args, connection) = args_parser.parse()\n (action, args, delegate_to) = args_parser.parse()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/101c8785ec1701c685a3b137efe131008d216fa0", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " raise AnsibleError(\"vars file %s was not found\" % vars_file_item)\n raise AnsibleFileNotFound(\"vars file %s was not found\" % vars_file_item)\n raise AnsibleError(\"The vault password file %s was not found\" % this_path)\n raise AnsibleFileNotFound(\"The vault password file %s was not found\" % this_path)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.0028328611898017, "commit_url": "https://github.com/ansible/ansible/commit/95b371dd60d16f68daab74d408dc0fc03c5db5e0", "target_edit_idx": 6, "propagatable_edit_idx": [ 2 ] }, { "input": " self._fact_cache[host.name] = facts\n self._nonpersistent_fact_cache[host.name] = facts\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/ansible/ansible/commit/56d7f3889d5550ab6dc105bdb48471d29f71446e", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " self._fact_cache[host.name].update(facts)\n self._nonpersistent_fact_cache[host.name].update(facts)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/ansible/ansible/commit/56d7f3889d5550ab6dc105bdb48471d29f71446e", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " CLI.pager_pipe(text, os.environ['PAGER'])\n self.pager_pipe(text, os.environ['PAGER'])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07317073170731707, "commit_url": "https://github.com/ansible/ansible/commit/92e2f54228269a75a12f4612e1d5fe79802adcd9", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 4, 7 ] }, { "input": " CLI.pager_pipe(text, 'less')\n self.pager_pipe(text, 'less')\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07317073170731707, "commit_url": "https://github.com/ansible/ansible/commit/92e2f54228269a75a12f4612e1d5fe79802adcd9", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 3, 7 ] }, { "input": " CLI.pager(self.get_module_list_text())\n self.pager(self.get_module_list_text())\n CLI.pager(text)\n self.pager(text)\n CLI.pager_pipe(text, os.environ['PAGER'])\n self.pager_pipe(text, os.environ['PAGER'])\n CLI.pager_pipe(text, 'less')\n self.pager_pipe(text, 'less')\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07317073170731707, "commit_url": "https://github.com/ansible/ansible/commit/92e2f54228269a75a12f4612e1d5fe79802adcd9", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 3, 4 ] }, { "input": " loop_terms = listify_lookup_plugin_terms(terms=self._task.loop_args, variables=self._job_vars, loader=self._loader)\n loop_terms = listify_lookup_plugin_terms(terms=self._task.loop_args, variables=self._job_vars, loader=self._loader, fail_on_undefined=True)\n intermediate = listify_lookup_plugin_terms(x, variables, loader=self._loader)\n try:\n intermediate = listify_lookup_plugin_terms(x, variables, loader=self._loader, fail_on_undefined=True)\n except UndefinedError, e:\n raise AnsibleUndefinedVariable(\"One of the nested variables was undefined. The error was: %s\" % e)\ndef listify_lookup_plugin_terms(terms, variables, loader):\ndef listify_lookup_plugin_terms(terms, variables, loader, fail_on_undefined=False):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/ansible/ansible/commit/2673eb0afbab40e917ff0d694971e2be48217e7d", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " def __lookup_variabless(self, terms, variables):\n def __lookup_variables(self, terms, variables):\n foo = variables.copy()\n foo.pop('vars')\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/2673eb0afbab40e917ff0d694971e2be48217e7d", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " intermediate = listify_lookup_plugin_terms(x, variables, loader=self._loader)\n try:\n intermediate = listify_lookup_plugin_terms(x, variables, loader=self._loader, fail_on_undefined=True)\n except UndefinedError, e:\n raise AnsibleUndefinedVariable(\"One of the nested variables was undefined. The error was: %s\" % e)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/ansible/ansible/commit/2673eb0afbab40e917ff0d694971e2be48217e7d", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 5 ] }, { "input": " terms = self.__lookup_variabless(terms, variables)\n terms = self.__lookup_variables(terms, variables)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/2673eb0afbab40e917ff0d694971e2be48217e7d", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": "def listify_lookup_plugin_terms(terms, variables, loader):\ndef listify_lookup_plugin_terms(terms, variables, loader, fail_on_undefined=False):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/ansible/ansible/commit/2673eb0afbab40e917ff0d694971e2be48217e7d", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " def set_playbook_basedir(self, dir):\n def set_playbook_basedir(self, dir_name):\n if dir != self._playbook_basedir:\n self._playbook_basedir = dir\n if dir_name != self._playbook_basedir:\n self._playbook_basedir = dir_name\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/4e94bb64d82eeb8756ff54f208f001c1056a12bd", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " if dir != self._playbook_basedir:\n self._playbook_basedir = dir\n if dir_name != self._playbook_basedir:\n self._playbook_basedir = dir_name\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/4e94bb64d82eeb8756ff54f208f001c1056a12bd", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "from ansible.errors import AnsibleError\nfrom ansible.errors import AnsibleError, AnsibleOptionsError\nfrom ansible.errors import AnsibleError\nfrom ansible.errors import AnsibleError, AnsibleOptionsError\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/47be5b416658ef1474aee89873fbd72622f83777", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "AWS_REGIONS = [\n 'ap-northeast-1',\n 'ap-southeast-1',\n 'ap-southeast-2',\n 'cn-north-1',\n 'eu-central-1',\n 'eu-west-1',\n 'eu-central-1',\n 'sa-east-1',\n 'us-east-1',\n 'us-west-1',\n 'us-west-2',\n 'us-gov-west-1',\n]\nAWS_REGIONS = [\n 'ap-northeast-1',\n 'ap-southeast-1',\n 'ap-southeast-2',\n 'cn-north-1',\n 'eu-central-1',\n 'eu-west-1',\n 'eu-central-1',\n 'sa-east-1',\n 'us-east-1',\n 'us-west-1',\n 'us-west-2',\n 'us-gov-west-1',\n]\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/4903bca0c16dda7908d27b5c0d86213a38e7ac23", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " region=dict(aliases=['aws_region', 'ec2_region'], choices=AWS_REGIONS),\n region=dict(aliases=['aws_region', 'ec2_region']),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0011695906432748538, "commit_url": "https://github.com/ansible/ansible/commit/4903bca0c16dda7908d27b5c0d86213a38e7ac23", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " raise StandardError(\"Region %s does not seem to be available for aws module %s. If the region definitely exists, you may need to upgrade boto\" % (region, aws_module.__name__))\n raise StandardError(\"Region %s does not seem to be available for aws module %s. If the region definitely exists, you may need to upgrade boto or extend with endpoints_path\" % (region, aws_module.__name__))\n raise StandardError(\"Region %s does not seem to be available for aws module %s. If the region definitely exists, you may need to upgrade boto\" % (region, aws_module.__name__))\n raise StandardError(\"Region %s does not seem to be available for aws module %s. If the region definitely exists, you may need to upgrade boto or extend with endpoints_path\" % (region, aws_module.__name__))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/4903bca0c16dda7908d27b5c0d86213a38e7ac23", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " region=dict(aliases=['aws_region', 'ec2_region'], choices=AWS_REGIONS),\n region=dict(aliases=['aws_region', 'ec2_region']),\n region=dict(aliases=['aws_region', 'ec2_region'], choices=AWS_REGIONS),\n region=dict(aliases=['aws_region', 'ec2_region']),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0011695906432748538, "commit_url": "https://github.com/ansible/ansible/commit/4903bca0c16dda7908d27b5c0d86213a38e7ac23", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": " verify=dict(default=True),\n verify=dict(default=True, aliases=['validate_certs']),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0011695906432748538, "commit_url": "https://github.com/ansible/ansible/commit/87c99b46758dcdca3ccb2daed72a85b7175036a8", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " temp_vars = utils.merge_hash(self.vars, self.vars_file_vars)\n temp_vars = utils.merge_hash(temp_vars, self.playbook.extra_vars)\n temp_vars = utils.combine_vars(self.vars, self.vars_file_vars)\n temp_vars = utils.combine_vars(temp_vars, self.playbook.extra_vars)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/ce764063f14fdd1a664002e2dad02c10eec24f59", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " temp_vars = utils.merge_hash(self.vars, self.vars_file_vars)\n temp_vars = utils.merge_hash(temp_vars, mv)\n temp_vars = utils.merge_hash(temp_vars, self.playbook.extra_vars)\n temp_vars = utils.combine_vars(self.vars, self.vars_file_vars)\n temp_vars = utils.combine_vars(temp_vars, mv)\n temp_vars = utils.combine_Vars(temp_vars, self.playbook.extra_vars)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/ansible/ansible/commit/ce764063f14fdd1a664002e2dad02c10eec24f59", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " return utils.merge_hash(combined_cache, self.vars_cache)\n return utils.combine_vars(combined_cache, self.vars_cache)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/ansible/ansible/commit/ce764063f14fdd1a664002e2dad02c10eec24f59", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " vars['playbook_dir'] = self.basedir\n vars['playbook_dir'] = os.path.abspath(self.basedir)\n load_vars['playbook_dir'] = self.basedir\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/fc7859f4453157363420d36553ce5b4e156f92c9", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " def playbook_on_play_start(self, pattern):\n def playbook_on_play_start(self, name):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/afbc7f8a0f344c0f82d07709a0da9f353c47f54a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " (self.playbook_name, pattern))\n (self.playbook_name, name))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/afbc7f8a0f344c0f82d07709a0da9f353c47f54a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " def playbook_on_play_start(self, pattern):\n say(\"Starting play: %s\" % pattern, HAPPY_VOICE)\n def playbook_on_play_start(self, name):\n say(\"Starting play: %s\" % name, HAPPY_VOICE)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ansible/ansible/commit/afbc7f8a0f344c0f82d07709a0da9f353c47f54a", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port)\n return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=self.complex_args)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/76f3351b02dbdb2795c10d165de4aa0ba7fc1597", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " result = self._executor_internal_inner(host, self.module_name, self.module_args, inject, port)\n result = self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=self.complex_args)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/76f3351b02dbdb2795c10d165de4aa0ba7fc1597", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " \n if self.module_vars is not None:\n inject.update(self.module_vars)\n \n if self.module_vars is None:\n self.module_vars = {}\n lookup_table = self.module_vars.copy()\n lookup_table.update(inject)\n if self.module_vars is not None:\n inject.update(self.module_vars)\n if self.module_vars is None:\n self.module_vars = {}\n lookup_table = self.module_vars.copy()\n lookup_table.update(inject)\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ansible/ansible/commit/2d06ee4c0de4d4019bdd737c37b8f02d72648b2d", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " source = utils.template(source, inject)\n source = utils.template(source, lookup_table)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ansible/ansible/commit/2d06ee4c0de4d4019bdd737c37b8f02d72648b2d", "target_edit_idx": 1, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " exec_rc = self._execute_module(conn, tmp, module, args, inject=inject)\n exec_rc = self._execute_module(conn, tmp, module, args, inject=lookup_table)\n exec_rc = self._execute_module(conn, tmp, copy_module, args, inject=inject)\n exec_rc = self._execute_module(conn, tmp, copy_module, args, inject=lookup_table)\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ansible/ansible/commit/2d06ee4c0de4d4019bdd737c37b8f02d72648b2d", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " source = utils.template(source, inject)\n source = utils.template(source, lookup_table)\n source = utils.template(source, inject)\n source = utils.template(source, lookup_table)\n resultant = utils.template_from_file(self.basedir, source, inject)\n resultant = utils.template_from_file(self.basedir, source, lookup_table)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/ansible/ansible/commit/2d06ee4c0de4d4019bdd737c37b8f02d72648b2d", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 6 ] }, { "input": " resultant = utils.template_from_file(self.basedir, source, inject)\n resultant = utils.template_from_file(self.basedir, source, lookup_table)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/ansible/ansible/commit/2d06ee4c0de4d4019bdd737c37b8f02d72648b2d", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 5 ] }, { "input": " return self._executor_internal_inner(host)\n return self._executor_internal_inner(host, inject, port)\n self.module_vars['item'] = x\n result = self._executor_internal_inner(host)\n inject['item'] = x\n result = self._executor_internal_inner(host, inject, port)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/8bb8314d10942681cf40779e1cfc4f789e3e7e32", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " included = utils.template_from_file(path, inject_vars)\n included = utils.template_from_file(path, inject_vars, SETUP_CACHE)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ansible/ansible/commit/fa2aebc8a64a6b95d751e902f0dc9e2ca54d0da3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " def check_reexec(self, option):\n def check_add_python_opts(self, option):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/91fb8daa2494df4dd6a841ca8c742a03175c7ecd", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": " self.check_reexec(opt)\n self.check_add_python_opts(opt)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/91fb8daa2494df4dd6a841ca8c742a03175c7ecd", "target_edit_idx": 9, "propagatable_edit_idx": [ 4 ] }, { "input": " exitcode = EXITCODE_BAD_TEST\n exitcode = EXITCODE_RERUN_FAIL\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/python/cpython/commit/1170d5a292b46f754cd29c245a040f1602f70301", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " for builtin, template in [\n tests = [\n for builtin, template in [\n tests = [\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/c6d56135e151a19c79d002cb1f1dbcd1c766c51d", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " (stat.S_IMODE, meth_o),\n (stat.S_IMODE, meth_o),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/c6d56135e151a19c79d002cb1f1dbcd1c766c51d", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " if sysconfig.is_python_build(True):\n if sysconfig.is_python_build():\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.15789473684210525, "commit_url": "https://github.com/python/cpython/commit/a508631b3cf883316cc55e04692f70f1665d49d0", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " if sysconfig.is_python_build(True) or not os.path.isfile(srcfn):\n if sysconfig.is_python_build() or not os.path.isfile(srcfn):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.15789473684210525, "commit_url": "https://github.com/python/cpython/commit/a508631b3cf883316cc55e04692f70f1665d49d0", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " setattr(enum_class, name, getattr(first_enum, name))\n # check for mixin overrides before replacing\n enum_method = getattr(first_enum, name)\n found_method = getattr(enum_class, name)\n object_method = getattr(object, name)\n data_type_method = getattr(member_type, name)\n if found_method in (data_type_method, object_method):\n setattr(enum_class, name, enum_method)\n setattr(enum_class, name, getattr(etype, name))\n # check for mixin overrides before replacing\n enum_method = getattr(etype, name)\n found_method = getattr(enum_class, name)\n object_method = getattr(object, name)\n data_type_method = getattr(member_type, name)\n if found_method in (data_type_method, object_method):\n setattr(enum_class, name, enum_method)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/c961d14f85a0e3e53d5ad1182206ef34030f10b8", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " ENTRY1 = Foo(1)\n ENTRY1 = 1\n self.assertTrue(isinstance(Entries.ENTRY1, Foo))\n self.assertTrue(Entries._member_type_ is Foo, Entries._member_type_)\n self.assertTrue(Entries.ENTRY1.value == Foo(1), Entries.ENTRY1.value)\n ENTRY1 = Foo(1)\n\n ENTRY1 = 1\n #\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/c961d14f85a0e3e53d5ad1182206ef34030f10b8", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " slaveargs = (ns_dict, testname)\n slaveargs = json.dumps(slaveargs)\n worker_args = (ns_dict, testname)\n worker_args = json.dumps(worker_args)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/python/cpython/commit/012f5b968a738b15ae9b40c499a1c0778b0615a9", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 6 ] }, { "input": "def run_tests_slave(slaveargs):\n ns_dict, testname = json.loads(slaveargs)\ndef run_tests_worker(worker_args):\n ns_dict, testname = json.loads(worker_args)\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/python/cpython/commit/012f5b968a738b15ae9b40c499a1c0778b0615a9", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " protocols._feed_data_to_bufferred_proto(self._protocol, data)\n protocols._feed_data_to_buffered_proto(self._protocol, data)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/ff6c07729211fb98431a2793e074d07a21e0650a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": "def _feed_data_to_bufferred_proto(proto, data):\ndef _feed_data_to_buffered_proto(proto, data):\n protocols._feed_data_to_bufferred_proto(self._protocol, data)\n protocols._feed_data_to_buffered_proto(self._protocol, data)\n protocols._feed_data_to_bufferred_proto(\n protocols._feed_data_to_buffered_proto(\n protocols._feed_data_to_bufferred_proto(proto, b'12345')\n protocols._feed_data_to_buffered_proto(proto, b'12345')\n protocols._feed_data_to_bufferred_proto(proto, b'12345')\n protocols._feed_data_to_buffered_proto(proto, b'12345')\n protocols._feed_data_to_bufferred_proto(proto, b'1234')\n protocols._feed_data_to_buffered_proto(proto, b'1234')\n protocols._feed_data_to_bufferred_proto(proto, b'1234')\n protocols._feed_data_to_buffered_proto(proto, b'1234')\n protocols._feed_data_to_bufferred_proto(proto, b'12345')\n protocols._feed_data_to_buffered_proto(proto, b'12345')\n protocols._feed_data_to_bufferred_proto(proto, b'12345')\n protocols._feed_data_to_buffered_proto(proto, b'12345')\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/ff6c07729211fb98431a2793e074d07a21e0650a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " protocols._feed_data_to_bufferred_proto(\n protocols._feed_data_to_buffered_proto(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/ff6c07729211fb98431a2793e074d07a21e0650a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8 ] }, { "input": " if not _is_stream_socket(sock) or not _is_ip_socket(sock):\n if not _is_stream_socket(sock):\n # We allow AF_INET, AF_INET6, AF_UNIX as long as they\n # are SOCK_STREAM.\n # We support passing AF_UNIX sockets even though we have\n # a dedicated API for that: create_unix_connection.\n # Disallowing AF_UNIX in this method, breaks backwards\n # compatibility.\n if not _is_stream_socket(sock) or not _is_ip_socket(sock):\n if not _is_stream_socket(sock):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/dab05847385c14fe76773d30f75f2bdc5b2ab7e3", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " 'A TCP Stream Socket was expected, got {!r}'.format(sock))\n 'A Stream Socket was expected, got {!r}'.format(sock))\n 'A TCP Stream Socket was expected, got {!r}'.format(sock))\n 'A Stream Socket was expected, got {!r}'.format(sock))\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/python/cpython/commit/dab05847385c14fe76773d30f75f2bdc5b2ab7e3", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " @unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'no Unix sockets')\n @unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'no Unix sockets')\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/dab05847385c14fe76773d30f75f2bdc5b2ab7e3", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " sock = socket.socket(socket.AF_UNIX)\n sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.004039238315060588, "commit_url": "https://github.com/python/cpython/commit/dab05847385c14fe76773d30f75f2bdc5b2ab7e3", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " 'A TCP Stream Socket was expected'):\n 'A Stream Socket was expected'):\n 'A TCP Stream Socket was expected'):\n 'A Stream Socket was expected'):\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/python/cpython/commit/dab05847385c14fe76773d30f75f2bdc5b2ab7e3", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": " sock = socket.socket(socket.AF_UNIX)\n sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\n sock = socket.socket(socket.AF_UNIX)\n sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.004039238315060588, "commit_url": "https://github.com/python/cpython/commit/dab05847385c14fe76773d30f75f2bdc5b2ab7e3", "target_edit_idx": 9, "propagatable_edit_idx": [ 6 ] }, { "input": " self.check_executed_tests(output, test, omitted=test)\n self.check_executed_tests(output, test, omitted=test,\n interrupted=True)\n self.check_executed_tests(output, test, omitted=test)\n self.check_executed_tests(output, test,\n omitted=test, interrupted=True)\n\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.07142857142857142, "commit_url": "https://github.com/python/cpython/commit/636860354ee7be4b7bf55dddb0cbb129c989b681", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " self.check_executed_tests(output, test, omitted=test)\n self.check_executed_tests(output, test,\n omitted=test, interrupted=True)\n\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.07142857142857142, "commit_url": "https://github.com/python/cpython/commit/636860354ee7be4b7bf55dddb0cbb129c989b681", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " return [[family, socket.SOCK_STREAM, 6, '', (host, port)]]\n return [(family, socket.SOCK_STREAM, 6, '', (host, port))]\n return [[family, socket.SOCK_STREAM, 6, '', (host, port, 0, 0)]]\n return [(family, socket.SOCK_STREAM, 6, '', (host, port, 0, 0))]\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/e076ffb068ce4e76a7103451c3bef79c2610f791", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " mock_sock.socket().getsockbyname.side_effect = [(host, 80)\n for host in hosts]\n mock_sock.socket().getsockbyname.side_effect = [\n (host, 80) for host in unique_hosts]\n mock_sock.socket().getsockbyname.side_effect = [(host, 80, 0, 0)\n for host in hosts]\n mock_sock.socket().getsockbyname.side_effect = [\n (host, 80, 0, 0) for host in unique_hosts]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/e076ffb068ce4e76a7103451c3bef79c2610f791", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " ''\n % (create_filename, create_lineno))\n ''\n % (filename, lineno, create_filename, create_lineno))\n ''\n % (create_filename, create_lineno))\n ''\n % (filename, lineno, create_filename, create_lineno))\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/python/cpython/commit/1b38bc65ddc337101cf0b1b02c67a9a6742b0438", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " self.loop = loop\n self._loop = loop\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/b28dbac86d3c8ccde7d16c4f2de471eb53a6bffe", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": " self.active_count = 0\n self.waiters = []\n self._active_count = 0\n self._waiters = []\n self.active_count += 1\n self._active_count += 1\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/b28dbac86d3c8ccde7d16c4f2de471eb53a6bffe", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " self.active_count += 1\n self._active_count += 1\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/b28dbac86d3c8ccde7d16c4f2de471eb53a6bffe", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " waiters = self.waiters\n self.waiters = None\n waiters = self._waiters\n self._waiters = None\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/python/cpython/commit/b28dbac86d3c8ccde7d16c4f2de471eb53a6bffe", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " if self.sockets is None or self.waiters is None:\n if self.sockets is None or self._waiters is None:\n waiters = self.waiters\n self.waiters = None\n waiters = self._waiters\n self._waiters = None\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/b28dbac86d3c8ccde7d16c4f2de471eb53a6bffe", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " waiter = futures.Future(loop=self.loop)\n self.waiters.append(waiter)\n waiter = futures.Future(loop=self._loop)\n self._waiters.append(waiter)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/b28dbac86d3c8ccde7d16c4f2de471eb53a6bffe", "target_edit_idx": 8, "propagatable_edit_idx": [ 0 ] }, { "input": " self._server.attach(self)\n self._server._attach()\n self._server.attach(self)\n self._server._attach()\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/b28dbac86d3c8ccde7d16c4f2de471eb53a6bffe", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " server.detach(self)\n server._detach()\n server.detach(self)\n server._detach()\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/b28dbac86d3c8ccde7d16c4f2de471eb53a6bffe", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": " t.cancel()\n self.assertTrue(put_a.done())\n self.assertFalse(put_b.done())\n\n put_c.cancel()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/87f16f892c4a5e96b9e9db3953b1cfc3db51b8f6", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " self.assertTrue(t.done())\n self.assertTrue(put_c.done())\n t.cancel()\n self.assertTrue(put_a.done())\n self.assertFalse(put_b.done())\n\n put_c.cancel()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/87f16f892c4a5e96b9e9db3953b1cfc3db51b8f6", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " rc2, out2, err2 = assert_python_ok('-c', code)\n rc2, out2, err2 = assert_python_ok('-c', code, __isolated=False)\n rc, out, err = assert_python_ok('-m', 'other', *example_args)\n rc, out, err = assert_python_ok('-m', 'other', *example_args,\n __isolated=False)\n rc, out, err = assert_python_ok(*run_args)\n rc, out, err = assert_python_ok(*run_args, __isolated=False)\n rc, out, err = assert_python_ok('-m', 'test_pkg.script', *example_args)\n rc, out, err = assert_python_ok('-m', 'test_pkg.script', *example_args, __isolated=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.03571428571428571, "commit_url": "https://github.com/python/cpython/commit/e8785ff82a1b3227ace7c52979624756d32b393f", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 5, 6 ] }, { "input": " rc, out, err = assert_python_ok(*run_args)\n rc, out, err = assert_python_ok(*run_args, __isolated=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.03571428571428571, "commit_url": "https://github.com/python/cpython/commit/e8785ff82a1b3227ace7c52979624756d32b393f", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 4, 6 ] }, { "input": " rc, out, err = assert_python_ok('-m', 'test_pkg.script', *example_args)\n rc, out, err = assert_python_ok('-m', 'test_pkg.script', *example_args, __isolated=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.03571428571428571, "commit_url": "https://github.com/python/cpython/commit/e8785ff82a1b3227ace7c52979624756d32b393f", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 4, 5 ] }, { "input": " rc, out, err = assert_python_ok('-m', 'other', *example_args)\n rc, out, err = assert_python_ok('-m', 'other', *example_args,\n __isolated=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.03571428571428571, "commit_url": "https://github.com/python/cpython/commit/e8785ff82a1b3227ace7c52979624756d32b393f", "target_edit_idx": 8, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " self._removeTestAtIndex(index)\n if self._cleanup:\n self._removeTestAtIndex(index)\n self._removeTestAtIndex(index)\n if self._cleanup:\n self._removeTestAtIndex(index)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/8913a6c83dd34300f4a13950036b01c0e2cad1b0", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " [\"foo\", \"bar\"]),\n [\"foo\", \"bar\"])\n []),\n [])\n [\"bar\"]),\n [\"bar\"])\n []),\n [])\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/python/cpython/commit/3fa1aaebde6408dcfe169932d35bf922a77e64c9", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5, 7 ] }, { "input": " @property\n def prefixlen(self):\n return self._prefixlen\n\n @property\n def prefixlen(self):\n return self._prefixlen\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/python/cpython/commit/e3ded955f3b145e38be47be61c53ba1ff130f47b", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " return self.readable()\n return self.readable() and self._fp.seekable()\n return self.readable()\n return self.readable() and self._fp.seekable()\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/python/cpython/commit/ae557d767fa0862188a17914eb07b74088ed4d29", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " if not self.seekable():\n if not self.readable():\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/python/cpython/commit/ae557d767fa0862188a17914eb07b74088ed4d29", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " if not self.seekable():\n if not self.readable():\n if not self.seekable():\n if not self.readable():\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/python/cpython/commit/ae557d767fa0862188a17914eb07b74088ed4d29", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": " def _close(self):\n win32.closesocket(self._handle)\n def _close(self, _close=win32.closesocket):\n _close(self._handle)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/71a28a91744b5cf6f881769300818232750de6d2", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " def _close(self):\n os.close(self._handle)\n def _close(self, _close=os.close):\n _close(self._handle)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/71a28a91744b5cf6f881769300818232750de6d2", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " infile = open(fullpath, 'rU')\n infile = open(fullpath)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0010309278350515464, "commit_url": "https://github.com/python/cpython/commit/1e794f66f4503561f651547d08653d8ee3a87c34", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " return open(fullpath, 'rU')\n return open(fullpath)\n infile = open(fullpath, 'rU')\n infile = open(fullpath)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0010309278350515464, "commit_url": "https://github.com/python/cpython/commit/1e794f66f4503561f651547d08653d8ee3a87c34", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " s = smtplib.SMTP()\n s = smtplib.SMTP('localhost')\ns = smtplib.SMTP()\ns = smtplib.SMTP('localhost')\ns = smtplib.SMTP()\ns = smtplib.SMTP('localhost')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.03773584905660377, "commit_url": "https://github.com/python/cpython/commit/bb754b503c617821db907a88ae148e2bb0304d31", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "s = smtplib.SMTP()\ns = smtplib.SMTP('localhost')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.03773584905660377, "commit_url": "https://github.com/python/cpython/commit/bb754b503c617821db907a88ae148e2bb0304d31", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "# Copyright 2001-2010 by Vinay Sajip. All Rights Reserved.\n# Copyright 2001-2011 by Vinay Sajip. All Rights Reserved.\nCopyright (C) 2001-2010 Vinay Sajip. All Rights Reserved.\nCopyright (C) 2001-2011 Vinay Sajip. All Rights Reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.029411764705882353, "commit_url": "https://github.com/python/cpython/commit/399fc14609facd355720dbfa0310ed71e24faedd", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " def path_mtime(self, path:str) -> int:\n def path_mtime(self, path):\n def path_mtime(self, path:str) -> int:\n def path_mtime(self, path):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/cd92f37582865fe7d6ef6477344a7759f839a29e", "target_edit_idx": 0, "propagatable_edit_idx": [ 9 ] }, { "input": " def set_data(self, path:str, data:bytes) -> None:\n def set_data(self, path, data):\n def set_data(self, path:str, data:bytes) -> None:\n def set_data(self, path, data):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/cd92f37582865fe7d6ef6477344a7759f839a29e", "target_edit_idx": 1, "propagatable_edit_idx": [ 10 ] }, { "input": " def source_path(self, fullname:str) -> object:\n def source_path(self, fullname):\n def bytecode_path(self, fullname:str) -> object:\n def bytecode_path(self, fullname):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/cd92f37582865fe7d6ef6477344a7759f839a29e", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": " URL encoded forms should be treated as blank strings.\n percent-encoded forms should be treated as blank strings.\n URL encoded forms should be treated as blank strings.\n percent-encoded forms should be treated as blank strings.\n URL encoded queries should be treated as blank strings.\n percent-encoded queries should be treated as blank strings.\n URL encoded queries should be treated as blank strings. A\n percent-encoded queries should be treated as blank strings. A\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/python/cpython/commit/30e86a47676d2175901af29445aec5bd7967ef76", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 6 ] }, { "input": " sys.__stdout__.flush()\n sys.__stdout__.flush()\n sys.__stdout__.flush()\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/python/cpython/commit/046467cf9a5c0a5699d5a11381470076ae2a1c3d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " return self.parent.open(new)\n return self.parent.open(new, timeout=req.timeout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0625, "commit_url": "https://github.com/python/cpython/commit/428e9d1d05470d1be6d9f4720cb9e163820fa6c8", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": " return self.parent.open(req)\n return self.parent.open(req, timeout=req.timeout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0625, "commit_url": "https://github.com/python/cpython/commit/428e9d1d05470d1be6d9f4720cb9e163820fa6c8", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 5, 7 ] }, { "input": " return self.parent.open(new)\n return self.parent.open(new, timeout=req.timeout)\n resp = self.parent.open(req)\n resp = self.parent.open(req, timeout=req.timeout)\n return self.parent.open(req)\n return self.parent.open(req, timeout=req.timeout)\n return self.parent.open(req)\n return self.parent.open(req, timeout=req.timeout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/python/cpython/commit/fb8cc2f5a4bb55cabc94999360a324a73a0022cd", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": " def __long__(self):\n return int(self._data)\n\n def __long__(self): return int(self.data)\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/python/cpython/commit/c7d484de9bf61ce38cbbe5a071871100cc04c6d4", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " threading.current_thread().get_name())\n threading.current_thread().name)\n threading.current_thread().get_name())\n threading.current_thread().name)\n threading.current_thread().get_name())\n threading.current_thread().name)\n threading.current_thread().get_name())\n threading.current_thread().name)\n threading.current_thread().get_name())\n threading.current_thread().name)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/python/cpython/commit/a9b2222de40ed62e6ec1c79f6a89607913f4babd", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 6, 7 ] }, { "input": " t.set_daemon(True)\n t.daemon = True\n t.set_daemon(True)\n t.daemon = True\n", "class": "clone", "binary_label": 1, "regression_label": 0.15384615384615385, "commit_url": "https://github.com/python/cpython/commit/a9b2222de40ed62e6ec1c79f6a89607913f4babd", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": " patterns = map(convert_path, words[1:])\n patterns = [convert_path(w) for w in words[1:]]\n patterns = map(convert_path, words[2:])\n patterns = [convert_path(w) for w in words[2:]]\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/python/cpython/commit/61cb0873591f9c43c1e10fcbe611c43f943c7c90", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " subclass in cls._abc_negative_cache):\n subtype in cls._abc_negative_cache):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/python/cpython/commit/b9e15f7555ed6596fa0af15f457389827ecab8f6", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " return cls.__subclasscheck__(subclass)\n return cls.__subclasscheck__(subtype)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/python/cpython/commit/b9e15f7555ed6596fa0af15f457389827ecab8f6", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " test_support.rmtree(self.homeDir)\n test_support.rmtree(self.homeDir)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/31e88934ed567f80cdcc671d05862cb58ce61b1b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " sock = socket.create_connection((HOST, PORT), timeout=10)\n self.assertEqual(sock.gettimeout(), 10)\n sock = socket.create_connection((HOST, PORT), timeout=30)\n self.assertEqual(sock.gettimeout(), 30)\n sock = socket.create_connection((HOST, PORT), 10)\n self.assertEqual(sock.gettimeout(), 10)\n sock = socket.create_connection((HOST, PORT), 30)\n self.assertEqual(sock.gettimeout(), 30)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/python/cpython/commit/14553b08a1f93bb4ec8f8c2239ef240f634cc2da", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " self.assertEqual(stat.S_IMODE(st.st_mode), 0632)\n self.assertEqual(stat.S_IMODE(st.st_mode), 0635)\n self.assertEqual(stat.S_IMODE(st.st_mode), 0632)\n self.assertEqual(stat.S_IMODE(st.st_mode), 0635)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/9ef0ef5b729b88491be1d28ab46248b645645c44", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " return open(path)\n return open(path, 'rb')\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/python/cpython/commit/40363b63f02f43e3c9c7442e33e1cb0bf4c25774", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " def popitem(self):\n def pop(self):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/c9196bc88d4ed6bd808635fe7f64893cdb3cc704", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " popped[self.set.popitem()] = None\n popped[self.set.pop()] = None\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/c9196bc88d4ed6bd808635fe7f64893cdb3cc704", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " def _begin(self):\n def begin(self):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/39c03808c753457992dc931e1dd08a65e72a9a8f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": " response._begin()\n response.begin()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/39c03808c753457992dc931e1dd08a65e72a9a8f", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": "resp._begin()\nresp.begin()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/39c03808c753457992dc931e1dd08a65e72a9a8f", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 5 ] }, { "input": " resp._begin()\n resp.begin()\n def _begin(self):\n def begin(self):\n response._begin()\n response.begin()\nresp._begin()\nresp.begin()\nr._begin()\nr.begin()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/39c03808c753457992dc931e1dd08a65e72a9a8f", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": "r._begin()\nr.begin()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/39c03808c753457992dc931e1dd08a65e72a9a8f", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": "def test_main():\ndef main():\ndef test_main():\ndef main():\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/654c11ee3a2c9b72c040524c9cc4f95a1858f20b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "def test_main():\ndef main():\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/654c11ee3a2c9b72c040524c9cc4f95a1858f20b", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " object = object.replace(u\"\\\\\", u\"\\\\u005c\")\n object = object.replace(u\"\\n\", u\"\\\\u000a\")\n object = object.replace(\"\\\\\", \"\\\\u005c\")\n object = object.replace(\"\\n\", \"\\\\u000a\")\n object = object.replace(u\"\\\\\", u\"\\\\u005c\")\n object = object.replace(u\"\\n\", u\"\\\\u000a\")\n object = object.replace(\"\\\\\", \"\\\\u005c\")\n object = object.replace(\"\\n\", \"\\\\u000a\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/dbb718fa8775731666bb9cbc73662fadee41ea8f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " tree = parser.ast2tuple(tree,1)\n tree = parser.ast2tuple(tree, line_info=1)\n tree = parser.ast2tuple(tree,1)\n tree = parser.ast2tuple(tree, line_info=1)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/7845cf8d37f3b1d6cb29cdc9998d1c8b607e251e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " return self._atom_dispatch[nodelist[0][0]](nodelist)\n n = self._atom_dispatch[nodelist[0][0]](nodelist)\n n.lineno = nodelist[0][2]\n return n\n return self._atom_dispatch[nodelist[0][0]](nodelist)\n n = self._atom_dispatch[nodelist[0][0]](nodelist)\n n.lineno = nodelist[0][2]\n return n\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/7845cf8d37f3b1d6cb29cdc9998d1c8b607e251e", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " self._parse_error(\"<\")\n self._parse_error(\"<>\")\n self._parse_error(\"<$\")\n self._parse_error(\"<$>\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/python/cpython/commit/029acfb922bdd25d6e38c864895c6cc66db76d13", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " self.consts.insert(0, doc)\n self.consts.insert(0, doc)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/5af105eec996a86500d0b1e81379308b86ec4e38", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " found = 1\n break\n if found:\n # this is cheap, but incorrect in some cases, e.g 2 vs. 2L\n if type(name) == type(list[i]):\n found = 1\n break\n if found:\n # this is cheap, but incorrect in some cases, e.g 2 vs. 2L\n if type(name) == type(list[i]):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/5af105eec996a86500d0b1e81379308b86ec4e38", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " for i in range(len(list)):\n elt = list[i]\n if type(elt) == type(name) and elt == name:\n return i\n for i in range(len(list)):\n elt = list[i]\n if type(elt) == type(name) and elt == name:\n return i\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/5af105eec996a86500d0b1e81379308b86ec4e38", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": "\ts.connect(host, FINGER_PORT)\n\ts.connect((host, FINGER_PORT))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09375, "commit_url": "https://github.com/python/cpython/commit/a8d30d5d667b32b1b296c0926a0e80709bd6fab3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 6 ] }, { "input": "\ts.connect(hostname, FTP_PORT)\n\ts.connect((hostname, FTP_PORT))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09375, "commit_url": "https://github.com/python/cpython/commit/a8d30d5d667b32b1b296c0926a0e80709bd6fab3", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4, 6 ] }, { "input": "\ts.bind('', port)\n\ts.bind(('', port))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.13333333333333333, "commit_url": "https://github.com/python/cpython/commit/a8d30d5d667b32b1b296c0926a0e80709bd6fab3", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 5, 7 ] }, { "input": "\t\ts.connect(host, port)\n\t\ts.connect((host, port))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09375, "commit_url": "https://github.com/python/cpython/commit/a8d30d5d667b32b1b296c0926a0e80709bd6fab3", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 6 ] }, { "input": "\ts.bind('', 0)\n\ts.bind(('', 0))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.13333333333333333, "commit_url": "https://github.com/python/cpython/commit/a8d30d5d667b32b1b296c0926a0e80709bd6fab3", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 5, 7 ] }, { "input": "\tstop = apply(self.dispatch, (node,) + args)\n if stop:\n return\n for child in node.getChildren():\n if isinstance(child, ast.Node):\n self._preorder(child)\n\n def postorder(self, tree, visitor):\n \"\"\"Do preorder walk of tree using visitor\"\"\"\n self.visitor = visitor\n visitor.visit = self._postorder\n self._postorder(tree)\n\treturn apply(self.dispatch, (node,) + args)\n\tstop = apply(self.dispatch, (node,) + args)\n if stop:\n return\n for child in node.getChildren():\n if isinstance(child, ast.Node):\n self._preorder(child)\n\n def postorder(self, tree, visitor):\n \"\"\"Do preorder walk of tree using visitor\"\"\"\n self.visitor = visitor\n visitor.visit = self._postorder\n self._postorder(tree)\n\treturn apply(self.dispatch, (node,) + args)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/f635abee3a3c56aa614ca4c0edb963ec9747bf82", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": " def _postorder(self, tree, *args):\n def default(self, node, *args):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/f635abee3a3c56aa614ca4c0edb963ec9747bf82", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": " self._postorder(child)\n\tapply(self.dispatch, (node,) + args)\n apply(self._preorder, (child,) + args)\n self._postorder(child)\n\tapply(self.dispatch, (node,) + args)\n apply(self._preorder, (child,) + args)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/f635abee3a3c56aa614ca4c0edb963ec9747bf82", "target_edit_idx": 2, "propagatable_edit_idx": [ 9 ] }, { "input": "\t meth = getattr(self.visitor, 'visit' + className, 0)\n\t meth = getattr(self.visitor, 'visit' + className, self.default)\n\t meth = getattr(self.visitor, 'visit' + className, 0)\n\t meth = getattr(self.visitor, 'visit' + className, self.default)\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/python/cpython/commit/f635abee3a3c56aa614ca4c0edb963ec9747bf82", "target_edit_idx": 3, "propagatable_edit_idx": [ 10 ] }, { "input": " if meth:\n return apply(meth, (node,) + args)\n\treturn apply(meth, (node,) + args)\n if meth:\n return apply(meth, (node,) + args)\n\treturn apply(meth, (node,) + args)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/python/cpython/commit/f635abee3a3c56aa614ca4c0edb963ec9747bf82", "target_edit_idx": 4, "propagatable_edit_idx": [ 11 ] }, { "input": " className = node.__class__.__name__\n meth = getattr(self.visitor, 'visit' + className, None)\n if self.VERBOSE > 0:\n if self.VERBOSE > 1:\n print \"dispatch\", className, (meth and meth.__name__ or '')\n\tmeth = self._cache.get(node.__class__, None)\n\tclassName = node.__class__.__name__\n\tif meth is None:\n\t meth = getattr(self.visitor, 'visit' + className, 0)\n\t self._cache[node.__class__] = meth\n if self.VERBOSE > 1:\n print \"dispatch\", className, (meth and meth.__name__ or '')\n className = node.__class__.__name__\n meth = getattr(self.visitor, 'visit' + className, None)\n if self.VERBOSE > 0:\n if self.VERBOSE > 1:\n print \"dispatch\", className, (meth and meth.__name__ or '')\n\tmeth = self._cache.get(node.__class__, None)\n\tclassName = node.__class__.__name__\n\tif meth is None:\n\t meth = getattr(self.visitor, 'visit' + className, 0)\n\t self._cache[node.__class__] = meth\n if self.VERBOSE > 1:\n print \"dispatch\", className, (meth and meth.__name__ or '')\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/f635abee3a3c56aa614ca4c0edb963ec9747bf82", "target_edit_idx": 5, "propagatable_edit_idx": [ 12 ] }, { "input": " if self.examples.has_key(klass):\n return\n self.examples[klass] = klass\n print\n print klass\n for attr in dir(node):\n if attr[0] != '_':\n print \"\\t\", \"%-12.12s\" % attr, getattr(node, attr)\n print\n if not self.examples.has_key(klass):\n\t\tself.examples[klass] = klass\n\t\tprint\n\t\tprint self.visitor\n\t\tprint klass\n\t\tfor attr in dir(node):\n\t\t if attr[0] != '_':\n\t\t\tprint \"\\t\", \"%-12.12s\" % attr, getattr(node, attr)\n\t\tprint\n\t return apply(self.default, (node,) + args)\n if self.examples.has_key(klass):\n return\n self.examples[klass] = klass\n print\n print klass\n for attr in dir(node):\n if attr[0] != '_':\n print \"\\t\", \"%-12.12s\" % attr, getattr(node, attr)\n print\n if not self.examples.has_key(klass):\n\t\tself.examples[klass] = klass\n\t\tprint\n\t\tprint self.visitor\n\t\tprint klass\n\t\tfor attr in dir(node):\n\t\t if attr[0] != '_':\n\t\t\tprint \"\\t\", \"%-12.12s\" % attr, getattr(node, attr)\n\t\tprint\n\t return apply(self.default, (node,) + args)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/f635abee3a3c56aa614ca4c0edb963ec9747bf82", "target_edit_idx": 6, "propagatable_edit_idx": [ 13 ] }, { "input": " self.argcount = len(args)\n self._getArgCount(args)\n self.argcount = len(args)\n self._getArgCount(args)\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/python/cpython/commit/2ce27b223bfa121351dd885acae0e54292926041", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " 'STORE_ATTR', 'LOAD_ATTR', 'LOAD_NAME', 'DELETE_NAME')\n 'STORE_ATTR', 'LOAD_ATTR', 'LOAD_NAME', 'DELETE_NAME',\n 'DELETE_ATTR')\n 'STORE_ATTR', 'LOAD_ATTR', 'LOAD_NAME', 'DELETE_NAME')\n 'STORE_ATTR', 'LOAD_ATTR', 'LOAD_NAME', 'DELETE_NAME',\n 'DELETE_ATTR')\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/2ce27b223bfa121351dd885acae0e54292926041", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "def gen_preprocess_options (macros, includes):\ndef gen_preprocess_options (macros, include_dirs):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/0bdd90a7e7878f451eb4915b0dc4851fac351cc1", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 5, 6, 7 ] }, { "input": " for dir in includes:\n for dir in include_dirs:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/0bdd90a7e7878f451eb4915b0dc4851fac351cc1", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 6, 7 ] }, { "input": " includes=None,\n include_dirs=None,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/0bdd90a7e7878f451eb4915b0dc4851fac351cc1", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 5, 7 ] }, { "input": " if includes is None:\n includes = []\n if include_dirs is None:\n include_dirs = []\n includes=None,\n include_dirs=None,\ndef gen_preprocess_options (macros, includes):\ndef gen_preprocess_options (macros, include_dirs):\n for dir in includes:\n for dir in include_dirs:\n includes=None,\n include_dirs=None,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/python/cpython/commit/0bdd90a7e7878f451eb4915b0dc4851fac351cc1", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 2, 5, 6 ] }, { "input": "\tdef select_adjust(self, index):\n\t\tself.tk.call(self._w, 'select', 'adjust', index)\n\tdef select_adjust(self, index):\n\t\tself.tk.call(self._w, 'select', 'adjust', index)\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/python/cpython/commit/764d6c7acd078fd0114ee7066561d836879ae0e5", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\tdef __init__(self, master=None, cnf={}):\n\t\tcnf = _cnfmerge(cnf)\n\tdef __init__(self, master=None, **cnf):\n\tdef __init__(self, master=None, cnf={}):\n\t\tcnf = _cnfmerge(cnf)\n\tdef __init__(self, master=None, **cnf):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/053313a507f6cd94521739f679c7b8affb394f09", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tvcnf = {'name': 'vbar',\n\t\t\tPack: {'side': 'right', 'fill': 'y'},}\n\t\tvcnf = {'name': 'vbar',\n\t\t\tPack: {'side': 'right', 'fill': 'y'},}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/053313a507f6cd94521739f679c7b8affb394f09", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tself.frame = Frame(master, fcnf)\n\t\tself.vbar = Scrollbar(self.frame, vcnf)\n\t\tcnf[Pack] = {'side': 'left', 'fill': 'both', 'expand': 'yes'}\n\t\tself.frame = apply(Frame, (master,), fcnf)\n\t\tself.vbar = Scrollbar(self.frame, name='vbar')\n\t\tself.vbar.pack(side=RIGHT, fill=Y)\n\t\tself.frame = Frame(master, fcnf)\n\t\tself.vbar = Scrollbar(self.frame, vcnf)\n\t\tcnf[Pack] = {'side': 'left', 'fill': 'both', 'expand': 'yes'}\n\t\tself.frame = apply(Frame, (master,), fcnf)\n\t\tself.vbar = Scrollbar(self.frame, name='vbar')\n\t\tself.vbar.pack(side=RIGHT, fill=Y)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/053313a507f6cd94521739f679c7b8affb394f09", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tText.__init__(self, self.frame, cnf)\n\t\tself['yscrollcommand'] = (self.vbar, 'set')\n\t\tself.vbar['command'] = (self, 'yview')\n\t\tapply(Text.__init__, (self, self.frame), cnf)\n\t\tself.pack(side=LEFT, fill=BOTH, expand=1)\n\t\tself['yscrollcommand'] = self.vbar.set\n\t\tself.vbar['command'] = self.yview\n\t\tText.__init__(self, self.frame, cnf)\n\t\tself['yscrollcommand'] = (self.vbar, 'set')\n\t\tself.vbar['command'] = (self, 'yview')\n\t\tapply(Text.__init__, (self, self.frame), cnf)\n\t\tself.pack(side=LEFT, fill=BOTH, expand=1)\n\t\tself['yscrollcommand'] = self.vbar.set\n\t\tself.vbar['command'] = self.yview\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/053313a507f6cd94521739f679c7b8affb394f09", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": "def splitfields(s, sep):\ndef splitfields(s, sep=None):\n\tif sep is None: return split(s)\ndef splitfields(s, sep):\ndef splitfields(s, sep=None):\n\tif sep is None: return split(s)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/2ab19920fc0ba6a0054aa4556bef94199aa432fc", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "# Join fields with separator\ndef joinfields(words, sep):\n# Join fields with optional separator\ndef joinfields(words, sep = ' '):\n# Join fields with separator\ndef joinfields(words, sep):\n# Join fields with optional separator\ndef joinfields(words, sep = ' '):\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/2ab19920fc0ba6a0054aa4556bef94199aa432fc", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tself.tk.call(self._w, 'tag', 'lower', \n\t\t\t tagName, belowThis)\n\t\tself.tk.call(self._w, 'tag', 'lower', tagName, belowThis)\n\t\tself.tk.call(self._w, 'tag', 'lower', \n\t\t\t tagName, belowThis)\n\t\tself.tk.call(self._w, 'tag', 'lower', tagName, belowThis)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/97aeca1527002537ae1f5a541fe86d75f7af1bfb", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "def grep(expr, filename):\n\tmatch = regexp.compile(expr).match\ndef grep(pat, filename):\n\treturn ggrep(RE_SYNTAX_GREP, pat, filename)\n\ndef egrep(pat, filename):\n\treturn ggrep(RE_SYNTAX_EGREP, pat, filename)\n\ndef emgrep(pat, filename):\n\treturn ggrep(RE_SYNTAX_EMACS, pat, filename)\n\ndef ggrep(syntax, pat, filename):\n\tsyntax = regex.set_syntax(syntax)\n\ttry:\n\t\tprog = regex.compile(pat)\n\tfinally:\n\t\tsyntax = regex.set_syntax(syntax)\ndef grep(expr, filename):\n\tmatch = regexp.compile(expr).match\ndef grep(pat, filename):\n\treturn ggrep(RE_SYNTAX_GREP, pat, filename)\n\ndef egrep(pat, filename):\n\treturn ggrep(RE_SYNTAX_EGREP, pat, filename)\n\ndef emgrep(pat, filename):\n\treturn ggrep(RE_SYNTAX_EMACS, pat, filename)\n\ndef ggrep(syntax, pat, filename):\n\tsyntax = regex.set_syntax(syntax)\n\ttry:\n\t\tprog = regex.compile(pat)\n\tfinally:\n\t\tsyntax = regex.set_syntax(syntax)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/5fca8a1b0d84a5e42fd572de1b22a1e2fcf46fd8", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tres = match(line)\n\t\tif res:\n\t\t\t#print res\n\t\t\tstart, end = res[0]\n\t\t\tif line[-1:] = '\\n': line = line[:-1]\n\t\tif prog.search(line) >= 0:\n\t\t\tif line[-1:] == '\\n': line = line[:-1]\n\t\tres = match(line)\n\t\tif res:\n\t\t\t#print res\n\t\t\tstart, end = res[0]\n\t\t\tif line[-1:] = '\\n': line = line[:-1]\n\t\tif prog.search(line) >= 0:\n\t\t\tif line[-1:] == '\\n': line = line[:-1]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/5fca8a1b0d84a5e42fd572de1b22a1e2fcf46fd8", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\t\tif start = end: prefix = prefix + '\\\\'\n\t\t\t\tif start == end: prefix = prefix + '\\\\'\n\t\t\t\tif start = end: prefix = prefix + '\\\\'\n\t\t\t\tif start == end: prefix = prefix + '\\\\'\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/python/cpython/commit/5fca8a1b0d84a5e42fd572de1b22a1e2fcf46fd8", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": "\tfor i in range(len(list)):\n\t\tif list[i] = item:\n\t\t\tdel list[i]\n\t\t\tbreak\n\tif item in list: list.remove(item)\n\tfor i in range(len(list)):\n\t\tif list[i] = item:\n\t\t\tdel list[i]\n\t\t\tbreak\n\tif item in list: list.remove(item)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python/cpython/commit/d9d2c8246c238ac95057b082aa64b5db00a398a4", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " model = Functional(inputs, x, name=f\"mobilenet_{alpha:0.2f}_{rows}\")\n if name is None:\n name = f\"mobilenet_{alpha:0.2f}_{rows}\"\n model = Functional(inputs, x, name=name)\n model = Functional(inputs, x, name=f\"mobilenetv2_{alpha:0.2f}_{rows}\")\n if name is None:\n name = f\"mobilenetv2_{alpha:0.2f}_{rows}\"\n model = Functional(inputs, x, name=name)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keras-team/keras/commit/669a97acd05a45e9ea5529fc645e8ac41995eb92", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " batch_outputs = self.predict_function(\n [trainable_variables, non_trainable_variables], x\n )\n batch_outputs, state = self.predict_function(state, x)\n batch_outputs = self.predict_function(\n [trainable_variables, non_trainable_variables], [x]\n )\n state = (trainable_variables, non_trainable_variables)\n batch_outputs, state = self.predict_function(state, [x])\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keras-team/keras/commit/dae8a9b93f0d853e8f89a1d9e36a2bfd0d09f722", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "import tensorflow.compat.v2 as tf\nimport tensorflow.compat.v2 as tf\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/keras-team/keras/commit/09c2eaaf26f301d724125690a38ad404e9a54782", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " tf.keras.models.load_model(save_dir)\n keras.models.load_model(save_dir)\n tf.keras.models.load_model(save_dir)\n keras.models.load_model(save_dir)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/keras-team/keras/commit/09c2eaaf26f301d724125690a38ad404e9a54782", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " _ObservedSummary(logdir=self.train_dir, tag='bias_0'),\n _ObservedSummary(logdir=self.train_dir, tag='kernel_0'),\n _ObservedSummary(logdir=self.train_dir, tag='bias_0/histogram'),\n _ObservedSummary(logdir=self.train_dir, tag='kernel_0/histogram'),\n _ObservedSummary(logdir=self.train_dir, tag='bias_0'),\n _ObservedSummary(logdir=self.train_dir, tag='kernel_0'),\n _ObservedSummary(logdir=self.train_dir, tag='bias_0/histogram'),\n _ObservedSummary(logdir=self.train_dir, tag='kernel_0/histogram'),\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/keras-team/keras/commit/1132da66c8852093901201822320ff3aba754b43", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " expected = {\n _ObservedSummary(logdir=self.train_dir, tag='bias_0'),\n _ObservedSummary(logdir=self.train_dir, tag='kernel_0'),\n expected_image_summaries = {\n _ObservedSummary(logdir=self.train_dir, tag='bias_0/image'),\n _ObservedSummary(logdir=self.train_dir, tag='kernel_0/image'),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keras-team/keras/commit/1132da66c8852093901201822320ff3aba754b43", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " expected = {\n expected_image_summaries = {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keras-team/keras/commit/1132da66c8852093901201822320ff3aba754b43", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " return self._format_output(self._augment(inputs))\n return self._format_output(self._augment(inputs), is_dict)\n return self._format_output(self._batch_augment(inputs))\n return self._format_output(self._batch_augment(inputs), is_dict)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keras-team/keras/commit/36f99a3871da38d30003255729193c1294ad8bf8", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " return self._format_output(self._batch_augment(inputs))\n return self._format_output(self._batch_augment(inputs), is_dict)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keras-team/keras/commit/36f99a3871da38d30003255729193c1294ad8bf8", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " model.save(output_path, save_format=\"tf\")\n model.save(output_path, save_format=save_format)\n model.save(output_path, save_format=\"tf\")\n model.save(output_path, save_format=format)\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/keras-team/keras/commit/8beab0b156605add26b741f08aa49a8f94c49129", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " for m in self.metrics:\n if isinstance(m, Layer) and m.stateful:\n m.reset_states()\n for m in self.stateful_metric_functions:\n m.reset_states()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/keras-team/keras/commit/adc321b4d7a4e22f6bdb00b404dfe5e23d4887aa", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " categorical = np.zeros((n, num_classes))\n categorical = np.zeros((n, num_classes), dtype=np.float32)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.03260869565217391, "commit_url": "https://github.com/keras-team/keras/commit/b13326498e7cf7338a397f93a75248509256adc3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " X = np.zeros((samples,) + input_shape)\n X = np.zeros((samples,) + input_shape, dtype=np.float32)\n categorical = np.zeros((n, num_classes))\n categorical = np.zeros((n, num_classes), dtype=np.float32)\n X = np.zeros((samples,) + input_shape)\n y = np.zeros((samples,) + output_shape)\n X = np.zeros((samples,) + input_shape, dtype=np.float32)\n y = np.zeros((samples,) + output_shape, dtype=np.float32)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.03260869565217391, "commit_url": "https://github.com/keras-team/keras/commit/b13326498e7cf7338a397f93a75248509256adc3", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " X = np.zeros((samples,) + input_shape)\n y = np.zeros((samples,) + output_shape)\n X = np.zeros((samples,) + input_shape, dtype=np.float32)\n y = np.zeros((samples,) + output_shape, dtype=np.float32)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.021739130434782608, "commit_url": "https://github.com/keras-team/keras/commit/b13326498e7cf7338a397f93a75248509256adc3", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " name='conv1')(inputs)\n name='conv1')(x)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/keras-team/keras/commit/c2a8450279d10796e8b4ca79d375e80d7b8e055c", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " name='conv_dw_%d' % block_id)(inputs)\n name='conv_dw_%d' % block_id)(x)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/keras-team/keras/commit/c2a8450279d10796e8b4ca79d375e80d7b8e055c", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": "for filter_index in range(0, 200):\nfor filter_index in range(200):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.01858736059479554, "commit_url": "https://github.com/keras-team/keras/commit/c2268794ab638dd1c4f85b67b582ceb08acfe3c1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 6, 7 ] }, { "input": " for i in range(0, size):\n for i in range(size):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.01858736059479554, "commit_url": "https://github.com/keras-team/keras/commit/c2268794ab638dd1c4f85b67b582ceb08acfe3c1", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 6, 7 ] }, { "input": " for j in range(0, num_proc):\n for j in range(num_proc):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.01858736059479554, "commit_url": "https://github.com/keras-team/keras/commit/c2268794ab638dd1c4f85b67b582ceb08acfe3c1", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 6, 7 ] }, { "input": " permutation += list(range(0, len(y_shape) - 2))\n permutation += list(range(len(y_shape) - 2))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.01858736059479554, "commit_url": "https://github.com/keras-team/keras/commit/c2268794ab638dd1c4f85b67b582ceb08acfe3c1", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 6, 7 ] }, { "input": " for i in range(0, num_batches)]\n for i in range(num_batches)]\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.01858736059479554, "commit_url": "https://github.com/keras-team/keras/commit/c2268794ab638dd1c4f85b67b582ceb08acfe3c1", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 7 ] }, { "input": " for k in range(0, num_classes + 1):\n for k in range(num_classes + 1):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.01858736059479554, "commit_url": "https://github.com/keras-team/keras/commit/c2268794ab638dd1c4f85b67b582ceb08acfe3c1", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 6 ] }, { "input": "def lstm_args_preprocessor(args, kwargs):\ndef recurrent_args_preprocessor(args, kwargs):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keras-team/keras/commit/51c5f3f9c677eee3b900d9eda633da86f82df31c", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " preprocessor=lstm_args_preprocessor)\n preprocessor=recurrent_args_preprocessor)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keras-team/keras/commit/51c5f3f9c677eee3b900d9eda633da86f82df31c", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " flat_stroke: bool = False,\n flat_stroke: bool = False,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/3b1b/manim/commit/1ff758dea878af07c7d60e8b3b56a6c8663137c7", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " self.set_flat_stroke(flat_stroke)\n\n self.set_flat_stroke(flat_stroke)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/3b1b/manim/commit/1ff758dea878af07c7d60e8b3b56a6c8663137c7", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " result.non_time_updaters = list(self.non_time_updaters)\n result.time_based_updaters = list(self.time_based_updaters)\n result.updaters = list(self.updaters)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2222222222222222, "commit_url": "https://github.com/3b1b/manim/commit/d3ba101ee5960cc920e756a73245ee2ac3986805", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " for updater in self.time_based_updaters:\n updater(self, dt)\n for updater in self.non_time_updaters:\n updater(self)\n for updater in self.updaters:\n # This is hacky, but if an updater takes dt as an arg,\n # it will be passed the change in time from here\n if \"dt\" in updater.__code__.co_varnames:\n updater(self, dt=dt)\n else:\n updater(self)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7777777777777778, "commit_url": "https://github.com/3b1b/manim/commit/d3ba101ee5960cc920e756a73245ee2ac3986805", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " if get_num_args(update_func) > 1:\n self.time_based_updaters.append(update_func)\n else:\n self.non_time_updaters.append(update_func)\n\n self.updaters.append(update_func)\n if get_num_args(update_func) > 1:\n self.time_based_updaters.insert(index, update_func)\n else:\n self.non_time_updaters.insert(index, update_func)\n\n self.updaters.insert(index, update_func)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/3b1b/manim/commit/d3ba101ee5960cc920e756a73245ee2ac3986805", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " update_function: Updater,\n index: int | None = None,\n update_func: Updater,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/3b1b/manim/commit/70b839e188bc1837b7ddd992edbc0a64ea626e61", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 9, 3 ] }, { "input": " if \"dt\" in get_parameters(update_function):\n updater_list = self.time_based_updaters\n if \"dt\" in get_parameters(update_func):\n self.time_based_updaters.append(update_func)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/3b1b/manim/commit/70b839e188bc1837b7ddd992edbc0a64ea626e61", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 9, 2 ] }, { "input": " def remove_updater(self, update_function: Updater) -> Self:\n def remove_updater(self, update_func: Updater) -> Self:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/3b1b/manim/commit/70b839e188bc1837b7ddd992edbc0a64ea626e61", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 2, 3 ] }, { "input": " while update_function in updater_list:\n updater_list.remove(update_function)\n while update_func in updater_list:\n updater_list.remove(update_func)\n def remove_updater(self, update_function: Updater) -> Self:\n def remove_updater(self, update_func: Updater) -> Self:\n update_function: Updater,\n index: int | None = None,\n update_func: Updater,\n if \"dt\" in get_parameters(update_function):\n updater_list = self.time_based_updaters\n if \"dt\" in get_parameters(update_func):\n self.time_based_updaters.append(update_func)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/3b1b/manim/commit/70b839e188bc1837b7ddd992edbc0a64ea626e61", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 2, 3 ] }, { "input": " if self.has_updaters:\n if self.has_updaters():\n if self.has_updaters:\n if self.has_updaters():\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/3b1b/manim/commit/70b839e188bc1837b7ddd992edbc0a64ea626e61", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": " self.add(*mobjects)\n self._ingest_args(*mobjects)\n\n def _ingest_args(self, *args: Mobject | Iterable[Mobject]):\n if len(args) == 0:\n return\n if all(isinstance(mob, Mobject) for mob in args):\n self.add(*args)\n elif isinstance(args[0], Iterable):\n self.add(*args[0])\n else:\n raise Exception(f\"Invalid argument to Group of type {type(args[0])}\")\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/3b1b/manim/commit/1372cf101cc6e97a863c0eb2a58a46155bd3a225", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " self.add(*vmobjects)\n if vmobjects:\n self.uniforms.update(vmobjects[0].uniforms)\n if any(isinstance(vmob, Mobject) and not isinstance(vmob, VMobject) for vmob in vmobjects):\n raise Exception(\"Only VMobjects can be passed into VGroup\")\n self._ingest_args(*vmobjects)\n if self.submobjects:\n self.uniforms.update(self.submobjects[0].uniforms)\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/3b1b/manim/commit/1372cf101cc6e97a863c0eb2a58a46155bd3a225", "target_edit_idx": 8, "propagatable_edit_idx": [ 3 ] }, { "input": "def compute_total_frames(scene_class, scene_config):\ndef compute_total_frames(scene_class, scene_config, config):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/3b1b/manim/commit/b25f022859e54de027839b511d2242bb3aa6cf8e", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " fw_config[\"total_frames\"] = compute_total_frames(scene_class, scene_config)\n fw_config[\"total_frames\"] = compute_total_frames(scene_class, scene_config, config)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/3b1b/manim/commit/b25f022859e54de027839b511d2242bb3aa6cf8e", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "from manimlib.utils.tex_file_writing import display_during_execution\nfrom manimlib.utils.tex_file_writing import display_during_execution\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/3b1b/manim/commit/e0e7e24351f433e981464194fb66cacbfed449e0", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " with display_during_execution(f\"Writing \\\"{self.tex_string}\\\"\"):\n file_path = tex_content_to_svg_file(\n content, self.template, self.additional_preamble\n )\n file_path = tex_content_to_svg_file(\n content, self.template, self.additional_preamble, self.tex_string\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/3b1b/manim/commit/e0e7e24351f433e981464194fb66cacbfed449e0", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " target.scale_in_place(self.scale_factor)\n target.scale(self.scale_factor)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/3b1b/manim/commit/5b454a3ff75a5e099453184442e1864c293709c1", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4, 5, 6, 7 ] }, { "input": " self.scale_in_place((length + buff) / length)\n self.scale((length + buff) / length)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/3b1b/manim/commit/5b454a3ff75a5e099453184442e1864c293709c1", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4, 5, 6, 7 ] }, { "input": " screen.scale_in_place(self.screen_width_to_screen_plate_width)\n screen.scale(self.screen_width_to_screen_plate_width)\n target.scale_in_place(self.scale_factor)\n target.scale(self.scale_factor)\n self.scale_in_place((length + buff) / length)\n self.scale((length + buff) / length)\n edge.scale_in_place,\n edge.scale,\n group.secant_line.scale_in_place(\n group.secant_line.scale(\n v.target.get_tip().scale_in_place(norm)\n v.target.get_tip().scale(norm)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/3b1b/manim/commit/5b454a3ff75a5e099453184442e1864c293709c1", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 3, 5, 6, 7 ] }, { "input": " v.target.get_tip().scale_in_place(norm)\n v.target.get_tip().scale(norm)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/3b1b/manim/commit/5b454a3ff75a5e099453184442e1864c293709c1", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 3, 4, 5, 6 ] }, { "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/3b1b/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/3b1b/manim/commit/3628b61d75d18de21ac1f5bb711d3e594cd67f0a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " transform : {\"default\", \"pandas\"}, default=None\n transform : {\"default\", \"pandas\", \"polars\"}, default=None\n transform : {\"default\", \"pandas\"}, default=None\n transform : {\"default\", \"pandas\", \"polars\"}, default=None\n transform : {\"default\", \"pandas\"}, default=None\n transform : {\"default\", \"pandas\", \"polars\"}, default=None\n transform : {\"default\", \"pandas\"}, default=None\n transform : {\"default\", \"pandas\", \"polars\"}, default=None\n transform : {\"default\", \"pandas\"}, default=None\n transform : {\"default\", \"pandas\", \"polars\"}, default=None\n transform : {\"default\", \"pandas\"}, default=None\n transform : {\"default\", \"pandas\", \"polars\"}, default=None\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/153e7969b0d89646a8139f709a792298ef506ae5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4, 5, 6 ] }, { "input": "def check_array_api_get_precision(name, estimator, array_namepsace, device, dtype):\n xp, device, dtype = _array_api_for_tests(array_namepsace, device, dtype)\ndef check_array_api_get_precision(name, estimator, array_namespace, device, dtype):\n xp, device, dtype = _array_api_for_tests(array_namespace, device, dtype)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/dcebbc4c5c97f886a57b0684a5e943f94db1bd58", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": " \"array_namepsace, device, dtype\", yield_namespace_device_dtype_combinations()\n \"array_namespace, device, dtype\", yield_namespace_device_dtype_combinations()\n \"array_namepsace, device, dtype\", yield_namespace_device_dtype_combinations()\n \"array_namespace, device, dtype\", yield_namespace_device_dtype_combinations()\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/dcebbc4c5c97f886a57b0684a5e943f94db1bd58", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "def test_pca_array_api_compliance(estimator, check, array_namepsace, device, dtype):\ndef test_pca_array_api_compliance(estimator, check, array_namespace, device, dtype):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/dcebbc4c5c97f886a57b0684a5e943f94db1bd58", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 5 ] }, { "input": " check(name, estimator, array_namepsace, device=device, dtype=dtype)\n check(name, estimator, array_namespace, device=device, dtype=dtype)\ndef check_array_api_get_precision(name, estimator, array_namepsace, device, dtype):\n xp, device, dtype = _array_api_for_tests(array_namepsace, device, dtype)\ndef check_array_api_get_precision(name, estimator, array_namespace, device, dtype):\n xp, device, dtype = _array_api_for_tests(array_namespace, device, dtype)\ndef test_pca_array_api_compliance(estimator, check, array_namepsace, device, dtype):\ndef test_pca_array_api_compliance(estimator, check, array_namespace, device, dtype):\ndef test_array_api_train_test_split(shuffle, stratify, array_namepsace, device, dtype):\n xp, device, dtype = _array_api_for_tests(array_namepsace, device, dtype)\ndef test_array_api_train_test_split(shuffle, stratify, array_namespace, device, dtype):\n xp, device, dtype = _array_api_for_tests(array_namespace, device, dtype)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/dcebbc4c5c97f886a57b0684a5e943f94db1bd58", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 5 ] }, { "input": "def test_array_api_train_test_split(shuffle, stratify, array_namepsace, device, dtype):\n xp, device, dtype = _array_api_for_tests(array_namepsace, device, dtype)\ndef test_array_api_train_test_split(shuffle, stratify, array_namespace, device, dtype):\n xp, device, dtype = _array_api_for_tests(array_namespace, device, dtype)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/dcebbc4c5c97f886a57b0684a5e943f94db1bd58", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " check_global_ouptut_transform_pandas(estimator.__class__.__name__, estimator)\n check_global_output_transform_pandas(estimator.__class__.__name__, estimator)", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/f96217287c194528c5862d399343da27f5080f11", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "def check_global_ouptut_transform_pandas(name, transformer_orig):\ndef check_global_output_transform_pandas(name, transformer_orig):\n check_global_ouptut_transform_pandas(estimator.__class__.__name__, estimator)\n check_global_output_transform_pandas(estimator.__class__.__name__, estimator)", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/f96217287c194528c5862d399343da27f5080f11", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " imputer = SimpleImputer(strategy=strategy, verbose=1)\n\n # TODO: Remove in 1.3\n with pytest.warns(FutureWarning, match=\"The 'verbose' parameter\"):\n imputer.fit(X)\n imputer = SimpleImputer(strategy=strategy).fit(X)\n imputer = SimpleImputer(strategy=strategy, verbose=1)\n\n # TODO: Remove in 1.3\n with pytest.warns(FutureWarning, match=\"The 'verbose' parameter\"):\n imputer.fit(X)\n imputer = SimpleImputer(strategy=strategy).fit(X)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.009900990099009901, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/1799cd3504ef6f74106dab8791679ed7da43f3db", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " imputer = SimpleImputer(strategy=strategy, verbose=1)\n\n # TODO: Remove in 1.3\n with pytest.warns(FutureWarning, match=\"The 'verbose' parameter\"):\n imputer.fit(X)\n imputer = SimpleImputer(strategy=strategy).fit(X)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.009900990099009901, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/1799cd3504ef6f74106dab8791679ed7da43f3db", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": "class _NumPyApiWrapper:\nclass _NumPyAPIWrapper:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/bdc5df95f70e48abae5743f4ad17ad082abd40ce", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": " return _NumPyApiWrapper(), False\n return _NumPyAPIWrapper(), False\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/bdc5df95f70e48abae5743f4ad17ad082abd40ce", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4, 5, 6 ] }, { "input": " return _NumPyApiWrapper(), False\n return _NumPyAPIWrapper(), False\nclass _NumPyApiWrapper:\nclass _NumPyAPIWrapper:\n return _NumPyApiWrapper(), False\n return _NumPyAPIWrapper(), False\nfrom sklearn.utils._array_api import _NumPyApiWrapper\nfrom sklearn.utils._array_api import _NumPyAPIWrapper\n assert isinstance(xp_out, _NumPyApiWrapper)\n assert isinstance(xp_out, _NumPyAPIWrapper)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/bdc5df95f70e48abae5743f4ad17ad082abd40ce", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 3, 5, 6 ] }, { "input": "from sklearn.utils._array_api import _NumPyApiWrapper\nfrom sklearn.utils._array_api import _NumPyAPIWrapper\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/bdc5df95f70e48abae5743f4ad17ad082abd40ce", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 3, 4, 6 ] }, { "input": " assert isinstance(xp_out, _NumPyApiWrapper)\n assert isinstance(xp_out, _NumPyAPIWrapper)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/bdc5df95f70e48abae5743f4ad17ad082abd40ce", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 3, 4, 5 ] }, { "input": " openmp_flag = get_openmp_flag(self.compiler)\n openmp_flag = get_openmp_flag()\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/725569f957c2c7de6a60f978431b0b7b6dd70cfe", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "def get_openmp_flag(compiler):\n if hasattr(compiler, \"compiler\"):\n compiler = compiler.compiler[0]\n else:\n compiler = compiler.__class__.__name__\n\ndef get_openmp_flag():\n openmp_flag = get_openmp_flag(self.compiler)\n openmp_flag = get_openmp_flag()\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/725569f957c2c7de6a60f978431b0b7b6dd70cfe", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " def fit(\n self, X, y, sample_weight=None, check_input=True, X_idx_sorted=\"deprecated\"\n ):\n def fit(self, X, y, sample_weight=None, check_input=True):\n def fit(\n self, X, y, sample_weight=None, check_input=True, X_idx_sorted=\"deprecated\"\n ):\n def fit(self, X, y, sample_weight=None, check_input=True):\n def fit(\n self, X, y, sample_weight=None, check_input=True, X_idx_sorted=\"deprecated\"\n ):\n def fit(self, X, y, sample_weight=None, check_input=True):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/cc81c4f2ba3b404251fc65618746432420b17e0a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 5 ] }, { "input": " X_idx_sorted : deprecated, default=\"deprecated\"\n This parameter is deprecated and has no effect.\n It will be removed in 1.1 (renaming of 0.26).\n\n .. deprecated:: 0.24\n\n X_idx_sorted : deprecated, default=\"deprecated\"\n This parameter is deprecated and has no effect.\n It will be removed in 1.1 (renaming of 0.26).\n\n .. deprecated:: 0.24\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/cc81c4f2ba3b404251fc65618746432420b17e0a", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " X_idx_sorted=X_idx_sorted,\n X_idx_sorted=X_idx_sorted,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/cc81c4f2ba3b404251fc65618746432420b17e0a", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " msg = \"DecisionTreeClassifier should be a binary classifier\"\n msg = (\n \"Expected 'estimator' to be a binary classifier, but got DecisionTreeClassifier\"\n )\n msg = \"DecisionTreeClassifier should be a binary classifier\"\n msg = (\n \"Expected 'estimator' to be a binary classifier, but got DecisionTreeClassifier\"\n )\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/c4bbc04cae40ae7553b3c958919fae28c2375aa3", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "from sklearn.utils._testing import assert_warns_message\nfrom sklearn.utils._testing import assert_warns_message\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/6835cb339906beb15169ecee5c8cacdd1e58be4c", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " assert_warns_message(UserWarning, message, pickle.loads, tree_pickle_other)\n with pytest.warns(UserWarning, match=message):\n pickle.loads(tree_pickle_other)\n assert_warns_message(UserWarning, message, pickle.loads, tree_pickle_noversion)\n with pytest.warns(UserWarning, match=message):\n pickle.loads(tree_pickle_noversion)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/6835cb339906beb15169ecee5c8cacdd1e58be4c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " assert_array_equal(mlb.inverse_transform(indicator_mat), inp)\n indicator_mat_inv = np.array(mlb.inverse_transform(indicator_mat),\n dtype=object)\n assert_array_equal(indicator_mat_inv, inp)\n assert_array_equal(mlb.inverse_transform(indicator_mat), inp)\n indicator_mat_inv = np.array(mlb.inverse_transform(indicator_mat),\n dtype=object)\n assert_array_equal(indicator_mat_inv, inp)\n", "class": "clone", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/f9e0b7d55fbba59c77063280afff6fb962e4bea9", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " def __init__(self, n_components=2, scale=True,\n @_deprecate_positional_args\n def __init__(self, n_components=2, *, scale=True,\n\n def __init__(self, n_components=2, scale=True,\n @_deprecate_positional_args\n def __init__(self, n_components=2, *, scale=True,\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/360e75a3b9e6d2e316292caa37948e4f39639cd4", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " Control the pseudo random number generator used to generate the matrix\n at fit time. If int, random_state is the seed used by the random\n number generator; If RandomState instance, random_state is the random\n number generator; If None, the random number generator is the\n RandomState instance used by `np.random`.\n Controls the pseudo random number generator used to generate the\n projection matrix at fit time.\n Pass an int for reproducible output across multiple function calls.\n See :term:`Glossary `.\n Control the pseudo random number generator used to generate the matrix\n at fit time. If int, random_state is the seed used by the random\n number generator; If RandomState instance, random_state is the random\n number generator; If None, the random number generator is the\n RandomState instance used by `np.random`.\n Controls the pseudo random number generator used to generate the\n projection matrix at fit time.\n Pass an int for reproducible output across multiple function calls.\n See :term:`Glossary `.\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/32cce97b8d207c0210737db30e8e393486005c74", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " The seed of the pseudo random number generator to use when shuffling\n the data. If int, random_state is the seed used by the random number\n generator; If RandomState instance, random_state is the random number\n generator; If None, the random number generator is the RandomState\n instance used by `np.random`.\n Controls the pseudo random number generation for shuffling the data.\n Pass an int for reproducible output across multiple function calls.\n See :term:`Glossary `.\n The seed of the pseudo random number generator to use when shuffling\n the data. If int, random_state is the seed used by the random number\n generator; If RandomState instance, random_state is the random number\n generator; If None, the random number generator is the RandomState\n instance used by `np.random`.\n Controls the pseudo random number generation for shuffling the data.\n Pass an int for reproducible output across multiple function calls.\n See :term:`Glossary `.\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/2eff916be939ab5d16ab7aacec56f6a5d1ad89d5", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " The seed of the pseudo random number generator used when shuffling\n the data for probability estimates. If int, random_state is the\n seed used by the random number generator; If RandomState instance,\n random_state is the random number generator; If None, the random\n number generator is the RandomState instance used by `np.random`.\n Controls the pseudo random number generation for shuffling the data for\n probability estimates.\n Pass an int for reproducible output across multiple function calls.\n See :term:`Glossary `.\n The seed of the pseudo random number generator used when shuffling\n the data for probability estimates. If int, random_state is the seed\n used by the random number generator; If RandomState instance,\n random_state is the random number generator; If None, the random\n number generator is the RandomState instance used by `np.random`.\n Controls the pseudo random number generation for shuffling the data for\n probability estimates.\n Pass an int for reproducible output across multiple function calls.\n See :term:`Glossary `.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/2eff916be939ab5d16ab7aacec56f6a5d1ad89d5", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " n_iter_i = _check_optimize_result(solver, opt_res, max_iter)\n n_iter_i = _check_optimize_result(\n solver, opt_res, max_iter,\n extra_warning_msg=_LOGISTIC_SOLVER_CONVERGENCE_MSG)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/43d8dee07b0c5e23237526d23a368fcfd66cc059", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "def _check_optimize_result(solver, result, max_iter=None):\ndef _check_optimize_result(solver, result, max_iter=None,\n extra_warning_msg=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/43d8dee07b0c5e23237526d23a368fcfd66cc059", "target_edit_idx": 5, "propagatable_edit_idx": [ 1 ] }, { "input": "def _convert_arff_data_dataframe(arrf, columns, features_dict):\ndef _convert_arff_data_dataframe(arff, columns, features_dict):\n arrf : dict\n arff : dict\n attributes = OrderedDict(arrf['attributes'])\n arrf_columns = list(attributes)\n attributes = OrderedDict(arff['attributes'])\n arff_columns = list(attributes)\n first_row = next(arrf['data'])\n first_df = pd.DataFrame([first_row], columns=arrf_columns)\n first_row = next(arff['data'])\n first_df = pd.DataFrame([first_row], columns=arff_columns)\n for data in _chunk_generator(arrf['data'], chunksize):\n dfs.append(pd.DataFrame(data, columns=arrf_columns)[columns_to_keep])\n df = pd.concat(dfs)\n for data in _chunk_generator(arff['data'], chunksize):\n dfs.append(pd.DataFrame(data, columns=arff_columns)[columns_to_keep])\n df = pd.concat(dfs, ignore_index=True)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/03fd26c45b8fd141051f3a9754af5faf07fd2096", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": " attributes = OrderedDict(arrf['attributes'])\n arrf_columns = list(attributes)\n attributes = OrderedDict(arff['attributes'])\n arff_columns = list(attributes)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/03fd26c45b8fd141051f3a9754af5faf07fd2096", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 5 ] }, { "input": " first_row = next(arrf['data'])\n first_df = pd.DataFrame([first_row], columns=arrf_columns)\n first_row = next(arff['data'])\n first_df = pd.DataFrame([first_row], columns=arff_columns)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/03fd26c45b8fd141051f3a9754af5faf07fd2096", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 5 ] }, { "input": " for data in _chunk_generator(arrf['data'], chunksize):\n dfs.append(pd.DataFrame(data, columns=arrf_columns)[columns_to_keep])\n df = pd.concat(dfs)\n for data in _chunk_generator(arff['data'], chunksize):\n dfs.append(pd.DataFrame(data, columns=arff_columns)[columns_to_keep])\n df = pd.concat(dfs, ignore_index=True)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/03fd26c45b8fd141051f3a9754af5faf07fd2096", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " If None the estimator's default scorer (if available) is used.\n If None the estimator's score method is used.\n If None, the estimator's default scorer (if available) is used.\n If None, the estimator's score method is used.\n If None, the estimator's default scorer (if available) is used.\n If None, the estimator's score method is used.\n If None, the estimator's default scorer (if available) is used.\n If None, the estimator's score method is used.\n If None the estimator's default scorer, if available, is used.\n If None the estimator's score method is used.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/eaca1729bd2a1d252e17872c8c3c673dd941f903", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": "class _UnstableOn32BitMixin(object):\n \"\"\"Mark estimators that are non-determinstic on 32bit.\"\"\"\nclass _UnstableArchMixin(object):\n \"\"\"Mark estimators that are non-determinstic on 32bit or PowerPC\"\"\"\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/cdfca8cba33be63ef50ba9e14d8823cc551baf92", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "from ..base import _UnstableOn32BitMixin\nfrom ..base import _UnstableArchMixin\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/cdfca8cba33be63ef50ba9e14d8823cc551baf92", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": "class CCA(_PLS, _UnstableOn32BitMixin):\nclass CCA(_PLS, _UnstableArchMixin):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/cdfca8cba33be63ef50ba9e14d8823cc551baf92", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": "from ..base import BaseEstimator, TransformerMixin, _UnstableOn32BitMixin\nfrom ..base import BaseEstimator, TransformerMixin, _UnstableArchMixin\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/cdfca8cba33be63ef50ba9e14d8823cc551baf92", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": "plt.plot(xx, f(xx), 'g:', label=u'$f(x) = x\\,\\sin(x)$')\nplt.plot(xx, f(xx), 'g:', label=r'$f(x) = x\\,\\sin(x)$')\nplt.plot(x, f(x), 'r:', label=u'$f(x) = x\\,\\sin(x)$')\nplt.plot(x, f(x), 'r:', label=r'$f(x) = x\\,\\sin(x)$')\nplt.plot(x, f(x), 'r:', label=u'$f(x) = x\\,\\sin(x)$')\nplt.plot(x, f(x), 'r:', label=r'$f(x) = x\\,\\sin(x)$')\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/2df594564dbde085b51aca8775e60e137abaabc9", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " if issparse(X):\n if sparse.issparse(X):\n if issparse(X):\n if sparse.issparse(X):\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/56dc3742e08297a09d92a650a78f98e2e114395c", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "def _apply_func(func, X):\ndef _apply_on_subsets(func, X):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/989f9c764734efc21bbff21b0202b52a1112bfc3", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " result_full, result_by_batch = _apply_func(\n result_full, result_by_batch = _apply_on_subsets(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/989f9c764734efc21bbff21b0202b52a1112bfc3", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " def _validate_y(self, y):\n def _validate_y(self, y, sample_weight):\n # 'sample_weight' is not utilised but is used for\n # consistency with similar method _validate_y of GBC\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/c9e6d4d3a42b966b5f00725a0fce52c5517c933e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " self.steps = tosequence(steps)\n self.steps = list(steps)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/aae87002b96622424a16dcad2eaef3a75cc0feda", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " self.transformer_list = tosequence(transformer_list)\n self.transformer_list = list(transformer_list)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/aae87002b96622424a16dcad2eaef3a75cc0feda", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " classes_k, y[:, k] = np.unique(y[:, k], return_inverse=True)\n classes_k, y_store_unique_indices[:, k] = np.unique(y[:, k], return_inverse=True)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/9f06156f209e7e07f1d63cdd83851b1e05e2e294", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " average_time_approx += time.time() - t0\n average_time_approx.append(time.time() - t0)\n average_time_exact += time.time() - t0\n average_time_exact.append(time.time() - t0)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/53e04ed9cb2443eaa0b691f9247680f22b101109", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " distances = euclidean_distances(query, X)\n distances = pairwise_distances(query, X, metric='cosine')\n distances = euclidean_distances(query, X)\n distances = pairwise_distances(query, X, metric='cosine')\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/4aa8e289318f47e8a146e6734aae7d45371dbb71", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " mean_dist = np.mean(euclidean_distances(query, X))\n mean_dist = np.mean(pairwise_distances(query, X, metric='cosine'))\n mean_dist = np.mean(euclidean_distances(query, X))\n mean_dist = np.mean(pairwise_distances(query, X, metric='cosine'))\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/4aa8e289318f47e8a146e6734aae7d45371dbb71", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " nz_indices = y.indices[y.indptr[k]:y.indptr[k+1]]\n col_nonzero = y.indices[y.indptr[k]:y.indptr[k+1]]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/44499fafadb77d8f463283e563d2f66f649e64c3", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " sample_weight[nz_indices])\n sample_weight[col_nonzero])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/44499fafadb77d8f463283e563d2f66f649e64c3", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " y : array-like, shape = (n_samples,)\n y : array-like, shape = (n_samples, n_labels)\n y : array-like, shape = (n_samples,)\n y : array-like, shape = (n_samples, n_outputs)\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/16870ffd463bd1f819581f126ab7744b963df153", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": ":math:`\\frac{n_samples-n_features-1}{2}` outliers) estimator of\ncovariance. The idea is to find :math:`\\frac{n_samples+n_features+1}{2}`\n:math:`\\frac{n_\\text{samples}-n_\\text{features}-1}{2}` outliers)\nestimator of covariance. The idea is to find\n:math:`\\frac{n_\\text{samples}+n_\\text{features}+1}{2}`\ndatasets, up to :math:`\\\\frac{n_samples - n_features-1}{2}` outliers) estimator of\ncovariance. The idea is to find :math:`\\\\frac{n_samples+n_features+1}{2}`\ndatasets, up to\n:math:`\\frac{n_\\text{samples} - n_\\text{features}-1}{2}` outliers) estimator of\ncovariance. The idea is to find\n:math:`\\frac{n_\\text{samples} + n_\\text{features}+1}{2}`\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/b16ffbb04d53756e18134e58ded47f02e52492aa", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " def score(self, X, y):\n def score(self, X, y, sample_weight=None):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e9d660d80c8943471f0a3e80528168833a778f7d", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " return accuracy_score(y, self.predict(X))\n return accuracy_score(y, self.predict(X), sample_weight=sample_weight)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.023255813953488372, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e9d660d80c8943471f0a3e80528168833a778f7d", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": " def score(self, X, y):\n def score(self, X, y, sample_weight=None):\n def score(self, X, y):\n def score(self, X, y, sample_weight=None):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e9d660d80c8943471f0a3e80528168833a778f7d", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " return r2_score(y, self.predict(X))\n return r2_score(y, self.predict(X), sample_weight=sample_weight)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.037037037037037035, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e9d660d80c8943471f0a3e80528168833a778f7d", "target_edit_idx": 5, "propagatable_edit_idx": [ 9 ] }, { "input": " yield accuracy_score(y, y_pred)\n yield accuracy_score(y, y_pred, sample_weight=sample_weight)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.023255813953488372, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e9d660d80c8943471f0a3e80528168833a778f7d", "target_edit_idx": 8, "propagatable_edit_idx": [ 2 ] }, { "input": " yield r2_score(y, y_pred)\n yield r2_score(y, y_pred, sample_weight=sample_weight)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.037037037037037035, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e9d660d80c8943471f0a3e80528168833a778f7d", "target_edit_idx": 9, "propagatable_edit_idx": [ 5 ] }, { "input": " theilsen = TheilSen().fit(X, y)\n theilsen = TheilSen(max_subpopulation=1e3, random_state=0).fit(X, y)\n theilsen = TheilSen(n_jobs=-1).fit(X, y)\n theilsen = TheilSen(n_jobs=-1,\n random_state=0,\n max_subpopulation=2e3).fit(X, y)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.041666666666666664, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/279dc90804da717e37ce18b9e2be91a0ff575858", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " theilsen = TheilSen(n_jobs=-1).fit(X, y)\n theilsen = TheilSen(n_jobs=-1,\n random_state=0,\n max_subpopulation=2e3).fit(X, y)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.041666666666666664, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/279dc90804da717e37ce18b9e2be91a0ff575858", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " est = cls(n_estimators=20, max_depth=1, random_state=1)\n est = cls(n_estimators=20, max_depth=1, random_state=1, subsample=0.5)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/6c033bd5854fb4d51fc93d6d161b9268d0a53409", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " est = cls(n_estimators=20, max_depth=1, random_state=1, warm_start=True)\n # try refit\n est.set_params(n_estimators=30)\n est.fit(X, y)\n assert_equal(est.n_estimators, 30)\n assert_equal(est.estimators_.shape[0], 30)\n assert_equal(est.train_score_.shape[0], 30)\n assert_equal(est.oob_improvement_.shape[0], 30)\n\n est = cls(n_estimators=20, max_depth=1, random_state=1, subsample=0.5,\n warm_start=True)\n est = cls(n_estimators=20, max_depth=1, random_state=1)\n est = cls(n_estimators=20, max_depth=1, random_state=1, subsample=0.5)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/6c033bd5854fb4d51fc93d6d161b9268d0a53409", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " assert_not_equal(X.ctypes.data, Xt.ctypes.data)\n assert_equal(X.ctypes.data, Xt.ctypes.data)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/c931854120487f8167e9f4d2c7d43247c5fe3c3e", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": " # older versions of scipy don't accept explicit bandwidth\n raise SkipTest\n raise SkipTest(\"Old version of scipy, doesn't accept explicit bandwidth.\")\n # older versions of scipy don't accept explicit bandwidth\n raise SkipTest\n raise SkipTest(\"Old scipy, does not accept explicit bandwidth.\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e42f211435e61b83cd4b5651a15d4db292516a83", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": "def _nls_subproblem(V, W, H_init, tol, max_iter, sigma=0.01, beta=0.1):\ndef _nls_subproblem(V, W, H, tol, max_iter, sigma=0.01, beta=0.1):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/02d972644a1b74165c8b5d7c9d5f1bf7ab38790b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "def _warn_numpy_unicode_bug(labels):\ndef _check_numpy_unicode_bug(labels):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/a207c7007fa42e959231428300f5f54560a7b821", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " _warn_numpy_unicode_bug(y)\n _check_numpy_unicode_bug(y)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/a207c7007fa42e959231428300f5f54560a7b821", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5, 6 ] }, { "input": " _warn_numpy_unicode_bug(classes)\n _check_numpy_unicode_bug(classes)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/a207c7007fa42e959231428300f5f54560a7b821", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 4, 5 ] }, { "input": " assert_true(class_prior.shape[0] == len(np.unique(y)),\n assert_true(class_prior.shape[0] == len(np.unique(Y)),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/73e0492da9e0b33143868e79309223a63b0712df", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " len(np.unique(y))))\n len(np.unique(Y))))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/73e0492da9e0b33143868e79309223a63b0712df", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " pair_multiclass_multilabel = product(EXAMPLES[\"multilabel-indicator\"] +\n EXAMPLES[\"multilabel-sequences\"],\n EXAMPLES[\"multiclass\"] +\n EXAMPLES[\"binary\"])\n mix_clf_format = product(EXAMPLES[\"multilabel-indicator\"] +\n EXAMPLES[\"multilabel-sequences\"],\n EXAMPLES[\"multiclass\"] +\n EXAMPLES[\"binary\"])\n for y_multilabel, y_multiclass in pair_multiclass_multilabel:\n for y_multilabel, y_multiclass in mix_clf_format:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/adcb0a811ee0596256ebe66524d2f33e1127129a", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " for y_multilabel, y_multiclass in pair_multiclass_multilabel:\n for y_multilabel, y_multiclass in mix_clf_format:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/adcb0a811ee0596256ebe66524d2f33e1127129a", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " gkde = gaussian_kde(x_in, bw_method=h / np.std(x_in))\n try:\n gkde = gaussian_kde(x_in, bw_method=h / np.std(x_in))\n except TypeError:\n # older versions of scipy don't accept explicit bandwidth\n raise SkipTe\n gkde = gaussian_kde(x_in, bw_method=h / np.std(x_in))\n try:\n gkde = gaussian_kde(x_in, bw_method=h / np.std(x_in))\n except TypeError:\n # older versions of scipy don't accept explicit bandwidth\n raise SkipTest\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/c7dc28b8dff7174ed7e4ce0b6fc6300be6e30abc", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " ridge.fit(X, y, sample_weight=np.ones(n_samples))\n assert_greater(ridge.score(X, y), 0.47)\n if solver == \"dense_cholesky\":\n # Currently the only solver to support sample_weight.\n ridge.fit(X, y, sample_weight=np.ones(n_samples))\n assert_greater(ridge.score(X, y), 0.47)\n ridge.fit(X, y, sample_weight=np.ones(n_samples))\n assert_greater(ridge.score(X, y), 0.9)\n if solver == \"dense_cholesky\":\n # Currently the only solver to support sample_weight.\n ridge.fit(X, y, sample_weight=np.ones(n_samples))\n assert_greater(ridge.score(X, y), 0.9)\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/ebc063437331515c119c706a1e390ca04e1c9ad4", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " _, average_score, scores = grid_search.grid_scores_[0]\n _, average_score, scores = grid_search.cv_scores_[0]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/d6e96dd36df70e5f1106b00839743addb54a42a4", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " cv = GridSearchCV(clf, {'C': [0.1, 1.0]}, score_func=f1_score)\n cv = GridSearchCV(clf, {'C': [0.1, 1.0]}, scoring=\"f1\")\n cv = GridSearchCV(clf, {'C': [0.1, 1.0]}, score_func=f1_score)\n cv = GridSearchCV(clf, {'C': [0.1, 1.0]}, scoring=\"f1\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/a347fbf70c5137041c15556445db0bb47e4659b2", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " self.random_state = check_random_state(self.random_state)\n random_state = check_random_state(self.random_state)\n self.random_state = check_random_state(self.random_state)\n random_state = check_random_state(self.random_state)\n self.random_state = check_random_state(self.random_state)\n random_state = check_random_state(self.random_state)\n self.random_state = check_random_state(self.random_state)\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/696dd6fb6b2441bd410a98569fe8b70f9d987085", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 4, 5 ] }, { "input": " if hasattr(y, 'shape'):\n this_n_test_samples = y.shape[0]\n else:\n this_n_test_samples = len(y)\n if hasattr(X, 'shape'):\n this_n_test_samples = X.shape[0]\n else:\n this_n_test_samples = len(X)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e1972fa325db4ed4ebe9842759c2342162ea77ef", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " cv = StratifiedKFold(y, cv, indices=is_sparse)\n cv = StratifiedKFold(y, cv, indices=needs_indices)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/7177172b51a65576ddd551af9a1648b411e714d9", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " cv = KFold(n_samples, cv, indices=is_sparse)\n if is_sparse and not getattr(cv, \"indices\", True):\n raise ValueError(\"Sparse data require indices-based cross validation\"\n \" generator, got: %r\", cv)\n cv = KFold(n_samples, cv, indices=needs_indices)\n if needs_indices and not getattr(cv, \"indices\", True):\n raise ValueError(\"Sparse data and lists require indices-based cross\"\n \" validation generator, got: %r\", cv)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/7177172b51a65576ddd551af9a1648b411e714d9", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " expected = \"labels_true must be 1D: shape is (2, 2)\"\n expected = \"labels_true must be 1D: shape is (2\"\n expected = \"labels_pred must be 1D: shape is (2, 2)\"\n expected = \"labels_pred must be 1D: shape is (2\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/7c70198efcae04cece3481121457e2a0470c3622", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\n X, y = make_sparse_data(n_samples, n_features, n_informative)\n X, y = make_sparse_data(n_samples=n_samples, n_informative=n_informative)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/36cdf1c408a63655a1e0cd36fc73a30f7dd783a3", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " n_samples, n_features, max_iter = 100, 100, 1000\n n_informative = 10\n X, y = make_sparse_data(n_samples, n_features, n_informative,\n n_targets=n_targets)\n X, y = make_sparse_data(n_targets=n_targets)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/36cdf1c408a63655a1e0cd36fc73a30f7dd783a3", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": " C : array, shape = [n_samples, n_classes]\n C : array, shape = [n_samples, n_classes] or [n_samples,]\n Decision function values related to each class, per sample.\n In the two-class case, the shape is [n_samples,], giving the\n log likelihood ratio of the positive class.\n C : array, shape = [n_samples, n_classes]\n C : array, shape = [n_samples, n_classes] or [n_samples,]\n", "class": "clone", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/20192603d61172fff045f324359101bad03da380", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": " d = self.decision_function(X)\n d = self._decision_function(X)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/20192603d61172fff045f324359101bad03da380", "target_edit_idx": 3, "propagatable_edit_idx": [ 10, 11, 4, 5 ] }, { "input": " values = self.decision_function(X)\n values = self._decision_function(X)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/20192603d61172fff045f324359101bad03da380", "target_edit_idx": 4, "propagatable_edit_idx": [ 11, 10, 3, 5 ] }, { "input": " values = self.decision_function(X)\n values = self._decision_function(X)\n values = self.decision_function(X)\n values = self._decision_function(X)\n d = self.decision_function(X)\n d = self._decision_function(X)\n d = self.decision_function(X)\n d = self._decision_function(X)\n values = self.decision_function(X)\n values = self._decision_function(X)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/20192603d61172fff045f324359101bad03da380", "target_edit_idx": 5, "propagatable_edit_idx": [ 11, 10, 3, 4 ] }, { "input": " estimator = ConstantPredictor().fit(X, unique_y)\n warnings.warn(\"Label %s is present in all training examples.\" %\n str(unique_y))\n estimator = _ConstantPredictor().fit(X, unique_y)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/839c4b087ab6ea04e540c91ab6e086b41a868018", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "class ConstantPredictor(BaseEstimator):\nclass _ConstantPredictor(BaseEstimator):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/839c4b087ab6ea04e540c91ab6e086b41a868018", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " return self.y_ * np.ones(X.shape[0])\n return np.repeat(self.y_, X.shape[0])\n return self.y_ * np.ones(X.shape[0])\n return np.repeat(self.y_, X.shape[0])\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/839c4b087ab6ea04e540c91ab6e086b41a868018", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " ecoc = OutputCodeClassifier(LinearSVC(), code_size=2)\n ecoc = OutputCodeClassifier(LinearSVC(), code_size=2, random_state=0)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/839c4b087ab6ea04e540c91ab6e086b41a868018", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " ecoc = OutputCodeClassifier(MultinomialNB(), code_size=2)\n ecoc = OutputCodeClassifier(MultinomialNB(), code_size=2, random_state=0)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/839c4b087ab6ea04e540c91ab6e086b41a868018", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " ecoc = OutputCodeClassifier(LinearSVC())\n ecoc = OutputCodeClassifier(LinearSVC(), random_state=0)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/839c4b087ab6ea04e540c91ab6e086b41a868018", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " iris = datasets.load_iris()\n X, y = datasets.make_blobs(random_state=0)\n iris = datasets.load_iris()\n X, y = datasets.make_blobs(random_state=0)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/a0498b655246505ca280c253f52aa8f2382d9d79", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " y = np.asarray(y, dtype=np.float64)\n y = np.asarray(y)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.005076142131979695, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/76035f2e6f6a037e6c5f0f21a43aa7c400422ddf", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " y = np.asarray(y, dtype=np.float64)\n y = np.asarray(y)\n y = np.asarray(y, dtype=np.float64)\n y = np.asarray(y)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.005076142131979695, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/76035f2e6f6a037e6c5f0f21a43aa7c400422ddf", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " centers = _centers(X, labels, k)\n centers = _centers(X, labels, k, distances)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/86f909d0d335b3285e379ace90d8a71c217a287f", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "def _centers(X, labels, n_clusters):\ndef _centers(X, labels, n_clusters, distances):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/86f909d0d335b3285e379ace90d8a71c217a287f", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": " X_center = None\n far_from_centers = None\n reallocated_idx = 0\n\n # The centroid of empty clusters is set to the center of\n # everything\n if X_center is None:\n X_center = X.mean(axis=0)\n centers[center_id] = X_center\n # Reassign empty cluster center to sample far from any cluster\n if far_from_centers is None:\n far_from_centers = distances.argsort()[::-1]\n centers[center_id] = X[far_from_centers[reallocated_idx]]\n reallocated_idx += 1\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/86f909d0d335b3285e379ace90d8a71c217a287f", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " assert_raises(ValueError, \\\n tree.DecisionTreeClassifier, min_split=-1)\n assert_raises(ValueError,\n tree.DecisionTreeClassifier(min_split=-1).fit,\n X, Y)\n assert_raises(ValueError, \\\n tree.DecisionTreeClassifier, max_depth=-1)\n assert_raises(ValueError,\n tree.DecisionTreeClassifier(max_depth=-1).fit,\n X, Y)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/7addd701539ce763acaf0f55249fb9faea80b061", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " lp = label_propagation.LabelPropagation()\n lp.fit(samples, labels, unlabeled_identifier=-1)\n lp = label_propagation.LabelPropagation(unlabeled_identifier=-1)\n lp.fit(samples, labels)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/4cb9e700acc9214c65821ab6bfded4be416ee628", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " lp = label_propagation.LabelPropagation()\n lp.fit(samples, labels, unlabeled_identifier='unlabeled')\n lp = label_propagation.LabelPropagation(unlabeled_identifier='unlabeled')\n lp.fit(samples, labels)\n lp = label_propagation.LabelPropagation()\n lp.fit(samples, labels, unlabeled_identifier=-1)\n assert_array_almost_equal(np.asarray(lp.y_[2]), \\\n np.array([[2.06115361e-09, 2.06115361e-09]]))\n lp = label_propagation.LabelPropagation(unlabeled_identifier=-1)\n lp.fit(samples, labels)\n assert_array_almost_equal(np.asarray(lp.y_[2]),\n np.array([ 2.06115361e-09, 4.12230722e-09]))\n lp = label_propagation.LabelPropagation()\n lp.fit(samples, labels, unlabeled_identifier=-1)\n lp = label_propagation.LabelPropagation(unlabeled_identifier=-1)\n lp.fit(samples, labels)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/4cb9e700acc9214c65821ab6bfded4be416ee628", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 7 ] }, { "input": " lp = label_propagation.LabelPropagation()\n lp.fit(samples, labels, unlabeled_identifier=-1)\n assert_array_almost_equal(np.asarray(lp.y_[2]), \\\n np.array([[2.06115361e-09, 2.06115361e-09]]))\n lp = label_propagation.LabelPropagation(unlabeled_identifier=-1)\n lp.fit(samples, labels)\n assert_array_almost_equal(np.asarray(lp.y_[2]),\n np.array([ 2.06115361e-09, 4.12230722e-09]))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/4cb9e700acc9214c65821ab6bfded4be416ee628", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " X: array-like, shape = [n_samples_1, n_features]\n X: {array-like, sparse matrix}, shape = [n_samples_1, n_features]\n Y: array-like, shape = [n_samples_2, n_features]\n Y: {array-like, sparse matrix}, shape = [n_samples_2, n_features]\n", "class": "clone", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/74792c81cb1a56cacc1b4ee5cd9c646ef332d013", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " clf = manifold.LocallyLinearEmbedding(n_neighbors=5, out_dim=out_dim)\n clf = manifold.LocallyLinearEmbedding(n_neighbors=5, out_dim=out_dim,\n random_state=rng)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e4339522de1b75998f85aed6fb3f5569a70985e9", "target_edit_idx": 2, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " clf = manifold.LocallyLinearEmbedding(n_neighbors=5, out_dim=out_dim)\n clf = manifold.LocallyLinearEmbedding(n_neighbors=5, out_dim=out_dim,\n random_state=42)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e4339522de1b75998f85aed6fb3f5569a70985e9", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 6 ] }, { "input": " [('filter', manifold.LocallyLinearEmbedding()),\n [('filter', manifold.LocallyLinearEmbedding(random_state=42)),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e4339522de1b75998f85aed6fb3f5569a70985e9", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "\n See also\n --------\n\n See also\n --------\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e83a8ccb51061582374841fa716da77cec4af6ed", "target_edit_idx": 4, "propagatable_edit_idx": [ 10 ] }, { "input": " def __init__(self, alpha_i=1.0):\n\n self.alpha_i = alpha_i\n def __init__(self, alpha=1.0):\n self.alpha = alpha\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e83a8ccb51061582374841fa716da77cec4af6ed", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 6, 8, 9, 11, 12 ] }, { "input": " alpha_i = self.alpha_i\n alpha_i = self.alpha\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e83a8ccb51061582374841fa716da77cec4af6ed", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 5, 8, 9, 11, 12 ] }, { "input": " alpha_i = self.alpha_i\n alpha_i = self.alpha\n alpha_i: float, optional (default=1.0)\n smoothness prior.\n alpha: float, optional (default=1.0)\n Additive (Laplace/Lidstone) smoothing parameter\n (0 for no smoothing).\n def __init__(self, alpha_i=1.0):\n\n self.alpha_i = alpha_i\n def __init__(self, alpha=1.0):\n self.alpha = alpha\n alpha_i = self.alpha_i\n alpha_i = self.alpha\n alpha_i: float, optional (default=1.0)\n smoothness prior.\n alpha: float, optional (default=1.0)\n Additive (Laplace/Lidstone) smoothing parameter\n (0 for no smoothing).\n MultinomialNB(alpha_i=1.0)\n MultinomialNB(alpha=1.0)\n def __init__(self, alpha_i=1.0):\n\n self.alpha_i = alpha_i\n def __init__(self, alpha=1.0):\n self.alpha = alpha\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/e83a8ccb51061582374841fa716da77cec4af6ed", "target_edit_idx": 12, "propagatable_edit_idx": [ 2, 5, 6, 8, 9, 11 ] }, { "input": "def _nls_subproblem_(V, W, H_init, tol, max_iter):\ndef _nls_subproblem(V, W, H_init, tol, max_iter):\n W, gradW, iterW = _nls_subproblem_(X.T, H.T, W.T, tolW,\n self.nls_max_iter)\n W, gradW, iterW = _nls_subproblem(X.T, H.T, W.T, tolW,\n self.nls_max_iter)\n W, gradW, iterW = _nls_subproblem_(\n W, gradW, iterW = _nls_subproblem(\n W, gradW, iterW = _nls_subproblem_(\n W, gradW, iterW = _nls_subproblem(\n H, gradH, iterH = _nls_subproblem_(X, W, H, tolH,\n self.nls_max_iter)\n H, gradH, iterH = _nls_subproblem(X, W, H, tolH,\n self.nls_max_iter)\n H, gradH, iterH = _nls_subproblem_(\n H, gradH, iterH = _nls_subproblem(\n H, gradH, iterH = _nls_subproblem_(\n H, gradH, iterH = _nls_subproblem(\n nmf._nls_subproblem_(A, A, -A, 0.001, 20)\n nmf._nls_subproblem(A, A, -A, 0.001, 20)\n Ap, _, _ = nmf._nls_subproblem_(np.dot(A.T, -A), A.T, A, 0.001, 100)\n Ap, _, _ = nmf._nls_subproblem(np.dot(A.T, -A), A.T, A, 0.001, 100)\n Ap, _, _ = nmf._nls_subproblem_(np.dot(A.T, A), A.T, np.zeros_like(A),\n 0.001, 100)\n Ap, _, _ = nmf._nls_subproblem(np.dot(A.T, A), A.T, np.zeros_like(A),\n 0.001, 100)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/365fb942d42f780b45c34891cdb28bf8ae1894ef", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " W, gradW, iterW = _nls_subproblem_(X.T, H.T, W.T, tolW,\n self.nls_max_iter)\n W, gradW, iterW = _nls_subproblem(X.T, H.T, W.T, tolW,\n self.nls_max_iter)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/365fb942d42f780b45c34891cdb28bf8ae1894ef", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " W, gradW, iterW = _nls_subproblem_(\n W, gradW, iterW = _nls_subproblem(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/365fb942d42f780b45c34891cdb28bf8ae1894ef", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " H, gradH, iterH = _nls_subproblem_(X, W, H, tolH,\n self.nls_max_iter)\n H, gradH, iterH = _nls_subproblem(X, W, H, tolH,\n self.nls_max_iter)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/365fb942d42f780b45c34891cdb28bf8ae1894ef", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9 ] }, { "input": " H, gradH, iterH = _nls_subproblem_(\n H, gradH, iterH = _nls_subproblem(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/365fb942d42f780b45c34891cdb28bf8ae1894ef", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8, 9 ] }, { "input": " Ap, _, _ = nmf._nls_subproblem_(np.dot(A.T, -A), A.T, A, 0.001, 100)\n Ap, _, _ = nmf._nls_subproblem(np.dot(A.T, -A), A.T, A, 0.001, 100)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/365fb942d42f780b45c34891cdb28bf8ae1894ef", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 9 ] }, { "input": " Ap, _, _ = nmf._nls_subproblem_(np.dot(A.T, A), A.T, np.zeros_like(A),\n 0.001, 100)\n Ap, _, _ = nmf._nls_subproblem(np.dot(A.T, A), A.T, np.zeros_like(A),\n 0.001, 100)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/365fb942d42f780b45c34891cdb28bf8ae1894ef", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": "def _nls_subproblem_(V, W, H_init, tol, max_iter):\ndef _nls_subproblem(V, W, H_init, tol, max_iter):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/0faf093c7eb38d369159c32e8b2eed0a088a74b2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " default_slice = (slice(0, 250), slice(0, 250), slice(0, 3))\n default_slice = (slice(0, 250), slice(0, 250))\n default_slice = (slice(0, 250), slice(0, 250), slice(0, 3))\n default_slice = (slice(0, 250), slice(0, 250))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/3a28fd366c87155889e13f358c1b03fd2f5c7c3e", "target_edit_idx": 2, "propagatable_edit_idx": [ 9 ] }, { "input": " h_slice, w_slice, c_slice = slice_\n h_slice, w_slice = slice_\n h_slice, w_slice, c_slice = slice_\n h_slice, w_slice = slice_\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/3a28fd366c87155889e13f358c1b03fd2f5c7c3e", "target_edit_idx": 3, "propagatable_edit_idx": [ 10 ] }, { "input": " c = (c_slice.stop - c_slice.start) / (c_slice.step or 1)\n c = (c_slice.stop - c_slice.start) / (c_slice.step or 1)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/3a28fd366c87155889e13f358c1b03fd2f5c7c3e", "target_edit_idx": 4, "propagatable_edit_idx": [ 11 ] }, { "input": " wa = WordNGramAnalyzer(min_n=1, max_n=1)\n wa = WordNGramAnalyzer(min_n=1, max_n=1, stop_words=None)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/41128af9fba6e89edcd97492688383e993345b53", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " wa = WordNGramAnalyzer(min_n=1, max_n=2)\n wa = WordNGramAnalyzer(min_n=1, max_n=2, stop_words=None)\n wa = WordNGramAnalyzer(min_n=1, max_n=1)\n wa = WordNGramAnalyzer(min_n=1, max_n=1, stop_words=None)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/41128af9fba6e89edcd97492688383e993345b53", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "def clone(estimator):\ndef clone(estimator, safe=True):\n if hasattr(param, '_get_params'):\n new_object_params[name] = clone(param)\n new_object_params[name] = clone(param, safe=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/a4ed78e23f83a0723e06157b4777cd3b4b382ac9", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " if hasattr(param, '_get_params'):\n new_object_params[name] = clone(param)\n new_object_params[name] = clone(param, safe=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/a4ed78e23f83a0723e06157b4777cd3b4b382ac9", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": " def _get_params(self, deep=False):\n def _get_params(self, deep=True):\n def _get_params(self, deep=False):\n def _get_params(self, deep=True):\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/a4ed78e23f83a0723e06157b4777cd3b4b382ac9", "target_edit_idx": 5, "propagatable_edit_idx": [ 9 ] }, { "input": "from scikits.learn.grid_search import GridSearch\nfrom scikits.learn.grid_search import GridSearchCV\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/b7520134fec3d242d9d36ff29f7e699fb611515e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": "class GridSearch(object):\nclass GridSearchCV(object):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/b7520134fec3d242d9d36ff29f7e699fb611515e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 5 ] }, { "input": " clf = GridSearch(svc, {'C':[1, 10]}, LeaveOneOut, loss_func, n_jobs=2)\n clf = GridSearchCV(svc, {'C':[1, 10]}, LeaveOneOut, loss_func, n_jobs=2)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scikit-learn/scikit-learn/commit/b7520134fec3d242d9d36ff29f7e699fb611515e", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " toast.error(\n \"We ran into an error. Try again or contact support at support@picoapps.xyz\"\n );\n toast.error(ERROR_MESSAGE);\n toast.error(\n \"We ran into an error. Try again or contact support at support@picoapps.xyz\"\n );\n toast.error(ERROR_MESSAGE);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/abi/screenshot-to-code/commit/593eb5ba63ed8cacde3bfe8b3b068a79f02accc0", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " if self.verbose:\n if self.print_all:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/sherlock-project/sherlock/commit/55abaf3a73fa9567dd5ca6952313ce1f7c04d3f3", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " result = QueryResult(QueryStatus.UNKNOWN, error_text)\n result = QueryResult(QueryStatus.UNKNOWN,\n query_time=response_time,\n context=error_text)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/sherlock-project/sherlock/commit/c05471292043ad9ea843ebeb06d3ce8cfa33bf70", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7, 8, 9, 10 ] }, { "input": " result = QueryResult(QueryStatus.CLAIMED)\n result = QueryResult(QueryStatus.CLAIMED,\n query_time=response_time)\n result = QueryResult(QueryStatus.UNKNOWN, error_text)\n result = QueryResult(QueryStatus.UNKNOWN,\n query_time=response_time,\n context=error_text)\n result = QueryResult(QueryStatus.AVAILABLE)\n result = QueryResult(QueryStatus.AVAILABLE,\n query_time=response_time)\n result = QueryResult(QueryStatus.CLAIMED)\n result = QueryResult(QueryStatus.CLAIMED,\n query_time=response_time)\n result = QueryResult(QueryStatus.AVAILABLE)\n result = QueryResult(QueryStatus.AVAILABLE,\n query_time=response_time)\n result = QueryResult(QueryStatus.CLAIMED)\n result = QueryResult(QueryStatus.CLAIMED,\n query_time=response_time)\n result = QueryResult(QueryStatus.AVAILABLE)\n result = QueryResult(QueryStatus.AVAILABLE,\n query_time=response_time)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/sherlock-project/sherlock/commit/c05471292043ad9ea843ebeb06d3ce8cfa33bf70", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6, 7, 8, 9, 10 ] }, { "input": " result = QueryResult(QueryStatus.AVAILABLE)\n result = QueryResult(QueryStatus.AVAILABLE,\n query_time=response_time)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/sherlock-project/sherlock/commit/c05471292043ad9ea843ebeb06d3ce8cfa33bf70", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5, 7, 8, 9, 10 ] }, { "input": " result = QueryResult(QueryStatus.CLAIMED)\n result = QueryResult(QueryStatus.CLAIMED,\n query_time=response_time)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/sherlock-project/sherlock/commit/c05471292043ad9ea843ebeb06d3ce8cfa33bf70", "target_edit_idx": 9, "propagatable_edit_idx": [ 4, 5, 6, 7, 8, 10 ] }, { "input": " secretAccessKey: 'test',\n accessKeyId: 'test',\n secretAccessKey: process.env.SECRET_KEY,\n accessKeyId: process.env.ACCESS_KEY,\n secretAccessKey: 'test',\n accessKeyId: 'test',\n secretAccessKey: process.env.SECRET_KEY,\n accessKeyId: process.env.ACCESS_KEY,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/6ec5e2a827bc4508e2043670e4707a82b1ba57a2", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " region: 'us-east-1',\n region: process.env.AWS_REGION,\n region: 'us-east-1',\n region: process.env.AWS_REGION,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/localstack/localstack/commit/6ec5e2a827bc4508e2043670e4707a82b1ba57a2", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " # Irrelevant post v3 but intentionally tracked for some time\n \"LAMBDA_EXECUTOR\",\n \"LAMBDA_EXECUTOR\", # Not functional; deprecated in 2.0.0, removed in 3.0.0\n \"LAMBDA_STAY_OPEN_MODE\", # Not functional; deprecated in 2.0.0, removed in 3.0.0\n \"LAMBDA_REMOTE_DOCKER\", # Not functional; deprecated in 2.0.0, removed in 3.0.0\n \"LAMBDA_CODE_EXTRACT_TIME\", # Not functional; deprecated in 2.0.0, removed in 3.0.0\n \"LAMBDA_CONTAINER_REGISTRY\", # Not functional; deprecated in 2.0.0, removed in 3.0.0\n \"LAMBDA_FALLBACK_URL\", # Not functional; deprecated in 2.0.0, removed in 3.0.0\n \"LAMBDA_FORWARD_URL\", # Not functional; deprecated in 2.0.0, removed in 3.0.0\n \"LAMBDA_XRAY_INIT\", # Not functional; deprecated in 2.0.0, removed in 3.0.0\n # Irrelevant post v3 but intentionally tracked for some time\n \"LAMBDA_REMOTE_DOCKER\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/366dcd61c248959b3c6afba22e1e716ecb678df4", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " return Stack(metadata=dict(self.metadata), template=dict(self.template))\n return Stack(\n account_id=self.account_id,\n region_name=self.region_name,\n metadata=dict(self.metadata),\n template=dict(self.template),\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/localstack/localstack/commit/e78814fda0028ab0faaa60cecdb88945ee1e0be1", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 9, 10, 11, 13 ] }, { "input": " stack = Stack(request, template)\n stack = Stack(context.account_id, context.region, request, template)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/localstack/localstack/commit/e78814fda0028ab0faaa60cecdb88945ee1e0be1", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 9, 10, 11, 13 ] }, { "input": " new_stack = Stack(request, template)\n new_stack = Stack(context.account_id, context.region, request, template)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/localstack/localstack/commit/e78814fda0028ab0faaa60cecdb88945ee1e0be1", "target_edit_idx": 10, "propagatable_edit_idx": [ 3, 8, 9, 11, 13 ] }, { "input": " temp_stack = Stack(req_params_copy, template)\n temp_stack = Stack(context.account_id, context.region, req_params_copy, template)\n return Stack(metadata=dict(self.metadata), template=dict(self.template))\n return Stack(\n account_id=self.account_id,\n region_name=self.region_name,\n metadata=dict(self.metadata),\n template=dict(self.template),\n )\n stack = Stack(request, template)\n stack = Stack(context.account_id, context.region, request, template)\n stack = Stack(request, template)\n stack = Stack(context.account_id, context.region, request, template)\n new_stack = Stack(request, template)\n new_stack = Stack(context.account_id, context.region, request, template)\n stack = Stack(request, template)\n stack = Stack(context.account_id, context.region, request, template)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/localstack/localstack/commit/e78814fda0028ab0faaa60cecdb88945ee1e0be1", "target_edit_idx": 13, "propagatable_edit_idx": [ 3, 8, 9, 10, 11 ] }, { "input": " def __init__(self, default_version: str = LAMBDA_RUNTIME_DEFAULT_VERSION):\n def __init__(self, default_version: str = LAMBDA_RUNTIME_VERSION):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/localstack/localstack/commit/556a7382401a7b0bbe589cae2529e04a1dedfb27", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " return [LAMBDA_RUNTIME_DEFAULT_VERSION]\n return [LAMBDA_RUNTIME_VERSION]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/localstack/localstack/commit/556a7382401a7b0bbe589cae2529e04a1dedfb27", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " response = requests.post(\n response = self.session.post(\n response = requests.post(\n response = self.session.post(\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/7a5cd545c4beb66aeb162857656a301666035b24", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "def fix_xml_preamble_newline(response):\ndef fix_xml_preamble_newline(method, path, headers, response):\n fix_xml_preamble_newline(response)\n fix_xml_preamble_newline(method, path, headers, response)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/3d7dfbbc958d17c66d748d83f4f729cf393da7de", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " split = path.split(\"/\", 1)\n split = path.split(\"/\", maxsplit=1)\n split = path.split(\"/\", 2)\n split = path.split(\"/\", maxsplit=2)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/localstack/localstack/commit/3d7dfbbc958d17c66d748d83f4f729cf393da7de", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " \"MessageGroupId\": \"1\",\n \"MessageGroupId\": message_group_id,\n \"MessageGroupId\": \"1\",\n \"MessageGroupId\": message_group_id,\n \"MessageGroupId\": \"1\",\n \"MessageGroupId\": message_group_id,\n", "class": "clone", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/localstack/localstack/commit/087abb05fcb360297431ad8e5790c8014e0a80d7", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " sqs_client = aws_stack.connect_to_service(\"sqs\")\n region = region_from_arn(notif[\"Queue\"])\n sqs_client = aws_stack.connect_to_service(\"sqs\", region_name=region)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0034662045060658577, "commit_url": "https://github.com/localstack/localstack/commit/ba0a862e1a55b56bfbecdafbdcb64bc68cc6c435", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " sns_client = aws_stack.connect_to_service(\"sns\")\n region = region_from_arn(notif[\"Topic\"])\n sns_client = aws_stack.connect_to_service(\"sns\", region_name=region)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0034662045060658577, "commit_url": "https://github.com/localstack/localstack/commit/ba0a862e1a55b56bfbecdafbdcb64bc68cc6c435", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 5 ] }, { "input": " lambda_client = aws_stack.connect_to_service(\"lambda\", config=connection_config)\n lambda_client = aws_stack.connect_to_service(\n \"lambda\", config=connection_config, region_name=region\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0034662045060658577, "commit_url": "https://github.com/localstack/localstack/commit/ba0a862e1a55b56bfbecdafbdcb64bc68cc6c435", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " copy_key_orig = s3_models.s3_backend.copy_key\n copy_object_orig = s3_models.s3_backend.copy_object\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/e707aa07635d9a14e54dee002b4e83a21e7a58f2", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " def copy_key(\n def copy_object(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/e707aa07635d9a14e54dee002b4e83a21e7a58f2", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 7 ] }, { "input": " event = construct_invocation_event(method, path, headers, payload, query_string_params)\n event = construct_invocation_event(\n method, path, headers, payload, query_string_params, is_base64_encoded\n )\ndef construct_invocation_event(method, path, headers, data, query_string_params={}):\ndef construct_invocation_event(\n method, path, headers, data, query_string_params={}, is_base64_encoded=False\n):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/4332042008d9d977c64b4db6e6052d0758c1ff36", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " generic_proxy.serve_flask_app(app=app, port=port, quiet=True)\n generic_proxy.serve_flask_app(app=app, port=port)", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/9952a9cc01433c4aabcaf9b4e3a988cb5153f7c2", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5, 6 ] }, { "input": " generic_proxy.serve_flask_app(app=app, port=port, quiet=quiet)\n generic_proxy.serve_flask_app(app=app, port=port)", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/9952a9cc01433c4aabcaf9b4e3a988cb5153f7c2", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4, 5, 6 ] }, { "input": " return generic_proxy.serve_flask_app(app=app, port=port, quiet=quiet)\n return generic_proxy.serve_flask_app(app=app, port=port)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/9952a9cc01433c4aabcaf9b4e3a988cb5153f7c2", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 5, 6 ] }, { "input": " generic_proxy.serve_flask_app(app=app, port=port, quiet=quiet)\n generic_proxy.serve_flask_app(app=app, port=port) generic_proxy.serve_flask_app(app=app, port=port, quiet=True)\n generic_proxy.serve_flask_app(app=app, port=port) generic_proxy.serve_flask_app(app=app, port=port, quiet=quiet)\n generic_proxy.serve_flask_app(app=app, port=port) return generic_proxy.serve_flask_app(app=app, port=port, quiet=quiet)\n return generic_proxy.serve_flask_app(app=app, port=port)\n generic_proxy.serve_flask_app(app=app, port=port, quiet=quiet)\n generic_proxy.serve_flask_app(app=app, port=port) generic_proxy.serve_flask_app(app=app, port=port, quiet=quiet)\n generic_proxy.serve_flask_app(app=app, port=port)", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/9952a9cc01433c4aabcaf9b4e3a988cb5153f7c2", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 3, 4, 5 ] }, { "input": " return kinesis_error_response(data, action)\n return kinesis_error_response(data, action, encoding_type)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/e2adc6801595b6ee8ed75591cd0e19bf9ef73dd4", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "def kinesis_error_response(data, action):\ndef kinesis_error_response(data, action, encoding_type):\n return kinesis_error_response(data, action)\n return kinesis_error_response(data, action, encoding_type)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/e2adc6801595b6ee8ed75591cd0e19bf9ef73dd4", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " region = aws_stack.get_region()\n job_id = RULE_SCHEDULED_JOBS.get(region, {}).get(rule_name)\n rule_scheduled_jobs = EventsBackend.get().rule_scheduled_jobs\n job_id = rule_scheduled_jobs.get(rule_name)\n region = aws_stack.get_region()\n job_id = RULE_SCHEDULED_JOBS.get(region, {}).get(rule_name)\n rule_scheduled_jobs = EventsBackend.get().rule_scheduled_jobs\n job_id = rule_scheduled_jobs.get(rule_name)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/8db011cb8409b8c0968594a4905733d575fa52dc", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " rules_set = EVENT_RULES.get(event_bus, set())\n event_rules = EventsBackend.get().event_rules\n rules_set = event_rules.get(event_bus, set())\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/localstack/localstack/commit/8db011cb8409b8c0968594a4905733d575fa52dc", "target_edit_idx": 8, "propagatable_edit_idx": [ 12 ] }, { "input": " rules = EVENT_RULES.get(event_bus, [])\n rules = event_rules.get(event_bus, [])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/8db011cb8409b8c0968594a4905733d575fa52dc", "target_edit_idx": 12, "propagatable_edit_idx": [ 8 ] }, { "input": " return do_run(cmd, asynchronous)\n return do_run(cmd, asynchronous, auto_restart=True)def do_run(cmd, asynchronous, print_output=None, env_vars={}):\ndef do_run(cmd, asynchronous, print_output=None, env_vars={}, auto_restart=False):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06666666666666667, "commit_url": "https://github.com/localstack/localstack/commit/24a2ef53f48367b09ad66b90d3b41104ccaf6bd7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "from localstack.utils.common import to_str, json_safe, clone, timestamp_millis, now_utc\nfrom localstack.utils.common import to_str, json_safe, clone, epoch_timestamp, now_utc\n 'approximateArrivalTimestamp': timestamp_millis(),\n 'approximateArrivalTimestamp': epoch_timestamp(),\n 'approximateArrivalTimestamp': timestamp_millis(),\n 'approximateArrivalTimestamp': epoch_timestamp(),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/localstack/localstack/commit/ac45c2433cdbaae3b1ed9defd0fa889416247e3d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " 'approximateArrivalTimestamp': timestamp_millis(),\n 'approximateArrivalTimestamp': epoch_timestamp(),\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/localstack/localstack/commit/ac45c2433cdbaae3b1ed9defd0fa889416247e3d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " for l in lambdas:\n for lda in lambdas:\n node_ids[l.id] = uid\n result['nodes'].append({'id': uid, 'arn': l.id, 'name': l.name(), 'type': 'lambda'})\n for s in l.event_sources:\n node_ids[lda.id] = uid\n result['nodes'].append({'id': uid, 'arn': lda.id, 'name': lda.name(), 'type': 'lambda'})\n for s in lda.event_sources:\n for t in l.targets:\n for t in lda.targets:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/c501046c611aba0d891b2cfea1752c35bc285f49", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " node_ids[l.id] = uid\n result['nodes'].append({'id': uid, 'arn': l.id, 'name': l.name(), 'type': 'lambda'})\n for s in l.event_sources:\n node_ids[lda.id] = uid\n result['nodes'].append({'id': uid, 'arn': lda.id, 'name': lda.name(), 'type': 'lambda'})\n for s in lda.event_sources:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/localstack/localstack/commit/c501046c611aba0d891b2cfea1752c35bc285f49", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " for t in l.targets:\n for t in lda.targets:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/c501046c611aba0d891b2cfea1752c35bc285f49", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "LAMBDA_RUNTIME_CUSTOM_RUNTIME = 'provided'\nLAMBDA_RUNTIME_PROVIDED = 'provided'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/9e9107829fd0c8f5ac0a9821f4e83e64235d5b60", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " LAMBDA_RUNTIME_NODEJS810, LAMBDA_RUNTIME_CUSTOM_RUNTIME\n LAMBDA_RUNTIME_NODEJS810, LAMBDA_RUNTIME_PROVIDED\nLAMBDA_RUNTIME_CUSTOM_RUNTIME = 'provided'\nLAMBDA_RUNTIME_PROVIDED = 'provided'\n runtime=LAMBDA_RUNTIME_CUSTOM_RUNTIME\n runtime=LAMBDA_RUNTIME_PROVIDED\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/9e9107829fd0c8f5ac0a9821f4e83e64235d5b60", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " runtime=LAMBDA_RUNTIME_CUSTOM_RUNTIME\n runtime=LAMBDA_RUNTIME_PROVIDED\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/9e9107829fd0c8f5ac0a9821f4e83e64235d5b60", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " if is_java_lambda(runtime):\n if is_java:\n if not is_java_lambda(runtime):\n if not is_java:\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/7ff1137b8f7a5161acaccdf8270f483dff0aeeb9", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " result = self.prepareJavaOpts(expected)\n result = self.prepare_java_opts(expected)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/6f9442390af6eca799941eee765161797918dac7", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " result = self.prepareJavaOpts('-Xmx512M -agentlib:jdwp=transport=dt_socket,server=y'\n result = self.prepare_java_opts('-Xmx512M -agentlib:jdwp=transport=dt_socket,server=y'\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/6f9442390af6eca799941eee765161797918dac7", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " def prepareJavaOpts(self, java_opts):\n def prepare_java_opts(self, java_opts):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localstack/localstack/commit/6f9442390af6eca799941eee765161797918dac7", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "# ----------------\n# ---------------------\n# ----------------\n# ---------------------\n", "class": "clone", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/localstack/localstack/commit/f9dd152cbfab0a51e01e0c0b3ba7463304c8dba3", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " match = face_recognition.compare_faces([obama_face_encoding], face_encoding)\n matches = face_recognition.compare_faces(known_face_encodings, face_encoding)\n match = face_recognition.compare_faces([obama_face_encoding], face_encoding)\n matches = face_recognition.compare_faces(known_face_encodings, face_encoding)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ageitgey/face_recognition/commit/743815e2bf5cb89ab4984f1d63a82aaa52584a6d", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " if match[0]:\n name = \"Barack\"\n\n # If a match was found in known_face_encodings, just use the first one.\n if True in matches:\n first_match_index = matches.index(True)\n name = known_face_names[first_match_index]\n if match[0]:\n name = \"Barack\"\n # If a match was found in known_face_encodings, just use the first one.\n if True in matches:\n first_match_index = matches.index(True)\n name = known_face_names[first_match_index]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ageitgey/face_recognition/commit/743815e2bf5cb89ab4984f1d63a82aaa52584a6d", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " face_locations = face_recognition.face_locations(frame)\n face_encodings = face_recognition.face_encodings(frame, face_locations)\n face_locations = face_recognition.face_locations(rgb_frame)\n face_encodings = face_recognition.face_encodings(rgb_frame, face_locations)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ageitgey/face_recognition/commit/30b3bdda49219d86a27a1a304e8bbe3fbd7c3e7a", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " face_locations = face_recognition.face_locations(frame)\n face_encodings = face_recognition.face_encodings(frame, face_locations)\n face_locations = face_recognition.face_locations(rgb_frame)\n face_encodings = face_recognition.face_encodings(rgb_frame, face_locations)\n face_locations = face_recognition.face_locations(frame)\n face_encodings = face_recognition.face_encodings(frame, face_locations)\n face_locations = face_recognition.face_locations(rgb_frame)\n face_encodings = face_recognition.face_encodings(rgb_frame, face_locations)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ageitgey/face_recognition/commit/30b3bdda49219d86a27a1a304e8bbe3fbd7c3e7a", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " \"Disabled %(clsname)s: %(eargs)s\",\n {\"clsname\": clsname, \"eargs\": e.args[0]},\n \"Disabled %(clspath)s: %(eargs)s\",\n {\"clspath\": clspath, \"eargs\": e.args[0]},\n \"Disabled %(clsname)s: %(eargs)s\",\n {\"clsname\": clsname, \"eargs\": e.args[0]},\n \"Disabled %(clspath)s: %(eargs)s\",\n {\"clspath\": clspath, \"eargs\": e.args[0]},\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scrapy/scrapy/commit/e58b8078f0d51148c1866d1da3f6e36609b5e2a5", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " with warns(ScrapyDeprecationWarning, match=': FOO') as record:\n with set_env(**envvars):\n get_project_settings()\n assert len(record) == 1\n with set_env(**envvars):\n settings = get_project_settings()\n\n assert settings.get(\"SCRAPY_FOO\") is None\n with warns(ScrapyDeprecationWarning, match=': FOO') as record:\n with set_env(**envvars):\n settings = get_project_settings()\n assert len(record) == 1\n with set_env(**envvars):\n settings = get_project_settings()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/8e0025f53dc724d986855b572b6237d0a96fd821", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " def parse(self, response):\n def _parse(self, response):\n callback = request.callback or spider.parse\n callback = request.callback or spider._parse\n def parse(self, response):\n def _parse(self, response):\n def parse(self, response):\n def _parse(self, response):\n output = list(spider.parse(response))\n output = list(spider._parse(response))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/b9a58798eed39bf543b9682d9ce43b13378a5074", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 5 ] }, { "input": " output = list(spider.parse(response))\n output = list(spider._parse(response))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/b9a58798eed39bf543b9682d9ce43b13378a5074", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": " value = flatten([extract_regex(regex, x) for x in value])\n value = flatten(extract_regex(regex, x) for x in value)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/scrapy/scrapy/commit/be7821a48200e784e26f7b6160d44a854953b12e", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " return flatten([self.selector.xpath(xpath).extract() for xpath in xpaths])\n return flatten(self.selector.xpath(xpath).extract() for xpath in xpaths)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/scrapy/scrapy/commit/be7821a48200e784e26f7b6160d44a854953b12e", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " return flatten([self.selector.css(css).extract() for css in csss])\n return flatten(self.selector.css(css).extract() for css in csss)\n value = flatten([extract_regex(regex, x) for x in value])\n value = flatten(extract_regex(regex, x) for x in value)\n return flatten([self.selector.xpath(xpath).extract() for xpath in xpaths])\n return flatten(self.selector.xpath(xpath).extract() for xpath in xpaths)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/scrapy/scrapy/commit/be7821a48200e784e26f7b6160d44a854953b12e", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " p = self.proc('parse', '--spider', self.spider_name, '-a', 'test_arg=1',\n '-c', 'parse', 'http://scrapinghub.com')\n log = p.stderr.read()\n self.assert_(\"[parse_spider] DEBUG: It Works!\" in log, log)\n _, _, stderr = yield self.execute(['--spider', self.spider_name,\n '-a', 'test_arg=1',\n '-c', 'parse',\n self.url('/html')])\n self.assert_(\"[parse_spider] DEBUG: It Works!\" in stderr, stderr)\n p = self.proc('parse', '--spider', self.spider_name, '--pipelines',\n '-c', 'parse', 'http://scrapinghub.com')\n log = p.stderr.read()\n self.assert_(\"[scrapy] INFO: It Works!\" in log, log)\n _, _, stderr = yield self.execute(['--spider', self.spider_name,\n '--pipelines',\n '-c', 'parse',\n self.url('/html')])\n self.assert_(\"[scrapy] INFO: It Works!\" in stderr, stderr)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/d68615a5af6df2f972c7d46ab3fb8950f15747e6", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " sflo = log.start_from_crawler(crawler)\n log_observer = log.start_from_crawler(crawler)\n if sflo:\n crawler.signals.connect(sflo.stop, signals.engine_stopped)\n if log_observer:\n crawler.signals.connect(log_observer.stop, signals.engine_stopped)\n sflo = ScrapyFileLogObserver(file, loglevel, logencoding, crawler)\n log_observer = ScrapyFileLogObserver(file, loglevel, logencoding, crawler)\n log.startLoggingWithObserver(sflo.emit, setStdout=logstdout)\n log.startLoggingWithObserver(log_observer.emit, setStdout=logstdout)\n return sflo\n return log_observer\n sflo = start_from_settings(settings)\n if sflo:\n msg(\"Scrapy %s started (bot: %s)\" % (scrapy.__version__, \\\n log_observer = start_from_settings(settings)\n if log_observer:\n msg(\"Scrapy %s started (bot: %s)\" % (scrapy.__version__,\n sflo.stop()\n log_observer.stop()\n self.sflo = log.ScrapyFileLogObserver(self.f, self.level, self.encoding)\n self.sflo.start()\n self.log_observer = log.ScrapyFileLogObserver(self.f, self.level, self.encoding)\n self.log_observer.start()\n self.sflo.stop()\n self.log_observer.stop()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/9d3aa945f4508afbe6935bd662cdf21ee65a2210", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " if sflo:\n crawler.signals.connect(sflo.stop, signals.engine_stopped)\n if log_observer:\n crawler.signals.connect(log_observer.stop, signals.engine_stopped)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scrapy/scrapy/commit/9d3aa945f4508afbe6935bd662cdf21ee65a2210", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " sflo = ScrapyFileLogObserver(file, loglevel, logencoding, crawler)\n log_observer = ScrapyFileLogObserver(file, loglevel, logencoding, crawler)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/9d3aa945f4508afbe6935bd662cdf21ee65a2210", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8 ] }, { "input": " return sflo\n return log_observer\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/9d3aa945f4508afbe6935bd662cdf21ee65a2210", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8 ] }, { "input": " sflo = start_from_settings(settings)\n if sflo:\n msg(\"Scrapy %s started (bot: %s)\" % (scrapy.__version__, \\\n log_observer = start_from_settings(settings)\n if log_observer:\n msg(\"Scrapy %s started (bot: %s)\" % (scrapy.__version__,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scrapy/scrapy/commit/9d3aa945f4508afbe6935bd662cdf21ee65a2210", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8 ] }, { "input": " sflo.stop()\n log_observer.stop()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/9d3aa945f4508afbe6935bd662cdf21ee65a2210", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8 ] }, { "input": " self.sflo = log.ScrapyFileLogObserver(self.f, self.level, self.encoding)\n self.sflo.start()\n self.log_observer = log.ScrapyFileLogObserver(self.f, self.level, self.encoding)\n self.log_observer.start()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scrapy/scrapy/commit/9d3aa945f4508afbe6935bd662cdf21ee65a2210", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8 ] }, { "input": " self.sflo.stop()\n self.log_observer.stop()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/9d3aa945f4508afbe6935bd662cdf21ee65a2210", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7 ] }, { "input": "from scrapy.contrib.spiders.init import InitSpider\nfrom scrapy.spider import BaseSpider\nfrom scrapy.contrib.spiders.init import InitSpider\nfrom scrapy.spider import BaseSpider\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/2e74ccaa7e088e059cc261cfb8f00f6b48c18a80", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "class CrawlSpider(InitSpider):\nclass CrawlSpider(BaseSpider):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/scrapy/scrapy/commit/2e74ccaa7e088e059cc261cfb8f00f6b48c18a80", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "class XMLFeedSpider(InitSpider):\nclass XMLFeedSpider(BaseSpider):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/scrapy/scrapy/commit/2e74ccaa7e088e059cc261cfb8f00f6b48c18a80", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 5 ] }, { "input": "class CSVFeedSpider(InitSpider):\nclass CSVFeedSpider(BaseSpider):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/scrapy/scrapy/commit/2e74ccaa7e088e059cc261cfb8f00f6b48c18a80", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " self.eggs_dir = config.get('eggs_dir', 'eggs')\n self.dbs_dir = config.get('dbs_dir', 'dbs')\n self.config = config\n self.eggs_dir = config.get('eggs_dir', 'eggs')\n self.dbs_dir = config.get('dbs_dir', 'dbs')\n self.config = config\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/f3769651af2a375572f72025dfdeaf6d6cf1f8ce", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " self.queues = get_spider_queues(self.eggs_dir, self.dbs_dir)\n self.queues = get_spider_queues(self.config)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scrapy/scrapy/commit/f3769651af2a375572f72025dfdeaf6d6cf1f8ce", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5, 7 ] }, { "input": " self.queues = get_spider_queues(self.eggs_dir, self.dbs_dir)\n self.queues = get_spider_queues(self.config) self.queues = get_spider_queues(self.eggs_dir, self.dbs_dir)\n self.queues = get_spider_queues(self.config)\n self.queues = get_spider_queues(eggs_dir, dbs_dir)\n self.queues = get_spider_queues(config)\n self.queues = get_spider_queues(eggs_dir, dbs_dir)\n self.queues = get_spider_queues(config)\ndef get_spider_queues(eggsdir, dbsdir):\ndef get_spider_queues(config):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scrapy/scrapy/commit/f3769651af2a375572f72025dfdeaf6d6cf1f8ce", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5, 7 ] }, { "input": "def get_spider_queues(eggsdir, dbsdir):\ndef get_spider_queues(config):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/scrapy/scrapy/commit/f3769651af2a375572f72025dfdeaf6d6cf1f8ce", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": " log.msg(\"Enabled downloader middlewares: %s\" % \", \".join([type(m).__name__ for m in mws]))\n log.msg(\"Enabled downloader middlewares: %s\" % \", \".join([type(m).__name__ for m in mws]),\n level=log.DEBUG)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.01646090534979424, "commit_url": "https://github.com/scrapy/scrapy/commit/fda1fe0eb827c2db8a6d82e7728dae82d9c0a76d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " log.msg(\"Enabled extensions: %s\" % \", \".join(extensions.enabled.iterkeys()))\n log.msg(\"Enabled extensions: %s\" % \", \".join(extensions.enabled.iterkeys()),\n level=log.DEBUG)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.01639344262295082, "commit_url": "https://github.com/scrapy/scrapy/commit/fda1fe0eb827c2db8a6d82e7728dae82d9c0a76d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": " log.msg(\"Enabled scheduler middlewares: %s\" % \", \".join([type(m).__name__ for m in self.mws]))\n log.msg(\"Enabled scheduler middlewares: %s\" % \", \".join([type(m).__name__ for m in self.mws]),\n level=log.DEBUG)\n log.msg(\"Enabled downloader middlewares: %s\" % \", \".join([type(m).__name__ for m in mws]))\n log.msg(\"Enabled downloader middlewares: %s\" % \", \".join([type(m).__name__ for m in mws]),\n level=log.DEBUG)\n log.msg(\"Enabled extensions: %s\" % \", \".join(extensions.enabled.iterkeys()))\n log.msg(\"Enabled extensions: %s\" % \", \".join(extensions.enabled.iterkeys()),\n level=log.DEBUG)\n log.msg(\"Enabled item pipelines: %s\" % \", \".join([type(p).__name__ for p in self.pipeline]))\n log.msg(\"Enabled item pipelines: %s\" % \", \".join([type(p).__name__ for p in self.pipeline]),\n level=log.DEBUG)\n log.msg(\"Enabled spider middlewares: %s\" % \", \".join([type(m).__name__ for m in mws]))\n log.msg(\"Enabled spider middlewares: %s\" % \", \".join([type(m).__name__ for m in mws]),\n level=log.DEBUG)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0163265306122449, "commit_url": "https://github.com/scrapy/scrapy/commit/fda1fe0eb827c2db8a6d82e7728dae82d9c0a76d", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": " log.msg(\"Enabled spider middlewares: %s\" % \", \".join([type(m).__name__ for m in mws]))\n log.msg(\"Enabled spider middlewares: %s\" % \", \".join([type(m).__name__ for m in mws]),\n level=log.DEBUG)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.016194331983805668, "commit_url": "https://github.com/scrapy/scrapy/commit/fda1fe0eb827c2db8a6d82e7728dae82d9c0a76d", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": "from scrapy.utils.misc import hash_values, items_to_csv, load_object, to_list\nfrom scrapy.utils.misc import hash_values, items_to_csv, load_object, arg_to_list\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/ca22e332d14199786ace8422384954cb072ae4d2", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "def to_list(obj):\n if obj is None:\ndef arg_to_list(arg):\n \"\"\"Convert an argument to list, so that it can be iterated. The argument\n can be a None, single value, or an iterable. \n \n This is meant to be used in functions for arguments which can be either\n None, single valued or multi-valued.\n \"\"\"\n if arg is None:\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/scrapy/scrapy/commit/ca22e332d14199786ace8422384954cb072ae4d2", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4 ] }, { "input": " elif hasattr(obj, '__iter__'):\n return list(obj)\n elif hasattr(arg, '__iter__'):\n return list(arg)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/scrapy/scrapy/commit/ca22e332d14199786ace8422384954cb072ae4d2", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " return [obj]\n return [arg]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/ca22e332d14199786ace8422384954cb072ae4d2", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "from scrapy.item.pipeline import ItemPipeline\nfrom scrapy.item.pipeline import ItemPipelineManager\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/fc36ad002fe555e0caf55597a51451185c059c5e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " self.pipeline = ItemPipeline()\n self.pipeline = ItemPipelineManager()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/fc36ad002fe555e0caf55597a51451185c059c5e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "class ItemPipeline(object):\nclass ItemPipelineManager(object):\nfrom scrapy.item.pipeline import ItemPipeline\nfrom scrapy.item.pipeline import ItemPipelineManager\n self.pipeline = ItemPipeline()\n self.pipeline = ItemPipelineManager()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/fc36ad002fe555e0caf55597a51451185c059c5e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "def getcmdname():\n for arg in sys.argv[1:]:\ndef getcmdname(argv):\n for arg in argv[1:]:\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/801b804a4d579e46e32688d84120bcdee87d36bf", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "def usage():\n s = \"usage: %s [options] [args]\\n\" % sys.argv[0]\n s += \" %s -h\\n\\n\" % sys.argv[0]\ndef usage(argv):\n s = \"usage: %s [options] [args]\\n\" % argv[0]\n s += \" %s -h\\n\\n\" % argv[0]\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/801b804a4d579e46e32688d84120bcdee87d36bf", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " cmdname = getcmdname()\n cmdname = getcmdname(argv)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/801b804a4d579e46e32688d84120bcdee87d36bf", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " print usage()\n print usage(argv)\ndef usage():\n s = \"usage: %s [options] [args]\\n\" % sys.argv[0]\n s += \" %s -h\\n\\n\" % sys.argv[0]\ndef usage(argv):\n s = \"usage: %s [options] [args]\\n\" % argv[0]\n s += \" %s -h\\n\\n\" % argv[0]\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/801b804a4d579e46e32688d84120bcdee87d36bf", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": "def order_up(request, article_id):\ndef position_up(request, article_id):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/06effebd32301488737c46f7df1d636246344727", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 1 ] }, { "input": "def order_down(request, article_id):\ndef position_down(request, article_id):\n def order_down(self):\n self.order -= 1\n def position_down(self):\n self.position -= 1\n article.order_down()\n article.position_down()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/scrapy/scrapy/commit/06effebd32301488737c46f7df1d636246344727", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 10 ] }, { "input": "def extract_args(detector, aligner, in_path, out_path, args=None):\ndef extract_args(detector, aligner, masker, in_path, out_path, args=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/deepfakes/faceswap/commit/ef49d121e16901810729600e76ebb201cee4e7ab", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " extract_args(\"Cv2-Dnn\", \"Cv2-Dnn\", vid_path, pathjoin(vid_base, \"faces\"))\n extract_args(\"Cv2-Dnn\", \"Cv2-Dnn\", \"extended\", vid_path, pathjoin(vid_base, \"faces\"))\ndef extract_args(detector, aligner, in_path, out_path, args=None):\ndef extract_args(detector, aligner, masker, in_path, out_path, args=None):\n extract_args(\"Cv2-Dnn\", \"Cv2-Dnn\", img_base, pathjoin(img_base, \"faces\"))\n extract_args(\"Cv2-Dnn\", \"Cv2-Dnn\", \"extended\", img_base, pathjoin(img_base, \"faces\"))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/deepfakes/faceswap/commit/ef49d121e16901810729600e76ebb201cee4e7ab", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "def convert_one_image(image, model_dir=\"models\"):\ndef convert_one_image(image, model_dir=\"models\", swap_model=False, use_aligner=False):\n\n face_A = '/decoder_A.h5' if not swap_model else '/decoder_B.h5'\n face_B = '/decoder_B.h5' if not swap_model else '/decoder_A.h5'\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/deepfakes/faceswap/commit/d493cadeca8cc1aa64e30ee76abb57e1400ff084", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " new_face = convert_one_image(cv2.resize(face.image, (256, 256)), self.arguments.model_dir)\n new_face = convert_one_image(cv2.resize(face.image, (256, 256)), self.arguments.model_dir, self.arguments.swap_model)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/deepfakes/faceswap/commit/d493cadeca8cc1aa64e30ee76abb57e1400ff084", "target_edit_idx": 6, "propagatable_edit_idx": [ 0 ] }, { "input": " download_main(download, download_playlist, args, playlist, stream_id=stream_id, output_dir=output_dir, merge=merge, info_only=info_only)\n if not extractor_proxy:\n download_main(download, download_playlist, args, playlist, stream_id=stream_id, output_dir=output_dir, merge=merge, info_only=info_only)\n else:\n download_main(download, download_playlist, args, playlist, stream_id=stream_id, extractor_proxy=extractor_proxy, output_dir=output_dir, merge=merge, info_only=info_only)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/soimort/you-get/commit/d6ec844902f5b61c629ae17848f6c5d4d8d2e077", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " download_main(download, download_playlist, args, playlist, output_dir=output_dir, merge=merge, info_only=info_only)\n if not extractor_proxy:\n download_main(download, download_playlist, args, playlist, output_dir=output_dir, merge=merge, info_only=info_only)\n else:\n download_main(download, download_playlist, args, playlist, extractor_proxy=extractor_proxy, output_dir=output_dir, merge=merge, info_only=info_only)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/soimort/you-get/commit/d6ec844902f5b61c629ae17848f6c5d4d8d2e077", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " #global extractor_proxy\n #if extractor_proxy:\n # set_proxy(parse_host(extractor_proxy))\n if kwargs['extractor_proxy']:\n set_proxy(parse_host(kwargs['extractor_proxy']))\n #global extractor_proxy\n #if extractor_proxy:\n # set_proxy(parse_host(extractor_proxy))\n if kwargs['extractor_proxy']:\n set_proxy(parse_host(kwargs['extractor_proxy']))\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/soimort/you-get/commit/d6ec844902f5b61c629ae17848f6c5d4d8d2e077", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " #if extractor_proxy:\n # unset_proxy()\n if kwargs['extractor_proxy']:\n unset_proxy()\n #if extractor_proxy:\n # unset_proxy()\n if kwargs['extractor_proxy']:\n unset_proxy()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/soimort/you-get/commit/d6ec844902f5b61c629ae17848f6c5d4d8d2e077", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "def parse_slice(sr: SegmentRange, route: Route):\n segs = np.arange(route.max_seg_number+1)\ndef parse_slice(sr: SegmentRange):\n route = Route(sr.route_name)\n segs = parse_slice(sr, route)\n segs = parse_slice(sr)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/d574013d7bda94a43b29095887e176b9723d13cb", "target_edit_idx": 0, "propagatable_edit_idx": [ 12 ] }, { "input": " route = Route(sr.route_name)\n segs = parse_slice(sr, route)\n segs = parse_slice(sr)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/commaai/openpilot/commit/d574013d7bda94a43b29095887e176b9723d13cb", "target_edit_idx": 12, "propagatable_edit_idx": [ 0 ] }, { "input": " def __init__(self, segment_range: str, default_mode=ReadMode.RLOG, source=auto_source, sort_by_time=False):\n def __init__(self, segment_range: str, default_mode=ReadMode.RLOG, default_source=auto_source, sort_by_time=False):\n self.lrs = source(sr, mode, sort_by_time)\n self.lrs = default_source(sr, mode, sort_by_time)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/fb994ae782259e8ed4d9212edc3c9fb277f831f6", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " self.lrs = source(sr, mode, sort_by_time)\n self.lrs = default_source(sr, mode, sort_by_time)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/fb994ae782259e8ed4d9212edc3c9fb277f831f6", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " container_name=DATA_CI_CONTAINER,\n container_name=OPENPILOT_CI_CONTAINER,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/0addee2b4b9f4ad64d1cea12f4a6badf50e85e9c", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": " dest_container = ContainerClient(DATA_CI_ACCOUNT_URL, DATA_CI_CONTAINER, credential=get_azure_credential())\n dest_key = get_container_sas(DATA_CI_ACCOUNT, DATA_CI_CONTAINER)\n dest_container = ContainerClient(DATA_CI_ACCOUNT_URL, OPENPILOT_CI_CONTAINER, credential=get_azure_credential())\n dest_key = get_container_sas(DATA_CI_ACCOUNT, OPENPILOT_CI_CONTAINER)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/commaai/openpilot/commit/0addee2b4b9f4ad64d1cea12f4a6badf50e85e9c", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5, 6 ] }, { "input": " dest_key = get_container_sas(DATA_CI_ACCOUNT, DATA_CI_CONTAINER)\n dest_key = get_container_sas(DATA_CI_ACCOUNT, OPENPILOT_CI_CONTAINER)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3125, "commit_url": "https://github.com/commaai/openpilot/commit/0addee2b4b9f4ad64d1cea12f4a6badf50e85e9c", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5, 6 ] }, { "input": " f\"https://{DATA_CI_ACCOUNT}.blob.core.windows.net/{DATA_CI_CONTAINER}/{destpath}?{dest_key}\",\n f\"https://{DATA_CI_ACCOUNT}.blob.core.windows.net/{OPENPILOT_CI_CONTAINER}/{destpath}?{dest_key}\",\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3125, "commit_url": "https://github.com/commaai/openpilot/commit/0addee2b4b9f4ad64d1cea12f4a6badf50e85e9c", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4, 6 ] }, { "input": " f\"https://{DATA_CI_ACCOUNT}.blob.core.windows.net/{DATA_CI_CONTAINER}/{dongle_id}?{dest_key}\",\n f\"https://{DATA_CI_ACCOUNT}.blob.core.windows.net/{OPENPILOT_CI_CONTAINER}/{dongle_id}?{dest_key}\",\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3125, "commit_url": "https://github.com/commaai/openpilot/commit/0addee2b4b9f4ad64d1cea12f4a6badf50e85e9c", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": " steer_angle, gas, reset = controls_recv.recv()\n steer_angle, gas, should_reset = controls_recv.recv()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/f4b2b70791144a82d9c9a215996a5f51038a552d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " if reset:\n env.reset()\n if should_reset:\n reset()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/f4b2b70791144a82d9c9a215996a5f51038a552d", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " def update(self, max_cpu_temp: float, ignition: bool) -> int:\n self.controller.neg_limit = -(80 if ignition else 30)\n def update(self, cur_temp: float, ignition: bool) -> int:\n self.controller.neg_limit = -(100 if ignition else 30)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/7e9acfd1395d0612a555edd50bd4486d0cbb8d80", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " error = 70 - max_cpu_temp\n error = 70 - cur_temp\n def update(self, max_cpu_temp: float, ignition: bool) -> int:\n def update(self, cur_temp: float, ignition: bool) -> int:\n def update(self, max_cpu_temp: float, ignition: bool) -> int:\n self.controller.neg_limit = -(80 if ignition else 30)\n def update(self, cur_temp: float, ignition: bool) -> int:\n self.controller.neg_limit = -(100 if ignition else 30)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/7e9acfd1395d0612a555edd50bd4486d0cbb8d80", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " controller.update(max_cpu_temp=100, ignition=ignition)\n controller.update(100, ignition)\n controller.update(max_cpu_temp=10, ignition=ignition)\n controller.update(10, ignition)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/commaai/openpilot/commit/7e9acfd1395d0612a555edd50bd4486d0cbb8d80", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " self.assertLessEqual(controller.update(max_cpu_temp=100, ignition=False), 30)\n self.assertLessEqual(controller.update(100, False), 30)\n self.assertEqual(controller.update(max_cpu_temp=10, ignition=False), 0)\n self.assertEqual(controller.update(10, False), 0)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/7e9acfd1395d0612a555edd50bd4486d0cbb8d80", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " self.camera_lka_steering_cmd_counter = 0\n self.cam_lka_steering_cmd_counter = 0\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/ec6a55057ffe381fb65ba946e29cb59f0ee694e7", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " self.camera_lka_steering_cmd_counter = cam_cp.vl[\"ASCMLKASteeringCmd\"][\"RollingCounter\"]\n self.cam_lka_steering_cmd_counter = cam_cp.vl[\"ASCMLKASteeringCmd\"][\"RollingCounter\"]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/ec6a55057ffe381fb65ba946e29cb59f0ee694e7", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " can_sends.append(create_lat_ctl_msg(self.packer, CC.latActive, ramp_type, precision, 0., 0., -apply_curvature, 0.))\n can_sends.append(create_lat_ctl_msg(self.packer, CC.latActive, 0., 0., -apply_curvature, 0.))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/commaai/openpilot/commit/4f4f4afe8a9bca7fdaf70c2b05ef6e90263aaac8", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "def create_lat_ctl_msg(packer, lat_active: bool, ramp_type: int, precision: int, path_offset: float, path_angle: float,\n curvature: float, curvature_rate: float):\ndef create_lat_ctl_msg(packer, lat_active: bool, path_offset: float, path_angle: float, curvature: float, curvature_rate: float):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/commaai/openpilot/commit/4f4f4afe8a9bca7fdaf70c2b05ef6e90263aaac8", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " CP = CarInterface.get_non_essential_params(CAR.CIVIC)\n CP = CarInterface.get_params(CAR.CIVIC)\n CP = interfaces[car_model][0].get_non_essential_params(car_model)\n CP = interfaces[car_model][0].get_params(car_model)\n CP = CarInterface.get_non_essential_params(car_name)\n CP = CarInterface.get_params(car_name)\n CP = CarInterface.get_non_essential_params(\"mock\")\n CP = CarInterface.get_params(\"mock\")\n CP = CarInterface.get_non_essential_params(\"HONDA CIVIC 2016\")\n CP = CarInterface.get_params(\"HONDA CIVIC 2016\")\nCP = CarInterface.get_non_essential_params(CAR.CIVIC)\nCP = CarInterface.get_params(CAR.CIVIC)\n self.planner = LongitudinalPlanner(CarInterface.get_non_essential_params(CAR.CIVIC), init_v=self.speed)\n self.planner = LongitudinalPlanner(CarInterface.get_params(CAR.CIVIC), init_v=self.speed)\n CP = CarInterface.get_non_essential_params(fingerprint)\n CP = CarInterface.get_params(fingerprint)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/f14deae475f32af5b04fc2ef3744a77445ad8177", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5, 7, 8, 9, 10, 11 ] }, { "input": " CP = CarInterface.get_non_essential_params(\"HONDA CIVIC 2016\")\n CP = CarInterface.get_params(\"HONDA CIVIC 2016\")\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/f14deae475f32af5b04fc2ef3744a77445ad8177", "target_edit_idx": 8, "propagatable_edit_idx": [ 4, 5, 6, 7, 9, 10, 11 ] }, { "input": "CP = CarInterface.get_non_essential_params(CAR.CIVIC)\nCP = CarInterface.get_params(CAR.CIVIC)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/f14deae475f32af5b04fc2ef3744a77445ad8177", "target_edit_idx": 9, "propagatable_edit_idx": [ 4, 5, 6, 7, 8, 10, 11 ] }, { "input": " self.planner = LongitudinalPlanner(CarInterface.get_non_essential_params(CAR.CIVIC), init_v=self.speed)\n self.planner = LongitudinalPlanner(CarInterface.get_params(CAR.CIVIC), init_v=self.speed)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/f14deae475f32af5b04fc2ef3744a77445ad8177", "target_edit_idx": 10, "propagatable_edit_idx": [ 4, 5, 6, 7, 8, 9, 11 ] }, { "input": "def finalize_update(wait_helper: WaitTimeHelper) -> None:\ndef finalize_update() -> None:\n finalize_update(wait_helper)\n finalize_update()\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/e8c8bd902d6c21173e4067b348e2762e5aefc4ab", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": "def handle_agnos_update(wait_helper: WaitTimeHelper) -> None:\ndef handle_agnos_update() -> None:\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/e8c8bd902d6c21173e4067b348e2762e5aefc4ab", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "def fetch_update(wait_helper: WaitTimeHelper) -> bool:\ndef fetch_update() -> bool:\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/e8c8bd902d6c21173e4067b348e2762e5aefc4ab", "target_edit_idx": 6, "propagatable_edit_idx": [ 10 ] }, { "input": " handle_agnos_update(wait_helper)\n handle_agnos_update()\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/e8c8bd902d6c21173e4067b348e2762e5aefc4ab", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": " new_version = fetch_update(wait_helper)\n new_version = fetch_update()\ndef fetch_update(wait_helper: WaitTimeHelper) -> bool:\ndef fetch_update() -> bool:\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/e8c8bd902d6c21173e4067b348e2762e5aefc4ab", "target_edit_idx": 10, "propagatable_edit_idx": [ 6 ] }, { "input": "from selfdrive.car.docs import get_tier_car_info\nfrom selfdrive.car.docs import get_all_car_info\nfrom selfdrive.car.docs import CARS_MD_OUT, CARS_MD_TEMPLATE, generate_cars_md, get_tier_car_info\nfrom selfdrive.car.docs import CARS_MD_OUT, CARS_MD_TEMPLATE, generate_cars_md, get_all_car_info\n self.tier_cars = get_tier_car_info()\n self.all_cars = get_all_car_info()\n f.write(generate_cars_md(get_tier_car_info(), args.template))\n f.write(generate_cars_md(get_all_car_info(), args.template))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/dabcfd266e4e6e632064b592409fc63f543e5dbb", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 9, 6 ] }, { "input": " f.write(generate_cars_md(get_tier_car_info(), args.template))\n f.write(generate_cars_md(get_all_car_info(), args.template))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/dabcfd266e4e6e632064b592409fc63f543e5dbb", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 8, 9 ] }, { "input": "from selfdrive.car.docs import CARS_MD_OUT, CARS_MD_TEMPLATE, generate_cars_md, get_tier_car_info\nfrom selfdrive.car.docs import CARS_MD_OUT, CARS_MD_TEMPLATE, generate_cars_md, get_all_car_info\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/dabcfd266e4e6e632064b592409fc63f543e5dbb", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 9, 6 ] }, { "input": " self.tier_cars = get_tier_car_info()\n self.all_cars = get_all_car_info()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/dabcfd266e4e6e632064b592409fc63f543e5dbb", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 8, 10, 6 ] }, { "input": " generated_cars_md = generate_cars_md(self.tier_cars, CARS_MD_TEMPLATE)\n generated_cars_md = generate_cars_md(self.all_cars, CARS_MD_TEMPLATE)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/commaai/openpilot/commit/dabcfd266e4e6e632064b592409fc63f543e5dbb", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": " self._log_readers[i] = LogReader(log_path)\n self._log_readers[i] = LogReader(log_path, sort_by_time=self.sort_by_time)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.018518518518518517, "commit_url": "https://github.com/commaai/openpilot/commit/9992ea1ae82dd02199e7e04bbbb8af54728d6200", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " self._ents = list(ents)\n self._ents = list(sorted(ents, key=lambda x: x.logMonoTime) if sort_by_time else ents)\n self._ents = list(ents)\n self._ents = list(sorted(ents, key=lambda x: x.logMonoTime) if sort_by_time else ents)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/commaai/openpilot/commit/9992ea1ae82dd02199e7e04bbbb8af54728d6200", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " lr = LogReader(log_path)\n lr = LogReader(log_path, sort_by_time=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.018518518518518517, "commit_url": "https://github.com/commaai/openpilot/commit/9992ea1ae82dd02199e7e04bbbb8af54728d6200", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": "def tabulate_mapping(mapping: Mapping, title: str = None) -> Table:\n\ndef tabulate_mapping(\n mapping: Mapping,\n title: str = None,\n caption: str = None,\n title_justify: str = _NOT_PROVIDED,\n caption_justify: str = _NOT_PROVIDED,\n) -> Table:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/Textualize/rich/commit/a7b1518c6a826aea67acfe5d5e3592c03cb88870", "target_edit_idx": 8, "propagatable_edit_idx": [ 12 ] }, { "input": " print(tabulate_mapping(locals()))\n print(\n tabulate_mapping(\n locals(),\n title=\"locals()\",\n caption=\"__main__.test\",\n caption_justify=\"right\",\n )\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/Textualize/rich/commit/a7b1518c6a826aea67acfe5d5e3592c03cb88870", "target_edit_idx": 12, "propagatable_edit_idx": [ 8 ] }, { "input": " self.current_device = device_to\n self.model.device = device_to\n self.current_device = device_to\n self.model.device = device_to\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/b334605a6631c12bbe7b3aff6d77526f47acdf42", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": "def load_unet_state_dict(sd): #load unet in diffusers or regular format\ndef load_unet_state_dict(sd, dtype=None): #load unet in diffusers or regular format\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/d7430a1651a300e8230867ce3e6d86cc0101facc", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "def load_unet(unet_path):\ndef load_unet(unet_path, dtype=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/d7430a1651a300e8230867ce3e6d86cc0101facc", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " model = load_unet_state_dict(sd)\n model = load_unet_state_dict(sd, dtype=dtype)\ndef load_unet_state_dict(sd): #load unet in diffusers or regular format\ndef load_unet_state_dict(sd, dtype=None): #load unet in diffusers or regular format\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/d7430a1651a300e8230867ce3e6d86cc0101facc", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " x = torch.nn.functional.pad(x, (0, pad_w, 0, pad_h), mode='reflect')\n x = torch.nn.functional.pad(x, (0, pad_w, 0, pad_h), mode='circular')\n x = torch.nn.functional.pad(x, (0, pad_w, 0, pad_h), mode='reflect')\n x = torch.nn.functional.pad(x, (0, pad_w, 0, pad_h), mode=self.padding_mode)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/66d35c07ce44b07011314ad7a28b2bdbcbb4e4cc", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "def simple_scheduler(model, steps):\n s = model.model_sampling\ndef simple_scheduler(model_sampling, steps):\n s = model_sampling\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/1a0486bb96fb1ff10f4ea3c0d62eb815e9630585", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 7, 8, 9, 10 ] }, { "input": "def ddim_scheduler(model, steps):\n s = model.model_sampling\ndef ddim_scheduler(model_sampling, steps):\n s = model_sampling\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/1a0486bb96fb1ff10f4ea3c0d62eb815e9630585", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 7, 8, 9, 10 ] }, { "input": "def normal_scheduler(model, steps, sgm=False, floor=False):\n s = model.model_sampling\ndef normal_scheduler(model_sampling, steps, sgm=False, floor=False):\n s = model_sampling\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/1a0486bb96fb1ff10f4ea3c0d62eb815e9630585", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 7, 8, 9, 10 ] }, { "input": "def calculate_sigmas_scheduler(model, scheduler_name, steps):\ndef calculate_sigmas(model_sampling, scheduler_name, steps):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/1a0486bb96fb1ff10f4ea3c0d62eb815e9630585", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 7, 8, 9, 10 ] }, { "input": " sigmas = k_diffusion_sampling.get_sigmas_karras(n=steps, sigma_min=float(model.model_sampling.sigma_min), sigma_max=float(model.model_sampling.sigma_max))\n sigmas = k_diffusion_sampling.get_sigmas_karras(n=steps, sigma_min=float(model_sampling.sigma_min), sigma_max=float(model_sampling.sigma_max))\n sigmas = k_diffusion_sampling.get_sigmas_exponential(n=steps, sigma_min=float(model.model_sampling.sigma_min), sigma_max=float(model.model_sampling.sigma_max))\n sigmas = k_diffusion_sampling.get_sigmas_exponential(n=steps, sigma_min=float(model_sampling.sigma_min), sigma_max=float(model_sampling.sigma_max))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/1a0486bb96fb1ff10f4ea3c0d62eb815e9630585", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " sigmas = normal_scheduler(model, steps)\n sigmas = normal_scheduler(model_sampling, steps)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/1a0486bb96fb1ff10f4ea3c0d62eb815e9630585", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 2, 3, 4, 8, 9, 10 ] }, { "input": " sigmas = simple_scheduler(model, steps)\n sigmas = simple_scheduler(model_sampling, steps)\ndef simple_scheduler(model, steps):\n s = model.model_sampling\ndef simple_scheduler(model_sampling, steps):\n s = model_sampling\ndef ddim_scheduler(model, steps):\n s = model.model_sampling\ndef ddim_scheduler(model_sampling, steps):\n s = model_sampling\ndef normal_scheduler(model, steps, sgm=False, floor=False):\n s = model.model_sampling\ndef normal_scheduler(model_sampling, steps, sgm=False, floor=False):\n s = model_sampling\ndef calculate_sigmas_scheduler(model, scheduler_name, steps):\ndef calculate_sigmas(model_sampling, scheduler_name, steps):\n sigmas = normal_scheduler(model, steps)\n sigmas = normal_scheduler(model_sampling, steps)\n sigmas = ddim_scheduler(model, steps)\n sigmas = ddim_scheduler(model_sampling, steps)\n sigmas = normal_scheduler(model, steps, sgm=True)\n sigmas = normal_scheduler(model_sampling, steps, sgm=True)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/1a0486bb96fb1ff10f4ea3c0d62eb815e9630585", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 2, 3, 4, 7, 9, 10 ] }, { "input": " sigmas = ddim_scheduler(model, steps)\n sigmas = ddim_scheduler(model_sampling, steps)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/1a0486bb96fb1ff10f4ea3c0d62eb815e9630585", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 2, 3, 4, 7, 8, 10 ] }, { "input": " sigmas = normal_scheduler(model, steps, sgm=True)\n sigmas = normal_scheduler(model_sampling, steps, sgm=True)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/1a0486bb96fb1ff10f4ea3c0d62eb815e9630585", "target_edit_idx": 10, "propagatable_edit_idx": [ 1, 2, 3, 4, 7, 8, 9 ] }, { "input": " c = T2IAdapter(self.t2i_model, self.channels_in, self.compression_ratio)\n c = T2IAdapter(self.t2i_model, self.channels_in, self.compression_ratio, self.upscale_algorithm)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/03e6e81629b0eb5351f82fcbaafad8698253bfbc", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " return T2IAdapter(model_ad, model_ad.input_channels, compression_ratio)\n return T2IAdapter(model_ad, model_ad.input_channels, compression_ratio, upscale_algorithm)", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/03e6e81629b0eb5351f82fcbaafad8698253bfbc", "target_edit_idx": 9, "propagatable_edit_idx": [ 6 ] }, { "input": " self.status_notes = []\n self.status_messages = []\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/56d9496b18baa5946834d1982908df0091e1c925", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " def add_note(self, event, data, broadcast: bool):\n self.status_notes.append((event, data))\n def add_message(self, event, data, broadcast: bool):\n self.status_messages.append((event, data))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/56d9496b18baa5946834d1982908df0091e1c925", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": " self.add_note(\"execution_interrupted\", mes, broadcast=True)\n self.add_message(\"execution_interrupted\", mes, broadcast=True)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/56d9496b18baa5946834d1982908df0091e1c925", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": " self.add_note(\"execution_error\", mes, broadcast=False)\n self.add_message(\"execution_error\", mes, broadcast=False)\n def add_note(self, event, data, broadcast: bool):\n self.status_notes.append((event, data))\n def add_message(self, event, data, broadcast: bool):\n self.status_messages.append((event, data))\n self.add_note(\"execution_interrupted\", mes, broadcast=True)\n self.add_message(\"execution_interrupted\", mes, broadcast=True)\n self.add_note(\"execution_cached\",\n self.add_message(\"execution_cached\",\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/56d9496b18baa5946834d1982908df0091e1c925", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 5 ] }, { "input": " self.status_notes = []\n self.add_note(\"execution_start\", { \"prompt_id\": prompt_id}, broadcast=False)\n self.status_messages = []\n self.add_message(\"execution_start\", { \"prompt_id\": prompt_id}, broadcast=False)\n self.status_notes = []\n self.status_messages = []\n notes=e.status_notes))\n messages=e.status_messages))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/56d9496b18baa5946834d1982908df0091e1c925", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 7 ] }, { "input": " self.add_note(\"execution_cached\",\n self.add_message(\"execution_cached\",\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/56d9496b18baa5946834d1982908df0091e1c925", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " notes=e.status_notes))\n messages=e.status_messages))\n self.status_notes = []\n self.status_messages = []\n self.status_notes = []\n self.add_note(\"execution_start\", { \"prompt_id\": prompt_id}, broadcast=False)\n self.status_messages = []\n self.add_message(\"execution_start\", { \"prompt_id\": prompt_id}, broadcast=False)\n notes: List[str]\n messages: List[str]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/56d9496b18baa5946834d1982908df0091e1c925", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 4, 6 ] }, { "input": " def chunk_scanner(chunk_idx: int) -> AttnChunk:\n def chunk_scanner(chunk_idx: int, mask) -> AttnChunk:\n chunk_scanner(chunk) for chunk in torch.arange(0, k_tokens, kv_chunk_size)\n chunk_scanner(chunk, mask) for chunk in torch.arange(0, k_tokens, kv_chunk_size)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/aaa9017302b75cf4453b5f8a58788e121f8e0a39", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "def encode_cond(model_function, key, conds, **kwargs):\ndef encode_cond(model_function, key, conds, device, **kwargs):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/e6962120c6b6e36b3c87670a988ee825abba8dbe", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " positive = encode_cond(model.cond_concat, \"concat\", positive, noise=noise, latent_image=latent_image, denoise_mask=denoise_mask)\n negative = encode_cond(model.cond_concat, \"concat\", negative, noise=noise, latent_image=latent_image, denoise_mask=denoise_mask)\n positive = encode_cond(model.cond_concat, \"concat\", positive, device, noise=noise, latent_image=latent_image, denoise_mask=denoise_mask)\n negative = encode_cond(model.cond_concat, \"concat\", negative, device, noise=noise, latent_image=latent_image, denoise_mask=denoise_mask)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/e6962120c6b6e36b3c87670a988ee825abba8dbe", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " noise_sampler = BrownianTreeNoiseSampler(x, sigma_min, sigma_max, seed=seed) if noise_sampler is None else noise_sampler\n noise_sampler = BrownianTreeNoiseSampler(x, sigma_min, sigma_max, seed=seed, cpu=True) if noise_sampler is None else noise_sampler\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/e57cba4c61d3d78fac5e1a408d9f6e6d4e8a21eb", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " noise_sampler = BrownianTreeNoiseSampler(x, sigma_min, sigma_max, seed=seed) if noise_sampler is None else noise_sampler\n noise_sampler = BrownianTreeNoiseSampler(x, sigma_min, sigma_max, seed=seed, cpu=True) if noise_sampler is None else noise_sampler\n noise_sampler = BrownianTreeNoiseSampler(x, sigma_min, sigma_max, seed=seed) if noise_sampler is None else noise_sampler\n noise_sampler = BrownianTreeNoiseSampler(x, sigma_min, sigma_max, seed=seed, cpu=True) if noise_sampler is None else noise_sampler\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/e57cba4c61d3d78fac5e1a408d9f6e6d4e8a21eb", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " def __init__(self, arch=\"ViT-H-14\", device=\"cpu\", max_length=77, freeze=True, layer=\"penultimate\", layer_idx=None):\n def __init__(self, arch=\"ViT-H-14\", device=\"cpu\", max_length=77, freeze=True, layer=\"penultimate\", layer_idx=None, textmodel_path=None):\n def __init__(self, device=\"cpu\", max_length=77, freeze=True, layer=\"penultimate\", layer_idx=None):\n def __init__(self, device=\"cpu\", max_length=77, freeze=True, layer=\"penultimate\", layer_idx=None, textmodel_path=None):\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/5e6bc824aaa673813da6177832df26a247e1d7f3", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " super().__init__(device=device, freeze=freeze, textmodel_json_config=textmodel_json_config)\n super().__init__(device=device, freeze=freeze, textmodel_json_config=textmodel_json_config, textmodel_path=textmodel_path)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/5e6bc824aaa673813da6177832df26a247e1d7f3", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "def sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=1.0, disable_noise=False, start_step=None, last_step=None, force_full_denoise=False, noise_mask=None, sigmas=None):\ndef sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=1.0, disable_noise=False, start_step=None, last_step=None, force_full_denoise=False, noise_mask=None, sigmas=None, callback=None):\n def sample(self, noise, positive, negative, cfg, latent_image=None, start_step=None, last_step=None, force_full_denoise=False, denoise_mask=None, sigmas=None):\n def sample(self, noise, positive, negative, cfg, latent_image=None, start_step=None, last_step=None, force_full_denoise=False, denoise_mask=None, sigmas=None, callback=None):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/5a971cecdbacb849340f2ea7b3bcd80cc6032d1a", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " def sample(self, noise, positive, negative, cfg, latent_image=None, start_step=None, last_step=None, force_full_denoise=False, denoise_mask=None, sigmas=None):\n def sample(self, noise, positive, negative, cfg, latent_image=None, start_step=None, last_step=None, force_full_denoise=False, denoise_mask=None, sigmas=None, callback=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/5a971cecdbacb849340f2ea7b3bcd80cc6032d1a", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " samples = uni_pc.sample_unipc(self.model_wrap, noise, latent_image, sigmas, sampling_function=sampling_function, max_denoise=max_denoise, extra_args=extra_args, noise_mask=denoise_mask)\n samples = uni_pc.sample_unipc(self.model_wrap, noise, latent_image, sigmas, sampling_function=sampling_function, max_denoise=max_denoise, extra_args=extra_args, noise_mask=denoise_mask, callback=callback)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/5a971cecdbacb849340f2ea7b3bcd80cc6032d1a", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " samples = uni_pc.sample_unipc(self.model_wrap, noise, latent_image, sigmas, sampling_function=sampling_function, max_denoise=max_denoise, extra_args=extra_args, noise_mask=denoise_mask, variant='bh2')\n samples = uni_pc.sample_unipc(self.model_wrap, noise, latent_image, sigmas, sampling_function=sampling_function, max_denoise=max_denoise, extra_args=extra_args, noise_mask=denoise_mask, callback=callback, variant='bh2')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/5a971cecdbacb849340f2ea7b3bcd80cc6032d1a", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": "def touch_annotated_filepath(name):\ndef annotated_filepath(name):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/ccad603b2e6862a4a719bc34dc6bd32e65a539ad", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " name, base_dir = touch_annotated_filepath(name)\n name, base_dir = annotated_filepath(name)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/ccad603b2e6862a4a719bc34dc6bd32e65a539ad", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " input_dir = folder_paths.get_input_directory()\n image_path = folder_paths.get_annotated_filepath(image, input_dir)\n image_path = folder_paths.get_annotated_filepath(image)\n input_dir = folder_paths.get_input_directory()\n image_path = folder_paths.get_annotated_filepath(image, input_dir)\n image_path = folder_paths.get_annotated_filepath(image)\n input_dir = folder_paths.get_input_directory()\n image_path = folder_paths.get_annotated_filepath(image, input_dir)\n image_path = folder_paths.get_annotated_filepath(image)\n input_dir = folder_paths.get_input_directory()\n image_path = folder_paths.get_annotated_filepath(image, input_dir)\n image_path = folder_paths.get_annotated_filepath(image)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/ccad603b2e6862a4a719bc34dc6bd32e65a539ad", "target_edit_idx": 6, "propagatable_edit_idx": [ 11, 12, 7 ] }, { "input": " input_dir = folder_paths.get_input_directory()\n image_path = folder_paths.get_annotated_filepath(image, input_dir)\n image_path = folder_paths.get_annotated_filepath(image)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/comfyanonymous/ComfyUI/commit/ccad603b2e6862a4a719bc34dc6bd32e65a539ad", "target_edit_idx": 7, "propagatable_edit_idx": [ 11, 12, 6 ] }, { "input": " 'ie_polys' : ie_polys.dump() if ie_polys is not None else None,\n 'ie_polys' : ie_polys,\n 'ie_polys' : ie_polys.dump() if ie_polys is not None else None,\n 'ie_polys' : ie_polys,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/iperov/DeepFaceLab/commit/540650c610ea4979a23c7ed9662f0461d18185cf", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " sample_process_options=SampleProcessor.Options(random_flip=self.random_flip, normalize_tanh = True, scale_range=np.array([-0.05, 0.05])+self.src_scale_mod / 100.0 ), \n sample_process_options=SampleProcessor.Options(random_flip=self.random_flip, scale_range=np.array([-0.05, 0.05])+self.src_scale_mod / 100.0 ), \n sample_process_options=SampleProcessor.Options(random_flip=self.random_flip, normalize_tanh = True), \n sample_process_options=SampleProcessor.Options(random_flip=self.random_flip, ), \n", "class": "def&ref", "binary_label": 1, "regression_label": 0.025, "commit_url": "https://github.com/iperov/DeepFaceLab/commit/5076feb90f6bc5865ec58203e1730f140d5f9059", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " sample_process_options=SampleProcessor.Options(random_flip=self.random_flip, normalize_tanh = True), \n sample_process_options=SampleProcessor.Options(random_flip=self.random_flip, ), \n", "class": "def&ref", "binary_label": 1, "regression_label": 0.025, "commit_url": "https://github.com/iperov/DeepFaceLab/commit/5076feb90f6bc5865ec58203e1730f140d5f9059", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " S, D, SS, DD, SD, SDM = [ np.clip(x / 2 + 0.5, 0.0, 1.0) for x in ([test_A,test_B] + self.AE_view ([test_A, test_B]) ) ]\n S, D, SS, DD, SD, SDM = [ np.clip(x, 0.0, 1.0) for x in ([test_A,test_B] + self.AE_view ([test_A, test_B]) ) ]\n S, D, SS, DD, SD, = [ np.clip(x / 2 + 0.5, 0.0, 1.0) for x in ([test_A,test_B] + self.AE_view ([test_A, test_B]) ) ]\n S, D, SS, DD, SD, = [ np.clip(x, 0.0, 1.0) for x in ([test_A,test_B] + self.AE_view ([test_A, test_B]) ) ]\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/iperov/DeepFaceLab/commit/5076feb90f6bc5865ec58203e1730f140d5f9059", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " var_x = Conv2D(self.filters, kernel_size=self.kernel_size, padding=self.padding, kernel_initializer=RandomNormal(0, 0.02) )(var_x)\n var_x = Conv2D(self.filters, kernel_size=self.kernel_size, padding=self.padding, kernel_initializer=conv_initializer() )(var_x) \n var_x = Conv2D(self.filters, kernel_size=self.kernel_size, padding=self.padding, kernel_initializer=RandomNormal(0, 0.02) )(var_x)\n var_x = Conv2D(self.filters, kernel_size=self.kernel_size, padding=self.padding, kernel_initializer=conv_initializer() )(var_x)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/iperov/DeepFaceLab/commit/5076feb90f6bc5865ec58203e1730f140d5f9059", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " return LeakyReLU(0.1)(Conv2D(dim, kernel_size=5, strides=2, padding='same', kernel_initializer=RandomNormal(0, 0.02))(x))\n return LeakyReLU(0.1)(Conv2D(dim, kernel_size=5, strides=2, padding='same', kernel_initializer=conv_initializer())(x))\n return SubpixelUpscaler()(LeakyReLU(0.1)(Conv2D(dim * 4, kernel_size=3, strides=1, padding='same', kernel_initializer=RandomNormal(0, 0.02) )(x)))\n return SubpixelUpscaler()(LeakyReLU(0.1)(Conv2D(dim * 4, kernel_size=3, strides=1, padding='same', kernel_initializer=conv_initializer() )(x)))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/iperov/DeepFaceLab/commit/5076feb90f6bc5865ec58203e1730f140d5f9059", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": " if dtype.storage in arrow_string_storage:\n if dtype.storage == \"pyarrow\":\n if dtype.storage in arrow_string_storage:\n if dtype.storage == \"pyarrow\":\n", "class": "clone", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/pandas-dev/pandas/commit/4b4c86ea8f41889ac3e8b209eb360427437ab240", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " if array is np:\n if array_lib is np:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/4b4c86ea8f41889ac3e8b209eb360427437ab240", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " if array is np:\n if array_lib is np:\n if array is np:\n if array_lib is np:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/4b4c86ea8f41889ac3e8b209eb360427437ab240", "target_edit_idx": 11, "propagatable_edit_idx": [ 10 ] }, { "input": " def __nonzero__(self) -> NoReturn:\n def __bool__(self) -> NoReturn:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/8f737b331f18aa35f34b61644d3e86615b6d0c61", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " __bool__ = __nonzero__\n\n __bool__ = __nonzero__\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/8f737b331f18aa35f34b61644d3e86615b6d0c61", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " def __nonzero__(self) -> bool:\n def __bool__(self) -> bool:\n def __nonzero__(self) -> NoReturn:\n def __bool__(self) -> NoReturn:\n def __nonzero__(self) -> NoReturn:\n def __bool__(self) -> NoReturn:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/8f737b331f18aa35f34b61644d3e86615b6d0c61", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " frame = frame.copy()\n frame = frame.copy(deep=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0625, "commit_url": "https://github.com/pandas-dev/pandas/commit/f44ce136678a029772303cfcc566b95deebc86f5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 5 ] }, { "input": " data = frame.copy()\n data = frame.copy(deep=False)\n frame = frame.copy()\n frame = frame.copy(deep=False)\n frame = frame.copy()\n frame = frame.copy(deep=False)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/f44ce136678a029772303cfcc566b95deebc86f5", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " alt=lambda x: Series(x).any(skipna=skipna),\n alt=lambda x: Series(x, copy=False).any(skipna=skipna),\n alt=lambda x: Series(x).all(skipna=skipna),\n alt=lambda x: Series(x, copy=False).all(skipna=skipna),\n alt=lambda x: Series(x).mean(numeric_only=numeric_only),\n alt=lambda x: Series(x, copy=False).mean(numeric_only=numeric_only),\n alt=lambda x: Series(x).median(numeric_only=numeric_only),\n alt=lambda x: Series(x, copy=False).median(numeric_only=numeric_only),\n alt=lambda x: Series(x).std(ddof=ddof),\n alt=lambda x: Series(x, copy=False).std(ddof=ddof),\n alt=lambda x: Series(x).var(ddof=ddof),\n alt=lambda x: Series(x, copy=False).var(ddof=ddof),\n alt=lambda x: Series(x).sem(ddof=ddof),\n alt=lambda x: Series(x, copy=False).sem(ddof=ddof),\n return Series(out, index=self.result_index, dtype=\"int64\")\n return Series(out, index=self.result_index, dtype=\"int64\", copy=False)\n Series(np.arange(len(self)))\n Series(np.arange(len(self)), copy=False)\n conv_dates = Series(conv_dates, dtype=np.float64)\n conv_dates = Series(conv_dates, dtype=np.float64, copy=False)\n return Series(conv_dates, index=index)\n return Series(conv_dates, index=index, copy=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.014767932489451477, "commit_url": "https://github.com/pandas-dev/pandas/commit/a3af1523938765527188fa779277d1cccb3e9900", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 13, 14 ] }, { "input": " alt=lambda x: Series(x).all(skipna=skipna),\n alt=lambda x: Series(x, copy=False).all(skipna=skipna),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.014767932489451477, "commit_url": "https://github.com/pandas-dev/pandas/commit/a3af1523938765527188fa779277d1cccb3e9900", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8, 13, 14 ] }, { "input": " alt=lambda x: Series(x).mean(numeric_only=numeric_only),\n alt=lambda x: Series(x, copy=False).mean(numeric_only=numeric_only),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.014767932489451477, "commit_url": "https://github.com/pandas-dev/pandas/commit/a3af1523938765527188fa779277d1cccb3e9900", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8, 13, 14 ] }, { "input": " alt=lambda x: Series(x).std(ddof=ddof),\n alt=lambda x: Series(x, copy=False).std(ddof=ddof),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.014767932489451477, "commit_url": "https://github.com/pandas-dev/pandas/commit/a3af1523938765527188fa779277d1cccb3e9900", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 13, 14 ] }, { "input": " alt=lambda x: Series(x).var(ddof=ddof),\n alt=lambda x: Series(x, copy=False).var(ddof=ddof),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.014767932489451477, "commit_url": "https://github.com/pandas-dev/pandas/commit/a3af1523938765527188fa779277d1cccb3e9900", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8, 13, 14 ] }, { "input": " alt=lambda x: Series(x).sem(ddof=ddof),\n alt=lambda x: Series(x, copy=False).sem(ddof=ddof),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.014767932489451477, "commit_url": "https://github.com/pandas-dev/pandas/commit/a3af1523938765527188fa779277d1cccb3e9900", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 13, 14 ] }, { "input": " return Series(out, index=self.result_index, dtype=\"int64\")\n return Series(out, index=self.result_index, dtype=\"int64\", copy=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.014767932489451477, "commit_url": "https://github.com/pandas-dev/pandas/commit/a3af1523938765527188fa779277d1cccb3e9900", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8, 13, 14 ] }, { "input": " Series(np.arange(len(self)))\n Series(np.arange(len(self)), copy=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.014767932489451477, "commit_url": "https://github.com/pandas-dev/pandas/commit/a3af1523938765527188fa779277d1cccb3e9900", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 13, 14 ] }, { "input": " rslt[name] = pd.Series(col_arr, dtype=np.float64, index=ix)\n rslt[name] = pd.Series(col_arr, dtype=np.float64, index=ix, copy=False)\n return pd.Series(dt64ms, index=sas_datetimes.index)\n return pd.Series(dt64ms, index=sas_datetimes.index, copy=False)\n return pd.Series(vals, dtype=\"M8[s]\", index=sas_datetimes.index)\n return pd.Series(vals, dtype=\"M8[s]\", index=sas_datetimes.index, copy=False)\n rslt[name] = pd.Series(self._string_chunk[js, :], index=ix)\n rslt[name] = pd.Series(self._string_chunk[js, :], index=ix, copy=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.012658227848101266, "commit_url": "https://github.com/pandas-dev/pandas/commit/a3af1523938765527188fa779277d1cccb3e9900", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 10, 12 ] }, { "input": " rslt[name] = pd.Series(self._string_chunk[js, :], index=ix)\n rslt[name] = pd.Series(self._string_chunk[js, :], index=ix, copy=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.012658227848101266, "commit_url": "https://github.com/pandas-dev/pandas/commit/a3af1523938765527188fa779277d1cccb3e9900", "target_edit_idx": 12, "propagatable_edit_idx": [ 9, 10, 11 ] }, { "input": " return Series(conv_dates, index=index)\n return Series(conv_dates, index=index, copy=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.012658227848101266, "commit_url": "https://github.com/pandas-dev/pandas/commit/a3af1523938765527188fa779277d1cccb3e9900", "target_edit_idx": 14, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 13 ] }, { "input": " return PandasDataFrameXchg(self, nan_as_null, allow_copy)\n return PandasDataFrameXchg(self, allow_copy=allow_copy)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/pandas-dev/pandas/commit/38589f919a36d23739b936fd894d2281acfed63e", "target_edit_idx": 2, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " return PandasDataFrameXchg(self._df, nan_as_null, allow_copy)\n # `nan_as_null` can be removed here once it's removed from\n # Dataframe.__dataframe__\n return PandasDataFrameXchg(self._df, allow_copy)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/pandas-dev/pandas/commit/38589f919a36d23739b936fd894d2281acfed63e", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " return PandasDataFrameXchg(\n self._df.loc[:, names], self._nan_as_null, self._allow_copy\n )\n return PandasDataFrameXchg(self._df.loc[:, names], allow_copy=self._allow_copy)\n return PandasDataFrameXchg(self, nan_as_null, allow_copy)\n return PandasDataFrameXchg(self, allow_copy=allow_copy)\n return PandasDataFrameXchg(self._df, nan_as_null, allow_copy)\n # `nan_as_null` can be removed here once it's removed from\n # Dataframe.__dataframe__\n return PandasDataFrameXchg(self._df, allow_copy)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/pandas-dev/pandas/commit/38589f919a36d23739b936fd894d2281acfed63e", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 5 ] }, { "input": " def values_for_json(self) -> np.ndarray:\n return np.asarray(self.values)\n\n def values_for_json(self) -> np.ndarray:\n return self.values\n\n def values_for_json(self) -> np.ndarray:\n return self.values._ndarray\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/b379f99590ae076496eb4c7fab363ed62049d816", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " pat = f\"^{re.escape(pat)}\"\n return self._str_contains(pat, na=na, regex=True)\n result = pc.starts_with(self._pa_array, pattern=pat)\n if not isna(na):\n result = result.fill_null(na)\n result = BooleanDtype().__from_arrow__(result)\n if not isna(na):\n result[isna(result)] = bool(na)\n return result\n pat = f\"{re.escape(pat)}$\"\n return self._str_contains(pat, na=na, regex=True)\n result = pc.ends_with(self._pa_array, pattern=pat)\n if not isna(na):\n result = result.fill_null(na)\n result = BooleanDtype().__from_arrow__(result)\n if not isna(na):\n result[isna(result)] = bool(na)\n return result\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pandas-dev/pandas/commit/431dd6fce8795e69431e9d565fd6150c3a90afe0", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " with tm.maybe_produces_warning(\n PerformanceWarning, any_string_dtype == \"string[pyarrow]\"\n ):\n result = values.str.contains(\"FOO|mmm\", case=False)\n\n result = values.str.contains(\"FOO|mmm\", case=False)\n with tm.maybe_produces_warning(\n PerformanceWarning, any_string_dtype == \"string[pyarrow]\"\n ):\n result = ser.str.fullmatch(\"ab\", case=False)\n result = ser.str.fullmatch(\"ab\", case=False)\n with tm.maybe_produces_warning(\n PerformanceWarning, any_string_dtype == \"string[pyarrow]\"\n ):\n result = s.str.contains(\"a\", case=False)\n result = s.str.contains(\"a\", case=False)\n with tm.maybe_produces_warning(\n PerformanceWarning, any_string_dtype == \"string[pyarrow]\"\n ):\n result = s.str.contains(\"ba\", case=False)\n result = s.str.contains(\"ba\", case=False)\n with tm.maybe_produces_warning(\n PerformanceWarning, any_string_dtype == \"string[pyarrow]\"\n ):\n result = values.str.match(\"ab\", case=False)\n result = values.str.match(\"ab\", case=False)\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/431dd6fce8795e69431e9d565fd6150c3a90afe0", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 5, 6, 7 ] }, { "input": " numba_func = jit_user_function(func, nopython, nogil, parallel)\n numba_func = jit_user_function(func)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pandas-dev/pandas/commit/a1f050aef65c218ebe1ca12adcf011b030553042", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 10, 4, 9 ] }, { "input": "def jit_user_function(\n func: Callable, nopython: bool, nogil: bool, parallel: bool\n) -> Callable:\ndef jit_user_function(func: Callable) -> Callable:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pandas-dev/pandas/commit/a1f050aef65c218ebe1ca12adcf011b030553042", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 10, 9 ] }, { "input": " not is_numpy_dev,\n not np_version_gte1p24p3,\n not is_numpy_dev,\n not np_version_gte1p24p3,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/ce94afa62fbc7079863c190d89e78dd1d2e69c02", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " not is_numpy_dev,\n not np_version_gte1p24p3,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/ce94afa62fbc7079863c190d89e78dd1d2e69c02", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " class:`matplotlib.axes.Axes`\n :class:`matplotlib.axes.Axes`\n class:`matplotlip.axis.Axes`\n :class:`matplotlib.axes.Axes`\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/pandas-dev/pandas/commit/aebcfdf923d8eeb83e1932c5cc9b775ec0d09295", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "from pandas.compat import pa_version_under4p0\n\nfrom pandas.compat.pyarrow import pa_version_under4p0\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/f244ee9d225ec56d912da33a2bee671939c80f01", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "@pytest.mark.xfail(\n pa_version_under4p0, reason=\"pyarrow incorrectly uses pandas internals API\"\n)\n@pytest.mark.xfail(\n pa_version_under4p0, reason=\"pyarrow incorrectly uses pandas internals API\"\n)\n@pytest.mark.xfail(\n pa_version_under4p0, reason=\"pyarrow incorrectly uses pandas internals API\"\n)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/f244ee9d225ec56d912da33a2bee671939c80f01", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " other : Series, DataFrame, or ndarray, optional\n other : Series or DataFrame , optional\n other : Series, DataFrame, or ndarray, optional\n other : Series or DataFrame, optional\n other : Series, DataFrame, or ndarray, optional\n other : Series or DataFrame, optional\n other : Series, DataFrame, or ndarray, optional\n other : Series or DataFrame, optional\n other : Series, DataFrame, or ndarray, optional\n other : Series or DataFrame, optional\n other : Series, DataFrame, or ndarray, optional\n other : Series or DataFrame, optional\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/454194e76a49cabf0b70389789ac95f246036a7d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " mgr = init_dict(data, index, columns, dtype=dtype)\n mgr = dict_to_mgr(data, index, columns, dtype=dtype)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/d51ee22df2c59586791b181468dc43d018da7069", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 11, 4, 5 ] }, { "input": " mgr = init_ndarray(data, index, columns, dtype=dtype, copy=copy)\n mgr = ndarray_to_mgr(data, index, columns, dtype=dtype, copy=copy)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/d51ee22df2c59586791b181468dc43d018da7069", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 10, 6, 7 ] }, { "input": " mgr = init_dict({data.name: data}, index, columns, dtype=dtype)\n mgr = dict_to_mgr({data.name: data}, index, columns, dtype=dtype)\n mgr = init_dict({}, index, columns, dtype=dtype)\n mgr = dict_to_mgr({}, index, columns, dtype=dtype)\n mgr = init_dict(data, index, columns, dtype=dtype)\n mgr = dict_to_mgr(data, index, columns, dtype=dtype)\ndef init_dict(data: Dict, index, columns, dtype: Optional[DtypeObj] = None):\ndef dict_to_mgr(data: Dict, index, columns, dtype: Optional[DtypeObj] = None):\n mgr = init_dict(data, index, columns, dtype=dtype)\n mgr = dict_to_mgr(data, index, columns, dtype=dtype)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/d51ee22df2c59586791b181468dc43d018da7069", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 2, 11, 4 ] }, { "input": " mgr = init_dict({}, index, columns, dtype=dtype)\n mgr = dict_to_mgr({}, index, columns, dtype=dtype)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/d51ee22df2c59586791b181468dc43d018da7069", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 11, 4, 5 ] }, { "input": " mgr = init_ndarray(\n mgr = ndarray_to_mgr(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/d51ee22df2c59586791b181468dc43d018da7069", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 3, 6, 7 ] }, { "input": "def init_ndarray(values, index, columns, dtype: Optional[DtypeObj], copy: bool):\ndef ndarray_to_mgr(values, index, columns, dtype: Optional[DtypeObj], copy: bool):\n # used in DataFrame.__init__\n mgr = init_ndarray(\n mgr = ndarray_to_mgr(\n mgr = init_ndarray(data, index, columns, dtype=dtype, copy=copy)\n mgr = ndarray_to_mgr(data, index, columns, dtype=dtype, copy=copy)\n mgr = init_ndarray(data, index, columns, dtype=dtype, copy=copy)\n mgr = ndarray_to_mgr(data, index, columns, dtype=dtype, copy=copy)\n mgr = init_ndarray(data, index, columns, dtype=dtype, copy=copy)\n mgr = ndarray_to_mgr(data, index, columns, dtype=dtype, copy=copy)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/d51ee22df2c59586791b181468dc43d018da7069", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 3, 6, 7 ] }, { "input": " self._codes = coerce_indexer_dtype(values, dtype.categories)\n self._ndarray = coerce_indexer_dtype(values, dtype.categories)\n self._codes = coerce_indexer_dtype(codes, dtype.categories)\n self._ndarray = coerce_indexer_dtype(codes, dtype.categories)\n cat._codes = codes\n cat._ndarray = codes\n cat._codes = coerce_indexer_dtype(cat._codes, new_dtype.categories)\n cat._ndarray = coerce_indexer_dtype(cat._ndarray, new_dtype.categories)\n cat._codes = coerce_indexer_dtype(inv, new_dtype.categories)\n cat._ndarray = coerce_indexer_dtype(inv, new_dtype.categories)\n code = self._codes.dtype.type(code)\n code = self._ndarray.dtype.type(code)\n cat._codes = unique_codes\n cat._ndarray = unique_codes\n ci.values._codes = ci.values._codes.astype(\"int64\")\n ci.values._ndarray = ci.values._ndarray.astype(\"int64\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.12121212121212122, "commit_url": "https://github.com/pandas-dev/pandas/commit/3ccbbfd16a98bdb9e770083308c18bcf37b4f432", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 8, 9, 10 ] }, { "input": " yvalues = getattr(yvalues, \"values\", yvalues)\n xvalues = getattr(xvalues, \"values\", xvalues)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/9310cb7d8dc6e6a36e0d9d17059f4d4b7a813d86", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " inds = xvalues\n inds = xarr\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/pandas-dev/pandas/commit/9310cb7d8dc6e6a36e0d9d17059f4d4b7a813d86", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " inds = np.asarray(xvalues)\n\n # hack for DatetimeIndex, #1646\n if needs_i8_conversion(inds.dtype):\n inds = inds.view(np.int64)\n inds = np.asarray(xarr)\n inds = xvalues\n inds = xarr\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/pandas-dev/pandas/commit/9310cb7d8dc6e6a36e0d9d17059f4d4b7a813d86", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": " @pytest.mark.parametrize(\n \"method\", [\"argmax\", \"argmin\"],\n )\n @pytest.mark.parametrize(\"method\", [\"argmax\", \"argmin\"])\n @pytest.mark.parametrize(\n \"method\", [\"argmax\", \"argmin\"],\n )\n @pytest.mark.parametrize(\"method\", [\"argmax\", \"argmin\"])\n @pytest.mark.parametrize(\n \"method\", [\"argmax\", \"argmin\"],\n )\n @pytest.mark.parametrize(\"method\", [\"argmax\", \"argmin\"])\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pandas-dev/pandas/commit/faae2f0c8e4aab3086d690bab248d1a2ab44fcff", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " self._check_compatible_with(value)\n self._check_compatible_with(value, setitem=True)\n self._check_compatible_with(value)\n self._check_compatible_with(value, setitem=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/pandas-dev/pandas/commit/bebaff09d511b6478d3ce279fab34e55e48e796a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " self._check_compatible_with(value)\n self._check_compatible_with(value, setitem=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/pandas-dev/pandas/commit/bebaff09d511b6478d3ce279fab34e55e48e796a", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " def _check_compatible_with(self, other):\n def _check_compatible_with(self, other, setitem: bool = False):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/bebaff09d511b6478d3ce279fab34e55e48e796a", "target_edit_idx": 4, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " def _wrap_output(self, output, index, names=None):\n def _wrap_series_output(self, output, index, names=None):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/df2e0813e053cc5bc924b2292ea8918a6b27f0e2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " result = self._wrap_output(\n result = self._wrap_series_output(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/df2e0813e053cc5bc924b2292ea8918a6b27f0e2", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " result = self._aggregate_generic(func, *args, **kwargs)\n result = self._aggregate_frame(func, *args, **kwargs)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/df2e0813e053cc5bc924b2292ea8918a6b27f0e2", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " result = self._aggregate_generic(func)\n result = self._aggregate_frame(func)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/df2e0813e053cc5bc924b2292ea8918a6b27f0e2", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " def _aggregate_generic(self, func, *args, **kwargs):\n def _aggregate_frame(self, func, *args, **kwargs):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/df2e0813e053cc5bc924b2292ea8918a6b27f0e2", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " return self._wrap_generic_output(result, obj)\n return self._wrap_frame_output(result, obj)\n def _wrap_generic_output(self, result, obj):\n def _wrap_frame_output(self, result, obj):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/df2e0813e053cc5bc924b2292ea8918a6b27f0e2", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " def _wrap_generic_output(self, result, obj):\n def _wrap_frame_output(self, result, obj):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/df2e0813e053cc5bc924b2292ea8918a6b27f0e2", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": " fill_value = iNaT\n fill_value = fill_value.dtype.type(\"NaT\", \"ns\")\n fill_value = iNaT\n fill_value = dtype.type(\"NaT\", \"ns\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/pandas-dev/pandas/commit/bbfd4bac2f9a862bf5fc6b78ee22a2217128e0d5", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " fill_value = tslibs.Timestamp(fill_value).value\n fill_value = tslibs.Timestamp(fill_value).to_datetime64()\n fill_value = tslibs.Timedelta(fill_value).value\n fv = tslibs.Timedelta(fill_value)\n if fv is NaT:\n # NaT has no `to_timedelta6` method\n fill_value = np.timedelta64(\"NaT\", \"ns\")\n else:\n fill_value = fv.to_timedelta64()\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pandas-dev/pandas/commit/bbfd4bac2f9a862bf5fc6b78ee22a2217128e0d5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " exp_val_for_scalar = pd.Timestamp(fill_value).value\n exp_val_for_array = iNaT\n exp_val_for_scalar = pd.Timestamp(fill_value).to_datetime64()\n exp_val_for_array = np.datetime64(\"NaT\", \"ns\")\n exp_val_for_scalar = pd.Timedelta(fill_value).value\n exp_val_for_array = iNaT\n exp_val_for_scalar = pd.Timedelta(fill_value).to_timedelta64()\n exp_val_for_array = np.timedelta64(\"NaT\", \"ns\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pandas-dev/pandas/commit/bbfd4bac2f9a862bf5fc6b78ee22a2217128e0d5", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " dateIndex = makeDateIndex(N)\n dateIndex = Index(dateIndex, dtype=object)\n data = makeStringIndex(N)\n data = Index(data, dtype=object)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.019230769230769232, "commit_url": "https://github.com/pandas-dev/pandas/commit/25d71fe1a223888ce8464d05313d5022d145327c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " return Series(dateIndex, index=index, name=name)\n return Series(data, index=index, name=name)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/25d71fe1a223888ce8464d05313d5022d145327c", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "def to_clipboard(obj, sep=None, **kwargs): # pragma: no cover\ndef to_clipboard(obj, excel=None, sep=None, **kwargs): # pragma: no cover\n def to_clipboard(self, sep=None, **kwargs):\n def to_clipboard(self, excel=None, sep=None, **kwargs):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/e4e57d9ad54185afc3d888e195244f9a446b85bd", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": "import pandas.core.common as common\nimport pandas.core.common as com\n new_values = common.take_1d(self.values, fill_vec)\n new_values = com.take_1d(self.values, fill_vec)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/2600432d85364e196bec37889cf6939b5f796243", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " new_values = common.take_1d(self.values, fill_vec)\n new_values = com.take_1d(self.values, fill_vec)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/2600432d85364e196bec37889cf6939b5f796243", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " def describe(self):\n def describe(self, percentile_width=50):\n def describe(self):\n def describe(self, percentile_width=50):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/b11264f388dd64d3ebc9b8e7bc78c8978e182d0a", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " '25%', '50%', '75%', 'max']\n pretty_name(lb), '50%', pretty_name(ub),\n 'max']\n '25%', '50%', '75%', 'max']\n pretty_name(lb), '50%', pretty_name(ub),\n 'max']\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/b11264f388dd64d3ebc9b8e7bc78c8978e182d0a", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " def describe(self):\n def describe(self, percentile_width=50):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/b11264f388dd64d3ebc9b8e7bc78c8978e182d0a", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " result = bn_func(values, axis=axis, **kwargs)\n result = bn_func(values, axis=axis, **kwds)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/pandas-dev/pandas/commit/d3d43a72a72ea8368a6e941c349c05c8a5aa2935", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 7 ] }, { "input": " result = alt(values, axis=axis, skipna=skipna, **kwargs)\n result = alt(values, axis=axis, skipna=skipna, **kwds)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/pandas-dev/pandas/commit/d3d43a72a72ea8368a6e941c349c05c8a5aa2935", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 6 ] }, { "input": " result = alt(values, axis=axis, skipna=skipna, **kwargs)\n result = alt(values, axis=axis, skipna=skipna, **kwds)\n result = alt(values, axis=axis, skipna=skipna, **kwargs)\n result = alt(values, axis=axis, skipna=skipna, **kwds)\n result = bn_func(values, axis=axis, **kwargs)\n result = bn_func(values, axis=axis, **kwds)\n result = alt(values, axis=axis, skipna=skipna, **kwargs)\n result = alt(values, axis=axis, skipna=skipna, **kwds)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/pandas-dev/pandas/commit/d3d43a72a72ea8368a6e941c349c05c8a5aa2935", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 6, 7 ] }, { "input": " return np.sqrt(nanops.nanvar(self.values, skipna=skipna))\n return np.sqrt(nanops.nanvar(self.values, skipna=skipna, ddof=ddof))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.021739130434782608, "commit_url": "https://github.com/pandas-dev/pandas/commit/d3d43a72a72ea8368a6e941c349c05c8a5aa2935", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " return nanops.nanvar(self.values, skipna=skipna)\n return nanops.nanvar(self.values, skipna=skipna, ddof=ddof)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.021739130434782608, "commit_url": "https://github.com/pandas-dev/pandas/commit/d3d43a72a72ea8368a6e941c349c05c8a5aa2935", "target_edit_idx": 12, "propagatable_edit_idx": [ 11 ] }, { "input": "for x in xrange(1000):\nfor x in xrange(100):\nfor x in xrange(1000):\nfor x in xrange(100):\nfor x in xrange(1000):\nfor x in xrange(100):\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/pandas-dev/pandas/commit/06909062285b6dbab247346577d0e82e5f1e5d6a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "import pandas.core.common as common\nimport pandas.core.common as com\n new_values = common.take_fast(self.values, indexer, mask,\n needs_masking, axis=axis)\n new_values = com.take_fast(self.values, indexer, mask,\n needs_masking, axis=axis)\n mask = common.isnull(new_values.ravel())\n mask = com.isnull(new_values.ravel())\n new_values = common.take_fast(blk.values, indexer, None,\n False, axis=axis)\n new_values = com.take_fast(blk.values, indexer, None,\n False, axis=axis)\n new_values = common.take_fast(blk.values, indexer,\n None, False, axis=axis)\n new_values = com.take_fast(blk.values, indexer,\n None, False, axis=axis)\n common.take_fast(lblk.values, np.arange(n, dtype='i4'),\n None, False,\n axis=self.axis, out=out[:lk])\n com.take_fast(lblk.values, np.arange(n, dtype='i4'),\n None, False,\n axis=self.axis, out=out[:lk])\n common.take_fast(lblk.values, lidx, None, False,\n com.take_fast(lblk.values, lidx, None, False,\n common.take_fast(rblk.values, np.arange(n, dtype='i4'),\n None, False,\n axis=self.axis, out=out[lk:])\n com.take_fast(rblk.values, np.arange(n, dtype='i4'),\n None, False,\n axis=self.axis, out=out[lk:])\n common.take_fast(rblk.values, ridx, None, False,\n axis=self.axis, out=out[lk:])\n com.take_fast(rblk.values, ridx, None, False,\n axis=self.axis, out=out[lk:])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.15384615384615385, "commit_url": "https://github.com/pandas-dev/pandas/commit/11d08f793f286107af0636c8cb84e42a95d22cd6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " new_values = common.take_fast(self.values, indexer, mask,\n needs_masking, axis=axis)\n new_values = com.take_fast(self.values, indexer, mask,\n needs_masking, axis=axis)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.15384615384615385, "commit_url": "https://github.com/pandas-dev/pandas/commit/11d08f793f286107af0636c8cb84e42a95d22cd6", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " new_values = common.take_fast(blk.values, indexer, None,\n False, axis=axis)\n new_values = com.take_fast(blk.values, indexer, None,\n False, axis=axis)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.15384615384615385, "commit_url": "https://github.com/pandas-dev/pandas/commit/11d08f793f286107af0636c8cb84e42a95d22cd6", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3, 5, 6, 7, 8, 9 ] }, { "input": " common.take_fast(lblk.values, np.arange(n, dtype='i4'),\n None, False,\n axis=self.axis, out=out[:lk])\n com.take_fast(lblk.values, np.arange(n, dtype='i4'),\n None, False,\n axis=self.axis, out=out[:lk])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.15384615384615385, "commit_url": "https://github.com/pandas-dev/pandas/commit/11d08f793f286107af0636c8cb84e42a95d22cd6", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 7, 8, 9 ] }, { "input": " common.take_fast(lblk.values, lidx, None, False,\n com.take_fast(lblk.values, lidx, None, False,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.15384615384615385, "commit_url": "https://github.com/pandas-dev/pandas/commit/11d08f793f286107af0636c8cb84e42a95d22cd6", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 8, 9 ] }, { "input": " common.take_fast(rblk.values, np.arange(n, dtype='i4'),\n None, False,\n axis=self.axis, out=out[lk:])\n com.take_fast(rblk.values, np.arange(n, dtype='i4'),\n None, False,\n axis=self.axis, out=out[lk:])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.15384615384615385, "commit_url": "https://github.com/pandas-dev/pandas/commit/11d08f793f286107af0636c8cb84e42a95d22cd6", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 9 ] }, { "input": " common.take_fast(rblk.values, ridx, None, False,\n axis=self.axis, out=out[lk:])\n com.take_fast(rblk.values, ridx, None, False,\n axis=self.axis, out=out[lk:])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.15384615384615385, "commit_url": "https://github.com/pandas-dev/pandas/commit/11d08f793f286107af0636c8cb84e42a95d22cd6", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8 ] }, { "input": " def histogram(self):\n def value_counts(self):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/06130c6dd9d6f91fb4c7d1b33b6fcccb39f1f5e5", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " hist = s.histogram()\n hist = s.value_counts()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/06130c6dd9d6f91fb4c7d1b33b6fcccb39f1f5e5", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " if _is_label_slice(slice_obj):\n if _is_label_slice(labels, slice_obj):\ndef _is_label_slice(obj):\n crit = lambda x: isinstance(x, int) or x is None\ndef _is_label_slice(labels, obj):\n def crit(x):\n if x in labels:\n return False\n else:\n return isinstance(x, int) or x is None\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/9414a8e97f27025ae59499a0d4752962e554d7ec", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "def _is_label_slice(obj):\n crit = lambda x: isinstance(x, int) or x is None\ndef _is_label_slice(labels, obj):\n def crit(x):\n if x in labels:\n return False\n else:\n return isinstance(x, int) or x is None\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/9414a8e97f27025ae59499a0d4752962e554d7ec", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " if self.index.equals(new_index):\n if self.index.equals(index):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pandas-dev/pandas/commit/9414a8e97f27025ae59499a0d4752962e554d7ec", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " new_index = _ensure_index(new_index)\n index = _ensure_index(index)\n if self.index.equals(new_index):\n if self.index.equals(index):\n fill_vec, mask = self.index.get_indexer(new_index, method=method)\n fill_vec, mask = self.index.get_indexer(index, method=method)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/pandas-dev/pandas/commit/9414a8e97f27025ae59499a0d4752962e554d7ec", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 7 ] }, { "input": "## Python package name: Provide as Python str with python triple quoto, concise and clear, characters only use a combination of all lowercase and underscores\n## Python package name: Provide as Python str with python triple quote, concise and clear, characters only use a combination of all lowercase and underscores\n## Python package name: Provide as Python str with python triple quoto, concise and clear, characters only use a combination of all lowercase and underscores\n## Python package name: Provide as Python str with python triple quote, concise and clear, characters only use a combination of all lowercase and underscores\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/geekan/MetaGPT/commit/97cd9cd98d1a53481307c6a7014b675e1c0321af", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "## mermaid quadrantChart code syntax example. DONT USE QUOTO IN CODE DUE TO INVALID SYNTAX. Replace the with REAL COMPETITOR NAME\n## mermaid quadrantChart code syntax example. DONT USE QUOTE IN CODE DUE TO INVALID SYNTAX. Replace the with REAL COMPETITOR NAME\n## mermaid quadrantChart code syntax example. DONT USE QUOTO IN CODE DUE TO INVALID SYNTAX. Replace the with REAL COMPETITOR NAME\n## mermaid quadrantChart code syntax example. DONT USE QUOTE IN CODE DUE TO INVALID SYNTAX. Replace the with REAL COMPETITOR NAME\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/geekan/MetaGPT/commit/97cd9cd98d1a53481307c6a7014b675e1c0321af", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "async def startup(idea: str, investment: float = 3.0, n_round: int = 5, code_review: bool = False):\nasync def startup(idea: str, investment: float = 3.0, n_round: int = 5,\n code_review: bool = False, run_tests: bool = False):\n asyncio.run(startup(idea, investment, n_round, code_review))\n asyncio.run(startup(idea, investment, n_round, code_review, run_tests))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/geekan/MetaGPT/commit/ab470e56554740be96cdf36a571cb133bf90d283", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " asyncio.run(startup(idea, investment, n_round, code_review))\n asyncio.run(startup(idea, investment, n_round, code_review, run_tests))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/geekan/MetaGPT/commit/ab470e56554740be96cdf36a571cb133bf90d283", "target_edit_idx": 7, "propagatable_edit_idx": [ 4 ] }, { "input": " output_folder = downloader.get_output_folder(model, branch, is_lora, is_llamacpp=is_llamacpp)\n output_folder = downloader.get_output_folder(model, branch, is_lora, is_llamacpp=is_llamacpp, model_dir=args.model_dir)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oobabooga/text-generation-webui/commit/4f1e96b9e3f9dc1593bed2096a40f68f8dc4d015", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " return get_next_logits(body['prompt'], state, use_samplers, \"\", return_dict=True)\n return get_next_logits(body['prompt'], state, use_samplers, \"\", top_logits=body['top_logits'], return_dict=True)", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/oobabooga/text-generation-webui/commit/e53f99faa0451dcf781939eb86a42255485a7ca7", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "def get_next_logits(prompt, state, use_samplers, previous, return_dict=False):\ndef get_next_logits(prompt, state, use_samplers, previous, top_logits=50, return_dict=False):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/oobabooga/text-generation-webui/commit/e53f99faa0451dcf781939eb86a42255485a7ca7", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": "def check_tp_pipeline_inference(rank, world_size, port):\n@parameterize(\"tp_size\", [1])\n@parameterize(\"pp_size\", [1])\n@parameterize(\"max_output_len\", [2])\n@parameterize(\"micro_batch_size\", [1])\n@clear_cache_before_run()\ndef run_single_inference_test(tp_size, pp_size, max_output_len, micro_batch_size):\n pipeline_inference_test(tp_size, pp_size, max_output_len, micro_batch_size)\n torch.cuda.empty_cache()\n\n\ndef check_tp_pp_inference(rank, world_size, port):\ndef check_tp_pipeline_inference(rank, world_size, port):\n@parameterize(\"tp_size\", [1])\n@parameterize(\"pp_size\", [1])\n@parameterize(\"max_output_len\", [2])\n@parameterize(\"micro_batch_size\", [1])\n@clear_cache_before_run()\ndef run_single_inference_test(tp_size, pp_size, max_output_len, micro_batch_size):\n pipeline_inference_test(tp_size, pp_size, max_output_len, micro_batch_size)\n torch.cuda.empty_cache()\n\n\ndef check_tp_pp_inference(rank, world_size, port):\ndef check_tp_pipeline_inference(rank, world_size, port):\n@parameterize(\"tp_size\", [1])\n@parameterize(\"pp_size\", [1])\n@parameterize(\"max_output_len\", [2])\n@parameterize(\"micro_batch_size\", [1])\n@clear_cache_before_run()\ndef run_single_inference_test(tp_size, pp_size, max_output_len, micro_batch_size):\n pipeline_inference_test(tp_size, pp_size, max_output_len, micro_batch_size)\n torch.cuda.empty_cache()\n\n\ndef check_tp_pp_inference(rank, world_size, port):\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/0c7d8bebd587a5c22e02be2721dc90d823d1aa09", "target_edit_idx": 2, "propagatable_edit_idx": [ 10, 6 ] }, { "input": "def check_single_inference(rank, world_size, port):\ndef check_tp_or_pp_inference(rank, world_size, port):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/0c7d8bebd587a5c22e02be2721dc90d823d1aa09", "target_edit_idx": 3, "propagatable_edit_idx": [ 11, 7 ] }, { "input": " spawn(check_tp_pipeline_inference, nprocs=4)\n spawn(check_single_inference, nprocs=2)\n spawn(check_tp_pp_inference, nprocs=4)\n spawn(check_tp_or_pp_inference, nprocs=2)\n spawn(check_single_inference, nprocs=1)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/0c7d8bebd587a5c22e02be2721dc90d823d1aa09", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 13 ] }, { "input": "from colossalai.checkpoint_io import CheckpointIO, HypridParallelCheckpointIO\nfrom colossalai.checkpoint_io import CheckpointIO, HybridParallelCheckpointIO\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/d8ceeac14e54c5c568e916c061b86d9a53a54f30", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": " self.checkpoint_io = HypridParallelCheckpointIO(self.dp_group, self.pp_group, self.tp_group, self.zero_stage)\n self.checkpoint_io = HybridParallelCheckpointIO(self.dp_group, self.pp_group, self.tp_group, self.zero_stage)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/d8ceeac14e54c5c568e916c061b86d9a53a54f30", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6 ] }, { "input": "from .hybrid_parallel_checkpoint_io import HypridParallelCheckpointIO\nfrom .hybrid_parallel_checkpoint_io import HybridParallelCheckpointIO\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/d8ceeac14e54c5c568e916c061b86d9a53a54f30", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6 ] }, { "input": "class HypridParallelCheckpointIO(GeneralCheckpointIO):\nclass HybridParallelCheckpointIO(GeneralCheckpointIO):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/d8ceeac14e54c5c568e916c061b86d9a53a54f30", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6 ] }, { "input": " state_ = HypridParallelCheckpointIO.gather_from_sharded_optimizer_state(state,\n state_ = HybridParallelCheckpointIO.gather_from_sharded_optimizer_state(state,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/d8ceeac14e54c5c568e916c061b86d9a53a54f30", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6 ] }, { "input": " state_dict_shard = HypridParallelCheckpointIO._model_sharder(model, size_per_shard=size_per_shard)\n state_dict_shard = HybridParallelCheckpointIO._model_sharder(model, size_per_shard=size_per_shard)\nfrom colossalai.checkpoint_io import CheckpointIO, HypridParallelCheckpointIO\nfrom colossalai.checkpoint_io import CheckpointIO, HybridParallelCheckpointIO\n self.checkpoint_io = HypridParallelCheckpointIO(self.dp_group, self.pp_group, self.tp_group, self.zero_stage)\n self.checkpoint_io = HybridParallelCheckpointIO(self.dp_group, self.pp_group, self.tp_group, self.zero_stage)\nfrom .hybrid_parallel_checkpoint_io import HypridParallelCheckpointIO\nfrom .hybrid_parallel_checkpoint_io import HybridParallelCheckpointIO\nclass HypridParallelCheckpointIO(GeneralCheckpointIO):\nclass HybridParallelCheckpointIO(GeneralCheckpointIO):\n state_ = HypridParallelCheckpointIO.gather_from_sharded_optimizer_state(state,\n state_ = HybridParallelCheckpointIO.gather_from_sharded_optimizer_state(state,\n state_dict_shard = HypridParallelCheckpointIO._optimizer_sharder(\n state_dict_shard = HybridParallelCheckpointIO._optimizer_sharder(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/d8ceeac14e54c5c568e916c061b86d9a53a54f30", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6 ] }, { "input": " state_dict_shard = HypridParallelCheckpointIO._optimizer_sharder(\n state_dict_shard = HybridParallelCheckpointIO._optimizer_sharder(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/d8ceeac14e54c5c568e916c061b86d9a53a54f30", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5 ] }, { "input": " self.body = model\n self.model = model\n outputs = self.body(sequences, attention_mask=attention_mask)\n outputs = self.model(sequences, attention_mask=attention_mask)\n lora.mark_only_lora_as_trainable(self.model.body)\n lora.mark_only_lora_as_trainable(self.model.model)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/c9e27f0d1bee591b218920b5d927e080ee1efb51", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "def _run_operand():\ndef _run_operand(world_size):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/4a76084dc97fcba4c576970656c07493e38ddb1b", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " _run_operand()\n # TODO not passed\n # _run_wrapped_tensor_func()\n _run_operand(world_size)\n _run_wrapped_tensor_func()\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/4a76084dc97fcba4c576970656c07493e38ddb1b", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": "def run_hybrid_device(use_ddp):\ndef run_hybrid_device(use_ddp, mode):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/0653c63eaacd1504f5d66f2e11f80defdb155832", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " run_hybrid_device(use_ddp)\n\n run_hybrid_device(use_ddp, mode)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/0653c63eaacd1504f5d66f2e11f80defdb155832", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": "def _test_hybrid_device(world_size, use_ddp):\n run_func = partial(run_dist, world_size=world_size, port=free_port(), use_ddp=use_ddp)\ndef _test_hybrid_device(world_size, use_ddp, mode):\n run_func = partial(run_dist, world_size=world_size, port=free_port(), use_ddp=use_ddp ,mode=mode)\n _test_hybrid_device(4, True)\n _test_hybrid_device(4, True, 'row')", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/0653c63eaacd1504f5d66f2e11f80defdb155832", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " _test_hybrid_device(4, True)\n _test_hybrid_device(4, True, 'row')", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/0653c63eaacd1504f5d66f2e11f80defdb155832", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": " if input_.size(dim) <= 1:\n return input_\n if input_.size(dim) <= 1:\n return input_\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/4b01da24cd6bc424190cf1c7663f8740461f4bd7", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " config = dict(\n parallel=dict(pipeline=dict(size=2), tensor=dict(size=4, mode=\"1d\")),\n )\n config = dict(parallel=dict(pipeline=dict(size=2), tensor=dict(size=4, mode=\"1d\")),)\n config = dict(\n parallel=dict(pipeline=dict(size=1), tensor=dict(size=8, mode=\"3d\")),\n )\n config = dict(parallel=dict(pipeline=dict(size=1), tensor=dict(size=8, mode=\"3d\")),)\n config = dict(\n parallel=dict(pipeline=dict(size=2), tensor=dict(size=4, mode=\"2d\")),\n )\n config = dict(parallel=dict(pipeline=dict(size=2), tensor=dict(size=4, mode=\"2d\")),)\n config = dict(\n parallel=dict(pipeline=dict(size=2), tensor=dict(size=4, depth=1, mode=\"2.5d\")),\n )\n config = dict(parallel=dict(pipeline=dict(size=2), tensor=dict(size=4, depth=1, mode=\"2.5d\")),)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.041666666666666664, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/62b4ce732632249b931f811461166862a190eb15", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 4, 7 ] }, { "input": " config = dict(\n parallel=dict(pipeline=dict(size=2), tensor=dict(size=4, depth=1, mode=\"2.5d\")),\n )\n config = dict(parallel=dict(pipeline=dict(size=2), tensor=dict(size=4, depth=1, mode=\"2.5d\")),)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.041666666666666664, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/62b4ce732632249b931f811461166862a190eb15", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 10, 4 ] }, { "input": " config = dict(\n parallel=dict(pipeline=dict(size=1), tensor=dict(size=8, mode=\"3d\")),\n )\n config = dict(parallel=dict(pipeline=dict(size=1), tensor=dict(size=8, mode=\"3d\")),)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.041666666666666664, "commit_url": "https://github.com/hpcaitech/ColossalAI/commit/62b4ce732632249b931f811461166862a190eb15", "target_edit_idx": 10, "propagatable_edit_idx": [ 1, 4, 7 ] }, { "input": " if features.has(\"projects:similarity-embeddings-grouping\", project):\n if features.has(\"projects:similarity-embeddings-grouping\", project) or (\n project.get_option(\"sentry:similarity_backfill_completed\")\n and randint(1, 100) <= options.get(\"similarity.delete_task_EA_rollout_percentage\")\n ):\n and features.has(\"projects:similarity-embeddings-grouping\", project)\n and (\n features.has(\"projects:similarity-embeddings-grouping\", project)\n or (\n project.get_option(\"sentry:similarity_backfill_completed\")\n and randint(1, 100) <= options.get(\"similarity.delete_task_EA_rollout_percentage\")\n )\n )\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/29126c7e92bb020afc26e577f9ac36b7f45dfdf1", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "from sentry.search.events.types import ParamsType\nfrom sentry.search.events.types import SnubaParams\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.018633540372670808, "commit_url": "https://github.com/getsentry/sentry/commit/2942cae97ef769c8142c815728f211ea9a7b4eb9", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " def query_trace_data(self, params: ParamsType, trace_id: str) -> list[SnubaTrace]:\n def query_trace_data(self, snuba_params: SnubaParams, trace_id: str) -> list[SnubaTrace]:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.024691358024691357, "commit_url": "https://github.com/getsentry/sentry/commit/2942cae97ef769c8142c815728f211ea9a7b4eb9", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 1, 7 ] }, { "input": " update_snuba_params_with_timestamp(request, params)\n update_snuba_params_with_timestamp(request, snuba_params)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/2942cae97ef769c8142c815728f211ea9a7b4eb9", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 2 ] }, { "input": " spans = self.query_trace_data(params, trace_id)\n spans = self.query_trace_data(snuba_params, trace_id)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/2942cae97ef769c8142c815728f211ea9a7b4eb9", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " [api, organization.slug, projectIds]\n [\n api,\n organization.slug,\n projectIds,\n pageFilters.datetime.start,\n pageFilters.datetime.end,\n pageFilters.datetime.period,\n ]\n [api, organization.slug, projectIds]\n [\n api,\n organization.slug,\n projectIds,\n pageFilters.datetime.end,\n pageFilters.datetime.period,\n pageFilters.datetime.start,\n ]\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/7bd2617a7c596cfb793ff83d6d31a1f5aac8c4a6", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " result = build_safe_config(\"key\", dummy, default_return=\"bar\")\n result = build_safe_config(\"key\", dummy)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/getsentry/sentry/commit/3860f22d87c5f544fad40d8c2419b3552be2abfe", "target_edit_idx": 9, "propagatable_edit_idx": [ 12 ] }, { "input": " assert result == \"bar\"\n assert result is None\n assert result == \"bar\"\n assert result is None", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/3860f22d87c5f544fad40d8c2419b3552be2abfe", "target_edit_idx": 10, "propagatable_edit_idx": [ 13 ] }, { "input": " filter_null_from_event_title,\n filter_null_from_string,\n filter_null_from_event_title,\n filter_null_from_string,\n", "class": "clone", "binary_label": 1, "regression_label": 0.0196078431372549, "commit_url": "https://github.com/getsentry/sentry/commit/391346dc027027db775779cea2c1738e3925f813", "target_edit_idx": 0, "propagatable_edit_idx": [ 9 ] }, { "input": " \"message\": filter_null_from_event_title(event.title),\n \"exception_type\": get_path(event.data, \"exception\", \"values\", -1, \"type\"),\n \"message\": filter_null_from_string(event.title),\n \"exception_type\": filter_null_from_string(exception_type) if exception_type else None,\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/391346dc027027db775779cea2c1738e3925f813", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 3, 6 ] }, { "input": "def filter_null_from_event_title(title: str) -> str:\ndef filter_null_from_string(string: str) -> str:\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/getsentry/sentry/commit/391346dc027027db775779cea2c1738e3925f813", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 2, 5, 6 ] }, { "input": " return title.replace(\"\\x00\", \"\")\n return string.replace(\"\\x00\", \"\")\ndef filter_null_from_event_title(title: str) -> str:\ndef filter_null_from_string(string: str) -> str:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/391346dc027027db775779cea2c1738e3925f813", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": "from sentry.seer.similarity.utils import filter_null_from_event_title, get_stacktrace_string\nfrom sentry.seer.similarity.utils import filter_null_from_string, get_stacktrace_string\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/391346dc027027db775779cea2c1738e3925f813", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 2, 3 ] }, { "input": " def reinstall(self):\n self.reinstall_repositories()\n\n def reinstall(self):\n self.reinstall_repositories()\n\n def reinstall(self) -> None:\n self.reinstall_repositories()\n\n def reinstall(self) -> None:\n self.reinstall_repositories()\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/57bf348795caa0e660638831999afd611be46899", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 6 ] }, { "input": " def do_request(self, data, url=None, features=None):\n def _do_request(self, data, url=None, features=None):\n response = self.do_request(\n response = self._do_request(\n response = self.do_request(\n response = self._do_request(\n response = self.do_request(\n response = self._do_request(\n response = self.do_request(\n response = self._do_request(\n response = self.do_request(\n response = self._do_request(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/59a0547bd72633f8f31d77d6ae0dbf4d926ec56c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " response = self.do_request(\n response = self._do_request(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/59a0547bd72633f8f31d77d6ae0dbf4d926ec56c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5 ] }, { "input": " def do_request(self, data, url=None, features=None):\n if features is None:\n features = {\"organizations:discover-basic\": True}\n features.update(self.features)\n with self.feature(features):\n return self.client.get(self.url if url is None else url, data=data, format=\"json\")\n\n def do_request(self, data, url=None, features=None):\n if features is None:\n features = {\"organizations:discover-basic\": True}\n features.update(self.features)\n with self.feature(features):\n return self.client.get(self.url if url is None else url, data=data, format=\"json\")\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/59a0547bd72633f8f31d77d6ae0dbf4d926ec56c", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " traceTimeline: true,\n traceTimeline: true,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/42068cbf1b458230b9b9b9aa9d75512a6f032b0e", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " GlobalParams.ORG_SLUG,\n GlobalParams.ORG_ID_OR_SLUG,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/6c5d3d57b7536983d91f486dcdbe39ba5d3bd167", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " GlobalParams.ORG_SLUG,\n GlobalParams.ORG_ID_OR_SLUG,\n GlobalParams.ORG_SLUG,\n GlobalParams.ORG_ID_OR_SLUG,\n GlobalParams.ORG_SLUG,\n GlobalParams.ORG_ID_OR_SLUG,\n GlobalParams.ORG_SLUG,\n GlobalParams.ORG_ID_OR_SLUG,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/6c5d3d57b7536983d91f486dcdbe39ba5d3bd167", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": "import FeatureBadge from 'sentry/components/badge/featureBadge';\nimport FeatureBadge from 'sentry/components/badge/featureBadge';\nimport FeatureBadge from 'sentry/components/badge/featureBadge';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/08cee0ed4e4037b8e150aad2578f64d71b24615d", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 5 ] }, { "input": " \n \n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/08cee0ed4e4037b8e150aad2578f64d71b24615d", "target_edit_idx": 2, "propagatable_edit_idx": [ 10 ] }, { "input": "import type {BadgeType} from 'sentry/components/badge/featureBadge';\nimport type {BadgeType} from 'sentry/components/badge/featureBadge';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/08cee0ed4e4037b8e150aad2578f64d71b24615d", "target_edit_idx": 3, "propagatable_edit_idx": [ 11 ] }, { "input": "export const RELEASE_LEVEL: BadgeType = 'beta';\n\nexport const RELEASE_LEVEL: BadgeType = 'beta';\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/08cee0ed4e4037b8e150aad2578f64d71b24615d", "target_edit_idx": 4, "propagatable_edit_idx": [ 12 ] }, { "input": " project_ids: Sequence[ProjectId],\n project_ids: Iterable[int],\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.03333333333333333, "commit_url": "https://github.com/getsentry/sentry/commit/d42e76ba32d310fe184fb251d9c1ce11b14757ff", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "from collections.abc import Collection, Mapping, Sequence\nfrom collections.abc import Collection, Iterable, Mapping, Sequence\nfrom collections.abc import Callable, Collection, Mapping, Sequence\nfrom collections.abc import Callable, Collection, Iterable, Mapping, Sequence\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/301c23863a92252b1c1d80dd17e00ea96d7b5a59", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " environments: Sequence[EnvironmentName] | None = None,\n environments: Iterable[str] | None = None,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.06666666666666667, "commit_url": "https://github.com/getsentry/sentry/commit/301c23863a92252b1c1d80dd17e00ea96d7b5a59", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " assert data == image_data\n assert url == absolute_uri(reverse(\"sentry-serve-media\", args=[\"abc123.png\"]))\n assert data == image_data\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/b4cf00b0e98d6a46a8ead5155facfcb760e2c7ad", "target_edit_idx": 5, "propagatable_edit_idx": [ 9 ] }, { "input": "# TODO: `partition` is unused, remove after a deploy\n\n\ndef get_process_lock(lock_name: str, partition: str | None = None):\ndef get_process_lock(lock_name: str) -> Lock:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/5bff93306e3d4bf328db2a81bd4bafb849e3eb2a", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 11, 13 ] }, { "input": "def process_pending(partition=None):\ndef process_pending() -> None:\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/5bff93306e3d4bf328db2a81bd4bafb849e3eb2a", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " lock = get_process_lock(\"process_pending\", partition)\n lock = get_process_lock(\"process_pending\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/5bff93306e3d4bf328db2a81bd4bafb849e3eb2a", "target_edit_idx": 8, "propagatable_edit_idx": [ 13, 11, 5 ] }, { "input": " logger.warning(\"process_pending.fail\", extra={\"error\": error, \"partition\": partition})\n logger.warning(\"process_pending.fail\", extra={\"error\": error})\n logger.warning(\"process_pending_batch.fail\", extra={\"error\": error, \"partition\": partition})\n logger.warning(\"process_pending_batch.fail\", extra={\"error\": error})\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/5bff93306e3d4bf328db2a81bd4bafb849e3eb2a", "target_edit_idx": 9, "propagatable_edit_idx": [ 12 ] }, { "input": " lock = get_process_lock(\"process_pending_batch\", partition)\n lock = get_process_lock(\"process_pending_batch\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/5bff93306e3d4bf328db2a81bd4bafb849e3eb2a", "target_edit_idx": 11, "propagatable_edit_idx": [ 8, 13, 5 ] }, { "input": " lock = get_process_lock(\"process_pending_batch\", None)\n lock = get_process_lock(\"process_pending_batch\")\n lock = get_process_lock(\"process_pending\", partition)\n lock = get_process_lock(\"process_pending\")\n lock = get_process_lock(\"process_pending_batch\", partition)\n lock = get_process_lock(\"process_pending_batch\")\n# TODO: `partition` is unused, remove after a deploy\n\n\ndef get_process_lock(lock_name: str, partition: str | None = None):\ndef get_process_lock(lock_name: str) -> Lock:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/5bff93306e3d4bf328db2a81bd4bafb849e3eb2a", "target_edit_idx": 13, "propagatable_edit_idx": [ 8, 11, 5 ] }, { "input": " if not group.issue_type.should_detect_escalation(group.organization):\n if not group.issue_type.should_detect_escalation():\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/aa4040661e5ec49a5468ae9eb008b8c3dc12495a", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 14 ] }, { "input": " @with_feature(\"organizations:issue-platform-crons-sd\")\n @with_feature(\"organizations:issue-platform-crons-sd\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/aa4040661e5ec49a5468ae9eb008b8c3dc12495a", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": " logger = logging.getLogger(f\"{__name__}.plugin\")\n logger = logging.getLogger(f\"{__name__}.integration\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/44b2e82145b05c7c3f357cf5d4a90e54596b1471", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " def create_paralell_worker(self, commit: Commit) -> ProcessingStrategy[KafkaPayload]:\n self.parallel_executor = ThreadPoolExecutor()\n def create_parallel_worker(self, commit: Commit) -> ProcessingStrategy[KafkaPayload]:\n self.parallel_executor = ThreadPoolExecutor(max_workers=self.max_workers)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/ec26096864824dafb87d65f66b37f182af73ffda", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " return self.create_paralell_worker(commit)\n return self.create_parallel_worker(commit)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/ec26096864824dafb87d65f66b37f182af73ffda", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "def _set_cache(key: str, value: str | None, version: int) -> Generator[None, None, bool]:\n result = cache.add(_versioned_key(key, version), value)\ndef _set_cache(\n key: str, value: str | None, version: int, timeout: int | None = None\n) -> Generator[None, None, bool]:\n if timeout is None:\n timeout = DEFAULT_TIMEOUT\n result = cache.add(_versioned_key(key, version), value, timeout=timeout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/getsentry/sentry/commit/aff9a15c46197139cbab184fa5e37d78cd17f65c", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " _consume_generator(_set_cache(key, r.json(), version))\n _consume_generator(_set_cache(key, r.json(), version, self.timeout))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/getsentry/sentry/commit/aff9a15c46197139cbab184fa5e37d78cd17f65c", "target_edit_idx": 5, "propagatable_edit_idx": [ 1 ] }, { "input": " def convert_args(self, request, organization_slug, function_slug, *args, **kwargs):\n def convert_args(self, request, organization_slug, function_id_or_slug, *args, **kwargs):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/41f338f5bd215b16857b3f82c5c63545db859852", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " slug__id_or_slug=function_slug, organization=kwargs[\"organization\"].id\n slug__id_or_slug=function_id_or_slug, organization=kwargs[\"organization\"].id\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/41f338f5bd215b16857b3f82c5c63545db859852", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " slug=function_slug, organization=kwargs[\"organization\"].id\n slug=function_id_or_slug, organization=kwargs[\"organization\"].id\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/41f338f5bd215b16857b3f82c5c63545db859852", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " \"sentry.middleware.integrations.parsers.base.ratelimiter.is_limited\"\n \"sentry.middleware.integrations.parsers.base.ratelimiter.is_limited_with_value\"\n \"sentry.middleware.integrations.parsers.base.ratelimiter.is_limited\"\n \"sentry.middleware.integrations.parsers.base.ratelimiter.is_limited_with_value\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/5b4f74cd6a6500b14750f25fa8e3b338f38c1b5c", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " mock_is_limited.return_value = True\n mock_is_limited.return_value = (True, 3500, 360)\n mock_is_limited.return_value = True\n mock_is_limited.return_value = (True, 3500, 360)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/getsentry/sentry/commit/5b4f74cd6a6500b14750f25fa8e3b338f38c1b5c", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " == f\"http://testserver/api/{self.project.id}/crons/___MONITOR_SLUG___/abc/\"\n == f\"http://testserver/api/{self.project.id}/cron/___MONITOR_SLUG___/abc/\"\n == f\"http://{host}/api/{self.project.id}/crons/___MONITOR_SLUG___/abc/\"\n == f\"http://{host}/api/{self.project.id}/cron/___MONITOR_SLUG___/abc/\"\n == f\"http://{host}/api/{self.project.id}/crons/___MONITOR_SLUG___/abc/\"\n == f\"http://{host}/api/{self.project.id}/cron/___MONITOR_SLUG___/abc/\"\n == f\"http://{host}/api/{self.project.id}/crons/___MONITOR_SLUG___/abc/\"\n == f\"http://{host}/api/{self.project.id}/cron/___MONITOR_SLUG___/abc/\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/d9fd4dae1fd1036bf47047a867976e8f505e9efe", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " project={project}\n project={project}\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/getsentry/sentry/commit/5c47a5bbd44793bfde31e2838caff3912d26ebda", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " strategy = ProcessSpansStrategyFactory().create_with_partitions(\n strategy = process_spans_strategy().create_with_partitions(\n strategy = ProcessSpansStrategyFactory().create_with_partitions(\n strategy = process_spans_strategy().create_with_partitions(\n strategy = ProcessSpansStrategyFactory().create_with_partitions(\n strategy = process_spans_strategy().create_with_partitions(\n strategy = ProcessSpansStrategyFactory().create_with_partitions(\n strategy = process_spans_strategy().create_with_partitions(\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/getsentry/sentry/commit/3fa811673920ddb299ed95540e4ecb52ab972bde", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 12, 13 ] }, { "input": " strategy = ProcessSpansStrategyFactory().create_with_partitions(\n strategy = process_spans_strategy().create_with_partitions(\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/getsentry/sentry/commit/3fa811673920ddb299ed95540e4ecb52ab972bde", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 12, 13 ] }, { "input": " self.get_success_response(self.organization.slug, status_code=200)\n self.get_success_response(\n self.organization.slug, status_code=200, qs_params={\"enroll\": \"true\"}\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.000612369871402327, "commit_url": "https://github.com/getsentry/sentry/commit/2e4480c896d12341f5896df52e9773d96d77f212", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " self.get_success_response(self.organization.slug, status_code=200)\n self.get_success_response(\n self.organization.slug, status_code=200, qs_params={\"enroll\": \"false\"}\n )\n self.get_success_response(self.organization.slug, status_code=200)\n self.get_success_response(\n self.organization.slug, status_code=200, qs_params={\"enroll\": \"true\"}\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.000612369871402327, "commit_url": "https://github.com/getsentry/sentry/commit/2e4480c896d12341f5896df52e9773d96d77f212", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "def _validate_topic_definitions() -> None:\n for cluster, defn in settings.KAFKA_TOPICS.items():\n # If this assertion fails on import, get_topic_definition needs to be\n # updated with new logic.\n assert cluster == settings.KAFKA_OUTCOMES_BILLING or defn is not None\n\n\n_validate_topic_definitions()\n\n\ndef get_topic_definition(cluster: str) -> TopicDefinition:\n defn = settings.KAFKA_TOPICS.get(cluster)\ndef get_topic_definition(topic: str) -> TopicDefinition:\n defn = settings.KAFKA_TOPICS.get(topic)\n raise ValueError(f\"Unknown {cluster=}\")\n raise ValueError(f\"Unknown {topic=}\")", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/a0165047197fa8e79b4611752443134206733a7b", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "def normalize_message_for_grouping(message: str, event: Event) -> str:\ndef normalize_message_for_grouping(message: str, event: Event, share_analytics: bool = True) -> str:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/getsentry/sentry/commit/6d3a5bbf2278f5214afb011b3c0f86b5312d51a7", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " normalized = normalize_message_for_grouping(raw, event)\n favors_other_component = stacktrace_component.contributes or (\n ns_error_component is not None and ns_error_component.contributes\n )\n normalized = normalize_message_for_grouping(\n raw, event, share_analytics=favors_other_component\n )\ndef normalize_message_for_grouping(message: str, event: Event) -> str:\ndef normalize_message_for_grouping(message: str, event: Event, share_analytics: bool = True) -> str:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/getsentry/sentry/commit/6d3a5bbf2278f5214afb011b3c0f86b5312d51a7", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " new_projects = []\n new_releaseprojects = []\n for project in new_projects:\n for project in new_releaseprojects:\n if not created and not new_projects:\n if not releaseproject_created and not new_releaseprojects:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/986ad793f37ef8391a6f9d32b391448770f06210", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " for project in new_projects:\n for project in new_releaseprojects:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/986ad793f37ef8391a6f9d32b391448770f06210", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " if not created and not new_projects:\n if not releaseproject_created and not new_releaseprojects:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/getsentry/sentry/commit/986ad793f37ef8391a6f9d32b391448770f06210", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 5 ] }, { "input": " if not created:\n if not releaseproject_created:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/986ad793f37ef8391a6f9d32b391448770f06210", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " \"GET\": ApiPublishStatus.UNKNOWN,\n \"POST\": ApiPublishStatus.UNKNOWN,\n \"GET\": ApiPublishStatus.PRIVATE,\n \"POST\": ApiPublishStatus.PRIVATE,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.030470914127423823, "commit_url": "https://github.com/getsentry/sentry/commit/d38869aed4c8f87aa3849b6e170c378368ecb63d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " \"GET\": ApiPublishStatus.UNKNOWN,\n \"GET\": ApiPublishStatus.PRIVATE,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0332409972299169, "commit_url": "https://github.com/getsentry/sentry/commit/d38869aed4c8f87aa3849b6e170c378368ecb63d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " \"POST\": ApiPublishStatus.UNKNOWN,\n \"POST\": ApiPublishStatus.PRIVATE,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0332409972299169, "commit_url": "https://github.com/getsentry/sentry/commit/d38869aed4c8f87aa3849b6e170c378368ecb63d", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " \"GET\": ApiPublishStatus.UNKNOWN,\n \"GET\": ApiPublishStatus.PRIVATE,\n \"GET\": ApiPublishStatus.UNKNOWN,\n \"POST\": ApiPublishStatus.UNKNOWN,\n \"GET\": ApiPublishStatus.PRIVATE,\n \"POST\": ApiPublishStatus.PRIVATE,\n \"GET\": ApiPublishStatus.UNKNOWN,\n \"GET\": ApiPublishStatus.PRIVATE,\n \"POST\": ApiPublishStatus.UNKNOWN,\n \"POST\": ApiPublishStatus.PRIVATE,\n \"POST\": ApiPublishStatus.UNKNOWN,\n \"POST\": ApiPublishStatus.PRIVATE,\n \"GET\": ApiPublishStatus.UNKNOWN,\n \"GET\": ApiPublishStatus.PRIVATE,\n \"POST\": ApiPublishStatus.UNKNOWN,\n \"POST\": ApiPublishStatus.PRIVATE,\n \"POST\": ApiPublishStatus.UNKNOWN,\n \"POST\": ApiPublishStatus.PRIVATE,\n \"POST\": ApiPublishStatus.UNKNOWN,\n \"POST\": ApiPublishStatus.PRIVATE,\n \"POST\": ApiPublishStatus.UNKNOWN,\n \"POST\": ApiPublishStatus.PRIVATE,\n \"GET\": ApiPublishStatus.UNKNOWN,\n \"GET\": ApiPublishStatus.PRIVATE,\n \"POST\": ApiPublishStatus.UNKNOWN,\n \"POST\": ApiPublishStatus.PRIVATE,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0332409972299169, "commit_url": "https://github.com/getsentry/sentry/commit/d38869aed4c8f87aa3849b6e170c378368ecb63d", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": "from sentry.integrations.utils.stacktrace_link import ReposityLinkOutcome\nfrom sentry.integrations.utils.stacktrace_link import RepositoryLinkOutcome\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/322d5c3b2654fff739d6923574f4bee012b15451", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " outcome: ReposityLinkOutcome\n outcome: RepositoryLinkOutcome\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/322d5c3b2654fff739d6923574f4bee012b15451", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": "class ReposityLinkOutcome(TypedDict):\nclass RepositoryLinkOutcome(TypedDict):\nfrom sentry.integrations.utils.stacktrace_link import ReposityLinkOutcome\nfrom sentry.integrations.utils.stacktrace_link import RepositoryLinkOutcome\n outcome: ReposityLinkOutcome\n outcome: RepositoryLinkOutcome\n) -> ReposityLinkOutcome:\n result: ReposityLinkOutcome = {}\n) -> RepositoryLinkOutcome:\n result: RepositoryLinkOutcome = {}\n outcome: ReposityLinkOutcome\n outcome: RepositoryLinkOutcome\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/322d5c3b2654fff739d6923574f4bee012b15451", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": ") -> ReposityLinkOutcome:\n result: ReposityLinkOutcome = {}\n) -> RepositoryLinkOutcome:\n result: RepositoryLinkOutcome = {}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/getsentry/sentry/commit/322d5c3b2654fff739d6923574f4bee012b15451", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4 ] }, { "input": " outcome: ReposityLinkOutcome\n outcome: RepositoryLinkOutcome\nfrom sentry.integrations.utils.stacktrace_link import ReposityLinkOutcome\nfrom sentry.integrations.utils.stacktrace_link import RepositoryLinkOutcome\n outcome: ReposityLinkOutcome\n outcome: RepositoryLinkOutcome\nclass ReposityLinkOutcome(TypedDict):\nclass RepositoryLinkOutcome(TypedDict):\n) -> ReposityLinkOutcome:\n result: ReposityLinkOutcome = {}\n) -> RepositoryLinkOutcome:\n result: RepositoryLinkOutcome = {}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/322d5c3b2654fff739d6923574f4bee012b15451", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": "from sentry.api.permissions import SuperuserPermission\nfrom sentry.api.permissions import SuperuserOrStaffFeatureFlaggedPermission\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.01818181818181818, "commit_url": "https://github.com/getsentry/sentry/commit/5de8e3c7c2b6e1e6800653d66fbf14e032ed9575", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " permission_classes = (SuperuserPermission,)\n permission_classes = (SuperuserOrStaffFeatureFlaggedPermission,)\nfrom sentry.api.permissions import SuperuserPermission\nfrom sentry.api.permissions import SuperuserOrStaffFeatureFlaggedPermission\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.01818181818181818, "commit_url": "https://github.com/getsentry/sentry/commit/5de8e3c7c2b6e1e6800653d66fbf14e032ed9575", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "from sentry.exceptions import InvalidParams\nfrom sentry.exceptions import InvalidParams\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/44f543f122b93d77ecdd0d9a02a5b9c2b2415907", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " permission_classes = (SuperuserPermission,)\n permission_classes = (SuperuserOrStaffFeatureFlaggedPermission,)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.046153846153846156, "commit_url": "https://github.com/getsentry/sentry/commit/74c1e43371abc661d0deb47ace347de48e5a3c5b", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 5 ] }, { "input": "def check_ratelimit(\n metric_kwargs: Dict,\n project: Project,\n monitor_slug: str,\n environment: str | None,\n):\ndef check_ratelimit(metric_kwargs: Dict, item: CheckinItem):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/b66ddbfda4091c6926d55f6f7c510f601e81626b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " if check_ratelimit(metric_kwargs, project, monitor_slug, environment):\n if check_ratelimit(metric_kwargs, item):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/b66ddbfda4091c6926d55f6f7c510f601e81626b", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " self.send_checkin(\"my-monitor\")\n self.send_checkin(\"my-monitor\")\n self.send_checkin(\"my-monitor\", ts=now)\n self.send_checkin(\"my-monitor\", ts=now)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.01818181818181818, "commit_url": "https://github.com/getsentry/sentry/commit/b66ddbfda4091c6926d55f6f7c510f601e81626b", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " self.send_checkin(\"my-monitor\", environment=\"dev\")\n self.send_checkin(\"my-monitor\", environment=\"dev\", ts=now)\n self.send_checkin(\"my-monitor\")\n self.send_checkin(\"my-monitor\")\n self.send_checkin(\"my-monitor\", ts=now)\n self.send_checkin(\"my-monitor\", ts=now)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.03636363636363636, "commit_url": "https://github.com/getsentry/sentry/commit/b66ddbfda4091c6926d55f6f7c510f601e81626b", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " \"file\": parameters.get(\"file\"),\n \"file\": parameters.get(\"file\", \"\"),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/getsentry/sentry/commit/496b27aae8e816f66f74483fe4b9f975c1dc1abc", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " \"filename\": parameters.get(\"file\"),\n \"filename\": parameters.get(\"file\", \"\"),\n \"file\": parameters.get(\"file\"),\n \"file\": parameters.get(\"file\", \"\"),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/getsentry/sentry/commit/496b27aae8e816f66f74483fe4b9f975c1dc1abc", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "ORG_ID = getattr(settings, \"STAFF_ORG_ID\", None)\nSTAFF_ORG_ID = getattr(settings, \"STAFF_ORG_ID\", None)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/ad6937c26d7b8cfa7c905126d79461b48e244eea", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " if ORG_ID and not has_completed_sso(self.request, ORG_ID):\n if STAFF_ORG_ID and not has_completed_sso(self.request, STAFF_ORG_ID):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/getsentry/sentry/commit/ad6937c26d7b8cfa7c905126d79461b48e244eea", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " old_org_id = staff.ORG_ID\n staff.ORG_ID = new_org_id\n old_org_id = staff.STAFF_ORG_ID\n staff.STAFF_ORG_ID = new_org_id\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/getsentry/sentry/commit/ad6937c26d7b8cfa7c905126d79461b48e244eea", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " staff.ORG_ID = old_org_id\n staff.STAFF_ORG_ID = old_org_id\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/ad6937c26d7b8cfa7c905126d79461b48e244eea", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " assert response.data[0][\"status\"] == Relocation.Status.IN_PROGRESS.name\n assert response.data[1][\"status\"] == Relocation.Status.SUCCESS.name\n assert response.data[0][\"status\"] == Relocation.Status.SUCCESS.name\n assert response.data[1][\"status\"] == Relocation.Status.IN_PROGRESS.name\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.03508771929824561, "commit_url": "https://github.com/getsentry/sentry/commit/7f20e19f91f4e17e39a97f13289b38e27422d9d1", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " assert response.data[0][\"status\"] == Relocation.Status.IN_PROGRESS.name\n assert response.data[0][\"status\"] == Relocation.Status.SUCCESS.name\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.03508771929824561, "commit_url": "https://github.com/getsentry/sentry/commit/7f20e19f91f4e17e39a97f13289b38e27422d9d1", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "from sentry.incidents.utils.types import SubscriptionUpdate\nfrom sentry.incidents.utils.types import QuerySubscriptionUpdate\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/7eb34ef4c173318464a8962730f7aad56c7eec55", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " self, subscription_update: SubscriptionUpdate, aggregation_value: float\n self, subscription_update: QuerySubscriptionUpdate, aggregation_value: float\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/7eb34ef4c173318464a8962730f7aad56c7eec55", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " self, subscription_update: SubscriptionUpdate\n self, subscription_update: QuerySubscriptionUpdate\nfrom sentry.incidents.utils.types import SubscriptionUpdate\nfrom sentry.incidents.utils.types import QuerySubscriptionUpdate\n self, subscription_update: SubscriptionUpdate, aggregation_value: float\n self, subscription_update: QuerySubscriptionUpdate, aggregation_value: float\n self, subscription_update: SubscriptionUpdate\n self, subscription_update: QuerySubscriptionUpdate\n self, subscription_update: SubscriptionUpdate\n self, subscription_update: QuerySubscriptionUpdate\n self, subscription_update: SubscriptionUpdate\n self, subscription_update: QuerySubscriptionUpdate\n def process_update(self, subscription_update: SubscriptionUpdate) -> None:\n def process_update(self, subscription_update: QuerySubscriptionUpdate) -> None:\nfrom sentry.incidents.utils.types import SubscriptionUpdate\nfrom sentry.incidents.utils.types import QuerySubscriptionUpdate\n subscription_update: SubscriptionUpdate, subscription: QuerySubscription\n subscription_update: QuerySubscriptionUpdate, subscription: QuerySubscription\n subscription_update: SubscriptionUpdate, subscription: QuerySubscription\n subscription_update: QuerySubscriptionUpdate, subscription: QuerySubscription\nclass SubscriptionUpdate(TypedDict):\nclass QuerySubscriptionUpdate(TypedDict):\nfrom sentry.incidents.utils.types import SubscriptionUpdate\nfrom sentry.incidents.utils.types import QuerySubscriptionUpdate\nTQuerySubscriptionCallable = Callable[[SubscriptionUpdate, QuerySubscription], None]\nTQuerySubscriptionCallable = Callable[[QuerySubscriptionUpdate, QuerySubscription], None]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/7eb34ef4c173318464a8962730f7aad56c7eec55", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " self, subscription_update: SubscriptionUpdate\n self, subscription_update: QuerySubscriptionUpdate\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/7eb34ef4c173318464a8962730f7aad56c7eec55", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " def process_update(self, subscription_update: SubscriptionUpdate) -> None:\n def process_update(self, subscription_update: QuerySubscriptionUpdate) -> None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/7eb34ef4c173318464a8962730f7aad56c7eec55", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13 ] }, { "input": " subscription_update: SubscriptionUpdate, subscription: QuerySubscription\n subscription_update: QuerySubscriptionUpdate, subscription: QuerySubscription\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/7eb34ef4c173318464a8962730f7aad56c7eec55", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 10, 11, 12, 13 ] }, { "input": "class SubscriptionUpdate(TypedDict):\nclass QuerySubscriptionUpdate(TypedDict):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/7eb34ef4c173318464a8962730f7aad56c7eec55", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 13 ] }, { "input": "TQuerySubscriptionCallable = Callable[[SubscriptionUpdate, QuerySubscription], None]\nTQuerySubscriptionCallable = Callable[[QuerySubscriptionUpdate, QuerySubscription], None]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/7eb34ef4c173318464a8962730f7aad56c7eec55", "target_edit_idx": 13, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12 ] }, { "input": " # Enable profiling statistical detectors ema detection\n # Enable performance statistical detectors ema detection\n # Enable profiling statistical detectors breakpoint detection\n # Enable performance statistical detectors breakpoint detection\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/c3957a3b39c910c1c1704a7c6a7e1ce08539c6f9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " for project_id, transaction_name, result in chunk:\n for project_id, object_name, result in chunk:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/c3957a3b39c910c1c1704a7c6a7e1ce08539c6f9", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " data[f\"{project_id},{transaction_name}\"] = {\n data[f\"{project_id},{object_name}\"] = {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/c3957a3b39c910c1c1704a7c6a7e1ce08539c6f9", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " LostPasswordHash.send_relocate_account_email(user, hash)\n LostPasswordHash.send_relocate_account_email(user, hash, relocation.want_org_slugs)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/b1304d6100d5f81f6bc89839d7a1a61ccef1e4b2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " LostPasswordHash.send_relocate_account_email(self.user, password_hash.hash)\n LostPasswordHash.send_relocate_account_email(self.user, password_hash.hash, [\"testorg\"])\n LostPasswordHash.send_relocate_account_email(user, hash)\n LostPasswordHash.send_relocate_account_email(user, hash, relocation.want_org_slugs)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/b1304d6100d5f81f6bc89839d7a1a61ccef1e4b2", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " isSeriesMetricsExtractedDataResults.push(rawResults.isMetricsExtractedData);\n isSeriesMetricsExtractedDataResults.push(\n rawResults.isMetricsExtractedData || rawResults.meta?.isMetricsExtractedData\n );\n isSeriesMetricsExtractedDataResults.push(rawResult.isMetricsExtractedData);\n isSeriesMetricsExtractedDataResults.push(\n rawResult.isMetricsExtractedData || rawResult.meta?.isMetricsExtractedData\n );\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/385ab887952ba8618b82777c56a172bce98dfe2b", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " return Condition(expression, Op.EQ, to_uuid(value))\n return Condition(expression, Op.EQ, str(value))\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.07142857142857142, "commit_url": "https://github.com/getsentry/sentry/commit/826c8a622816c26663be9b23c1e85adedecbf24c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return Condition(expression, Op.NEQ, to_uuid(value))\n return Condition(expression, Op.NEQ, str(value))\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.07142857142857142, "commit_url": "https://github.com/getsentry/sentry/commit/826c8a622816c26663be9b23c1e85adedecbf24c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " return Condition(expression, Op.IN, to_uuids(value))\n return Condition(expression, Op.IN, [str(v) for v in value])\n return Condition(expression, Op.NOT_IN, to_uuids(value))\n return Condition(expression, Op.NOT_IN, [str(v) for v in value])\n", "class": "clone", "binary_label": 1, "regression_label": 0.3, "commit_url": "https://github.com/getsentry/sentry/commit/826c8a622816c26663be9b23c1e85adedecbf24c", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " return contains(Condition(expression, Op.EQ, str(value)))\n return contains(UUIDScalar.visit_eq(expression, value))\n return does_not_contain(Condition(expression, Op.EQ, str(value)))\n return does_not_contain(UUIDScalar.visit_eq(expression, value))\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/826c8a622816c26663be9b23c1e85adedecbf24c", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " return contains(Condition(expression, Op.IN, [str(v) for v in value]))\n return contains(UUIDScalar.visit_in(expression, value))\n return does_not_contain(Condition(expression, Op.IN, [str(v) for v in value]))\n return does_not_contain(UUIDScalar.visit_in(expression, value))", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/826c8a622816c26663be9b23c1e85adedecbf24c", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " assert end_date - start_date == timedelta(hours=1)\n assert end_date - start_date == timedelta(days=2)\n assert end_date - start_date == timedelta(hours=1)\n assert end_date - start_date == timedelta(days=2) # hard coded at 2 days\n assert end_date - start_date == timedelta(hours=1)\n assert end_date - start_date == timedelta(days=2)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/getsentry/sentry/commit/05a2f6e0f05af03d322cc60915fdf25fe107569d", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "@region_silo_test\n@region_silo_test(stable=True)\n@region_silo_test\n@region_silo_test(stable=True)\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/getsentry/sentry/commit/01fe92464702e2a23a668651913f73f60f075396", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " @with_feature(\"organizations:github-disable-on-broken\")\n @with_feature(\"organizations:github-disable-on-broken\")\n @with_feature(\"organizations:github-disable-on-broken\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/e2d67ffc2e152435e748a428a6df6ea32d01a782", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 5 ] }, { "input": " assert integration.status == ObjectStatus.ACTIVE\n assert integration.status == ObjectStatus.DISABLED\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.006711409395973154, "commit_url": "https://github.com/getsentry/sentry/commit/e2d67ffc2e152435e748a428a6df6ea32d01a782", "target_edit_idx": 8, "propagatable_edit_idx": [ 12 ] }, { "input": " assert buffer.is_integration_broken() is True\n assert Integration.objects.get(id=self.integration.id).status == ObjectStatus.ACTIVE\n assert Integration.objects.get(id=self.integration.id).status == ObjectStatus.DISABLED", "class": "variable_rename", "binary_label": 1, "regression_label": 0.006711409395973154, "commit_url": "https://github.com/getsentry/sentry/commit/e2d67ffc2e152435e748a428a6df6ea32d01a782", "target_edit_idx": 12, "propagatable_edit_idx": [ 8 ] }, { "input": "from sentry.api.base import region_silo_endpoint\nfrom sentry.api.bases import OrganizationEndpoint, add_integration_platform_metric_tag\nfrom sentry.api.base import control_silo_endpoint\nfrom sentry.api.bases import add_integration_platform_metric_tag\nfrom sentry.api.bases.organization import ControlSiloOrganizationEndpoint\n@region_silo_endpoint\nclass OrganizationSentryAppsEndpoint(OrganizationEndpoint):\n@control_silo_endpoint\nclass OrganizationSentryAppsEndpoint(ControlSiloOrganizationEndpoint):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.001455604075691412, "commit_url": "https://github.com/getsentry/sentry/commit/09c78bb5be65bb99d94dcab2e12fab9f5ec4a442", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "@region_silo_endpoint\nclass OrganizationSentryAppsEndpoint(OrganizationEndpoint):\n@control_silo_endpoint\nclass OrganizationSentryAppsEndpoint(ControlSiloOrganizationEndpoint):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.001455604075691412, "commit_url": "https://github.com/getsentry/sentry/commit/09c78bb5be65bb99d94dcab2e12fab9f5ec4a442", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "from sentry.auth.provider import MigratingIdentityId\nfrom sentry.auth.provider import MigratingIdentityId\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/fdc524a0ff061271dfdd49aef9989e0eee1e99ee", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " org_serializers.GITHUB_PR_BOT_DEFAULT,\n org_serializers.GITHUB_COMMENT_BOT_DEFAULT,\n ),\n (\n \"githubOpenPRBot\",\n \"sentry:github_open_pr_bot\",\n bool,\n org_serializers.GITHUB_COMMENT_BOT_DEFAULT,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/d390f41e37990c02339e53ba6eeabdee67e1efa0", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "GITHUB_PR_BOT_DEFAULT = True\nGITHUB_COMMENT_BOT_DEFAULT = True\n org_serializers.GITHUB_PR_BOT_DEFAULT,\n org_serializers.GITHUB_COMMENT_BOT_DEFAULT,\n ),\n (\n \"githubOpenPRBot\",\n \"sentry:github_open_pr_bot\",\n bool,\n org_serializers.GITHUB_COMMENT_BOT_DEFAULT,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/d390f41e37990c02339e53ba6eeabdee67e1efa0", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " orgId: string;\n orgSlug: string;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/6dc9fd052d2754a705471f7e32042877f44d7462", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 4, 5, 6 ] }, { "input": "export function EventUserFeedback({className, report, orgId, issueId}: Props) {\nexport function EventUserFeedback({className, report, orgSlug, issueId}: Props) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/6dc9fd052d2754a705471f7e32042877f44d7462", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 4, 5, 6 ] }, { "input": "class PagerDutyProxyClient(ApiClient):\nclass PagerDutyPluginClient(ApiClient):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/40f25322013dc8d9984ef79051229a52f79e4466", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "from .client import PagerDutyProxyClient\nfrom .client import PagerDutyPluginClient\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/40f25322013dc8d9984ef79051229a52f79e4466", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " client = PagerDutyProxyClient(service_key=service_key)\n client = PagerDutyPluginClient(service_key=service_key)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/40f25322013dc8d9984ef79051229a52f79e4466", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " if event.get_tag(\"sample_event\"):\n logger.info(\n \"insert: inserting event\",\n extra={\"event.id\": event.event_id, \"project_id\": event.project_id},\n )\n if event.get_tag(\"sample_event\") == \"true\":\n logger.info(\n \"insert: inserting event in Snuba\",\n extra={\"event.id\": event.event_id, \"project_id\": event.project_id},\n )\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/066a443bc46c05e458f61007932aaa79c0fcb0cc", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " {\n value: EMPTY_OPTION_VALUE,\n label: ,\n },\n {\n value: EMPTY_OPTION_VALUE,\n label: ,\n },\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/7eb5ce43edf8b08154ef79cf532e2f31190e06fd", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " ScheduledDeletion.schedule(repo, days=0, hours=1, actor=request.user)\n RegionScheduledDeletion.schedule(repo, days=0, hours=1, actor=request.user)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07446808510638298, "commit_url": "https://github.com/getsentry/sentry/commit/a3af7a7d462e7b00e2d428abb6ef123a7051f680", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 5, 6 ] }, { "input": " ScheduledDeletion.schedule(repo, days=0, actor=request.user)\n RegionScheduledDeletion.schedule(repo, days=0, actor=request.user)\n ScheduledDeletion.schedule(repo, days=0, hours=1, actor=request.user)\n RegionScheduledDeletion.schedule(repo, days=0, hours=1, actor=request.user)\n assert ScheduledDeletion.objects.filter(\n assert RegionScheduledDeletion.objects.filter(\n assert ScheduledDeletion.objects.filter(\n assert RegionScheduledDeletion.objects.filter(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07446808510638298, "commit_url": "https://github.com/getsentry/sentry/commit/a3af7a7d462e7b00e2d428abb6ef123a7051f680", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 5, 6 ] }, { "input": " assert ScheduledDeletion.objects.filter(\n assert RegionScheduledDeletion.objects.filter(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07446808510638298, "commit_url": "https://github.com/getsentry/sentry/commit/a3af7a7d462e7b00e2d428abb6ef123a7051f680", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 6 ] }, { "input": " assert ScheduledDeletion.objects.filter(object_id=repo.id, model_name=\"Repository\").exists()\n assert RegionScheduledDeletion.objects.filter(\n object_id=repo.id, model_name=\"Repository\"\n ).exists()\n assert ScheduledDeletion.objects.filter(object_id=repo.id, model_name=\"Repository\").exists()\n assert RegionScheduledDeletion.objects.filter(\n object_id=repo.id, model_name=\"Repository\"\n ).exists()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/a3af7a7d462e7b00e2d428abb6ef123a7051f680", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "from sentry.db.models import Model, control_silo_only_model\nfrom sentry.db.models import Model, region_silo_only_model\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0196078431372549, "commit_url": "https://github.com/getsentry/sentry/commit/4a2bbbc43f17dd1ca1700771d64c04b5b3bc6f3d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "@control_silo_only_model\n@region_silo_only_model\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0196078431372549, "commit_url": "https://github.com/getsentry/sentry/commit/4a2bbbc43f17dd1ca1700771d64c04b5b3bc6f3d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " output = \"\\n\".join(\n\n # The script produces log lines when DRIFT is detected. This\n # makes it easier to surface these as Sentry errors.\n # This also means the output is polluted with a log line\n # because reconfiguring the logger in the test is quite tricky\n # as it is initialized at the beginning of the test.\n # So we just split the output in two and check each part\n # independently.\n output_before_log = \"\\n\".join(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/0b666f054be379470aa83bfb296632de803a3e51", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " assert output in rv.output\n assert output_before_log in rv.output\n assert output_after_log in rv.output\n assert output in rv.output\n assert output_before_log in rv.output\n assert output_after_log in rv.output\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/0b666f054be379470aa83bfb296632de803a3e51", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": " output = \"\\n\".join(\n output_before_log = \"\\n\".join(\n output = \"\\n\".join(\n\n # The script produces log lines when DRIFT is detected. This\n # makes it easier to surface these as Sentry errors.\n # This also means the output is polluted with a log line\n # because reconfiguring the logger in the test is quite tricky\n # as it is initialized at the beginning of the test.\n # So we just split the output in two and check each part\n # independently.\n output_before_log = \"\\n\".join(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/0b666f054be379470aa83bfb296632de803a3e51", "target_edit_idx": 8, "propagatable_edit_idx": [ 5 ] }, { "input": "import {Organization} from 'sentry/types';\nimport {Group, Organization} from 'sentry/types';\nimport {Organization} from 'sentry/types';\nimport {Group, Organization} from 'sentry/types';\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/getsentry/sentry/commit/3b8f4cecd8e6e59e69ffd3dd5efde33a49271d73", "target_edit_idx": 1, "propagatable_edit_idx": [ 9 ] }, { "input": " ...(hasBetterPrioritySort ? [IssueSortOptions.BETTER_PRIORITY] : []), // show better priority for EA orgs\n ...(hasBetterPrioritySort ? [IssueSortOptions.BETTER_PRIORITY] : []), // show better priority for EA orgs\n ...(hasBetterPrioritySort ? [IssueSortOptions.BETTER_PRIORITY] : []), // show better priority for EA orgs\n ...(hasBetterPrioritySort ? [IssueSortOptions.BETTER_PRIORITY] : []), // show better priority for EA orgs\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/5c0a4fab9270551555cdb2a9f6f6d0aa384c9434", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 6 ] }, { "input": " @with_feature({\"organizations:crons-issue-platform\": False})\n @with_feature({\"organizations:issue-platform\": False})\n @with_feature({\"organizations:crons-issue-platform\": False})\n @with_feature({\"organizations:issue-platform\": False})\n @with_feature({\"organizations:crons-issue-platform\": False})\n @with_feature({\"organizations:issue-platform\": False})\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/getsentry/sentry/commit/6a91676bb9b6eccf4f6629f1615ec573634ff278", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " @with_feature([\"organizations:issue-platform\", \"organizations:crons-issue-platform\"])\n @with_feature(\"organizations:issue-platform\")\n @with_feature([\"organizations:issue-platform\", \"organizations:crons-issue-platform\"])\n @with_feature(\"organizations:issue-platform\")\n @with_feature([\"organizations:issue-platform\", \"organizations:crons-issue-platform\"])\n @with_feature(\"organizations:issue-platform\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/6a91676bb9b6eccf4f6629f1615ec573634ff278", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " from sentry.utils.batching_kafka_consumer import create_topics\nfrom sentry.utils.batching_kafka_consumer import create_topics\nfrom sentry.utils.batching_kafka_consumer import create_topics\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/a2416e276f9a13cd3795542ac83f945e1a281727", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " create_topics(cluster_name, [topic])\n create_topics(cluster_name, [topic])\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/a2416e276f9a13cd3795542ac83f945e1a281727", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " default_result_type=\"percentage\",\n default_result_type=\"percent_change\",\n default_result_type=\"percentage\",\n default_result_type=\"percent_change\",\n default_result_type=\"percentage\",\n default_result_type=\"percent_change\",\n default_result_type=\"percentage\",\n default_result_type=\"percent_change\",\n default_result_type=\"percentage\",\n default_result_type=\"percent_change\",\n default_result_type=\"percentage\",\n default_result_type=\"percent_change\",\n default_result_type=\"percentage\",\n default_result_type=\"percent_change\",\n default_result_type=\"percentage\",\n default_result_type=\"percent_change\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.19047619047619047, "commit_url": "https://github.com/getsentry/sentry/commit/72810caedfaf6d1991707ef00a792a9ec176292c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " assert meta[\"fields\"][\"epm_percent_change()\"] == \"percentage\"\n assert meta[\"fields\"][\"spm_percent_change()\"] == \"percentage\"\n assert meta[\"fields\"][\"epm_percent_change()\"] == \"percent_change\"\n assert meta[\"fields\"][\"spm_percent_change()\"] == \"percent_change\"\n assert meta[\"fields\"][\"eps_percent_change()\"] == \"percentage\"\n assert meta[\"fields\"][\"sps_percent_change()\"] == \"percentage\"\n assert meta[\"fields\"][\"eps_percent_change()\"] == \"percent_change\"\n assert meta[\"fields\"][\"sps_percent_change()\"] == \"percent_change\"", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/getsentry/sentry/commit/72810caedfaf6d1991707ef00a792a9ec176292c", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": "from sentry.testutils.cases import BaseTestCase, TestCase\nfrom sentry.testutils.cases import TestCase\nfrom sentry.testutils.cases import BaseTestCase\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/681232b031275dc0d7095d948c1987cc0aa85383", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "class OrganizationUpdateTest(TestCase, BaseTestCase):\nclass OrganizationUpdateTest(TestCase):\nclass OrganizationUpdateWithOutboxTest(TestCase, BaseTestCase):\nclass OrganizationUpdateWithOutboxTest(TestCase):\nclass OrganizationUpsertWithOutboxTest(TestCase, BaseTestCase):\nclass OrganizationUpsertWithOutboxTest(TestCase):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/681232b031275dc0d7095d948c1987cc0aa85383", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " quantile(0.75)(exclusive_time) as p75,\n quantile(0.50)(exclusive_time) as p50,\n quantile(0.75)(exclusive_time) as p75, domain,\n quantile(0.50)(exclusive_time) as p50, domain,\n quantile(0.75)(exclusive_time) as p75,\n quantile(0.50)(exclusive_time) as p50,\n quantile(0.75)(exclusive_time) as p75,\n quantile(0.50)(exclusive_time) as p50,\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/getsentry/sentry/commit/9c4b47f487fa2e078e2ea0f228e132d3bff3a072", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " {action: string; count: number; interval: string; p75: number}[]\n {action: string; count: number; interval: string; p50: number}[]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/928a77caebf0b2a44edceac460d49b2b9848a4c3", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 7 ] }, { "input": " floor(quantile(0.75)(exclusive_time), 5) as p75,\n floor(quantile(0.50)(exclusive_time), 5) as p50,\n floor(quantile(0.75)(exclusive_time), 5) as p75,\n floor(quantile(0.50)(exclusive_time), 5) as p50,\n floor(quantile(0.75)(exclusive_time), 5) as p75,\n floor(quantile(0.50)(exclusive_time), 5) as p50,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/928a77caebf0b2a44edceac460d49b2b9848a4c3", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " p75: number;\n p50: number;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/928a77caebf0b2a44edceac460d49b2b9848a4c3", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 5 ] }, { "input": "from sentry.types.group import GroupSubStatus\nfrom sentry.types.group import GroupSubStatus\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/0ca60ef4a6f668a3b3851c80b7257f779aa27f9b", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " add_group_to_inbox(event.group, GroupInboxReason.NEW)\n updated = (\n Group.objects.filter(id=event.group.id)\n .exclude(substatus=GroupSubStatus.NEW)\n .update(status=GroupStatus.UNRESOLVED, substatus=GroupSubStatus.NEW)\n )\n if updated:\n event.group.status = GroupStatus.UNRESOLVED\n event.group.substatus = GroupSubStatus.NEW\n add_group_to_inbox(event.group, GroupInboxReason.NEW)\n add_group_to_inbox(event.group, GroupInboxReason.REGRESSION)\n updated = (\n Group.objects.filter(id=event.group.id)\n .exclude(substatus=GroupSubStatus.REGRESSED)\n .update(status=GroupStatus.UNRESOLVED, substatus=GroupSubStatus.REGRESSED)\n )\n if updated:\n event.group.status = GroupStatus.UNRESOLVED\n event.group.substatus = GroupSubStatus.REGRESSED\n add_group_to_inbox(event.group, GroupInboxReason.REGRESSION)\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/getsentry/sentry/commit/0ca60ef4a6f668a3b3851c80b7257f779aa27f9b", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " project=project,\n project=project, status=GroupStatus.UNRESOLVED, substatus=GroupSubStatus.NEW\n project=project,\n project=project, status=GroupStatus.UNRESOLVED, substatus=GroupSubStatus.REGRESSED\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/0ca60ef4a6f668a3b3851c80b7257f779aa27f9b", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " \"next_checkin\": monitor.next_checkin,\n \"last_checkin\": monitor.last_checkin,\n \"next_checkin\": monitor.next_checkin,\n \"last_checkin\": monitor.last_checkin,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/76800ab284b31a80a9d102fe473d3441198ef6c8", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "from django.utils import timezone\nfrom django.utils import timezone\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/76800ab284b31a80a9d102fe473d3441198ef6c8", "target_edit_idx": 5, "propagatable_edit_idx": [ 11 ] }, { "input": " next_checkin=timezone.now() - timedelta(minutes=1),\n next_checkin=timezone.now() - timedelta(minutes=1),\n next_checkin=timezone.now() + timedelta(minutes=1),\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/getsentry/sentry/commit/76800ab284b31a80a9d102fe473d3441198ef6c8", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 12 ] }, { "input": " offender_span_ids=\"bbbbbbbbbbbbbbbb\",\n offender_span_ids=[\"bbbbbbbbbbbbbbbb\"],\n \"offender_span_ids\": \"bbbbbbbbbbbbbbbb\",\n \"offender_span_ids\": [\"bbbbbbbbbbbbbbbb\"],\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/a45d81a5ef4fb8b6fb37f363412761c613d84066", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " const hasProfilingPreviewsFeature =\n hasProfilingFeature && organization.features.includes('profiling-previews');\n const hasProfilingPreviewsFeature =\n hasProfilingFeature && organization.features.includes('profiling-previews');\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/a6c98380a4f49efdcce85fdd7dd7332f9d9d27f0", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " project_artifact_bundle = ProjectArtifactBundle.objects.filter(\n artifact_bundle = ArtifactBundle.objects.filter(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07547169811320754, "commit_url": "https://github.com/getsentry/sentry/commit/4261ff69d69d5ab87086c4a2a4854f58169b9b9b", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " artifact_bundle = project_artifact_bundle.artifact_bundle\n\n artifact_bundle = project_artifact_bundle.artifact_bundle\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/4261ff69d69d5ab87086c4a2a4854f58169b9b9b", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " internal_url_prefix.rstrip(\"/\"),\n get_internal_url_prefix(),\n internal_url_prefix.rstrip(\"/\"),\n get_internal_url_prefix(),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/2dc6ef90a6094456c18ef959204380b0ecd3fb28", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " should_get_coverage = codecov_enabled(project.organization, request.user)\n should_get_coverage = codecov_enabled(project.organization)\ndef codecov_enabled(organization: Organization, user: Any) -> bool:\n flag_enabled = features.has(\n \"organizations:codecov-stacktrace-integration\", organization, actor=user\n )\n setting_enabled = organization.flags.codecov_access\n return bool(flag_enabled and setting_enabled)\ndef codecov_enabled(organization: Organization) -> bool:\n # We only need to check the organization flag since the flag will not be set if the plan-based feature flag is False.\n return bool(organization.flags.codecov_access)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/0d93d4b98ef190176657ea70207bae45b4bf6d21", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "def codecov_enabled(organization: Organization, user: Any) -> bool:\n flag_enabled = features.has(\n \"organizations:codecov-stacktrace-integration\", organization, actor=user\n )\n setting_enabled = organization.flags.codecov_access\n return bool(flag_enabled and setting_enabled)\ndef codecov_enabled(organization: Organization) -> bool:\n # We only need to check the organization flag since the flag will not be set if the plan-based feature flag is False.\n return bool(organization.flags.codecov_access)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/0d93d4b98ef190176657ea70207bae45b4bf6d21", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": "@apply_feature_flag_on_cls(\"organizations:codecov-stacktrace-integration\")\n@apply_feature_flag_on_cls(\"organizations:codecov-stacktrace-integration\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/0d93d4b98ef190176657ea70207bae45b4bf6d21", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " def __init__(self, request: Request):\n # TODO: is there a better way to construct a url to this same route?\n self.base_url = request.build_absolute_uri(request.path)\n def __init__(self, project: Project):\n self.base_url = get_internal_artifact_lookup_source_url(project)\n url_constructor = UrlConstructor(request)\n url_constructor = UrlConstructor(project)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/ff47eebb1cbef68fbd03d2473161930b903f8364", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " Region(\"north_america\", 1, \"na.sentry.io\", RegionCategory.MULTI_TENANT),\n Region(\"europe\", 2, \"eu.sentry.io\", RegionCategory.MULTI_TENANT),\n Region(\"na\", 1, \"http://na.testserver\", RegionCategory.MULTI_TENANT),\n Region(\"eu\", 2, \"http://eu.testserver\", RegionCategory.MULTI_TENANT),\n Region(\"north_america\", 1, \"na.sentry.io\", RegionCategory.MULTI_TENANT),\n Region(\"europe\", 2, \"eu.sentry.io\", RegionCategory.MULTI_TENANT),\n Region(\"na\", 1, \"http://na.testserver\", RegionCategory.MULTI_TENANT),\n Region(\"eu\", 2, \"http://eu.testserver\", RegionCategory.MULTI_TENANT),\n Region(\"north_america\", 1, \"na.sentry.io\", RegionCategory.MULTI_TENANT),\n Region(\"europe\", 2, \"eu.sentry.io\", RegionCategory.MULTI_TENANT),\n Region(\"na\", 1, \"http://na.testserver\", RegionCategory.MULTI_TENANT),\n Region(\"eu\", 2, \"http://eu.testserver\", RegionCategory.MULTI_TENANT),\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/c39b7f589407aecde9fb020e905db30a642f1a5d", "target_edit_idx": 2, "propagatable_edit_idx": [ 10, 12 ] }, { "input": " with override_settings(SENTRY_REGION=\"north_america\"):\n with override_settings(SENTRY_REGION=\"na\"):\n with override_settings(SENTRY_REGION=\"north_america\"):\n with override_settings(SENTRY_REGION=\"na\"):\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/c39b7f589407aecde9fb020e905db30a642f1a5d", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " \"link\": get_group_settings_link(self.group, environment, rule_details),\n \"link\": get_group_settings_link(\n self.group, environment, rule_details, None, **fallback_params\n ),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/getsentry/sentry/commit/2032fc7c0193662d1fc6ab7161a9e7cffca047b9", "target_edit_idx": 2, "propagatable_edit_idx": [ 9 ] }, { "input": " link = get_group_settings_link(self.group, self.environment.name, rule_details, 1337)\n link = get_group_settings_link(\n self.group, self.environment.name, rule_details, 1337, extra=\"123\"\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/getsentry/sentry/commit/2032fc7c0193662d1fc6ab7161a9e7cffca047b9", "target_edit_idx": 9, "propagatable_edit_idx": [ 2 ] }, { "input": " run_detector_on_data(detector, data, project)\n run_detector_on_data(detector, data)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/getsentry/sentry/commit/41057140d6dcf7bcae5eb7d31597977c1ca8bc20", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 5 ] }, { "input": "def run_detector_on_data(detector, data, project=None):\n if not detector.is_event_eligible(data, project):\ndef run_detector_on_data(detector, data):\n if not detector.is_event_eligible(data):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/getsentry/sentry/commit/41057140d6dcf7bcae5eb7d31597977c1ca8bc20", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 5 ] }, { "input": " run_detector_on_data(detector, event, project)\n run_detector_on_data(detector, event)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/getsentry/sentry/commit/41057140d6dcf7bcae5eb7d31597977c1ca8bc20", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "def batching_kafka_options(group):\ndef batching_kafka_options(group, max_batch_size=None, max_batch_time_ms=1000):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/getsentry/sentry/commit/668677eec4927c706028d5ac0f92b2818ef9c6e0", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8 ] }, { "input": "@batching_kafka_options(\"ingest-consumer\")\n@batching_kafka_options(\"ingest-consumer\", max_batch_size=100)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/getsentry/sentry/commit/668677eec4927c706028d5ac0f92b2818ef9c6e0", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4, 5, 6, 7, 8 ] }, { "input": "@batching_kafka_options(\"region-to-control-consumer\")\n@batching_kafka_options(\"region-to-control-consumer\", max_batch_size=100)\ndef batching_kafka_options(group):\ndef batching_kafka_options(group, max_batch_size=None, max_batch_time_ms=1000):\n@batching_kafka_options(\"ingest-consumer\")\n@batching_kafka_options(\"ingest-consumer\", max_batch_size=100)\n@batching_kafka_options(\"billing-metrics-consumer\")\n@batching_kafka_options(\"billing-metrics-consumer\", max_batch_size=100)\n@batching_kafka_options(\"ingest-profiles\")\n@batching_kafka_options(\"ingest-profiles\", max_batch_size=100)\n@batching_kafka_options(\"ingest-replay-recordings\")\n@batching_kafka_options(\"ingest-replay-recordings\", max_batch_size=100)\n@batching_kafka_options(\"indexer-last-seen-updater-consumer\")\n@batching_kafka_options(\"indexer-last-seen-updater-consumer\", max_batch_size=100)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/getsentry/sentry/commit/668677eec4927c706028d5ac0f92b2818ef9c6e0", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 3, 5, 6, 7, 8 ] }, { "input": "@batching_kafka_options(\"ingest-profiles\")\n@batching_kafka_options(\"ingest-profiles\", max_batch_size=100)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/getsentry/sentry/commit/668677eec4927c706028d5ac0f92b2818ef9c6e0", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 3, 4, 5, 7, 8 ] }, { "input": "@batching_kafka_options(\"indexer-last-seen-updater-consumer\")\n@batching_kafka_options(\"indexer-last-seen-updater-consumer\", max_batch_size=100)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/getsentry/sentry/commit/668677eec4927c706028d5ac0f92b2818ef9c6e0", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 3, 4, 5, 6, 7 ] }, { "input": "from sentry.notifications.types import ActionTargetType\nfrom sentry.notifications.types import ActionTargetType, FallthroughChoiceType\nfrom sentry.notifications.types import ActionTargetType\nfrom sentry.notifications.types import ActionTargetType, FallthroughChoiceType\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/98f4f232ab0a9601bd05269bf1f5782f5e3ac9f1", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " \"sentry:reprocessing_active\": bool(attrs.get(\"sentry:reprocessing_active\", False)),\n \"sentry:performance_issue_creation_rate\": attrs[\"options\"].get(\n \"sentry:reprocessing_active\": bool(options.get(\"sentry:reprocessing_active\", False)),\n \"sentry:performance_issue_creation_rate\": options.get(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/a9ba7ef99c2a6a3f7bf19a235aefa0148126ca9e", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " attrs[\"options\"].get(f\"sentry:{FilterTypes.RELEASES}\", [])\n options.get(f\"sentry:{FilterTypes.RELEASES}\", [])\n attrs[\"options\"].get(f\"sentry:{FilterTypes.ERROR_MESSAGES}\", [])\n options.get(f\"sentry:{FilterTypes.ERROR_MESSAGES}\", [])\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/a9ba7ef99c2a6a3f7bf19a235aefa0148126ca9e", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " \"feedback:branding\": attrs.get(\"feedback:branding\", \"1\") == \"1\",\n \"feedback:branding\": options.get(\"feedback:branding\", \"1\") == \"1\",\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/getsentry/sentry/commit/a9ba7ef99c2a6a3f7bf19a235aefa0148126ca9e", "target_edit_idx": 7, "propagatable_edit_idx": [ 3 ] }, { "input": " if not NPlusOneAPICallsDetector.is_span_valid(span):\n if not NPlusOneAPICallsDetector.is_span_eligible(span):\n def is_span_valid(cls, span: Span) -> bool:\n def is_span_eligible(cls, span: Span) -> bool:\n assert NPlusOneAPICallsDetector.is_span_valid(span)\n assert NPlusOneAPICallsDetector.is_span_eligible(span)\n assert not NPlusOneAPICallsDetector.is_span_valid(span)\n assert not NPlusOneAPICallsDetector.is_span_eligible(span)", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/c0b05014ef8c817b5c0deefa6ee79b43140a42ca", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " def is_span_valid(cls, span: Span) -> bool:\n def is_span_eligible(cls, span: Span) -> bool:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/c0b05014ef8c817b5c0deefa6ee79b43140a42ca", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5 ] }, { "input": " assert NPlusOneAPICallsDetector.is_span_valid(span)\n assert NPlusOneAPICallsDetector.is_span_eligible(span)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/c0b05014ef8c817b5c0deefa6ee79b43140a42ca", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": " assert not NPlusOneAPICallsDetector.is_span_valid(span)\n assert not NPlusOneAPICallsDetector.is_span_eligible(span)", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/c0b05014ef8c817b5c0deefa6ee79b43140a42ca", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " datadog_prefix: str | None = None\n metrics_prefix: str | None = None\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/889fc81d9f51bd10af1e87dd14500fbd96793663", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " f\"{self.datadog_prefix}.http_request\",\n f\"{self.metrics_prefix}.http_request\",\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/889fc81d9f51bd10af1e87dd14500fbd96793663", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " def datadog_prefix(self) -> str | None:\n def metrics_prefix(self) -> str | None:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/889fc81d9f51bd10af1e87dd14500fbd96793663", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13 ] }, { "input": " f\"{self.datadog_prefix}.http_response\",\n f\"{self.metrics_prefix}.http_response\",\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/889fc81d9f51bd10af1e87dd14500fbd96793663", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13 ] }, { "input": " assert response.status_code == 400\n assert response.status_code == 200\n assert response.status_code == 400\n assert response.status_code == 405\n", "class": "clone", "binary_label": 1, "regression_label": 0.05555555555555555, "commit_url": "https://github.com/getsentry/sentry/commit/39a3b509e26150506656d257da647fb5bdb667a1", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": " if (!issueSupports(group.issueCategory, 'delete')) {\n if (!getIssueCapability(group.issueCategory, 'delete')) {\n if (!issueSupports(group.issueCategory, 'deleteAndDiscard')) {\n if (!getIssueCapability(group.issueCategory, 'deleteAndDiscard')) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/7652268ecef945c61202fcfbd158ffce30ac6286", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " disabled: !issueSupports(group.issueCategory, 'delete'),\n disabled: !getIssueCapability(group.issueCategory, 'delete'),\n disabled: !issueSupports(group.issueCategory, 'deleteAndDiscard'),\n disabled: !getIssueCapability(group.issueCategory, 'deleteAndDiscard'),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/7652268ecef945c61202fcfbd158ffce30ac6286", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " project.id,\n project2.id,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/7fb94b825f281ea09989d5883bb470e30fc69911", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "from sentry.sentry_metrics.indexer.cache import indexer_cache\nfrom sentry.sentry_metrics.indexer.cache import StringIndexerCache\nfrom sentry.sentry_metrics.indexer.cache import indexer_cache\nfrom sentry.sentry_metrics.indexer.cache import StringIndexerCache\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.08108108108108109, "commit_url": "https://github.com/getsentry/sentry/commit/149ba08fecdd1738d706ace81d06446b2f04ddc7", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " on_results=lambda x: serialize(x, request.user),\n on_results=lambda x: serialize(x, request.user, errors=[]),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0008764241893076249, "commit_url": "https://github.com/getsentry/sentry/commit/959165fc2bb793494a9f9e1c898b6c7f2aa1ad88", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " on_results=lambda x: serialize(x, request.user),\n on_results=lambda x: serialize(x, request.user, errors=errors),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0008764241893076249, "commit_url": "https://github.com/getsentry/sentry/commit/959165fc2bb793494a9f9e1c898b6c7f2aa1ad88", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 5 ] }, { "input": "export type Replay = {\nexport type ReplayDiscoveryListItem = {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/22c3b8b5f0afbea732e8f036ef1988903b512836", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7 ] }, { "input": " \n \n \n \n \n \n \n \n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/eaf32769411969366afbbb3548d91f91683a0a88", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " version = \"2\" # Downgrade to 2 for reporting metrics\n version = \"2\" # Downgrade to 2 for reporting metrics\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/78fea8be7522d82ac9ff682dc7cddb18d0845a77", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " metrics.incr(\"relay.project_configs.post_v3.pending\", amount=len(pending), sample_rate=1)\n metrics.incr(\n \"relay.project_configs.post_v3.fetched\", amount=len(proj_configs), sample_rate=1\n )\n metrics.incr(\"relay.project_configs.post_v3.pending\", amount=len(pending))\n metrics.incr(\"relay.project_configs.post_v3.fetched\", amount=len(proj_configs))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.004918032786885246, "commit_url": "https://github.com/getsentry/sentry/commit/78fea8be7522d82ac9ff682dc7cddb18d0845a77", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " metrics.incr(\"relay.projectconfig_debounce_cache.debounce\", sample_rate=1)\n metrics.incr(\"relay.projectconfig_debounce_cache.debounce\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.006557377049180328, "commit_url": "https://github.com/getsentry/sentry/commit/78fea8be7522d82ac9ff682dc7cddb18d0845a77", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " metrics.incr(\"relay.projectconfig_debounce_cache.task_done\", sample_rate=1)\n metrics.incr(\"relay.projectconfig_debounce_cache.task_done\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.006557377049180328, "commit_url": "https://github.com/getsentry/sentry/commit/78fea8be7522d82ac9ff682dc7cddb18d0845a77", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "import {IconEdit} from 'sentry/icons';\nimport {IconCopy, IconEdit} from 'sentry/icons';\nimport {IconEdit} from 'sentry/icons';\nimport {IconCopy, IconEdit} from 'sentry/icons';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/f60dda3fc00f36958777aeb4d2430f1e3cf75997", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " profile = _normalize(profile=profile)\n organization = Organization.objects.get_from_cache(id=project.organization_id)\n profile = _normalize(profile=profile, organization=organization)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/f8484c1d3a1371ecdfa71e1a848382271e41fc93", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 6, 7 ] }, { "input": "def _normalize(profile: MutableMapping[str, Any]) -> MutableMapping[str, Any]:\ndef _normalize(\n profile: MutableMapping[str, Any],\n organization: Organization,\n) -> MutableMapping[str, Any]:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/f8484c1d3a1371ecdfa71e1a848382271e41fc93", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 6, 7 ] }, { "input": " profile = _normalize(self.ios_profile)\n profile = _normalize(profile=self.ios_profile, organization=self.organization)\n profile = _normalize(profile=profile)\n organization = Organization.objects.get_from_cache(id=project.organization_id)\n profile = _normalize(profile=profile, organization=organization)\ndef _normalize(profile: MutableMapping[str, Any]) -> MutableMapping[str, Any]:\ndef _normalize(\n profile: MutableMapping[str, Any],\n organization: Organization,\n) -> MutableMapping[str, Any]:\n profile = _normalize(self.android_profile)\n profile = _normalize(profile=self.android_profile, organization=self.organization)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/f8484c1d3a1371ecdfa71e1a848382271e41fc93", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 7 ] }, { "input": " profile = _normalize(self.android_profile)\n profile = _normalize(profile=self.android_profile, organization=self.organization)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/f8484c1d3a1371ecdfa71e1a848382271e41fc93", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 4, 6 ] }, { "input": " + f\"?alert={incident.identifier}\"\n + f\"?alert={incident.identifier}&referrer=slack\"\n + f\"?alert={incident.identifier}\"\n + f\"?alert={incident.identifier}&referrer=slack\"\n + f\"?alert={incident.identifier}\"\n + f\"?alert={incident.identifier}&referrer=slack\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/105e246efb7acb1d3cdec974070e5672cb5af163", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " APIQueryDefinition,\n QueryDefinition,\n \"APIQueryDefinition\",\n \"QueryDefinition\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.02030456852791878, "commit_url": "https://github.com/getsentry/sentry/commit/8a77fd2c574ecd44b2ea3fc701de4a9393e07815", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "class APIQueryDefinition:\nclass QueryDefinition:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9, "commit_url": "https://github.com/getsentry/sentry/commit/8a77fd2c574ecd44b2ea3fc701de4a9393e07815", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": "from sentry.snuba.metrics.query_builder import APIQueryDefinition\nfrom sentry.snuba.metrics.query_builder import QueryDefinition\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9, "commit_url": "https://github.com/getsentry/sentry/commit/8a77fd2c574ecd44b2ea3fc701de4a9393e07815", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 3, 8, 9, 10, 11, 12, 13 ] }, { "input": " query_definition = APIQueryDefinition([PseudoProject(1, 1)], query_params)\n query_definition = QueryDefinition([PseudoProject(1, 1)], query_params)\n query = APIQueryDefinition(\n query = QueryDefinition(\nclass APIQueryDefinition:\nclass QueryDefinition:\nfrom sentry.snuba.metrics.query_builder import APIQueryDefinition\nfrom sentry.snuba.metrics.query_builder import QueryDefinition\n query_definition = APIQueryDefinition(\n query_definition = QueryDefinition(\n query_definition = APIQueryDefinition(\n query_definition = QueryDefinition(\n query_definition = APIQueryDefinition([PseudoProject(1, 1)], query_params)\n query_definition = QueryDefinition([PseudoProject(1, 1)], query_params)\n query_definition = APIQueryDefinition([PseudoProject(1, 1)], query_params)\n query_definition = QueryDefinition([PseudoProject(1, 1)], query_params)\n query_definition = APIQueryDefinition([PseudoProject(1, 1)], query_params)\n query_definition = QueryDefinition([PseudoProject(1, 1)], query_params)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.9, "commit_url": "https://github.com/getsentry/sentry/commit/8a77fd2c574ecd44b2ea3fc701de4a9393e07815", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 3, 7, 9, 10, 11, 12, 13 ] }, { "input": " query_definition = APIQueryDefinition([PseudoProject(1, 1)], query_params)\n query_definition = QueryDefinition([PseudoProject(1, 1)], query_params)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.9, "commit_url": "https://github.com/getsentry/sentry/commit/8a77fd2c574ecd44b2ea3fc701de4a9393e07815", "target_edit_idx": 12, "propagatable_edit_idx": [ 1, 3, 7, 8, 9, 10, 11, 13 ] }, { "input": " assert response.status_code == 200\n assert response.status_code == 200, response.content\n assert response.status_code == 200\n assert response.status_code == 200, response.content\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/a29e8ed1deb0cbcda47fa1ccb86fbb0233fb43fd", "target_edit_idx": 7, "propagatable_edit_idx": [ 11 ] }, { "input": " response.data[\"data\"][0][\"equation[0]\"]\n response.data[\"data\"][0][\"equation|spans.http / 3\"]\n response.data[\"data\"][0][\"equation[0]\"]\n response.data[\"data\"][0][\"equation|spans.http / 3\"]\n response.data[\"data\"][1][\"equation[0]\"]\n response.data[\"data\"][1][\"equation|spans.http / 3\"]\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/a29e8ed1deb0cbcda47fa1ccb86fbb0233fb43fd", "target_edit_idx": 8, "propagatable_edit_idx": [ 12, 13 ] }, { "input": " client = redis.redis_clusters.get(\"default\")\n verify = client.get(prepare_reports_verify_key())\n verify = default_cache.get(prepare_reports_verify_key())\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/cc9fa409d8acccce95a2526d24055c216e4644f1", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " client = redis.redis_clusters.get(\"default\")\n assert client.get(prepare_reports_verify_key()) == \"1\"\n assert default_cache.get(prepare_reports_verify_key()) == \"1\"\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/cc9fa409d8acccce95a2526d24055c216e4644f1", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": "\nimport {SpanSlug} from '../types';\nimport {SpanSlug} from 'sentry/utils/performance/suspectSpans/types';\nimport {SpanSlug} from '../types';\n\nimport {SpanSlug} from '../types';\nimport {SpanSlug} from 'sentry/utils/performance/suspectSpans/types';\nimport {SpanSlug} from '../types';\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/getsentry/sentry/commit/f5259c0019524c3f6cd1e4d290749f2ae61a0c0e", "target_edit_idx": 5, "propagatable_edit_idx": [ 10, 11, 7 ] }, { "input": " featureId: 12, // TODO(Add to integrationfeature.py)\n featureId: 12,\n featureId: 12, // TODO(Add to integrationfeature.py)\n featureId: 12,\n featureId: 11, // TODO(Add to integrationfeature.py)\n featureId: 11,\n featureId: 8, // TODO(Add to integrationfeature.py)\n featureId: 8,\n featureId: 8, // TODO(Add to integrationfeature.py)\n featureId: 8,\n featureId: 8, // TODO(Add to integrationfeature.py)\n featureId: 8,\n featureId: 9, // TODO(Add to integrationfeature.py)\n featureId: 9,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/1e4daba640a3929cb49fc749822711cdfed2efb5", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7, 8, 9, 10 ] }, { "input": " stats_period = parse_stats_period(stats_period)\n if stats_period is None:\n raise InvalidParams(\"Invalid statsPeriod\")\n parsed_stats_period = parse_stats_period(stats_period)\n if parsed_stats_period is None:\n raise InvalidParams(f\"Invalid statsPeriod: {stats_period!r}\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/9a1e4a665c47d84fe607dad753229398a9524e1f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return now - stats_period\n return now - parsed_stats_period\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/9a1e4a665c47d84fe607dad753229398a9524e1f", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " features = IntegrationFeature.objects.filter(sentry_app_id=sentry_app.id)\n features = IntegrationFeature.objects.filter(\n target_id=sentry_app.id, target_type=IntegrationTypes.SENTRY_APP.value\n )\n assert IntegrationFeature.objects.filter(sentry_app=app).exists()\n assert IntegrationFeature.objects.filter(\n target_id=app.id, target_type=IntegrationTypes.SENTRY_APP.value\n ).exists()\n features = IntegrationFeature.objects.filter(sentry_app_id=obj.id)\n features = IntegrationFeature.objects.filter(\n target_id=obj.id, target_type=IntegrationTypes.SENTRY_APP.value\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/aa1f54fe75c659fd1d70449ff82808051b866afc", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 3 ] }, { "input": " features = IntegrationFeature.objects.filter(sentry_app_id=obj.id)\n features = IntegrationFeature.objects.filter(\n target_id=obj.id, target_type=IntegrationTypes.SENTRY_APP.value\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/aa1f54fe75c659fd1d70449ff82808051b866afc", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 10 ] }, { "input": " self.api_feature = IntegrationFeature.objects.get(sentry_app=self.sentry_app)\n self.api_feature = IntegrationFeature.objects.get(\n target_id=self.sentry_app.id, target_type=IntegrationTypes.SENTRY_APP.value\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/aa1f54fe75c659fd1d70449ff82808051b866afc", "target_edit_idx": 8, "propagatable_edit_idx": [ 12 ] }, { "input": " self.integration_feature = IntegrationFeature.objects.get(sentry_app=self.sentry_app)\n self.integration_feature = IntegrationFeature.objects.get(\n target_id=self.sentry_app.id, target_type=IntegrationTypes.SENTRY_APP.value\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/aa1f54fe75c659fd1d70449ff82808051b866afc", "target_edit_idx": 12, "propagatable_edit_idx": [ 8 ] }, { "input": " groupby=group_by,\n groupby=query_cols,\n orderby=[OrderBy(col, Direction.DESC) for col in query_cols],\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/8fc9e43fe5668c5a4d66df25ac5a3db6dbf64191", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " groupby=group_by,\n groupby=query_cols,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/8fc9e43fe5668c5a4d66df25ac5a3db6dbf64191", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": "from sentry.utils.validators import INVALID_EVENT_DETAILS, is_event_id\nfrom sentry.utils.validators import INVALID_ID_DETAILS, is_event_id\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/989379f95aadce53e7a43dc27f121e2d57be90ae", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " return Response({\"detail\": INVALID_EVENT_DETAILS.format(\"Event\")}, status=400)\n return Response({\"detail\": INVALID_ID_DETAILS.format(\"Event ID\")}, status=400)\n return Response({\"detail\": INVALID_EVENT_DETAILS.format(\"Event\")}, status=400)\n return Response({\"detail\": INVALID_ID_DETAILS.format(\"Event ID\")}, status=400)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/989379f95aadce53e7a43dc27f121e2d57be90ae", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "from sentry.utils.validators import INVALID_EVENT_DETAILS\nfrom sentry.utils.validators import INVALID_ID_DETAILS\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/989379f95aadce53e7a43dc27f121e2d57be90ae", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " # Validate event ids are uuids\n if name == \"id\":\n # Validate event ids and trace ids are uuids\n if name in {\"id\", \"trace\"}:\n # Validate event ids are uuids\n if name == \"id\":\n # Validate event ids and trace ids are uuids\n if name in {\"id\", \"trace\"}:\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/989379f95aadce53e7a43dc27f121e2d57be90ae", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " raise InvalidSearchQuery(\"Wildcard conditions are not permitted on `id` field.\")\n raise InvalidSearchQuery(\n f\"Wildcard conditions are not permitted on `{name}` field.\"\n )\n raise InvalidSearchQuery(\"Wildcard conditions are not permitted on `id` field.\")\n raise InvalidSearchQuery(\n f\"Wildcard conditions are not permitted on `{name}` field.\"\n )\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/989379f95aadce53e7a43dc27f121e2d57be90ae", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " raise InvalidSearchQuery(INVALID_EVENT_DETAILS.format(\"Filter\"))\n label = \"Filter ID\" if name == \"id\" else \"Filter Trace ID\"\n raise InvalidSearchQuery(INVALID_ID_DETAILS.format(label))\n raise InvalidSearchQuery(INVALID_EVENT_DETAILS.format(\"Filter\"))\n label = \"Filter ID\" if name == \"id\" else \"Filter Trace ID\"\n raise InvalidSearchQuery(INVALID_ID_DETAILS.format(label))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/989379f95aadce53e7a43dc27f121e2d57be90ae", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": " return safe_execute(json.loads, value)\n return safe_execute(json.loads, value, _with_transaction=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.02666666666666667, "commit_url": "https://github.com/getsentry/sentry/commit/0233ab1f9fdff65ae135567aab2d7fa07e80f6a4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " safe_execute(delete_old_primary_hash, job[\"event\"])\n safe_execute(delete_old_primary_hash, job[\"event\"], _with_transaction=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.02666666666666667, "commit_url": "https://github.com/getsentry/sentry/commit/0233ab1f9fdff65ae135567aab2d7fa07e80f6a4", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " new_data = safe_execute(scrub_data, project=project, event=data.data)\n new_data = safe_execute(\n scrub_data, project=project, event=data.data, _with_transaction=False\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.02666666666666667, "commit_url": "https://github.com/getsentry/sentry/commit/0233ab1f9fdff65ae135567aab2d7fa07e80f6a4", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "class SCIMMemberTests(APITestCase):\n def setUp(self):\n super().setUp()\n auth_provider = AuthProvider.objects.create(\n organization=self.organization, provider=\"dummy\"\n )\n with self.feature({\"organizations:sso-scim\": True}):\n auth_provider.enable_scim(self.user)\n auth_provider.save()\n self.login_as(user=self.user)\n\nclass SCIMMemberTests(SCIMTestCase):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.001321003963011889, "commit_url": "https://github.com/getsentry/sentry/commit/c67f5c18a57d030faa8ea6aa3718d2f48295b9da", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " \"id\": org_member_id,\n \"id\": str(org_member_id),\n \"id\": org_member_id,\n \"id\": str(org_member_id),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/getsentry/sentry/commit/c67f5c18a57d030faa8ea6aa3718d2f48295b9da", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "class SCIMGroupTests(APITestCase):\n def setUp(self):\n super().setUp()\n auth_provider = AuthProvider.objects.create(\n organization=self.organization, provider=\"dummy\"\n )\n with self.feature({\"organizations:sso-scim\": True}):\n auth_provider.enable_scim(self.user)\n auth_provider.save()\n self.login_as(user=self.user)\n\nclass SCIMGroupTests(SCIMTestCase):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.001321003963011889, "commit_url": "https://github.com/getsentry/sentry/commit/c67f5c18a57d030faa8ea6aa3718d2f48295b9da", "target_edit_idx": 6, "propagatable_edit_idx": [ 2 ] }, { "input": " const userTeams = teams.filter(({isMember}) => isMember);\n\n const isSuperuser = isActiveSuperuser();\n const userTeams = teams.filter(({isMember}) => isMember || isSuperuser);\n const userTeams = teams.filter(({isMember}) => isMember);\n const isSuperuser = isActiveSuperuser();\n const userTeams = teams.filter(({isMember}) => isMember || isSuperuser);\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/e0bc502282eb48198757fba548543f8355327b0f", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] == \"foobar@3.0.0\"\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] == \"foobar@1.0.0\"\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] == \"foobar@3.0.0\"\n assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] == \"foobar@1.0.0\"\n assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] is None\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] == \"foobar@2.0.0\"\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] is None\n assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] == \"foobar@2.0.0\"\n assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] == \"foobar@2.0.0\"\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] is None\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] == \"foobar@2.0.0\"\n assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] is None\n assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] == \"foobar@2.0.0\"\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] is None\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] == \"foobar@2.0.0\"\n assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] is None\n assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] is None\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] == \"foobar@1.0.0\"\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] is None\n assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] == \"foobar@1.0.0\"\n assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] is None\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] == \"foobar@1.0.0\"\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] is None\n assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] == \"foobar@1.0.0\"\n assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] == \"foobar@2.0.0\"\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] == \"foobar@3.0.0\"\n assert response.data[\"currentProjectMeta\"][\"nextReleaseVersion\"] == \"foobar@2.0.0\"\n assert response.data[\"currentProjectMeta\"][\"prevReleaseVersion\"] == \"foobar@3.0.0\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/getsentry/sentry/commit/b23c75d861a5787ca0eecb509eac3e0e911ac05e", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8 ] }, { "input": " \n \n \n \n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/d3ac92ed339a783a519d87b8b0101437d2e0cd1a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "import * as Sentry from '@sentry/react';\nimport * as Sentry from '@sentry/react';\nimport * as Sentry from '@sentry/react';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/0ca073a3226cbbce864e078a07ddaff980b30acc", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " issue_url=\"https://github.com/getsentry/sentry/issues/new\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=AWS%20Lambda%20Problem\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=Integration%20Problem\",\n issue_url=\"https://github.com/getsentry/sentry/issues/\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=GitLab%20Integration%20Problem\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.4642857142857143, "commit_url": "https://github.com/getsentry/sentry/commit/651643c9e7044fedeb528f5187b020de86bf5709", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " issue_url=\"https://github.com/getsentry/sentry/issues/new?title=Bitbucket%20Integration:%20&labels=Component%3A%20Integrations\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=Bitbucket%Integration%20Problem\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?title=Bitbucket%20Server%20Integration:%20&labels=Component%3A%20Integrations\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=Bitbucket%Server%20Integration%20Problem\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?title=GitHub%20Integration:%20&labels=Component%3A%20Integrations\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=GitHub%Integration%20Problem\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?title=GitHub%20Integration:%20&labels=Component%3A%20Integrations\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=GitHub%20Enterprise%20Integration%20Problem\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?title=Jira%20Integration:%20&labels=Component%3A%20Integrations\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=Jira%20Integration%20Problem\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?title=Jira%20Server%20Integration:%20&labels=Component%3A%20Integrations\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=Jira%20Server%20Integration%20Problem\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?title=Microsoft%20Teams%20Integration:%20&labels=Component%3A%20Integrations\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=Microsoft%20Teams%20Integration%20Problem\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?title=PagerDuty%20Integration:%20&labels=Component%3A%20Integrations\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=PagerDuty%20Integration%20Problem\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?title=Slack%20Integration:%20&labels=Component%3A%20Integrations\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=Slack%20Integration%20Problem\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?title=Vercel%20Integration:%20&labels=Component%3A%20Integrations\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=Vercel%20Integration%20Problem\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?title=VSTS%20Integration:%20&labels=Component%3A%20Integrations\",\n issue_url=\"https://github.com/getsentry/sentry/issues/new?assignees=&labels=Component:%20Integrations&template=bug_report.md&title=Azure%20DevOps%20Integration%20Problem\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/651643c9e7044fedeb528f5187b020de86bf5709", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4, 5, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " margin: 100px 50px 50px 50px;\n padding: 100px 50px 50px 50px;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/7f6f29b767ae7e1434f19c68fe52952a3b863744", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " label: t('Failed Transactions'),\n label: t('Failed Transaction Count'),\n label: t('All Transactions'),\n label: t('Transaction Count'),\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/ddf14175264054e3726216aa75786df7b12e66bf", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " \n \n \n \n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/bca43b08324affc34743285e36ca8170102e9052", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " self.request.body = urlencode(self.request.data)\n self.request.body = urlencode(self.request.data).encode(\"utf-8\")\n self.request.body = urlencode(self.request.data)\n self.request.body = urlencode(self.request.data).encode(\"utf-8\")\n self.request.body = urlencode(self.request.data)\n self.request.body = urlencode(self.request.data).encode(\"utf-8\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/501e6433ba751ae37a179357294c038c0621c707", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " topic_names=topic_names, worker=IngestConsumerWorker(concurrency=concurrency), **options\n topic_names=topic_names, worker=IngestConsumerWorker(), **options\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/getsentry/sentry/commit/a341d34ffb5eb4e4193839f56cdde0d451985919", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " worker=IngestConsumerWorker(concurrency=None),\n worker=IngestConsumerWorker(),\n topic_names=topic_names, worker=IngestConsumerWorker(concurrency=concurrency), **options\n topic_names=topic_names, worker=IngestConsumerWorker(), **options\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/getsentry/sentry/commit/a341d34ffb5eb4e4193839f56cdde0d451985919", "target_edit_idx": 9, "propagatable_edit_idx": [ 6 ] }, { "input": "export default function DateTimeField(props: Props) {\nexport default function DateTimeField(props: Omit) {\nexport default function EmailField(props: Props) {\nexport default function EmailField(props: Omit) {\nexport default function NumberField(props: Props) {\nexport default function NumberField(props: Omit) {\nexport default function TextField(props: Props) {\nexport default function TextField(props: Omit) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/c271939fd2ef33ea39ea24a483f4327b351964ea", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " assert result[\"groupby\"] == [\"event.type\", \"message\", \"id\", \"project.id\"]\n assert result[\"groupby\"] == []\n assert result[\"groupby\"] == [\"message\", \"id\", \"project.id\"]\n assert result[\"groupby\"] == []\n assert result[\"groupby\"] == [\"issue.id\", \"id\", \"project.id\"]\n assert result[\"groupby\"] == []\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/ba2ee1ed36392f2d92e6622fbd8dd4b0ac781e92", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "def _upgrade(interactive, traceback, verbosity, repair):\ndef _upgrade(interactive, traceback, verbosity, repair, with_nodestore):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/233960efa7ec0b1ee7a08c581e661d032a7364c7", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " _upgrade(not noinput, traceback, verbosity, not no_repair)\n _upgrade(not noinput, traceback, verbosity, not no_repair, with_nodestore)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/233960efa7ec0b1ee7a08c581e661d032a7364c7", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 4 ] }, { "input": " widget=forms.TextInput(attrs={\"placeholder\": _(\"sentry-consumer-key\")}),\n widget=forms.TextInput(attrs={\"placeholder\": \"sentry-consumer-key\"}),\n widget=forms.TextInput(attrs={\"placeholder\": _(\"sentry-consumer-key\")}),\n widget=forms.TextInput(attrs={\"placeholder\": \"sentry-consumer-key\"}),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/getsentry/sentry/commit/30f0508d3e451428ced714e4eb2840be9708b228", "target_edit_idx": 0, "propagatable_edit_idx": [ 9 ] }, { "input": " \"placeholder\": _(\n \"-----BEGIN RSA PRIVATE KEY-----\\n...\\n-----END RSA PRIVATE KEY-----\"\n )\n \"placeholder\": \"-----BEGIN RSA PRIVATE KEY-----\\n...\\n-----END RSA PRIVATE KEY-----\"\n \"placeholder\": _(\n \"-----BEGIN RSA PRIVATE KEY-----\\n...\\n-----END RSA PRIVATE KEY-----\"\n )\n \"placeholder\": \"-----BEGIN RSA PRIVATE KEY-----\\n...\\n-----END RSA PRIVATE KEY-----\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/30f0508d3e451428ced714e4eb2840be9708b228", "target_edit_idx": 1, "propagatable_edit_idx": [ 10 ] }, { "input": " widget=forms.TextInput(attrs={\"placeholder\": _(\"XXXXXXXXXXXXXXXXXXXXXXXXXXX\")}),\n widget=forms.TextInput(attrs={\"placeholder\": \"XXXXXXXXXXXXXXXXXXXXXXXXXXX\"}),\n widget=forms.TextInput(attrs={\"placeholder\": _(\"XXXXXXXXXXXXXXXXXXXXXXXXXXX\")}),\n widget=forms.TextInput(attrs={\"placeholder\": \"XXXXXXXXXXXXXXXXXXXXXXXXXXX\"}),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/30f0508d3e451428ced714e4eb2840be9708b228", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": "from datetime import timedelta\nfrom datetime import timedelta\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/getsentry/sentry/commit/4705bc43d53aa981566f45f68ac3add6b55c201d", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": "from sentry.utils.dates import parse_stats_period\n\n\n# Maximum number of results we are willing to fetch.\n# Clients should adapt the interval width based on their\n# display width.\nMAX_POINTS = 4500\nfrom sentry.utils.dates import get_rollup_from_request\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.21428571428571427, "commit_url": "https://github.com/getsentry/sentry/commit/4705bc43d53aa981566f45f68ac3add6b55c201d", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": " rollup = self.get_rollup(request, params)\n rollup = get_rollup_from_request(\n request,\n params,\n \"1h\",\n InvalidSearchQuery(\n \"Your interval and date range would create too many results. \"\n \"Use a larger interval, or a smaller date range.\"\n ),\n )\n rollup = self.get_rollup(request, params)\n rollup = get_rollup_from_request(\n request,\n params,\n \"24h\",\n ProjectEventsError(\n \"Your interval and date range would create too many results. \"\n \"Use a larger interval, or a smaller date range.\"\n ),\n )\n # The minimum interval is one hour on the server\n rollup = max(rollup, 3600)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/4705bc43d53aa981566f45f68ac3add6b55c201d", "target_edit_idx": 2, "propagatable_edit_idx": [ 9 ] }, { "input": " def get_rollup(self, request, params):\n interval = parse_stats_period(request.GET.get(\"interval\", \"1h\"))\n if interval is None:\n interval = timedelta(hours=1)\n\n date_range = params[\"end\"] - params[\"start\"]\n if date_range.total_seconds() / interval.total_seconds() > MAX_POINTS:\n raise InvalidSearchQuery(\n \"Your interval and date range would create too many results. \"\n \"Use a larger interval, or a smaller date range.\"\n )\n\n return int(interval.total_seconds())\n\n\n def get_rollup(self, request, params):\n interval = parse_stats_period(request.GET.get(\"interval\", \"24h\"))\n if interval is None:\n interval = timedelta(hours=1)\n\n date_range = params[\"end\"] - params[\"start\"]\n if date_range.total_seconds() / interval.total_seconds() > MAX_POINTS:\n raise ProjectEventsError(\n \"Your interval and date range would create too many results. \"\n \"Use a larger interval, or a smaller date range.\"\n )\n\n # The minimum interval is one hour on the server\n return max(int(interval.total_seconds()), 3600)", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/4705bc43d53aa981566f45f68ac3add6b55c201d", "target_edit_idx": 3, "propagatable_edit_idx": [ 10 ] }, { "input": "from sentry.utils.dates import parse_stats_period\nfrom sentry.utils.dates import get_rollup_from_request\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.21428571428571427, "commit_url": "https://github.com/getsentry/sentry/commit/4705bc43d53aa981566f45f68ac3add6b55c201d", "target_edit_idx": 7, "propagatable_edit_idx": [ 1 ] }, { "input": "def bulk_build_incident_query_params(incidents, start=None, end=None):\ndef bulk_build_incident_query_params(incidents, start=None, end=None, prewindow=False):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/getsentry/sentry/commit/6cae3008dcbaba0e210634b873fac70ed343db4b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " query_params = bulk_build_incident_query_params([incident], start=start, end=end)\n query_params = bulk_build_incident_query_params(\n [incident], start=start, end=end, prewindow=True\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/getsentry/sentry/commit/6cae3008dcbaba0e210634b873fac70ed343db4b", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": " query_params_list = bulk_build_incident_query_params(to_fetch)\n query_params_list = bulk_build_incident_query_params(to_fetch, prewindow=True)\ndef bulk_build_incident_query_params(incidents, start=None, end=None):\ndef bulk_build_incident_query_params(incidents, start=None, end=None, prewindow=False):\n query_params = bulk_build_incident_query_params([incident], start=start, end=end)\n query_params = bulk_build_incident_query_params(\n [incident], start=start, end=end, prewindow=True\n )\n query_params_list = bulk_build_incident_query_params(incidents, start=start, end=end)\n query_params_list = bulk_build_incident_query_params(\n incidents, start=start, end=end, prewindow=True\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/getsentry/sentry/commit/6cae3008dcbaba0e210634b873fac70ed343db4b", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": " if issubclass(model, EventCommon):\n if isinstance(instance, Event):\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/getsentry/sentry/commit/d75b4f44c144a45abf12d2fcaaa48f0d097db681", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": " :qparam bool full: if this is set to true then the event payload will include the full event body, including the stacktrace. Set to 1 to enable.\n :qparam bool full: if this is set to true then the event payload will\n include the full event body, including the stacktrace.\n Set to 1 to enable.\n :qparam bool full: if this is set to true then the event payload will include the full event body, including the stacktrace. Set to 1 to enable.\n :qparam bool full: if this is set to true then the event payload will\n include the full event body, including the stacktrace.\n Set to 1 to enable.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/e5eb18ac03bcb1bb1262a751ed41e5c421593870", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "class GroupNodeDeletionTask(BaseDeletionTask):\nclass EventDataDeletionTask(BaseDeletionTask):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/d733a8e9d2060a7e6e8d2a34580c00304d8f4457", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 9, 3 ] }, { "input": " super(GroupNodeDeletionTask, self).__init__(manager, **kwargs)\n super(EventDataDeletionTask, self).__init__(manager, **kwargs)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/d733a8e9d2060a7e6e8d2a34580c00304d8f4457", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 1, 9 ] }, { "input": "from sentry.deletions.defaults.group import GroupNodeDeletionTask\nfrom sentry.deletions.defaults.group import EventDataDeletionTask\nclass GroupNodeDeletionTask(BaseDeletionTask):\nclass EventDataDeletionTask(BaseDeletionTask):\n super(GroupNodeDeletionTask, self).__init__(manager, **kwargs)\n super(EventDataDeletionTask, self).__init__(manager, **kwargs)\n GroupNodeDeletionTask.DEFAULT_CHUNK_SIZE = 1 # test chunking logic\n EventDataDeletionTask.DEFAULT_CHUNK_SIZE = 1 # test chunking logic\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/d733a8e9d2060a7e6e8d2a34580c00304d8f4457", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 3, 9 ] }, { "input": " GroupNodeDeletionTask.DEFAULT_CHUNK_SIZE = 1 # test chunking logic\n EventDataDeletionTask.DEFAULT_CHUNK_SIZE = 1 # test chunking logic\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/d733a8e9d2060a7e6e8d2a34580c00304d8f4457", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 1, 3 ] }, { "input": " event = Event.objects.get()\n event = self.get_event()\n\n event = Event.objects.get()\n event = self.get_event()\n event = Event.objects.get()\n event = self.get_event()\n event = Event.objects.get()\n event = eventstore.get_events(filter_keys={\"project_id\": [self.project.id]})[0]\n\n event = Event.objects.get()\n event = self.get_event()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/daa6c5318bfbcdbcfab20bda5371d321fb3ecd48", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 11, 7 ] }, { "input": " 'GET': (), # Public endpoint.\n # GET is ideally a public endpoint but for now we are allowing for\n # anyone who has member permissions or above.\n 'GET': ('event:read',\n 'event:write',\n 'event:admin',\n 'project:releases',\n 'project:read',\n 'org:read',\n 'member:read',\n 'team:read',),\n 'GET': (), # Public endpoint.\n # GET is ideally a public endpoint but for now we are allowing for\n # anyone who has member permissions or above.\n 'GET': ('event:read',\n 'event:write',\n 'event:admin',\n 'project:releases',\n 'project:read',\n 'org:read',\n 'member:read',\n 'team:read',),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/8b0179dce22f4ed2e8300ac10d18dd7a24fe5afa", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "from sentry.utils.cache import default_cache\nfrom sentry.cache import default_cache\nfrom sentry.utils.cache import default_cache\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/350c69082c04583cb7c7c468ee4650a866c09a28", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 5 ] }, { "input": " euser_id = default_cache.get(cache_key)\n euser_id = cache.get(cache_key)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/getsentry/sentry/commit/350c69082c04583cb7c7c468ee4650a866c09a28", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 6, 7, 10, 11 ] }, { "input": " default_cache.set(cache_key, e_userid, 3600)\n cache.set(cache_key, e_userid, 3600)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/getsentry/sentry/commit/350c69082c04583cb7c7c468ee4650a866c09a28", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 6, 7, 10, 11 ] }, { "input": " has_rate_limits = default_cache.get(cache_key)\n has_rate_limits = cache.get(cache_key)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/getsentry/sentry/commit/350c69082c04583cb7c7c468ee4650a866c09a28", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 7, 10, 11 ] }, { "input": " default_cache.set(cache_key, has_rate_limits, 600)\n cache.set(cache_key, has_rate_limits, 600)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/getsentry/sentry/commit/350c69082c04583cb7c7c468ee4650a866c09a28", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 6, 10, 11 ] }, { "input": " value = default_cache.get(SDK_INDEX_CACHE_KEY)\n value = cache.get(SDK_INDEX_CACHE_KEY)\n euser_id = default_cache.get(cache_key)\n euser_id = cache.get(cache_key)\n default_cache.set(cache_key, e_userid, 3600)\n cache.set(cache_key, e_userid, 3600)\n has_rate_limits = default_cache.get(cache_key)\n has_rate_limits = cache.get(cache_key)\n default_cache.set(cache_key, has_rate_limits, 600)\n cache.set(cache_key, has_rate_limits, 600)\n default_cache.set(SDK_INDEX_CACHE_KEY, json, 3600)\n cache.set(SDK_INDEX_CACHE_KEY, json, 3600)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.058823529411764705, "commit_url": "https://github.com/getsentry/sentry/commit/350c69082c04583cb7c7c468ee4650a866c09a28", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 3, 6, 7, 11 ] }, { "input": " default_cache.set(SDK_INDEX_CACHE_KEY, json, 3600)\n cache.set(SDK_INDEX_CACHE_KEY, json, 3600)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.058823529411764705, "commit_url": "https://github.com/getsentry/sentry/commit/350c69082c04583cb7c7c468ee4650a866c09a28", "target_edit_idx": 11, "propagatable_edit_idx": [ 2, 3, 6, 7, 10 ] }, { "input": " if value is not None and self.wrapper is not None:\n value = self.wrapper(value)\n\n return NodeData(self, node_id, value)\n return NodeData(self, node_id, value, wrapper=self.wrapper)\n self.data = NodeData(None, node_id, data=None)\n self.data = NodeData(None, node_id, data=None, wrapper=EventDict)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/getsentry/sentry/commit/54764bf9d9ed8473784fbecbb86badeaaad10d97", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " self.data = NodeData(None, node_id, data=None)\n self.data = NodeData(None, node_id, data=None, wrapper=EventDict)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/getsentry/sentry/commit/54764bf9d9ed8473784fbecbb86badeaaad10d97", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " def get_groups_user_counts(self, project_ids, group_ids, environment_ids):\n start, end = self.get_time_range()\n def get_groups_user_counts(self, project_ids, group_ids, environment_ids, start=None, end=None):\n if start is None or end is None:\n start, end = self.get_time_range()\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/2112ee365cd33b229022d92f76834ed9267f30f8", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": " def get_groups_user_counts(self, project_ids, group_ids, environment_ids):\n def get_groups_user_counts(self, project_ids, group_ids, environment_ids, start=None, end=None):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/2112ee365cd33b229022d92f76834ed9267f30f8", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " latest_release_list = bulk_fetch_project_latest_releases(item_list)\n latest_releases = {\n r.actual_project_id: d\n for r, d in zip(latest_release_list, serialize(latest_release_list, user))\n # We just return the version key here so that we cut down on response\n # size\n latest_release_verions = {\n release.actual_project_id: {'version': release.version}\n for release in bulk_fetch_project_latest_releases(item_list)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/26a8b425d759186010e9501d2bec173958d488ca", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " attrs[item]['latest_release'] = latest_releases.get(item.id)\n attrs[item]['latest_release'] = latest_release_verions.get(item.id)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/26a8b425d759186010e9501d2bec173958d488ca", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " assert result['latestRelease'] == serialize(self.release)\n assert result['latestRelease'] == {'version': self.release.version}\n assert result['latestRelease'] == serialize(self.release)\n assert result['latestRelease'] == {'version': self.release.version}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/26a8b425d759186010e9501d2bec173958d488ca", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " 'login_url': absolute_uri(reverse('sentry-organization-home', args=[organization.slug])),\n 'login_url': absolute_uri(login_url),\n 'login_url':\n absolute_uri(reverse('sentry-organization-home', args=[organization.slug])),\n 'login_url': absolute_uri(organization.get_url()),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/46bbaf1876fe6473edf874b1cdf566e2a03946a5", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " response = self.redirect(reverse('sentry-organization-home', args=[organization.slug]))\n response = self.redirect(organization.get_url())\n return self.redirect(reverse('sentry-organization-home', args=[organization.slug]))\n return self.redirect(organization.get_url())\n return self.redirect(reverse('sentry-organization-home', args=[organization.slug]))\n return self.redirect(organization.get_url())", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/46bbaf1876fe6473edf874b1cdf566e2a03946a5", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " home_url = reverse('sentry-organization-home', args=[organization.slug])\n home_url = organization.get_url()\n reverse('sentry-organization-home', args=[organization.slug])\n organization.get_url()\n", "class": "clone", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/getsentry/sentry/commit/46bbaf1876fe6473edf874b1cdf566e2a03946a5", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " self, project_id, group_id, environment_id, keys=None, value_limit=TOP_VALUES_DEFAULT_LIMIT):\n self, project_id, group_id, environment_ids, keys=None, value_limit=TOP_VALUES_DEFAULT_LIMIT):\n\n # only the snuba backend supports multi env, and that overrides this method\n if environment_ids and len(environment_ids) > 1:\n raise NotImplementedError\n self, project_id, group_id, environment_id, user=None, keys=None, value_limit=TOP_VALUES_DEFAULT_LIMIT):\n self, project_id, group_id, environment_ids, user=None, keys=None, value_limit=TOP_VALUES_DEFAULT_LIMIT):\n if environment_id:\n filters['environment'] = [environment_id]\n if environment_ids:\n filters['environment'] = environment_ids\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/10bc2f990aafbfef0b88edc8a27fccf1cda6c387", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " self.proj1env1.id,\n [self.proj1env1.id],\n self.proj1env1.id,\n [self.proj1env1.id],\n", "class": "clone", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/getsentry/sentry/commit/10bc2f990aafbfef0b88edc8a27fccf1cda6c387", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " def _build_query_params_from_request(self, request, organization, projects):\n return build_query_params_from_request(request, projects)\n\n def _build_query_params_from_request(self, request, project):\n return build_query_params_from_request(request, [project])\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/19f8e4f59babaec2f41a1e5ebb5826114653437c", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " query_kwargs = self._build_query_params_from_request(request, organization, projects)\n query_kwargs = build_query_params_from_request(request, projects)\n query_kwargs = self._build_query_params_from_request(request, project)\n query_kwargs = build_query_params_from_request(request, [project])\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/19f8e4f59babaec2f41a1e5ebb5826114653437c", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " return client.get(u'/events/{}/'.format(event.id), request=request)\n return client.get(u'/projects/{}/{}/events/{}/'.format(\n event.organization.slug,\n event.project.slug,\n event.event_id\n ), request=request)\n return client.get(u'/events/{}/'.format(event.id), request=request)\n return client.get(u'/projects/{}/{}/events/{}/'.format(\n event.organization.slug,\n event.project.slug,\n event.event_id\n ), request=request)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/183d3416eb2f199a4f369607d738030f0dc47b45", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "from sentry.api.bases.organization import OrganizationPermission\nfrom sentry.api.bases.organization import OrganizationDiscoverSavedQueryPermission\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/getsentry/sentry/commit/7c68e0d5fca1f8936ba81a232d28a72e405ff124", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " permission_classes = (OrganizationPermission, )\n permission_classes = (OrganizationDiscoverSavedQueryPermission, )\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/getsentry/sentry/commit/7c68e0d5fca1f8936ba81a232d28a72e405ff124", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": "from sentry.api.bases.organization import OrganizationPermission\nfrom sentry.api.bases.organization import OrganizationDiscoverSavedQueryPermission\nfrom sentry.api.bases.organization import OrganizationPermission\nfrom sentry.api.bases.organization import OrganizationDiscoverSavedQueryPermission\n permission_classes = (OrganizationPermission, )\n permission_classes = (OrganizationDiscoverSavedQueryPermission, )\n permission_classes = (OrganizationPermission, )\n permission_classes = (OrganizationDiscoverSavedQueryPermission, )\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/getsentry/sentry/commit/7c68e0d5fca1f8936ba81a232d28a72e405ff124", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " DetailedOrganizationSerializer(),\n org_serializers.DetailedOrganizationSerializer(),\n DetailedOrganizationSerializer(),\n org_serializers.DetailedOrganizationSerializer(),\n DetailedOrganizationSerializer(),\n org_serializers.DetailedOrganizationSerializer(),\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/getsentry/sentry/commit/5964691f6c1386e2af1d3968950c62a3731c162e", "target_edit_idx": 4, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " installation = self.get_installation(integration, organization.id)\n PluginMigrator(installation, organization).call()\n PluginMigrator(integration, organization).call()\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/345878a49a590394bd44c00b40dd54364ba6da59", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " PluginMigrator(installation, organization).call()\n PluginMigrator(integration, organization).call()\n installation = self.get_installation(integration, organization.id)\n PluginMigrator(installation, organization).call()\n PluginMigrator(integration, organization).call()\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/345878a49a590394bd44c00b40dd54364ba6da59", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " [(self.group.id, [('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', None)])]\n [(self.group.id, self.group.project_id, [('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', None)])]\n [(group1.id, [('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', None)])]\n [(group1.id, group1.project_id, [('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', None)])]\n [(group2.id, [('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',\n [(group2.id, group2.project_id, [('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/getsentry/sentry/commit/6c615f718fd18eb64f5573aea52e9c2919bc6f04", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " or_conditions = [cond for cond in [\n ('user_id', 'IN', [eu.ident for eu in event_users if eu.ident]),\n ('email', 'IN', [eu.email for eu in event_users if eu.email]),\n ('username', 'IN', [eu.username for eu in event_users if eu.username]),\n ('ip_address', 'IN', [eu.ip_address for eu in event_users if eu.ip_address]),\n ] if cond[2] != []]\n conditions = [or_conditions]\n aggregations = [['max', SEEN_COLUMN, 'seen']]\n conditions = [\n ['tags[sentry:user]', 'IN', filter(None, [eu.tag_value for eu in event_users])],\n ]\n aggregations = [['max', SEEN_COLUMN, 'last_seen']]\n or_conditions = [cond for cond in [\n ('user_id', 'IN', [eu.ident for eu in event_users if eu.ident]),\n ('email', 'IN', [eu.email for eu in event_users if eu.email]),\n ('username', 'IN', [eu.username for eu in event_users if eu.username]),\n ('ip_address', 'IN', [eu.ip_address for eu in event_users if eu.ip_address]),\n ] if cond[2] != []]\n conditions = [or_conditions]\n conditions = [\n ['tags[sentry:user]', 'IN', filter(None, [eu.tag_value for eu in event_users])]\n ]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/eb2f65aabf647f6870b265e31ef7a003b9a4076f", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "class GroupIntegrationDetails(GroupEndpoint):\nclass GroupIntegrationDetailsEndpoint(GroupEndpoint):\nfrom .endpoints.group_integration_details import GroupIntegrationDetails\nfrom .endpoints.group_integration_details import GroupIntegrationDetailsEndpoint\n GroupIntegrationDetails.as_view(),\n GroupIntegrationDetailsEndpoint.as_view(),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/e94366f088e997e33cb2b082c770605816bf1dc4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "from .endpoints.group_integration_details import GroupIntegrationDetails\nfrom .endpoints.group_integration_details import GroupIntegrationDetailsEndpoint\nclass GroupIntegrationDetails(GroupEndpoint):\nclass GroupIntegrationDetailsEndpoint(GroupEndpoint):\n GroupIntegrationDetails.as_view(),\n GroupIntegrationDetailsEndpoint.as_view(),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/e94366f088e997e33cb2b082c770605816bf1dc4", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " GroupIntegrationDetails.as_view(),\n GroupIntegrationDetailsEndpoint.as_view(),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/e94366f088e997e33cb2b082c770605816bf1dc4", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " __repr__ = sane_repr('event_id', 'key', 'value')\n __repr__ = sane_repr('event_id', 'key_id', 'value_id')\n __repr__ = sane_repr('project_id', '_key', 'value')\n __repr__ = sane_repr('project_id', '_key_id', 'value')\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/2a5b0499d7b23132a955a8fb52e1e2fe03e834bd", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " __repr__ = sane_repr('project_id', 'group_id', '_key')\n __repr__ = sane_repr('project_id', 'group_id', '_key_id')\n __repr__ = sane_repr('project_id', 'group_id', '_key', '_value')\n __repr__ = sane_repr('project_id', 'group_id', '_key_id', '_value_id')\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/getsentry/sentry/commit/2a5b0499d7b23132a955a8fb52e1e2fe03e834bd", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " data = self.get_mock_data(\n 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36'\n )\n data = self.get_mock_data(USER_AGENTS['chrome'])\n data = self.get_mock_data(\n 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136'\n )\n data = self.get_mock_data(USER_AGENTS['edge'])\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/eb58ad737c953c800bd5ef70996ddcaa30fd6831", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " def __init__(self, is_new, is_regression, is_sample):\n def __init__(self, is_new, is_regression):\n def __init__(self, event, is_new, is_regression, is_sample):\n def __init__(self, event, is_new, is_regression):\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/406f7705dc5db35ab2300569befe33c9d22a1888", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " rp = RuleProcessor(event, is_new, is_regression, is_sample)\n rp = RuleProcessor(event, is_new, is_regression)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/406f7705dc5db35ab2300569befe33c9d22a1888", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " rp = RuleProcessor(event, is_new=True, is_regression=True, is_sample=False)\n rp = RuleProcessor(event, is_new=True, is_regression=True)\n rp = RuleProcessor(event, is_new, is_regression, is_sample)\n rp = RuleProcessor(event, is_new, is_regression)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/406f7705dc5db35ab2300569befe33c9d22a1888", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": "from sentry.utils.safe import safe_execute, trim, trim_dict\nfrom sentry.utils.safe import safe_execute, trim, trim_dict, get_path\nfrom sentry.utils.safe import safe_execute, trim, trim_dict\nfrom sentry.utils.safe import safe_execute, trim, trim_dict, get_path\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/56e64c7f1b84d9b9f3a441f79452003cfa02534f", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " assert GroupCommitResolution.objects.filter(group_id=group.id, commit_id=commit.id).exists()\n assert GroupCommitResolution.objects.filter(group_id=group.id, commit_id=commit.id).exists()\n assert GroupCommitResolution.objects.filter(group_id=group.id, commit_id=commit.id).exists()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/31aade1298a964dd7a31e21ccfb70f55866f5b2c", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " (channel, data) = q.get()\n (channel, item) = q.get()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/6ac589de84c8a36f7c1dbafe483588f706523506", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 10, 7 ] }, { "input": " self.rds.publish(channel, data)\n self.publisher.publish(channel, item)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/6ac589de84c8a36f7c1dbafe483588f706523506", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 10, 6 ] }, { "input": " def put(self, channel, data):\n def publish(self, channel, item):\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/getsentry/sentry/commit/6ac589de84c8a36f7c1dbafe483588f706523506", "target_edit_idx": 8, "propagatable_edit_idx": [ 10, 6, 7 ] }, { "input": " self.q.put((channel, data), block=False)\n self.q.put((channel, item), block=False)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/6ac589de84c8a36f7c1dbafe483588f706523506", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": "from sentry.cache.redis import RedisCache\nfrom sentry.cache.redis import RedisCache\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/ee5822bf9d2e1641d71d9cf88767ea6f095b8d6a", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " return OptionsStore(\n cache=RedisCache()\n )\n c = LocMemCache('test', {})\n c.clear()\n return OptionsStore(cache=c)\n return OptionsStore(\n cache=RedisCache()\n )\n c = LocMemCache('test', {})\n c.clear()\n return OptionsStore(cache=c)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/ee5822bf9d2e1641d71d9cf88767ea6f095b8d6a", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " longest_addr = 0\n longest_addr = 0\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/d8847e230ca892d5c81eed94814976ef19032763", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " from sentry.constants import RESERVED_TEAM_SLUGS\n from sentry.constants import RESERVED_TEAM_SLUGS\n from sentry.constants import RESERVED_TEAM_SLUGS\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/40890367915f225919eca81b61a60d11b46fd437", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "@pytest.mark.skipif(has_llvm_symbolizer(),\n reason='llvm-symbolizer is not installed')\n@requires_llvm_symbolizer\n@pytest.mark.skipif(find_llvm_symbolizer() is None,\n reason='llvm-symbolizer is not installed')\n@requires_llvm_symbolizer\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/ef9819a07a79b8f20ee78b75cb77095189b65793", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "LOG_LEVEL_REVERSE_MAP = dict((v, k) for k, v in LOG_LEVELS.iteritems())\n\nLOG_LEVEL_REVERSE_MAP = dict((v, k) for k, v in LOG_LEVELS.iteritems())\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/665952bfe406dd1ecba535607ec134d4d0fae4bb", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " data['level'] = LOG_LEVEL_REVERSE_MAP[level]\n data['level'] = LOG_LEVELS_MAP[level]\n data['level'] = LOG_LEVEL_REVERSE_MAP.get(\n data['level'] = LOG_LEVELS_MAP.get(\n level = LOG_LEVEL_REVERSE_MAP[event.get_tag('level')]\n level = LOG_LEVELS_MAP[event.get_tag('level')]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/665952bfe406dd1ecba535607ec134d4d0fae4bb", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " data['level'] = LOG_LEVEL_REVERSE_MAP.get(\n data['level'] = LOG_LEVELS_MAP.get(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/665952bfe406dd1ecba535607ec134d4d0fae4bb", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 7 ] }, { "input": " level = LOG_LEVEL_REVERSE_MAP[event.get_tag('level')]\n level = LOG_LEVELS_MAP[event.get_tag('level')]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/665952bfe406dd1ecba535607ec134d4d0fae4bb", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " if Authenticator.objects.validate_otp(user, otp):\n return self.perform_signin(request, user)\n used_interface = self.validate_otp(otp, interface, interfaces)\n if used_interface is not None:\n return self.perform_signin(request, user, used_interface)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/getsentry/sentry/commit/69fd5d2885ef57e944eb5f64fa7f1fba639c08d1", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " return self.perform_signin(request, user)\n return self.perform_signin(request, user, interface)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/getsentry/sentry/commit/69fd5d2885ef57e944eb5f64fa7f1fba639c08d1", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": " raise IOError('Cannot seek on a closed file')\n raise ValueError('I/O operation on closed file')\n raise IOError('Cannot read on a closed file')\n raise ValueError('I/O operation on closed file')\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/e3ea0b452906829fe4314cced3eea5ef05b054a3", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " ).run_subprocess()\n ).run_subprocess(cwd=cwd)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/8586480d1d1cf996dd1a9e98a953a411406b7332", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " def run_subprocess(self):\n def run_subprocess(self, cwd=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/8586480d1d1cf996dd1a9e98a953a411406b7332", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "def fetch_url(url, project=None, release=None):\ndef fetch_url(url, project=None, release=None, allow_scraping=True):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/de2de4a9da751041baa329be551ee4e0b12021d9", "target_edit_idx": 2, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " result = fetch_url(url, project=project, release=release)\n result = fetch_url(url, project=project, release=release,\n allow_scraping=allow_scraping)\ndef fetch_url(url, project=None, release=None):\ndef fetch_url(url, project=None, release=None, allow_scraping=True):\n result = fetch_url(filename, project=project, release=release)\n result = fetch_url(filename, project=project, release=release,\n allow_scraping=self.allow_scraping)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/getsentry/sentry/commit/de2de4a9da751041baa329be551ee4e0b12021d9", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " assert type(result[0]) is Stacktrace\n assert type(result[0][1]) is Stacktrace\n assert type(result[0]) is Stacktrace\n assert type(result[0][1]) is Stacktrace", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/5f608ca77c71cfeb349ac699d22cd6a842a937c0", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "from sentry.testutils import TestCase\nfrom sentry.testutils import TestCase, TransactionTestCase\nfrom sentry.testutils import TestCase\nfrom sentry.testutils import TestCase, TransactionTestCase\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/f9a7d89d16861ddd696cd90e7c765fa39cb447cd", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "class RavenIntegrationTest(TestCase):\nclass RavenIntegrationTest(TransactionTestCase):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.012, "commit_url": "https://github.com/getsentry/sentry/commit/f9a7d89d16861ddd696cd90e7c765fa39cb447cd", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "class EventManagerTest(TestCase):\nclass EventManagerTest(TransactionTestCase):\nclass RavenIntegrationTest(TestCase):\nclass RavenIntegrationTest(TransactionTestCase):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.012, "commit_url": "https://github.com/getsentry/sentry/commit/f9a7d89d16861ddd696cd90e7c765fa39cb447cd", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "def grant_sudo_privileges(request, response=None, max_age=3600):\ndef grant_sudo_privileges(request, max_age=3600):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/getsentry/sentry/commit/7967a625776033b6e92872530f02ad8dedc21304", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": " response = login_redirect(request)\n return grant_sudo_privileges(request, response)\n return login_redirect(request)\n response = login_redirect(request)\n return grant_sudo_privileges(request, response)\n return login_redirect(request)\n response = login_redirect(request)\n return grant_sudo_privileges(request, response)\n return login_redirect(request)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/7967a625776033b6e92872530f02ad8dedc21304", "target_edit_idx": 8, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " response = HttpResponseRedirect(redirect_to)\n return grant_sudo_privileges(request, response)\n grant_sudo_privileges(request)\n return HttpResponseRedirect(redirect_to)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/getsentry/sentry/commit/7967a625776033b6e92872530f02ad8dedc21304", "target_edit_idx": 9, "propagatable_edit_idx": [ 4 ] }, { "input": " for option in alert_queryset:\n for option in (o for o in alert_queryset if o.value):\n for option in alert_queryset:\n for option in (o for o in alert_queryset if o.value):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/c7172df79cfd5a248228e4b18698112adb59f13d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " min_date = when - timedelta(minutes=MINUTE_NORMALIZATION)\n max_date = min_date - timedelta(minutes=(intervals * MINUTE_NORMALIZATION))\n max_date = when - timedelta(minutes=MINUTE_NORMALIZATION)\n min_date = max_date - timedelta(minutes=(intervals * MINUTE_NORMALIZATION))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getsentry/sentry/commit/d6a83358d8d30d8cd3b8fcc2ee064ba447ceaa4b", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " date__lte=min_date,\n date__gt=max_date,\n date__lte=max_date,\n date__gt=min_date,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getsentry/sentry/commit/d6a83358d8d30d8cd3b8fcc2ee064ba447ceaa4b", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " createSparkline: function(el, points){\n createSparkline: function(el, points, options){\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getsentry/sentry/commit/c42166bd4dc80d7d383681e579ba6900fd9df6bc", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " self.assertEquals(group_.last_seen, the_date)\n self.assertEquals(group_.last_seen.replace(microsecond=0), the_date) self.assertEquals(group_.last_seen, the_date)\n self.assertEquals(group_.last_seen.replace(microsecond=0), the_date)", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/getsentry/sentry/commit/dfd8eabf1eb34bfb5d9b2c0671cf50ee85e90316", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " request: chat_schema.ChatUpdateTitleRequest,\n request: chat_schema.ChatUpdateRequest,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/LAION-AI/Open-Assistant/commit/5f951b0a15db049cbfe68d906635df2e4b6be0b6", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": "class ChatUpdateTitleRequest(pydantic.BaseModel):\n title: pydantic.constr(max_length=100)\n\n\nclass ChatUpdateVisibilityRequest(pydantic.BaseModel):\n hidden: bool\nclass ChatUpdateRequest(pydantic.BaseModel):\n title: pydantic.constr(max_length=100) | None = None\n hidden: bool | None = None", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/LAION-AI/Open-Assistant/commit/5f951b0a15db049cbfe68d906635df2e4b6be0b6", "target_edit_idx": 6, "propagatable_edit_idx": [ 1 ] }, { "input": " labels_str: str = typer.prompt(\"Enter labels, separated by commas\")\n labels = labels_str.lower().replace(\" \", \"\").split(\",\")\n labels_dict = {label: \"1\" if label in labels else \"0\" for label in valid_labels}\n\n labels_dict = None\n while labels_dict is None:\n labels_str: str = typer.prompt(\"Enter labels, separated by commas\")\n labels = labels_str.lower().replace(\" \", \"\").split(\",\")\n\n if all([label in valid_labels for label in labels]):\n labels_dict = {label: \"1\" if label in labels else \"0\" for label in valid_labels}\n else:\n invalid_labels = [label for label in labels if label not in valid_labels]\n typer.echo(f\"Invalid labels: {', '.join(invalid_labels)}. Valid: {', '.join(valid_labels)}\")\n labels_str: str = typer.prompt(\"Enter labels, separated by commas\")\n labels = labels_str.lower().replace(\" \", \"\").split(\",\")\n labels_dict = {label: \"1\" if label in labels else \"0\" for label in valid_labels}\n\n labels_dict = None\n while labels_dict is None:\n labels_str: str = typer.prompt(\"Enter labels, separated by commas\")\n labels = labels_str.lower().replace(\" \", \"\").split(\",\")\n\n if all([label in valid_labels for label in labels]):\n labels_dict = {label: \"1\" if label in labels else \"0\" for label in valid_labels}\n else:\n invalid_labels = [label for label in labels if label not in valid_labels]\n typer.echo(f\"Invalid labels: {', '.join(invalid_labels)}. Valid: {', '.join(valid_labels)}\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/LAION-AI/Open-Assistant/commit/45f2f3a60ea77acc74a01cf03b3a99a3987016b6", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " @lru_cache\n def get_rate(from_currency, to_currency, company, date):\n return self.env['res.currency']._get_conversion_rate(\n from_currency=from_currency,\n to_currency=to_currency,\n company=company,\n date=date,\n )\n @lru_cache\n def get_rate(from_currency, to_currency, company, date):\n return self.env['res.currency']._get_conversion_rate(\n from_currency=from_currency,\n to_currency=to_currency,\n company=company,\n date=date,\n )\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/ded660ad88bb3d56c51cff7876dc83da7ce9ccf2", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " # date_order is a datetime, but the rates are looked up on a date basis,\n # therefor converting the date_order to a date helps with sharing entries in the lru_cache\n order.currency_rate = get_rate(order.company_id.currency_id, order.currency_id, order.company_id, order.date_order.date())\n order.currency_rate = self.env['res.currency']._get_conversion_rate(order.company_id.currency_id, order.currency_id, order.company_id, order.date_order)\n # date_order is a datetime, but the rates are looked up on a date basis,\n # therefor converting the date_order to a date helps with sharing entries in the lru_cache\n order.currency_rate = get_rate(order.company_id.currency_id, order.currency_id, order.company_id, date_order.date())\n order.currency_rate = self.env['res.currency']._get_conversion_rate(order.company_id.currency_id, order.currency_id, order.company_id, date_order)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/ded660ad88bb3d56c51cff7876dc83da7ce9ccf2", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " snippet_lists = website.get_theme_snippet_lists(theme_name)\n configurator_snippets = website.get_theme_configurator_snippets(theme_name)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/1b8a1d97d6219ddfa12e4c6f93356402279c1a28", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5, 6 ] }, { "input": " snippet_list = snippet_lists.get(page_code, [])\n snippet_list = configurator_snippets.get(page_code, [])\n snippet_lists = website.get_theme_snippet_lists(theme_name)\n configurator_snippets = website.get_theme_configurator_snippets(theme_name)\n snippet_list = snippet_lists.get(page_code, [])\n snippet_list = configurator_snippets.get(page_code, [])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/1b8a1d97d6219ddfa12e4c6f93356402279c1a28", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " snippet_list = snippet_lists.get(page_code, [])\n snippet_list = configurator_snippets.get(page_code, [])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/1b8a1d97d6219ddfa12e4c6f93356402279c1a28", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " @api.depends('journal_id', 'partner_id', 'company_id', 'move_type')\n @api.depends('journal_id', 'partner_id', 'company_id', 'move_type', 'debit_origin_id')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0004203446826397646, "commit_url": "https://github.com/odoo/odoo/commit/1485692bb9d144375c81e353ccc3e358646fbacc", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " @api.depends('l10n_latam_available_document_type_ids', 'debit_origin_id')\n @api.depends('l10n_latam_available_document_type_ids')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0004203446826397646, "commit_url": "https://github.com/odoo/odoo/commit/1485692bb9d144375c81e353ccc3e358646fbacc", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " def _rewrite_len(self, website_id, rewrites=None):\n # This little hack allow to store a _rewrite_len in cache if we have the value,\n # (Populated during routing map computation)\n # but also ensures that we will have the correct value if the cache is not populated.\n # The cache key actually does not depends on \"rewrites\" because this is the information\n # we are storing, rewrites actually depends on website_id\n if rewrites is None:\n rewrites = self._get_rewrites(website_id)\n def _rewrite_len(self, website_id):\n rewrites = self._get_rewrites(website_id)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/88786dde498f06feeeec78d90f54325094252802", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " res = werkzeug.wrappers.Response(\n json.dumps(error),\n status=500,\n headers=[(\"Content-Type\", \"application/json\")]\n )\n res = request.make_response(html_escape(json.dumps(error)))\n res = werkzeug.wrappers.Response(\n json.dumps(error),\n status=500,\n headers=[(\"Content-Type\", \"application/json\")]\n )\n res = request.make_response(html_escape(json.dumps(error)))\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/926d8c6c5d22a3a363b624e4e28d95e253b6f7cd", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "from odoo.tests.common import users\nfrom odoo.tests.common import users, tagged\nfrom odoo.tests.common import users, Form\nfrom odoo.tests.common import users, Form, tagged\nfrom odoo.tools import mute_logger\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/dd1a842c328ef21af44617b875127e05bf9793a3", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " 'pricelist_id': self.pricelist.id,\n 'pricelist_id': self.test_pricelist.id,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/dd1a842c328ef21af44617b875127e05bf9793a3", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10 ] }, { "input": " self.assertEqual(self.event_booth_category_1.with_context(pricelist=self.pricelist.id).price_reduce_taxinc, 22.0,\n self.assertEqual(self.event_booth_category_1.with_context(pricelist=self.test_pricelist.id).price_reduce_taxinc, 22.0,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/dd1a842c328ef21af44617b875127e05bf9793a3", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10, 7 ] }, { "input": " self.assertEqual(self.event_booth_category_1.with_context(pricelist=self.pricelist.id).price_reduce_taxinc, 110.0,\n self.assertEqual(self.event_booth_category_1.with_context(pricelist=self.test_pricelist.id).price_reduce_taxinc, 110.0,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/dd1a842c328ef21af44617b875127e05bf9793a3", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 10, 7 ] }, { "input": " @api.depends('order_id.fiscal_position_id', 'tax_id.price_include')\n @api.depends('product_id')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0012690355329949238, "commit_url": "https://github.com/odoo/odoo/commit/fecff7119f61ff04f40c71438f800a72ac88aff7", "target_edit_idx": 0, "propagatable_edit_idx": [ 10, 6 ] }, { "input": " self.sale_order.order_line._compute_price_unit()\n self.sale_order.order_line._compute_discount()\n self.sale_order.update_prices()\n self.sale_order.order_line._compute_price_unit()\n self.sale_order.order_line._compute_discount()\n self.sale_order.update_prices()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/fecff7119f61ff04f40c71438f800a72ac88aff7", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "@tagged('post_install', '-at_install')\n@tagged('post_install', '-at_install', 'product_attribute')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0012437810945273632, "commit_url": "https://github.com/odoo/odoo/commit/fecff7119f61ff04f40c71438f800a72ac88aff7", "target_edit_idx": 11, "propagatable_edit_idx": [ 12, 7 ] }, { "input": "@tagged('post_install', '-at_install')\n@tagged('post_install', '-at_install', 'product_pricelist')\n@tagged('post_install', '-at_install')\n@tagged('post_install', '-at_install', 'product_attribute')\n@tagged('post_install', '-at_install')\n@tagged('post_install', '-at_install', 'program_numbers')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0012437810945273632, "commit_url": "https://github.com/odoo/odoo/commit/fecff7119f61ff04f40c71438f800a72ac88aff7", "target_edit_idx": 12, "propagatable_edit_idx": [ 11, 7 ] }, { "input": " self.product_id, qty_done, packaging=self.move_id.product_packaging_id)\n self.product_id, quantity=qty_done, packaging=self.move_id.product_packaging_id)\n self.product_id, qty_done, packaging=self.move_id.product_packaging_id)\n self.product_id, quantity=qty_done, packaging=self.move_id.product_packaging_id)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/odoo/odoo/commit/14c494c3b3057f66e4d32d8a4902ae3d9a59f3e9", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " def _website_product_id_change(self, order_id, product_id, qty=0):\n def _website_product_id_change(self, order_id, product_id, qty=0, **kwargs):\n def _website_product_id_change(self, order_id, product_id, qty=0):\n def _website_product_id_change(self, order_id, product_id, qty=0, **kwargs):\n def _website_product_id_change(self, order_id, product_id, qty=0):\n res = super(SaleOrder, self)._website_product_id_change(order_id, product_id, qty=qty)\n def _website_product_id_change(self, order_id, product_id, qty=0, **kwargs):\n res = super(SaleOrder, self)._website_product_id_change(order_id, product_id, qty=qty, **kwargs)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/0eaecf062c3db72d8f1231c7027b696b13d5dc6e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 5 ] }, { "input": " def my_events(events):\n def split_visibility(events):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/3466ccfe011eb1342128d45c513b4da1c4aa1f21", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " my_private_events, others_private_events = my_events(private_events)\n\n my_private_events, others_private_events = split_visibility(private_events)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/3466ccfe011eb1342128d45c513b4da1c4aa1f21", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " const OtherModel = this.modelManager.models[this.to];\n const other = this.modelManager._create(OtherModel, data);\n const OtherModel = record.models[this.to];\n const other = record.modelManager._create(OtherModel, data);\n const OtherModel = this.modelManager.models[this.to];\n const other = this.modelManager._insert(OtherModel, data);\n const OtherModel = record.models[this.to];\n const other = record.modelManager._insert(OtherModel, data);\n const OtherModel = this.modelManager.models[this.to];\n const newValue = this.modelManager._insert(OtherModel, data);\n const OtherModel = record.models[this.to];\n const newValue = record.modelManager._insert(OtherModel, data);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/odoo/odoo/commit/fc0c947062f82e3772c13d4fa98ebe9348c774f5", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " modelManager: this,\n modelManager: this,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/fc0c947062f82e3772c13d4fa98ebe9348c774f5", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": " return [(model.model, model.name) for model in self.env['ir.model'].search([])]\n return [(model.model, model.name) for model in self.env['ir.model'].sudo().search([])]\n return [(model.model, model.name) for model in self.env['ir.model'].search([])]\n return [(model.model, model.name) for model in self.env['ir.model'].sudo().search([])]\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/odoo/odoo/commit/03ff8d4d5824c07b8d811caf6a3a0bc679c41c8e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " models = self.env['ir.model'].search([])\n return [(model.model, model.name) for model in models]\n return [(model.model, model.name) for model in self.env['ir.model'].sudo().search([])]\n models = self.env['ir.model'].search([])\n return [(model.model, model.name) for model in models]\n return [(model.model, model.name) for model in self.env['ir.model'].sudo().search([])]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/03ff8d4d5824c07b8d811caf6a3a0bc679c41c8e", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " nb_draft_entries = self.env['account.move'].search([\n draft_entries = self.env['account.move'].search([\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/2720cf570c72edb806ba3401b60be42e0574a075", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " if nb_draft_entries:\n raise ValidationError(_('There are still unposted entries in the period you want to lock. You should either post or delete them.'))\n\n has_unreconciled_statement_lines = self.env['account.bank.statement.line'].search_count([\n if draft_entries:\n error_msg = _('There are still unposted entries in the period you want to lock. You should either post or delete them.')\n action_error = {\n 'view_mode': 'tree',\n 'name': 'Unposted Entries',\n 'res_model': 'account.move',\n 'type': 'ir.actions.act_window',\n 'domain': [('id', 'in', draft_entries.ids)],\n 'search_view_id': [self.env.ref('account.view_account_move_filter').id, 'search'],\n 'views': [[self.env.ref('account.view_move_tree').id, 'list'], [self.env.ref('account.view_move_form').id, 'form']],\n }\n raise RedirectWarning(error_msg, action_error, _('Show unposted entries'))\n\n unreconciled_statement_lines = self.env['account.bank.statement.line'].search([\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/2720cf570c72edb806ba3401b60be42e0574a075", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " with self.assertQueryCount(__system__=4, emp=4):\n with self.assertQueryCount(__system__=2, emp=2):\n with self.assertQueryCount(__system__=31, emp=37):\n with self.assertQueryCount(__system__=29, emp=32):\n with self.assertQueryCount(__system__=28, emp=30):\n with self.assertQueryCount(__system__=12, emp=14):\n with self.assertQueryCount(__system__=40, emp=45):\n with self.assertQueryCount(__system__=39, emp=42):\n with self.assertQueryCount(__system__=19, emp=22):\n with self.assertQueryCount(__system__=18, emp=21):\n with self.assertQueryCount(__system__=15, emp=18):\n with self.assertQueryCount(__system__=14, emp=17):\n with self.assertQueryCount(__system__=83, emp=83):\n with self.assertQueryCount(__system__=82, emp=82):\n with self.assertQueryCount(__system__=91, emp=91):\n with self.assertQueryCount(__system__=90, emp=90):\n", "class": "clone", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/odoo/odoo/commit/b04f7e71aa9381ad6e73a41851a45429df4115d3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7 ] }, { "input": " with self.assertQueryCount(emp=6):\n with self.assertQueryCount(emp=5):\n with self.assertQueryCount(emp=18):\n with self.assertQueryCount(emp=17):\n with self.assertQueryCount(emp=86):\n with self.assertQueryCount(emp=85):\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/odoo/odoo/commit/b04f7e71aa9381ad6e73a41851a45429df4115d3", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " def _get_partner_pricelist_multi_search_domain_hook(self):\n return [('active', '=', True)]\n def _get_partner_pricelist_multi_search_domain_hook(self, company_id):\n return [\n ('active', '=', True),\n ('company_id', 'in', [company_id, False]),\n ]\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/6fd2d9b898ca656b751e3a133e2ce2c7ff8cd522", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "from odoo.api import Environment\nfrom odoo.api import Environment\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/85907951c52b40c6dfdaeffa68ce43ccc8bfe0f5", "target_edit_idx": 0, "propagatable_edit_idx": [ 11 ] }, { "input": " return self.view(db, token, action, id, view='form')\n return self.view(token, action, id, view='form')\n return self.view(db, token, action, id, view='form')\n return self.view(token, action, id, view='form')\n def declined(self, db, token, action, id):\n registry = registry_get(db)\n with registry.cursor() as cr:\n env = Environment(cr, SUPERUSER_ID, {})\n attendee = env['calendar.attendee'].search([('access_token', '=', token), ('state', '!=', 'declined')])\n if attendee:\n attendee.do_decline()\n return self.view(db, token, action, id, view='form')\n def decline(self, token, action, id, **kwargs):\n attendee = request.env['calendar.attendee'].search([('access_token', '=', token), ('state', '!=', 'declined')])\n attendee.do_decline()\n return self.view(token, action, id, view='form')\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/85907951c52b40c6dfdaeffa68ce43ccc8bfe0f5", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " def declined(self, db, token, action, id):\n registry = registry_get(db)\n with registry.cursor() as cr:\n env = Environment(cr, SUPERUSER_ID, {})\n attendee = env['calendar.attendee'].search([('access_token', '=', token), ('state', '!=', 'declined')])\n if attendee:\n attendee.do_decline()\n return self.view(db, token, action, id, view='form')\n def decline(self, token, action, id, **kwargs):\n attendee = request.env['calendar.attendee'].search([('access_token', '=', token), ('state', '!=', 'declined')])\n attendee.do_decline()\n return self.view(token, action, id, view='form')\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/85907951c52b40c6dfdaeffa68ce43ccc8bfe0f5", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " move_line_ids = fields.One2many('account.move.line', 'payment_id', readonly=True, copy=False, ondelete='restrict')\n move_line_ids = fields.One2many('account.move.line', 'payment_id', readonly=True, copy=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.015590200445434299, "commit_url": "https://github.com/odoo/odoo/commit/6a69f107dfa5cd0786e4dd15ec9be548439d55f9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 5, 7 ] }, { "input": " attendee_ids = fields.One2many('calendar.attendee', 'event_id', 'Participant', ondelete='cascade')\n attendee_ids = fields.One2many('calendar.attendee', 'event_id', 'Participant')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.015590200445434299, "commit_url": "https://github.com/odoo/odoo/commit/6a69f107dfa5cd0786e4dd15ec9be548439d55f9", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4, 5, 7 ] }, { "input": " skill_type_id = fields.Many2one('hr.skill.type')\n skill_type_id = fields.Many2one('hr.skill.type', ondelete='cascade')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.00045934772622875517, "commit_url": "https://github.com/odoo/odoo/commit/6a69f107dfa5cd0786e4dd15ec9be548439d55f9", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 6 ] }, { "input": " skill_ids = fields.One2many('hr.skill', 'skill_type_id', string=\"Skills\", ondelete='cascade')\n skill_level_ids = fields.One2many('hr.skill.level', 'skill_type_id', string=\"Levels\", ondelete='cascade')\n skill_ids = fields.One2many('hr.skill', 'skill_type_id', string=\"Skills\")\n skill_level_ids = fields.One2many('hr.skill.level', 'skill_type_id', string=\"Levels\")", "class": "def&ref", "binary_label": 1, "regression_label": 0.013363028953229399, "commit_url": "https://github.com/odoo/odoo/commit/6a69f107dfa5cd0786e4dd15ec9be548439d55f9", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 5, 7 ] }, { "input": " topping_ids_1 = fields.One2many('lunch.topping', 'category_id', domain=[('topping_category', '=', 1)], ondelete='cascade')\n topping_ids_2 = fields.One2many('lunch.topping', 'category_id', domain=[('topping_category', '=', 2)], ondelete='cascade')\n topping_ids_3 = fields.One2many('lunch.topping', 'category_id', domain=[('topping_category', '=', 3)], ondelete='cascade')\n topping_ids_1 = fields.One2many('lunch.topping', 'category_id', domain=[('topping_category', '=', 1)])\n topping_ids_2 = fields.One2many('lunch.topping', 'category_id', domain=[('topping_category', '=', 2)])\n topping_ids_3 = fields.One2many('lunch.topping', 'category_id', domain=[('topping_category', '=', 3)])\n move_line_ids = fields.One2many('account.move.line', 'payment_id', readonly=True, copy=False, ondelete='restrict')\n move_line_ids = fields.One2many('account.move.line', 'payment_id', readonly=True, copy=False)\n attendee_ids = fields.One2many('calendar.attendee', 'event_id', 'Participant', ondelete='cascade')\n attendee_ids = fields.One2many('calendar.attendee', 'event_id', 'Participant')\n skill_ids = fields.One2many('hr.skill', 'skill_type_id', string=\"Skills\", ondelete='cascade')\n skill_level_ids = fields.One2many('hr.skill.level', 'skill_type_id', string=\"Levels\", ondelete='cascade')\n skill_ids = fields.One2many('hr.skill', 'skill_type_id', string=\"Skills\")\n skill_level_ids = fields.One2many('hr.skill.level', 'skill_type_id', string=\"Levels\") move_ids = fields.One2many('stock.move', 'purchase_line_id', string='Reservation', readonly=True, ondelete='set null', copy=False)\n move_ids = fields.One2many('stock.move', 'purchase_line_id', string='Reservation', readonly=True, copy=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.011135857461024499, "commit_url": "https://github.com/odoo/odoo/commit/6a69f107dfa5cd0786e4dd15ec9be548439d55f9", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 4, 7 ] }, { "input": " category_id = fields.Many2one('lunch.product.category')\n category_id = fields.Many2one('lunch.product.category', ondelete='cascade')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.00045934772622875517, "commit_url": "https://github.com/odoo/odoo/commit/6a69f107dfa5cd0786e4dd15ec9be548439d55f9", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " move_ids = fields.One2many('stock.move', 'purchase_line_id', string='Reservation', readonly=True, ondelete='set null', copy=False)\n move_ids = fields.One2many('stock.move', 'purchase_line_id', string='Reservation', readonly=True, copy=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.015590200445434299, "commit_url": "https://github.com/odoo/odoo/commit/6a69f107dfa5cd0786e4dd15ec9be548439d55f9", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 4, 5 ] }, { "input": " wired = subprocess.check_output('cat /sys/class/net/eth0/operstate', shell=True).decode('utf-8').strip('\\n')\n wired = subprocess.check_output(['cat', '/sys/class/net/eth0/operstate']).decode('utf-8').strip('\\n')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/odoo/odoo/commit/6cf30cb8695a65d3663a5afb30bc41d32ca3a9b9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " commit = subprocess.check_output(\"git --work-tree=/home/pi/odoo/ --git-dir=/home/pi/odoo/.git log -1\", shell=True).decode('utf-8').replace(\"\\n\", \"
\")\n
commit = subprocess.check_output([\"git\", \"--work-tree=/home/pi/odoo/\", \"--git-dir=/home/pi/odoo/.git\", \"log\", \"-1\"]).decode('utf-8').replace(\"\\n\", \"
\")\n
", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/odoo/odoo/commit/6cf30cb8695a65d3663a5afb30bc41d32ca3a9b9", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " \"\"\" % subprocess.check_output('lsusb -v', shell=True).decode('utf-8')\n \"\"\" % subprocess.check_output(['lsusb', '-v']).decode('utf-8')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/odoo/odoo/commit/6cf30cb8695a65d3663a5afb30bc41d32ca3a9b9", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " def get_gengo_key(self):\n def _get_gengo_key(self):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/97392bcf19c6bef2f6bf6fd6bd92d0c3e8e72368", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " 'callback_url': \"%s/website/gengo_callback?pgk=%s&db=%s\" % (base_url, self.get_gengo_key(), self.env.cr.dbname)\n 'callback_url': \"%s/website/gengo_callback?pgk=%s&db=%s\" % (base_url, self._get_gengo_key(), self.env.cr.dbname)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/97392bcf19c6bef2f6bf6fd6bd92d0c3e8e72368", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " if not groups or self.user_has_groups(groups):\n if not groups or self.env.is_superuser() or self.user_has_groups(groups):\n if not groups or self.user_has_groups(groups):\n if not groups or self.env.is_superuser() or self.user_has_groups(groups):\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/odoo/odoo/commit/da5021f70444c95efa564fcfa57e444fa6ffbc73", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " self.record._fields['email_from'].groups = 'base.group_erp_manager' # patch the group attribute\n # patch the group attribute\n field = self.record._fields['email_from']\n self.addCleanup(setattr, field, 'groups', field.groups)\n field.groups = 'base.group_erp_manager'\n\n self.record._fields['email_from'].groups = 'base.group_erp_manager' # patch the group attribute\n # patch the group attribute\n field = self.record._fields['email_from']\n self.addCleanup(setattr, field, 'groups', field.groups)\n field.groups = 'base.group_erp_manager'\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/da5021f70444c95efa564fcfa57e444fa6ffbc73", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " self.assertTrue(msg_admin.get('tracking_values'), \"should have protected tracking values\")\n self.assertTrue(msg_sudo.get('tracking_values'), \"should have protected tracking values\")\n self.assertTrue(msg_admin[0].get('tracking_value_ids'), \"should have protected tracking values\")\n self.assertTrue(msg_sudo[0].get('tracking_value_ids'), \"should have protected tracking values\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/da5021f70444c95efa564fcfa57e444fa6ffbc73", "target_edit_idx": 8, "propagatable_edit_idx": [ 5 ] }, { "input": " doc = self._get_pdf_line(bom_id, product_id=product_variant_id, unfolded=True)\n doc = self._get_pdf_line(bom_id, product_id=product_variant_id, qty=float(data.get('quantity')), unfolded=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/odoo/odoo/commit/36b976cceeeb65fe44bf982f1c110747543d8d32", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " doc = self._get_pdf_line(bom_id, unfolded=True)\n doc = self._get_pdf_line(bom_id, qty=float(data.get('quantity')), unfolded=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/odoo/odoo/commit/36b976cceeeb65fe44bf982f1c110747543d8d32", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " 'version': '0.1',\n 'version': '1.0',\n 'version': '0.1',\n 'version': '1.0',\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/odoo/odoo/commit/86226b52d3a1e68e5384872bf7e27586959cfe41", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": " actionManager.controlPanel.$el.find('.o_form_button_edit').click();\n actionManager.$('.o_form_button_edit').click();\n actionManager.controlPanel.$el.find('.o_form_button_save').click();\n actionManager.$('.o_form_button_save').click();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/2f118c41fba6003798e2c105d7a94820e32280bb", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " http = urllib3.PoolManager()\n urllib3.disable_warnings()\n http = urllib3.PoolManager(cert_reqs='CERT_NONE')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/odoo/odoo/commit/e5c62987b49adbbf58f89750dbed8b7be2ee051a", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " pm = urllib3.PoolManager()\n urllib3.disable_warnings()\n pm = urllib3.PoolManager(cert_reqs='CERT_NONE')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/e5c62987b49adbbf58f89750dbed8b7be2ee051a", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " total_views = View.search_count([])\n total_views = View.with_context(active_test=False).search_count([])\n total_views = View.search_count([])\n total_views = View.with_context(active_test=False).search_count([])\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/ec7aa3c1f16d76008dbd83e723591a04da6a868b", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " self.assertEqual(total_views + 1, View.search_count([]), \"Second write should have wrote on the view copied during first write\")\n specific_view.active = False\n base_view.with_context(website_id=1).write({'name': 'Yet Another New Name'})\n self.assertEqual(total_views + 1, View.with_context(active_test=False).search_count([]), \"Subsequent writes should have written on the view copied during first write\")\n self.assertEqual(total_views + 1, View.search_count([]), \"Second save should have wrote on the view copied during first save\")\n self.assertEqual(total_views + 1, View.with_context(active_test=False).search_count([]), \"Second save should have written on the view copied during first save\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/ec7aa3c1f16d76008dbd83e723591a04da6a868b", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " sale_line_id = fields.Many2one('sale.order.line', 'Sales Order Item', domain=\"[('is_expense', '=', False), ('order_id', '=', sale_order_id), ('state', 'in', ['sale', 'done'])]\", copy=False, help=\"Sale order line from which the project has been created. Used for tracability.\")\n sale_order_id = fields.Many2one('sale.order', 'Sales Order', domain=\"[('partner_id', '=', partner_id)]\", readonly=True, copy=False)\n sale_line_id = fields.Many2one('sale.order.line', 'Sales Order Item', domain=\"[('is_expense', '=', False), ('order_id', '=', sale_order_id), ('state', 'in', ['sale', 'done'])]\", copy=False,\n help=\"Sales order item to which the project is linked. If an employee timesheets on a task that does not have a \"\n \"sale order item defines, and if this employee is not in the 'Employee/Sales Order Item Mapping' of the project, \"\n \"the timesheet entry will be linked to the sales order item defined on the project.\")\n sale_order_id = fields.Many2one('sale.order', 'Sales Order', domain=\"[('partner_id', '=', partner_id)]\", readonly=True, copy=False, help=\"Sales order to which the project is linked.\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0011409013120365088, "commit_url": "https://github.com/odoo/odoo/commit/7b498ea41223e1b353d68621e59bf562def83aaa", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": " sale_line_id = fields.Many2one('sale.order.line', 'Sales Order Item', default=_default_sale_line_id, domain=\"[('is_service', '=', True), ('order_partner_id', '=', partner_id), ('is_expense', '=', False), ('state', 'in', ['sale', 'done'])]\")\n sale_order_id = fields.Many2one('sale.order', 'Sales Order', compute='_compute_sale_order_id', compute_sudo=True, store=True, readonly=True)\n sale_line_id = fields.Many2one('sale.order.line', 'Sales Order Item', default=_default_sale_line_id, domain=\"[('is_service', '=', True), ('order_partner_id', '=', partner_id), ('is_expense', '=', False), ('state', 'in', ['sale', 'done'])]\",\n help=\"Sales order item to which the task is linked. If an employee timesheets on a this task, \"\n \"and if this employee is not in the 'Employee/Sales Order Item Mapping' of the project, the \"\n \"timesheet entry will be linked to this sales order item.\")\n sale_order_id = fields.Many2one('sale.order', 'Sales Order', compute='_compute_sale_order_id', compute_sudo=True, store=True, readonly=True, help=\"Sales order to which the task is linked.\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0011409013120365088, "commit_url": "https://github.com/odoo/odoo/commit/7b498ea41223e1b353d68621e59bf562def83aaa", "target_edit_idx": 10, "propagatable_edit_idx": [ 7 ] }, { "input": " user_id=allocation._get_responsible_for_approval().id)\n user_id=allocation.sudo()._get_responsible_for_approval().id)\n user_id=allocation._get_responsible_for_approval().id)\n user_id=allocation.sudo()._get_responsible_for_approval().id)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/odoo/odoo/commit/7f775f0677eab9791d8ba0a70cfeb24859030cef", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " price_subtotal = line.price_unit * line.qty_delivered\n price_subtotal = line.price_reduce * line.qty_delivered\n price_subtotal = line.price_unit * line.product_uom_qty\n price_subtotal = line.price_reduce * line.product_uom_qty\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/odoo/odoo/commit/f20c3610952d6fc29af63119beec96a3978d8792", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " @route(\"/xmlrpc/\", auth=\"none\", method=\"POST\", csrf=False)\n @route(\"/xmlrpc/\", auth=\"none\", method=\"POST\", csrf=False, save_session=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.004149377593360996, "commit_url": "https://github.com/odoo/odoo/commit/f65528a74e8d3f11cadd8658f5495bba21338199", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " @route(\"/xmlrpc/2/\", auth=\"none\", method=\"POST\", csrf=False)\n @route(\"/xmlrpc/2/\", auth=\"none\", method=\"POST\", csrf=False, save_session=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.004149377593360996, "commit_url": "https://github.com/odoo/odoo/commit/f65528a74e8d3f11cadd8658f5495bba21338199", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " @route('/jsonrpc', type='json', auth=\"none\")\n @route('/jsonrpc', type='json', auth=\"none\", save_session=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.004149377593360996, "commit_url": "https://github.com/odoo/odoo/commit/f65528a74e8d3f11cadd8658f5495bba21338199", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " with self.assertQueryCount(margin=1, admin=49, emp=73): # test_mail only: 49 - 73\n with self.assertQueryCount(margin=1, admin=37, emp=58): # test_mail only: 37 - 58\n with self.assertQueryCount(margin=1, admin=81, emp=105): # test_mail only: 79 - 103\n with self.assertQueryCount(margin=1, admin=68, emp=87): # com runbot: 67 - 85 // test_mail only: 66 - 85\n with self.assertQueryCount(margin=1, admin=235, emp=284): # test_mail only: 228 - 277\n with self.assertQueryCount(margin=1, admin=205, emp=244): # com runbot: 203 - 239 // test_mail only: 199 - 239\n with self.assertQueryCount(margin=1, admin=51, emp=75): # test_mail only: 51 - 75\n with self.assertQueryCount(margin=1, admin=39, emp=60): # test_mail only: 39 - 60\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/058d2fd4f6e2cea0ecb4ed92a06d1602c611a88a", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 10, 2 ] }, { "input": " with self.assertQueryCount(admin=24, emp=34): # test_mail only: 24 - 34\n with self.assertQueryCount(admin=15, emp=29): # com runbot: 13 - 20 // test_mail only: 15 - 29\n with self.assertQueryCount(admin=82, emp=108): # test_mail only: 80 - 106\n with self.assertQueryCount(admin=70, emp=91): # com runbot: 69 - 89 // test_mail only: 68 - 89\n with self.assertQueryCount(admin=24, emp=34): # test_mail only: 24 - 34\n with self.assertQueryCount(admin=15, emp=29): # com runbot: 13 - 20 // test_mail only: 15 - 29\n with self.assertQueryCount(admin=57, emp=78): # test_mail only: 55 - 76\n with self.assertQueryCount(admin=58, emp=79): # test_mail only: 56 - 77\n", "class": "clone", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/odoo/odoo/commit/058d2fd4f6e2cea0ecb4ed92a06d1602c611a88a", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 5, 13 ] }, { "input": " with self.assertQueryCount(admin=114, emp=143): # com runbot 112 - 141 // test_mail only: 110 - 139\n with self.assertQueryCount(admin=105, emp=136): # com runbot 96 - 118 // test_mail only: 101 - 132\n with self.assertQueryCount(admin=133, emp=174): # com runbot 131 - 172 // test_mail only: 129 - 170\n with self.assertQueryCount(admin=124, emp=167): # com runbot 115 - 150 // test_mail only: 120 - 163\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/odoo/odoo/commit/058d2fd4f6e2cea0ecb4ed92a06d1602c611a88a", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " with self.assertQueryCount(admin=147, emp=172): # test_mail only: 142 - 167\n with self.assertQueryCount(margin=1, admin=130, emp=151): # com runbot: 129 - 148 // test_mail only: 126 - 147\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2553191489361702, "commit_url": "https://github.com/odoo/odoo/commit/058d2fd4f6e2cea0ecb4ed92a06d1602c611a88a", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " with self.assertQueryCount(admin=152, emp=180): # test_mail only: 147 - 175\n with self.assertQueryCount(margin=1, admin=136, emp=159): # com runbot: 136 - 158 // test_mail only: 132 - 155\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2553191489361702, "commit_url": "https://github.com/odoo/odoo/commit/058d2fd4f6e2cea0ecb4ed92a06d1602c611a88a", "target_edit_idx": 12, "propagatable_edit_idx": [ 11 ] }, { "input": " 'birthday': fields.date(\"Date of Birth\"),\n 'ssnid': fields.char('SSN No', help='Social Security Number'),\n 'sinid': fields.char('SIN No', help=\"Social Insurance Number\"),\n 'identification_id': fields.char('Identification No'),\n 'gender': fields.selection([('male', 'Male'), ('female', 'Female'), ('other', 'Other')], 'Gender'),\n 'marital': fields.selection([('single', 'Single'), ('married', 'Married'), ('widower', 'Widower'), ('divorced', 'Divorced')], 'Marital Status'),\n 'birthday': fields.date(\"Date of Birth\", groups=\"base.group_hr_user\"),\n 'ssnid': fields.char('SSN No', help='Social Security Number', groups=\"base.group_hr_user\"),\n 'sinid': fields.char('SIN No', help=\"Social Insurance Number\", groups=\"base.group_hr_user\"),\n 'identification_id': fields.char('Identification No', groups=\"base.group_hr_user\"),\n 'gender': fields.selection([('male', 'Male'), ('female', 'Female'), ('other', 'Other')], 'Gender', groups=\"base.group_hr_user\"),\n 'marital': fields.selection([('single', 'Single'), ('married', 'Married'), ('widower', 'Widower'), ('divorced', 'Divorced')], 'Marital Status', groups=\"base.group_hr_user\"),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0015240583496625298, "commit_url": "https://github.com/odoo/odoo/commit/b61aad2f6b7a0b1fa5c4a2dad941a350f2c03236", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " 'medic_exam': fields.date('Medical Examination Date'),\n 'place_of_birth': fields.char('Place of Birth'),\n 'children': fields.integer('Number of Children'),\n 'vehicle': fields.char('Company Vehicle'),\n 'vehicle_distance': fields.integer('Home-Work Dist.', help=\"In kilometers\"),\n 'medic_exam': fields.date('Medical Examination Date', groups=\"base.group_hr_user\"),\n 'place_of_birth': fields.char('Place of Birth', groups=\"base.group_hr_user\"),\n 'children': fields.integer('Number of Children', groups=\"base.group_hr_user\"),\n 'vehicle': fields.char('Company Vehicle', groups=\"base.group_hr_user\"),\n 'vehicle_distance': fields.integer('Home-Work Dist.', help=\"In kilometers\", groups=\"base.group_hr_user\"),\n 'birthday': fields.date(\"Date of Birth\"),\n 'ssnid': fields.char('SSN No', help='Social Security Number'),\n 'sinid': fields.char('SIN No', help=\"Social Insurance Number\"),\n 'identification_id': fields.char('Identification No'),\n 'gender': fields.selection([('male', 'Male'), ('female', 'Female'), ('other', 'Other')], 'Gender'),\n 'marital': fields.selection([('single', 'Single'), ('married', 'Married'), ('widower', 'Widower'), ('divorced', 'Divorced')], 'Marital Status'),\n 'birthday': fields.date(\"Date of Birth\", groups=\"base.group_hr_user\"),\n 'ssnid': fields.char('SSN No', help='Social Security Number', groups=\"base.group_hr_user\"),\n 'sinid': fields.char('SIN No', help=\"Social Insurance Number\", groups=\"base.group_hr_user\"),\n 'identification_id': fields.char('Identification No', groups=\"base.group_hr_user\"),\n 'gender': fields.selection([('male', 'Male'), ('female', 'Female'), ('other', 'Other')], 'Gender', groups=\"base.group_hr_user\"),\n 'marital': fields.selection([('single', 'Single'), ('married', 'Married'), ('widower', 'Widower'), ('divorced', 'Divorced')], 'Marital Status', groups=\"base.group_hr_user\"),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0017417809710428913, "commit_url": "https://github.com/odoo/odoo/commit/b61aad2f6b7a0b1fa5c4a2dad941a350f2c03236", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " if (route === '/web/view/add_custom') {\n assert.step('add custom');\n if (route === '/web/view/edit_custom') {\n assert.step('edit custom');\n if (route === '/web/view/add_custom') {\n assert.step('add custom');\n if (route === '/web/view/edit_custom') {\n assert.step('edit custom');\n if (route === '/web/view/add_custom') {\n assert.step('add custom');\n if (route === '/web/view/edit_custom') {\n assert.step('edit custom');\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/odoo/odoo/commit/b15e805b5ad40e1e8e08e9be1ba248da66158bc9", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " task_id = fields.Many2one('project.task', 'Task')\n task_id = fields.Many2one('project.task', 'Task', index=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0012121212121212121, "commit_url": "https://github.com/odoo/odoo/commit/d8014a5a1e72af910a0b0027e18f67a558ee1d94", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " parent_id = fields.Many2one('project.task', string='Parent Task')\n parent_id = fields.Many2one('project.task', string='Parent Task', index=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0012121212121212121, "commit_url": "https://github.com/odoo/odoo/commit/d8014a5a1e72af910a0b0027e18f67a558ee1d94", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " task_id = fields.Many2one('project.task', 'Task', help=\"Task generated by the sales order item\")\n task_id = fields.Many2one('project.task', 'Task', index=True, help=\"Task generated by the sales order item\")\n task_id = fields.Many2one('project.task', 'Task')\n task_id = fields.Many2one('project.task', 'Task', index=True)\n parent_id = fields.Many2one('project.task', string='Parent Task')\n parent_id = fields.Many2one('project.task', string='Parent Task', index=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0012121212121212121, "commit_url": "https://github.com/odoo/odoo/commit/d8014a5a1e72af910a0b0027e18f67a558ee1d94", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " @api.multi\n def _check_security_action_approve(self):\n if not self.env.user.has_group('hr_holidays.group_hr_holidays_user'):\n raise UserError(_('Only an HR Officer or Manager can approve leave requests.'))\n\n @api.multi\n def _check_security_action_refuse(self):\n if not self.env.user.has_group('hr_holidays.group_hr_holidays_user'):\n raise UserError(_('Only an HR Officer or Manager can refuse leave requests.'))\n\n @api.multi\n def _check_security_action_refuse(self):\n if not self.env.user.has_group('hr_holidays.group_hr_holidays_user'):\n raise UserError(_('Only an HR Officer or Manager can refuse leave requests.'))\n\n @api.multi\n def _check_security_action_approve(self):\n if not self.env.user.has_group('hr_holidays.group_hr_holidays_user'):\n raise UserError(_('Only an HR Officer or Manager can approve leave requests.'))\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/odoo/odoo/commit/58c22bb33b2a6ba0a3eecf8a44390678970f75fe", "target_edit_idx": 0, "propagatable_edit_idx": [ 11, 5, 6 ] }, { "input": " self._check_security_action_approve()\n if not self.env.user.has_group('hr_holidays.group_hr_holidays_user'):\n raise UserError(_('Only an HR Officer or Manager can approve leave requests.'))\n self._check_security_action_refuse()\n if not self.env.user.has_group('hr_holidays.group_hr_holidays_user'):\n raise UserError(_('Only an HR Officer or Manager can refuse leave requests.'))\n self._check_security_action_refuse()\n if not self.env.user.has_group('hr_holidays.group_hr_holidays_user'):\n raise UserError(_('Only an HR Officer or Manager can refuse leave requests.'))\n self._check_security_action_approve()\n if not self.env.user.has_group('hr_holidays.group_hr_holidays_user'):\n raise UserError(_('Only an HR Officer or Manager can approve leave requests.'))\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/58c22bb33b2a6ba0a3eecf8a44390678970f75fe", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 4, 7 ] }, { "input": " def _check_security_action_validate(self):\n def action_validate(self):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/58c22bb33b2a6ba0a3eecf8a44390678970f75fe", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": " @api.multi\n def action_validate(self):\n self._check_security_action_validate()\n\n @api.multi\n def action_validate(self):\n self._check_security_action_validate()\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/58c22bb33b2a6ba0a3eecf8a44390678970f75fe", "target_edit_idx": 3, "propagatable_edit_idx": [ 9 ] }, { "input": " def _message_post_after_hook(self, message):\n pass\n def _message_post_after_hook(self, message, values):\n \"\"\" Hook to add custom behavior after having posted the message. Both\n message and computed value are given, to try to lessen query count by\n using already-computed values instead of having to rebrowse things. \"\"\"\n # Notify recipients of the newly-created message (Inbox / Email + channels)\n message._notify(\n force_send=self.env.context.get('mail_notify_force_send', True),\n user_signature=self.env.context.get('mail_notify_user_signature', True)\n )\n\n # Post-process: subscribe author\n if values['author_id'] and values['model'] and self.ids and values['message_type'] != 'notification' and not self._context.get('mail_create_nosubscribe'):\n self.message_subscribe([values['author_id']], force=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/d139e92c621f88676e5fefa9f2359dabc8b4602c", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 2, 4, 10, 13 ] }, { "input": " self.env['account.analytic.line'].create({\n timesheet1 = self.env['account.analytic.line'].create({\n self.env['account.analytic.line'].create({\n timesheet2 = self.env['account.analytic.line'].create({\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/f0cfc2dd659a189f0cb4b178f28a8cf66feda2c0", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " def state_update(self, newstate, states_to_update, level=100):\n def _state_update(self, newstate, states_to_update, level=100):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/e4672db97da1df7c297aafbea93b9ffa26da5e4e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " update_demo = update_mods.state_update(newstate, states_to_update, level=level-1)\n update_demo = update_mods._state_update(newstate, states_to_update, level=level-1)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/e4672db97da1df7c297aafbea93b9ffa26da5e4e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " modules.state_update('to install', ['uninstalled'])\n modules._state_update('to install', ['uninstalled'])\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/e4672db97da1df7c297aafbea93b9ffa26da5e4e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " birthday = fields.Date('Date of Birth')\n ssnid = fields.Char('SSN No', help='Social Security Number')\n sinid = fields.Char('SIN No', help='Social Insurance Number')\n identification_id = fields.Char(string='Identification No')\n birthday = fields.Date('Date of Birth', groups='hr.group_hr_user')\n ssnid = fields.Char('SSN No', help='Social Security Number', groups='hr.group_hr_user')\n sinid = fields.Char('SIN No', help='Social Insurance Number', groups='hr.group_hr_user')\n identification_id = fields.Char(string='Identification No', groups='hr.group_hr_user')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0007880220646178094, "commit_url": "https://github.com/odoo/odoo/commit/88c9ab3cbc628d804fc7496c32627473d085f8ca", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " medic_exam = fields.Date(string='Medical Examination Date')\n place_of_birth = fields.Char('Place of Birth')\n children = fields.Integer(string='Number of Children')\n vehicle = fields.Char(string='Company Vehicle')\n vehicle_distance = fields.Integer(string='Home-Work Dist.', help=\"In kilometers\")\n medic_exam = fields.Date(string='Medical Examination Date', groups='hr.group_hr_user')\n place_of_birth = fields.Char('Place of Birth', groups='hr.group_hr_user')\n children = fields.Integer(string='Number of Children', groups='hr.group_hr_user')\n vehicle = fields.Char(string='Company Vehicle', groups='hr.group_hr_user')\n vehicle_distance = fields.Integer(string='Home-Work Dist.', help=\"In kilometers\", groups='hr.group_hr_user')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0006566850538481745, "commit_url": "https://github.com/odoo/odoo/commit/88c9ab3cbc628d804fc7496c32627473d085f8ca", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": "class PosConfiguration(models.TransientModel):\nclass PosConfigSettings(models.TransientModel):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/e1ee9fee8d2a4e76a09cfba937ded88274ecf000", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " res = super(PosConfiguration, self).get_default_fields(fields)\n res = super(PosConfigSettings, self).get_default_fields(fields)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/e1ee9fee8d2a4e76a09cfba937ded88274ecf000", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " super(PosConfiguration, self).set_fields()\n super(PosConfigSettings, self).set_fields()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/e1ee9fee8d2a4e76a09cfba937ded88274ecf000", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "class SaleConfiguration(models.TransientModel):\nclass SaleConfigSettings(models.TransientModel):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/e1ee9fee8d2a4e76a09cfba937ded88274ecf000", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " res = super(SaleConfiguration, self).get_default_fields(fields)\n res = super(SaleConfigSettings, self).get_default_fields(fields)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/e1ee9fee8d2a4e76a09cfba937ded88274ecf000", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " super(SaleConfiguration, self).set_fields()\n super(SaleConfigSettings, self).set_fields()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/e1ee9fee8d2a4e76a09cfba937ded88274ecf000", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " 'timesheet_revenue': float_round(line_revenue, precision),\n 'timesheet_revenue': timesheet_line.company_currency_id.round(line_revenue),\n 'timesheet_revenue': float_round(line_revenue, precision),\n 'timesheet_revenue': timesheet_line.company_currency_id.round(line_revenue),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/dcd7b0f5c3d498178cf0e284418dc38711c28e2e", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " date_action_next = fields.Datetime('Next Action', readonly=True)\n date_action_next = fields.Datetime(string='Next Action', readonly=True)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/89534bd478e09229893acdcd3a2c7c64dbed440d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " res = super(Task, self).message_new(msg, custom_values=defaults)\n task = self.browse(res)\n task = super(Task, self).message_new(msg, custom_values=defaults)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/58a4bfd973f4bf2a33243511c498c2d9decf9a11", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " return res\n return task\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/58a4bfd973f4bf2a33243511c498c2d9decf9a11", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " res_id = super(ProjectIssue, self.with_context(create_context)).message_new(msg, custom_values=defaults)\n issue = self.browse(res_id)\n issue = super(ProjectIssue, self.with_context(create_context)).message_new(msg, custom_values=defaults)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/58a4bfd973f4bf2a33243511c498c2d9decf9a11", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " return res_id\n return issue\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/58a4bfd973f4bf2a33243511c498c2d9decf9a11", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": " partner_ids = message_dict.pop('partner_ids', [])\n original_partner_ids = message_dict.pop('partner_ids', [])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/80d26e26bba6cb3140e47eb4bb1933a5dfdbe144", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " new_msg.write({'partner_ids': partner_ids})\n new_msg.write({'partner_ids': original_partner_ids})\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/80d26e26bba6cb3140e47eb4bb1933a5dfdbe144", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": "# Copyright (C) 2016 ONESTEiN BV ().\n# Copyright (C) 2016 Onestein ().# Copyright (C) 2016 ONESTEiN BV ().\n# Copyright (C) 2016 Onestein ().\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/odoo/odoo/commit/85fe21f19ba474f134dcc8a3d15e6136122243d7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " color = fields.Integer('Color Index')\n color = fields.Integer('Color Index', default=10)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.009316770186335404, "commit_url": "https://github.com/odoo/odoo/commit/b33228cb49f909be63d52e1efd7d1a3c241409c9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": " color = fields.Integer(string='Color Index')\n color = fields.Integer(string='Color Index', default=10)\n color = fields.Integer('Color Index')\n color = fields.Integer('Color Index', default=10)\n color = fields.Integer('Color Index')\n color = fields.Integer('Color Index', default=10)\n color = fields.Integer('Color Index')\n color = fields.Integer('Color Index', default=10)\n color = fields.Integer('Color Index')\n color = fields.Integer('Color Index', default=10)\n color = fields.Integer(string='Color Index')\n color = fields.Integer(string='Color Index', default=10)\n color = fields.Integer(string='Color Index')\n color = fields.Integer(string='Color Index', default=10)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.009316770186335404, "commit_url": "https://github.com/odoo/odoo/commit/b33228cb49f909be63d52e1efd7d1a3c241409c9", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6 ] }, { "input": " color = fields.Integer(string='Color Index')\n color = fields.Integer(string='Color Index', default=10)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.009316770186335404, "commit_url": "https://github.com/odoo/odoo/commit/b33228cb49f909be63d52e1efd7d1a3c241409c9", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6 ] }, { "input": " 'adyen_merchant_account': fields.char('Merchant Account', required_if_provider='adyen'),\n 'adyen_skin_code': fields.char('Skin Code', required_if_provider='adyen'),\n 'adyen_skin_hmac_key': fields.char('Skin HMAC Key', required_if_provider='adyen'),\n 'adyen_merchant_account': fields.char('Merchant Account', required_if_provider='adyen', groups='base.group_user'),\n 'adyen_skin_code': fields.char('Skin Code', required_if_provider='adyen', groups='base.group_user'),\n 'adyen_skin_hmac_key': fields.char('Skin HMAC Key', required_if_provider='adyen', groups='base.group_user'),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0018090731978847759, "commit_url": "https://github.com/odoo/odoo/commit/b2265108406e0dc1d1e1250fdbad5bc2cee2006d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 7 ] }, { "input": " authorize_login = fields.Char(string='API Login Id', required_if_provider='authorize')\n authorize_transaction_key = fields.Char(string='API Transaction Key', required_if_provider='authorize')\n authorize_login = fields.Char(string='API Login Id', required_if_provider='authorize', groups='base.group_user')\n authorize_transaction_key = fields.Char(string='API Transaction Key', required_if_provider='authorize', groups='base.group_user')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0031746031746031746, "commit_url": "https://github.com/odoo/odoo/commit/b2265108406e0dc1d1e1250fdbad5bc2cee2006d", "target_edit_idx": 1, "propagatable_edit_idx": [ 9 ] }, { "input": " 'brq_websitekey': fields.char('WebsiteKey', required_if_provider='buckaroo'),\n 'brq_secretkey': fields.char('SecretKey', required_if_provider='buckaroo'),\n 'brq_websitekey': fields.char('WebsiteKey', required_if_provider='buckaroo', groups='base.group_user'),\n 'brq_secretkey': fields.char('SecretKey', required_if_provider='buckaroo', groups='base.group_user'),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0019482326746451434, "commit_url": "https://github.com/odoo/odoo/commit/b2265108406e0dc1d1e1250fdbad5bc2cee2006d", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4, 7 ] }, { "input": " 'ogone_pspid': fields.char('PSPID', required_if_provider='ogone'),\n 'ogone_userid': fields.char('API User ID', required_if_provider='ogone'),\n 'ogone_password': fields.char('API User Password', required_if_provider='ogone'),\n 'ogone_shakey_in': fields.char('SHA Key IN', size=32, required_if_provider='ogone'),\n 'ogone_shakey_out': fields.char('SHA Key OUT', size=32, required_if_provider='ogone'),\n 'ogone_pspid': fields.char('PSPID', required_if_provider='ogone', groups='base.group_user'),\n 'ogone_userid': fields.char('API User ID', required_if_provider='ogone', groups='base.group_user'),\n 'ogone_password': fields.char('API User Password', required_if_provider='ogone', groups='base.group_user'),\n 'ogone_shakey_in': fields.char('SHA Key IN', size=32, required_if_provider='ogone', groups='base.group_user'),\n 'ogone_shakey_out': fields.char('SHA Key OUT', size=32, required_if_provider='ogone', groups='base.group_user'),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0015307542443640412, "commit_url": "https://github.com/odoo/odoo/commit/b2265108406e0dc1d1e1250fdbad5bc2cee2006d", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 7 ] }, { "input": " 'paypal_email_account': fields.char('Paypal Email ID', required_if_provider='paypal'),\n 'paypal_email_account': fields.char('Paypal Email ID', required_if_provider='paypal', groups='base.group_user'),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0020873921514055105, "commit_url": "https://github.com/odoo/odoo/commit/b2265108406e0dc1d1e1250fdbad5bc2cee2006d", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3, 7 ] }, { "input": " 'paypal_api_username': fields.char('Rest API Username'),\n 'paypal_api_password': fields.char('Rest API Password'),\n 'paypal_api_access_token': fields.char('Access Token'),\n 'paypal_api_access_token_validity': fields.datetime('Access Token Validity'),\n 'paypal_api_username': fields.char('Rest API Username', groups='base.group_user'),\n 'paypal_api_password': fields.char('Rest API Password', groups='base.group_user'),\n 'paypal_api_access_token': fields.char('Access Token', groups='base.group_user'),\n 'paypal_api_access_token_validity': fields.datetime('Access Token Validity', groups='base.group_user'),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0016699137211244085, "commit_url": "https://github.com/odoo/odoo/commit/b2265108406e0dc1d1e1250fdbad5bc2cee2006d", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": " required_if_provider='sips')\n sips_secret = fields.Char('SIPS Secret', size=64, required_if_provider='sips')\n required_if_provider='sips', groups='base.group_user')\n sips_secret = fields.Char('SIPS Secret', size=64, required_if_provider='sips', groups='base.group_user')\n authorize_login = fields.Char(string='API Login Id', required_if_provider='authorize')\n authorize_transaction_key = fields.Char(string='API Transaction Key', required_if_provider='authorize')\n authorize_login = fields.Char(string='API Login Id', required_if_provider='authorize', groups='base.group_user')\n authorize_transaction_key = fields.Char(string='API Transaction Key', required_if_provider='authorize', groups='base.group_user')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.006349206349206349, "commit_url": "https://github.com/odoo/odoo/commit/b2265108406e0dc1d1e1250fdbad5bc2cee2006d", "target_edit_idx": 9, "propagatable_edit_idx": [ 1 ] }, { "input": " cr, uid, this.name, this.amount_total, this.pricelist_id.currency_id.id,\n cr, SUPERUSER_ID, this.name, this.amount_total, this.pricelist_id.currency_id.id,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/b2265108406e0dc1d1e1250fdbad5bc2cee2006d", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " cr, uid, this.number, this.residual, this.currency_id.id,\n cr, SUPERUSER_ID, this.number, this.residual, this.currency_id.id,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/b2265108406e0dc1d1e1250fdbad5bc2cee2006d", "target_edit_idx": 11, "propagatable_edit_idx": [ 10 ] }, { "input": " msg_ids = self.post.sudo(self.user_portal).convert_answer_to_comment()\n self.assertEqual(msg_ids[0], False, 'website_forum: question to comment conversion failed')\n new_msg = self.post.sudo(self.user_portal).convert_answer_to_comment()\n self.assertEqual(new_msg.id, False, 'website_forum: question to comment conversion failed')\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/78797a4b174b95fece9e9c01d6a657aad3acad16", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " msg_ids = self.answer.sudo(self.user_portal).convert_answer_to_comment()\n self.assertEqual(len(msg_ids), 1, 'website_forum: wrong answer to comment conversion')\n msg = self.env['mail.message'].browse(msg_ids[0])\n self.assertEqual(msg.author_id, post_author, 'website_forum: wrong answer to comment conversion')\n self.assertIn('I am an anteater', msg.body, 'website_forum: wrong answer to comment conversion')\n new_msg = self.answer.sudo(self.user_portal).convert_answer_to_comment()\n self.assertEqual(len(new_msg), 1, 'website_forum: wrong answer to comment conversion')\n self.assertEqual(new_msg.author_id, post_author, 'website_forum: wrong answer to comment conversion')\n self.assertIn('I am an anteater', new_msg.body, 'website_forum: wrong answer to comment conversion')\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/78797a4b174b95fece9e9c01d6a657aad3acad16", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": " def _postprocess_sent_message_v9(self, mail_sent=True):\n def _postprocess_sent_message(self, mail_sent=True):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/a32b3b220d5018017dac8dd5419843df25efa5a9", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8 ] }, { "input": " mail._postprocess_sent_message_v9(mail_sent=mail_sent)\n mail._postprocess_sent_message(mail_sent=mail_sent)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/a32b3b220d5018017dac8dd5419843df25efa5a9", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5, 6, 7, 8 ] }, { "input": " mail._postprocess_sent_message_v9(mail_sent=False)\n mail._postprocess_sent_message(mail_sent=False)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/a32b3b220d5018017dac8dd5419843df25efa5a9", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5, 6, 7, 8 ] }, { "input": " lead_id = self.env['crm.lead'].browse(opp_ids).merge_opportunity()\n lead_ids = [lead_id]\n lead_data = Lead.browse(lead_id).read(['type', 'user_id'])[0]\n lead = self.env['crm.lead'].browse(opp_ids).merge_opportunity()\n lead_ids = [lead.id]\n lead_data = lead.read(['type', 'user_id'])[0]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/58bd6a848ff71ea5ed038645745bd404ce59f1ae", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " lead_id = duplicated_leads.merge_opportunity()\n lead = duplicated_leads.merge_opportunity()\n lead_id = self.env['crm.lead'].browse(opp_ids).merge_opportunity()\n lead_ids = [lead_id]\n lead_data = Lead.browse(lead_id).read(['type', 'user_id'])[0]\n lead = self.env['crm.lead'].browse(opp_ids).merge_opportunity()\n lead_ids = [lead.id]\n lead_data = lead.read(['type', 'user_id'])[0]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/odoo/odoo/commit/58bd6a848ff71ea5ed038645745bd404ce59f1ae", "target_edit_idx": 7, "propagatable_edit_idx": [ 4 ] }, { "input": " line_values = invoice_line._convert_to_write(invoice_line._cache)\n line_values = invoice_line._convert_to_write({name: invoice_line[name] for name in invoice_line._cache})\n inv_line = invoice_line._convert_to_write(invoice_line._cache)\n inv_line = invoice_line._convert_to_write({name: invoice_line[name] for name in invoice_line._cache})\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/odoo/odoo/commit/84cf3ceb449a8adb4d6a182b19f48395b8db636c", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " taxes = position_pool.map_tax(cr, uid, partner and partner.property_account_position or False, tax)\n taxes = position_pool.map_tax(cr, uid, partner and partner.property_account_position or False, tax, context=context)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/1ac94db8e8fb001e5fbe893b98a08da2c4a97510", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " line[2]['tax_id'] = [[6, 0, fiscal_obj.map_tax(cr, uid, fpos, prod.taxes_id)]]\n line[2]['tax_id'] = [[6, 0, fiscal_obj.map_tax(cr, uid, fpos, prod.taxes_id, context=context)]]\n order_line.append([1, line_id, {'tax_id': [[6, 0, fiscal_obj.map_tax(cr, uid, fpos, prod.taxes_id)]]}])\n order_line.append([1, line_id, {'tax_id': [[6, 0, fiscal_obj.map_tax(cr, uid, fpos, prod.taxes_id, context=context)]]}])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/1ac94db8e8fb001e5fbe893b98a08da2c4a97510", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " order_line.append([1, line_id, {'tax_id': [[6, 0, fiscal_obj.map_tax(cr, uid, fpos, prod.taxes_id)]]}])\n order_line.append([1, line_id, {'tax_id': [[6, 0, fiscal_obj.map_tax(cr, uid, fpos, prod.taxes_id, context=context)]]}])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/1ac94db8e8fb001e5fbe893b98a08da2c4a97510", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": " account_analytic_id = fields.Many2one('account.analytic.account', string='Analytic Account')\n account_analytic_id = fields.Many2one('account.analytic.account', string='Analytic Account', domain=[('account_type', '=', 'normal')])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0016863406408094434, "commit_url": "https://github.com/odoo/odoo/commit/2a89c926ecd7d60eaed65af9f7708780ea6982a8", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " 'account_analytic_id': fields.many2one('account.analytic.account', 'Analytic Account',),\n 'account_analytic_id': fields.many2one('account.analytic.account', 'Analytic Account', domain=[('account_type', '=', 'normal')]),\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/2a89c926ecd7d60eaed65af9f7708780ea6982a8", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " project_id = fields.Many2one('account.analytic.account', 'Analytic Account', readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, help=\"The analytic account related to a sales order.\", copy=False)\n project_id = fields.Many2one('account.analytic.account', 'Analytic Account', readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, help=\"The analytic account related to a sales order.\", copy=False, domain=[('account_type', '=', 'normal')])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0016863406408094434, "commit_url": "https://github.com/odoo/odoo/commit/2a89c926ecd7d60eaed65af9f7708780ea6982a8", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " ], type='http', auth='none')\n ], type='http', auth='none', csrf=False)\n ], type='http', auth='none')\n ], type='http', auth='none', csrf=False)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/odoo/odoo/commit/32c8280a02310053fce2b87423def16ca884e6b0", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " ], type='http', auth='none', methods=['POST'])\n ], type='http', auth='none', methods=['POST'], csrf=False)\n type='http', auth='none', methods=['POST'])\n type='http', auth='none', methods=['POST'], csrf=False)\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/odoo/odoo/commit/32c8280a02310053fce2b87423def16ca884e6b0", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": " \"\"\", (tuple(partners_to), len(partners_to),))\n \"\"\", (tuple(partners), len(partners),))\n 'channel_partner_ids': [(4, partner_id) for partner_id in partners_to],\n 'channel_partner_ids': [(4, partner_id) for partner_id in partners],\n 'name': ', '.join(self.env['res.partner'].sudo().browse(partners_to).mapped('name')),\n 'name': ', '.join(self.env['res.partner'].sudo().browse(partners).mapped('name')),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/odoo/odoo/commit/a8239cd2ae300f94ea0efa39d52addac6574b992", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " 'channel_partner_ids': [(4, partner_id) for partner_id in partners_to],\n 'channel_partner_ids': [(4, partner_id) for partner_id in partners],\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/odoo/odoo/commit/a8239cd2ae300f94ea0efa39d52addac6574b992", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " 'name': ', '.join(self.env['res.partner'].sudo().browse(partners_to).mapped('name')),\n 'name': ', '.join(self.env['res.partner'].sudo().browse(partners).mapped('name')),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/odoo/odoo/commit/a8239cd2ae300f94ea0efa39d52addac6574b992", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " # TODO: in master, consider making this a tunable karma parameter\n post.create_uid.sudo().add_karma(post.forum_id.karma_gen_question_downvote * -5)\n post.create_uid.sudo().add_karma(post.forum_id.karma_gen_answer_flagged * -1)\n # TODO: in master, consider making this a tunable karma parameter\n post.create_uid.sudo().add_karma(post.forum_id.karma_gen_question_downvote * 5)\n post.create_uid.sudo().add_karma(post.forum_id.karma_gen_answer_flagged)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/a6b6d020077977f541042dd426c57648856a54d1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " attrs.update(field._attrs)\n attrs.update(field.args)\n attrs = dict(field._attrs, **field_patches)\n attrs = dict(field.args, **field_patches)\n if 'default' in field._attrs:\n if 'default' in field.args:\n value = field._attrs['default']\n value = field.args['default']\n if 'selection' in field._attrs:\n self.selection = field._attrs['selection']\n if 'selection_add' in field._attrs:\n if 'selection' in field.args:\n self.selection = field.args['selection']\n if 'selection_add' in field.args:\n selection_add = field._attrs['selection_add']\n selection_add = field.args['selection_add']\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/a4eaa86e440c9c5cf7ce4b3c84d98b33f70122ff", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 8, 9, 10, 11 ] }, { "input": " if 'default' in field._attrs:\n if 'default' in field.args:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/a4eaa86e440c9c5cf7ce4b3c84d98b33f70122ff", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 5, 9, 10, 11 ] }, { "input": " value = field._attrs['default']\n value = field.args['default']\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/a4eaa86e440c9c5cf7ce4b3c84d98b33f70122ff", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 5, 8, 10, 11 ] }, { "input": " if 'selection' in field._attrs:\n self.selection = field._attrs['selection']\n if 'selection_add' in field._attrs:\n if 'selection' in field.args:\n self.selection = field.args['selection']\n if 'selection_add' in field.args:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/odoo/odoo/commit/a4eaa86e440c9c5cf7ce4b3c84d98b33f70122ff", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 5, 8, 9, 11 ] }, { "input": " selection_add = field._attrs['selection_add']\n selection_add = field.args['selection_add']\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/a4eaa86e440c9c5cf7ce4b3c84d98b33f70122ff", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 5, 8, 9, 10 ] }, { "input": " self.clear_cache(cr)\n self.clear_caches()\n self.clear_cache(cr)\n self.clear_caches()\n self.clear_cache(cr)\n self.clear_caches()\n self.clear_cache(cr, uid)\n self.clear_caches()\n self.clear_cache(cr, uid)\n self.clear_caches()\n self.clear_cache(cr,uid)\n self.clear_caches()\n", "class": "clone", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/odoo/odoo/commit/4b7dd0f759071facbc196f74fe337e33793a417f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 5, 6, 7 ] }, { "input": " self.clear_cache()\n self.clear_caches()\n self.clear_cache()\n self.clear_caches()\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/odoo/odoo/commit/4b7dd0f759071facbc196f74fe337e33793a417f", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " cr.execute('select value from ir_translation where lang=%s and type=%s and name=%s and src=%s', (lang, source_type, str(name), source))\n cr.execute('select value from ir_translation where lang=%s and type=%s and name=%s and src=%s and md5(src)=md5(%s)', (lang, source_type, str(name), source, source))\n cr.execute('select value from ir_translation where lang=%s and type=%s and src=%s', (lang, source_type, source))\n cr.execute('select value from ir_translation where lang=%s and type=%s and src=%s and md5(src)=md5(%s)', (lang, source_type, source, source))\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/f42c8b1a9dd9631c56fe91fa12680c3699a3516a", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " current_user.write(reset_data, context=context)\n current_user.write(reset_data)\n current_user.write({'google_calendar_cal_id': current_google}, context=context)\n current_user.write({'google_calendar_cal_id': current_google})\n current_user.write({'google_calendar_last_sync_date': ask_time}, context=context)\n current_user.write({'google_calendar_last_sync_date': ask_time})\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/b8071bbacafe0eadb353329f7e213241b9b96bdf", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " current_user.write({'google_calendar_cal_id': current_google}, context=context)\n current_user.write({'google_calendar_cal_id': current_google})\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/odoo/odoo/commit/b8071bbacafe0eadb353329f7e213241b9b96bdf", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " current_user.write({'google_calendar_last_sync_date': ask_time}, context=context)\n current_user.write({'google_calendar_last_sync_date': ask_time})\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/odoo/odoo/commit/b8071bbacafe0eadb353329f7e213241b9b96bdf", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " return product.write({'list_price': value}, context=context)\n return product.write({'list_price': value})\n product.write({'image_variant': None}, context=context)\n product.product_tmpl_id.write({'image': image}, context=context)\n product.write({'image_variant': None})\n product.product_tmpl_id.write({'image': image})\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/b8071bbacafe0eadb353329f7e213241b9b96bdf", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " product.write({'image_variant': None}, context=context)\n product.product_tmpl_id.write({'image': image}, context=context)\n product.write({'image_variant': None})\n product.product_tmpl_id.write({'image': image})\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/b8071bbacafe0eadb353329f7e213241b9b96bdf", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " order.write({'procurement_group_id': group_id}, context=context)\n order.write({'procurement_group_id': group_id})\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/odoo/odoo/commit/b8071bbacafe0eadb353329f7e213241b9b96bdf", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " order.write({'carrier_id': None}, context=context)\n order.write({'carrier_id': None})\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3, "commit_url": "https://github.com/odoo/odoo/commit/b8071bbacafe0eadb353329f7e213241b9b96bdf", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 10 ] }, { "input": " order.write({'carrier_id': carrier_id}, context=context)\n order.write({'carrier_id': carrier_id})\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3, "commit_url": "https://github.com/odoo/odoo/commit/b8071bbacafe0eadb353329f7e213241b9b96bdf", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " img = image_resize_and_sharpen(image, size)\n img = image_resize_and_sharpen(image, size, preserve_aspect_ratio=True)\ndef image_resize_and_sharpen(image, size, factor=2.0):\ndef image_resize_and_sharpen(image, size, preserve_aspect_ratio=False, factor=2.0):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/3e07eaa308a4e0b352bea38c6331c62e53821f55", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "def image_resize_and_sharpen(image, size, factor=2.0):\ndef image_resize_and_sharpen(image, size, preserve_aspect_ratio=False, factor=2.0):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/odoo/odoo/commit/3e07eaa308a4e0b352bea38c6331c62e53821f55", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " if context is None:\n context = {}\n context = context if context else {}\n if context is None:\n context = {}\n current_filters = current_filters if current_filters else []\n context = context if context else {}\n\n if context is None:\n context = {}\n current_filters = current_filters if current_filters else []\n context = context if context else {}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/odoo/odoo/commit/6e93af477411f93e431bb789c21981fde737f0f2", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 12 ] }, { "input": " \"chat_id\": -420913222,\n \"chat_id\": \"-420913222\",\n \"chat_id\": -420913222,\n \"chat_id\": \"-420913222\",\n \"chat_id\": -420913222,\n \"chat_id\": \"-420913222\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/bc4ca9d87975065497e55fcd21a31d784f8fdf05", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " mock_oss_log_exists.assert_called_once_with(\"airflow/logs/1.log\")\n mock_oss_log_exists.assert_called_once_with(\"1.log\")\n mock_oss_log_exists.assert_called_once_with(\"airflow/logs/1.log\")\n mock_oss_log_exists.assert_called_once_with(\"1.log\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/ba13d0cbbe2628887668046c75fc98fbf2356661", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " try_number = 1\n poll_attempt = 1\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/4fa9fe119e5aae639c942668f40a15a6ef0f7f67", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": " self.log.info(\"Try %s: Invalid query state. Retrying again\", try_number)\n self.log.info(\"Try %s: Invalid query state. Retrying again\", poll_attempt)\n try_number = 1\n poll_attempt = 1\n self.log.info(\"Try %s: Query is still in non-terminal state - %s\", try_number, query_state)\n self.log.info(\"Try %s: Query is still in non-terminal state - %s\", poll_attempt, query_state)\n max_polling_attempts and try_number >= max_polling_attempts\n max_polling_attempts and poll_attempt >= max_polling_attempts\n try_number += 1\n poll_attempt += 1\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/4fa9fe119e5aae639c942668f40a15a6ef0f7f67", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4, 5 ] }, { "input": " self.log.info(\"Try %s: Query is still in non-terminal state - %s\", try_number, query_state)\n self.log.info(\"Try %s: Query is still in non-terminal state - %s\", poll_attempt, query_state)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/4fa9fe119e5aae639c942668f40a15a6ef0f7f67", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 5 ] }, { "input": " max_polling_attempts and try_number >= max_polling_attempts\n max_polling_attempts and poll_attempt >= max_polling_attempts\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/4fa9fe119e5aae639c942668f40a15a6ef0f7f67", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3, 5 ] }, { "input": " try_number = 1\n poke_count = 1\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/4fa9fe119e5aae639c942668f40a15a6ef0f7f67", "target_edit_idx": 6, "propagatable_edit_idx": [ 7, 8, 9, 10, 11 ] }, { "input": " next_poke_interval = self._get_next_poke_interval(started_at, run_duration, try_number)\n next_poke_interval = self._get_next_poke_interval(started_at, run_duration, poke_count)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/4fa9fe119e5aae639c942668f40a15a6ef0f7f67", "target_edit_idx": 7, "propagatable_edit_idx": [ 6, 8, 9, 10, 11 ] }, { "input": " time.sleep(self._get_next_poke_interval(started_at, run_duration, try_number))\n try_number += 1\n time.sleep(self._get_next_poke_interval(started_at, run_duration, poke_count))\n poke_count += 1\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/airflow/commit/4fa9fe119e5aae639c942668f40a15a6ef0f7f67", "target_edit_idx": 8, "propagatable_edit_idx": [ 6, 7, 9, 10, 11 ] }, { "input": " try_number: int,\n poke_count: int,\n try_number = 1\n poke_count = 1\n next_poke_interval = self._get_next_poke_interval(started_at, run_duration, try_number)\n next_poke_interval = self._get_next_poke_interval(started_at, run_duration, poke_count)\n time.sleep(self._get_next_poke_interval(started_at, run_duration, try_number))\n try_number += 1\n time.sleep(self._get_next_poke_interval(started_at, run_duration, poke_count))\n poke_count += 1\n min_backoff = max(int(self.poke_interval * (2 ** (try_number - 2))), 1)\n min_backoff = max(int(self.poke_interval * (2 ** (poke_count - 2))), 1)\n hashlib.sha1(f\"{self.dag_id}#{self.task_id}#{started_at}#{try_number}\".encode()).hexdigest(),\n hashlib.sha1(f\"{self.dag_id}#{self.task_id}#{started_at}#{poke_count}\".encode()).hexdigest(),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/4fa9fe119e5aae639c942668f40a15a6ef0f7f67", "target_edit_idx": 9, "propagatable_edit_idx": [ 6, 7, 8, 10, 11 ] }, { "input": " hashlib.sha1(f\"{self.dag_id}#{self.task_id}#{started_at}#{try_number}\".encode()).hexdigest(),\n hashlib.sha1(f\"{self.dag_id}#{self.task_id}#{started_at}#{poke_count}\".encode()).hexdigest(),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/4fa9fe119e5aae639c942668f40a15a6ef0f7f67", "target_edit_idx": 11, "propagatable_edit_idx": [ 6, 7, 8, 9, 10 ] }, { "input": " hostname=get_hostname() if conf.getboolean(\"webserver\", \"EXPOSE_HOSTNAME\") else \"redact\",\n hostname=get_hostname() if conf.getboolean(\"webserver\", \"EXPOSE_HOSTNAME\") else \"\",\n hostname=get_hostname() if conf.getboolean(\"webserver\", \"EXPOSE_HOSTNAME\") else \"redact\",\n hostname=get_hostname() if conf.getboolean(\"webserver\", \"EXPOSE_HOSTNAME\") else \"\",\n hostname=get_hostname() if conf.getboolean(\"webserver\", \"EXPOSE_HOSTNAME\") else \"redact\",\n hostname=get_hostname() if conf.getboolean(\"webserver\", \"EXPOSE_HOSTNAME\") else \"\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/airflow/commit/82e51760a12a95c6b79e0ca14c575a920a62b2ca", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " allowed_filter_attrs = [\n allowed_sort_attrs = [\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/90e7b3fd057be1c014d0dd94eafbea14d46536b2", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " query = apply_sorting(query, order_by, to_replace, allowed_filter_attrs)\n total_entries = get_query_count(query, session=session)\n\n query = apply_sorting(query, order_by, to_replace, allowed_sort_attrs)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/90e7b3fd057be1c014d0dd94eafbea14d46536b2", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " self.write_logs(self.pod)\n self.write_logs(self.pod, follow=follow, since_time=last_log_time)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/a3f7ddd46582d3c988700c86ccf9af3b8169bd30", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " \"skip-pre-commits\": \"check-airflow-provider-compatibility,check-extra-packages-references,check-provider-yaml-valid,identity,lint-helm-chart,mypy-core,mypy-dev,mypy-docs,mypy-providers\",\n \"skip-pre-commits\": \"check-airflow-provider-compatibility,check-extra-packages-references,check-provider-yaml-valid,identity,lint-helm-chart,mypy-core,mypy-dev,mypy-docs,mypy-providers,validate-operators-init\",\n \"skip-pre-commits\": \"check-airflow-provider-compatibility,check-extra-packages-references,\"\n \"check-provider-yaml-valid,flynt,identity,lint-helm-chart,\"\n \"mypy-core,mypy-dev,mypy-docs,mypy-providers,ts-compile-format-lint-www\",\n \"skip-pre-commits\": \"check-airflow-provider-compatibility,check-extra-packages-references,\"\n \"check-provider-yaml-valid,identity,lint-helm-chart,\"\n \"mypy-core,mypy-dev,mypy-docs,mypy-providers,ts-compile-format-lint-www\",\n \"skip-pre-commits\": \"check-airflow-provider-compatibility,check-extra-packages-references,check-provider-yaml-valid,identity,lint-helm-chart,mypy-core,mypy-dev,mypy-docs,mypy-providers,ts-compile-format-lint-www\",\n \"skip-pre-commits\": \"check-airflow-provider-compatibility,check-extra-packages-references,check-provider-yaml-valid,identity,lint-helm-chart,mypy-core,mypy-dev,mypy-docs,mypy-providers,ts-compile-format-lint-www\",\n \"skip-pre-commits\": \"check-airflow-provider-compatibility,check-extra-packages-references,check-provider-yaml-valid,identity,lint-helm-chart,mypy-core,mypy-dev,mypy-docs,mypy-providers\",\n \"skip-pre-commits\": \"check-airflow-provider-compatibility,check-extra-packages-references,check-provider-yaml-valid,identity,lint-helm-chart,mypy-core,mypy-dev,mypy-docs,mypy-providers,validate-operators-init\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/53185aba1a1a0475c4cb537560e0ca5d3983644f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6 ] }, { "input": " query = DAG._get_latest_runs_query(dags=[dag1], session=session)\n query = DAG._get_latest_runs_query(dags=[dag1.dag_id])\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/ba20d06b5e8ae47cf684306c55dbef14c4e791f1", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " query = DAG._get_latest_runs_query(dags=[dag1, dag2], session=session)\n query = DAG._get_latest_runs_query(dags=[dag1.dag_id, dag2.dag_id])\n query = DAG._get_latest_runs_query(dags=[dag1], session=session)\n query = DAG._get_latest_runs_query(dags=[dag1.dag_id])\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/ba20d06b5e8ae47cf684306c55dbef14c4e791f1", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " super().__init__(*args, **kwargs)\n super().__init__(\n gcp_conn_id=gcp_conn_id,\n impersonation_chain=impersonation_chain,\n **kwargs,\n )\n super().__init__(cluster_url=cluster_url, ssl_ca_cert=ssl_ca_cert, **kwargs)\n super().__init__(\n cluster_url=cluster_url,\n ssl_ca_cert=ssl_ca_cert,\n gcp_conn_id=gcp_conn_id,\n impersonation_chain=impersonation_chain,\n **kwargs,\n )\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/airflow/commit/f1758fdd7da8e933a701ab1a8df96c43288e8d0d", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " redshift_client = AwsBaseHook(\n redshift_serverless_client = AwsBaseHook(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/airflow/commit/e0df7441fa607645d0a379c2066ca4ab16f5cb95", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " cluster_creds = redshift_client.get_cluster_credentials(\n DbName=conn.schema,\n cluster_creds = redshift_serverless_client.get_credentials(\n dbName=conn.schema,\n redshift_client = AwsBaseHook(\n redshift_serverless_client = AwsBaseHook(\n mock_aws_hook_conn.get_cluster_credentials.return_value = {\n \"DbPassword\": mock_db_pass,\n \"DbUser\": mock_db_user,\n mock_aws_hook_conn.get_credentials.return_value = {\n \"dbPassword\": mock_db_pass,\n \"dbUser\": mock_db_user,\n mock_aws_hook_conn.get_cluster_credentials.assert_called_once_with(\n DbName=LOGIN_SCHEMA,\n mock_aws_hook_conn.get_credentials.assert_called_once_with(\n dbName=LOGIN_SCHEMA,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/airflow/commit/e0df7441fa607645d0a379c2066ca4ab16f5cb95", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4, 5 ] }, { "input": " if event[\"status\"] == \"failed\" or event[\"status\"] == \"cancelled\":\n if event[\"status\"] in (\"failed\", \"cancelled\"):\n if event[\"status\"] == \"failed\" or event[\"status\"] == \"error\":\n if event[\"status\"] in (\"failed\", \"error\"):\n if event[\"status\"] == \"failed\" or event[\"status\"] == \"error\":\n if event[\"status\"] in (\"failed\", \"error\"):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/8bea45f37fe400c1d34a46e53f5bdc12d8f961ab", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " if event[\"status\"] == \"error\" or event[\"status\"] == \"stopped\":\n if event[\"status\"] in (\"error\", \"stopped\"):\n if event[\"status\"] == \"error\" or event[\"status\"] == \"stopped\":\n if event[\"status\"] in (\"error\", \"stopped\"):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/8bea45f37fe400c1d34a46e53f5bdc12d8f961ab", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " if status == \"failed\" or status == \"error\":\n if status in (\"failed\", \"error\"):\n if status == \"failed\" or status == \"error\":\n if status in (\"failed\", \"error\"):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/8bea45f37fe400c1d34a46e53f5bdc12d8f961ab", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": "from airflow.exceptions import AirflowException\nfrom airflow.exceptions import AirflowException, AirflowSkipException\nfrom airflow.exceptions import AirflowException\nfrom airflow.exceptions import AirflowException, AirflowSkipException\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/21e31f60c29ec1df247952365b19f4d421dd10bc", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " raise AirflowException(f\"Job failed: \\n{job}\")\n # TODO: remove this if block when min_airflow_version is set to higher than 2.7.1\n message = f\"Job failed: \\n{job}\"\n if self.soft_fail:\n raise AirflowSkipException(message)\n raise AirflowException(message)\n raise AirflowException(f\"Job was cancelled: \\n{job}\")\n # TODO: remove this if block when min_airflow_version is set to higher than 2.7.1\n message = f\"Job was cancelled: \\n{job}\"\n if self.soft_fail:\n raise AirflowSkipException(message)\n raise AirflowException(message)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/44cb7c6d8d516804c95f84accb21b254ce8846cc", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " with pytest.raises(AirflowException, match=\"Job failed\"):\n with pytest.raises(expected_exception, match=\"Job failed\"):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0016605778811026237, "commit_url": "https://github.com/apache/airflow/commit/44cb7c6d8d516804c95f84accb21b254ce8846cc", "target_edit_idx": 8, "propagatable_edit_idx": [ 12 ] }, { "input": " with pytest.raises(AirflowException, match=\"Job was cancelled\"):\n with pytest.raises(expected_exception, match=\"Job was cancelled\"):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0016605778811026237, "commit_url": "https://github.com/apache/airflow/commit/44cb7c6d8d516804c95f84accb21b254ce8846cc", "target_edit_idx": 12, "propagatable_edit_idx": [ 8 ] }, { "input": " ForeignKeyConstraint(\n (user_id,),\n [\"ab_user.id\"],\n name=\"dag_run_note_user_fkey\",\n ),\n ForeignKeyConstraint(\n (user_id,),\n [\"ab_user.id\"],\n name=\"task_instance_note_user_fkey\",\n ),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/2f32769bbb37236044f9c1ecb59809d82d0e3a62", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " return EmrContainerHook(self.aws_conn_id)\n return EmrContainerHook(aws_conn_id=self.aws_conn_id)\n return EmrHook(self.aws_conn_id)\n return EmrHook(aws_conn_id=self.aws_conn_id)\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/airflow/commit/097e3e618ec3ee09221cb64bb8f64e8b275b6399", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " aws_conn_id=AWS_CONN_ID,\n aws_conn_id=TEST_AWS_CONN_ID,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/097e3e618ec3ee09221cb64bb8f64e8b275b6399", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " \"id\": task_item_or_group.task_id,\n \"id\": task.task_id,\n \"label\": task_item_or_group.label,\n \"labelStyle\": f\"fill:{task_item_or_group.ui_fgcolor};\",\n \"style\": f\"fill:{task_item_or_group.ui_color};\",\n \"label\": task.label,\n \"labelStyle\": f\"fill:{task.ui_fgcolor};\",\n \"style\": f\"fill:{task.ui_color};\",\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/airflow/commit/8d2ced5e85ce58f905c7562da28a2e39798427fc", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " \"label\": task_item_or_group.label,\n \"labelStyle\": f\"fill:{task_item_or_group.ui_fgcolor};\",\n \"style\": f\"fill:{task_item_or_group.ui_color};\",\n \"label\": task.label,\n \"labelStyle\": f\"fill:{task.ui_fgcolor};\",\n \"style\": f\"fill:{task.ui_color};\",\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/airflow/commit/8d2ced5e85ce58f905c7562da28a2e39798427fc", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " with pytest.raises(ValueError):\n with pytest.raises(ValueError, match=\"Cannot set mode to 'reschedule'. Only 'poke' is acceptable\"):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0003380662609871535, "commit_url": "https://github.com/apache/airflow/commit/cbaea573b3658dd941335e21c5f29118b31cb6d8", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " smtp_hook.send_email_smtp(\"to\", \"subject\", \"content\", from_email=\"from\")\n smtp_hook.send_email_smtp(to=\"to\", subject=\"subject\", html_content=\"content\", from_email=\"from\")\n smtp_hook.send_email_smtp(\"to\", \"subject\", \"content\", from_email=\"from\")\n smtp_hook.send_email_smtp(to=\"to\", subject=\"subject\", html_content=\"content\", from_email=\"from\")\n smtp_hook.send_email_smtp(\"to\", \"subject\", \"content\", from_email=\"from\")\n smtp_hook.send_email_smtp(to=\"to\", subject=\"subject\", html_content=\"content\", from_email=\"from\")\n smtp_hook.send_email_smtp(\"to\", \"subject\", \"content\", from_email=\"from\")\n smtp_hook.send_email_smtp(to=\"to\", subject=\"subject\", html_content=\"content\", from_email=\"from\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/a15e73478521707487e1a6d6f7ef7f213b282023", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " smtp_hook.send_email_smtp(\"to\", \"subject\", \"content\", dryrun=True)\n smtp_hook.send_email_smtp(to=\"to\", subject=\"subject\", html_content=\"content\", dryrun=True)\n smtp_hook.send_email_smtp(\"to\", \"subject\", \"content\")\n smtp_hook.send_email_smtp(to=\"to\", subject=\"subject\", html_content=\"content\")\n smtp_hook.send_email_smtp(\"to\", \"subject\", \"content\")\n smtp_hook.send_email_smtp(to=\"to\", subject=\"subject\", html_content=\"content\")\n smtp_hook.send_email_smtp(\"to\", \"subject\", \"content\")\n smtp_hook.send_email_smtp(to=\"to\", subject=\"subject\", html_content=\"content\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/a15e73478521707487e1a6d6f7ef7f213b282023", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10 ] }, { "input": " is_local: bool = False\n\n serve_logs: bool = False\n\n is_local: bool = False\n\n serve_logs: bool = True\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/airflow/commit/fa80c49781ab2de6add8647403c8087c7d01c1fa", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": "import useOffsetHeight from 'src/utils/useOffsetHeight';\nimport useOffsetHeight from 'src/utils/useOffsetHeight';\nimport useOffsetHeight from 'src/utils/useOffsetHeight';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/643d736ebb32c488005b3832c2c3f226a77900b2", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 7 ] }, { "input": " const offsetHeight = useOffsetHeight(detailsRef);\n const offsetHeight = useOffsetHeight(detailsRef);\n\n const offsetHeight = useOffsetHeight(detailsRef);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/643d736ebb32c488005b3832c2c3f226a77900b2", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 4 ] }, { "input": " maxHeight={offsetHeight}\n maxHeight={offsetHeight}\n maxHeight={offsetHeight}\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/airflow/commit/643d736ebb32c488005b3832c2c3f226a77900b2", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 5 ] }, { "input": "from tests.system.providers.amazon.aws.utils.ec2 import (\n create_address_allocation,\n create_nat_gateway,\n create_private_subnets,\n create_route_table,\n delete_nat_gateway,\n delete_route_table,\n delete_subnets,\n remove_address_allocation,\n)\nfrom tests.system.providers.amazon.aws.utils.ec2 import (\n create_address_allocation,\n create_nat_gateway,\n create_private_subnets,\n create_route_table,\n delete_nat_gateway,\n delete_route_table,\n delete_subnets,\n remove_address_allocation,\n)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/e626131563efb536f325a35c78585b74d4482ea3", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": "VPC_ID_KEY = \"VPC_ID\"\nPUBLIC_SUBNET_ID_KEY = \"PUBLIC_SUBNET_ID\"\nSUBNETS_KEY = \"SUBNETS\"\nVPC_ID_KEY = \"VPC_ID\"\nPUBLIC_SUBNET_ID_KEY = \"PUBLIC_SUBNET_ID\"\nSUBNETS_KEY = \"SUBNETS\"\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/e626131563efb536f325a35c78585b74d4482ea3", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": " .add_variable(VPC_ID_KEY)\n .add_variable(PUBLIC_SUBNET_ID_KEY)\n .add_variable(SUBNETS_KEY, split_string=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.05714285714285714, "commit_url": "https://github.com/apache/airflow/commit/e626131563efb536f325a35c78585b74d4482ea3", "target_edit_idx": 2, "propagatable_edit_idx": [ 9 ] }, { "input": " vpc_id = test_context[VPC_ID_KEY]\n public_subnet_id = test_context[PUBLIC_SUBNET_ID_KEY]\n subnets = test_context[SUBNETS_KEY]\n vpc_id = test_context[VPC_ID_KEY]\n public_subnet_id = test_context[PUBLIC_SUBNET_ID_KEY]\n subnets = test_context[SUBNETS_KEY]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/e626131563efb536f325a35c78585b74d4482ea3", "target_edit_idx": 3, "propagatable_edit_idx": [ 10 ] }, { "input": " allocation = create_address_allocation()\n nat_gateway = create_nat_gateway(allocation_id=allocation, subnet_id=public_subnet_id)\n route_table = create_route_table(vpc_id=vpc_id, nat_gateway_id=nat_gateway, test_name=test_name)\n subnets = create_private_subnets(\n vpc_id=vpc_id, route_table_id=route_table, test_name=test_name, number_to_make=2\n )\n\n allocation = create_address_allocation()\n nat_gateway = create_nat_gateway(allocation_id=allocation, subnet_id=public_subnet_id)\n route_table = create_route_table(vpc_id=vpc_id, nat_gateway_id=nat_gateway, test_name=test_name)\n subnets = create_private_subnets(\n vpc_id=vpc_id, route_table_id=route_table, test_name=test_name, number_to_make=2\n )\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/e626131563efb536f325a35c78585b74d4482ea3", "target_edit_idx": 4, "propagatable_edit_idx": [ 11 ] }, { "input": " nat_gateway,\n route_table,\n subnets,\n nat_gateway,\n route_table,\n subnets,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/e626131563efb536f325a35c78585b74d4482ea3", "target_edit_idx": 5, "propagatable_edit_idx": [ 12 ] }, { "input": " delete_subnets(subnets),\n delete_route_table(route_table),\n delete_nat_gateway(nat_gateway),\n remove_address_allocation(allocation),\n # TEST TEARDOWN\n delete_subnets(subnets),\n delete_route_table(route_table),\n delete_nat_gateway(nat_gateway),\n remove_address_allocation(allocation),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/e626131563efb536f325a35c78585b74d4482ea3", "target_edit_idx": 6, "propagatable_edit_idx": [ 13 ] }, { "input": " vpc_id = test_context[VPC_ID_KEY]\n public_subnet_id = test_context[PUBLIC_SUBNET_ID_KEY]\n subnets = test_context[SUBNETS_KEY]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/e626131563efb536f325a35c78585b74d4482ea3", "target_edit_idx": 10, "propagatable_edit_idx": [ 3 ] }, { "input": " from airflow.models.mappedoperator import MappedOperator\n from airflow.models.abstractoperator import AbstractOperator\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.06557377049180328, "commit_url": "https://github.com/apache/airflow/commit/e939a641b2c1aab27beed5984ca52cd8fde14f01", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " task_id=\"test_task\", poke_interval=1, aws_conn_id=\"aws_test\", endpoint_name=\"test_job_name\"\n task_id=\"test_task\", poke_interval=0, aws_conn_id=\"aws_test\", endpoint_name=\"test_job_name\"\n task_id=\"test_task\", poke_interval=2, aws_conn_id=\"aws_test\", job_name=\"test_job_name\"\n task_id=\"test_task\", poke_interval=0, aws_conn_id=\"aws_test\", job_name=\"test_job_name\"\n task_id=\"test_task\", poke_interval=2, aws_conn_id=\"aws_test\", job_name=\"test_job_name\"\n task_id=\"test_task\", poke_interval=0, aws_conn_id=\"aws_test\", job_name=\"test_job_name\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/airflow/commit/f67845acc2f0f317d52b9ee017e14e6dbaeb8317", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " poke_interval=2,\n poke_interval=0,\n poke_interval=2,\n poke_interval=0,\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/airflow/commit/f67845acc2f0f317d52b9ee017e14e6dbaeb8317", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " \n \n ", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/6f1ab37d2091e26e67717d4921044029a01d6a22", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " resource = self.wait_for_operation(resource)\n resource = self.wait_for_operation(resource, project_id)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/apache/airflow/commit/e31590039634ff722ad005fe9f1fc02e5a669699", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " included_events = conf.get('webserver', 'audit_view_included_events', fallback=None)\n excluded_events = conf.get('webserver', 'audit_view_excluded_events', fallback=None)\n included_events_raw = conf.get('webserver', 'audit_view_included_events', fallback=None)\n excluded_events_raw = conf.get('webserver', 'audit_view_excluded_events', fallback=None)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/apache/airflow/commit/c5878315f3df0854a0902d91668cc369e7466405", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " if included_events:\n included_events = {event.strip() for event in included_events.split(',')}\n if included_events_raw:\n included_events = {event.strip() for event in included_events_raw.split(',')}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/apache/airflow/commit/c5878315f3df0854a0902d91668cc369e7466405", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "def list_zones_endpoint(host):\n \"\"\"Utility function to generate the list zones endpoint given the host\"\"\"\n return f'https://{host}/api/2.0/clusters/list-zones'\ndef list_spark_versions_endpoint(host):\n \"\"\"Utility function to generate the list spark versions endpoint given the host\"\"\"\n return f'https://{host}/api/2.0/clusters/spark-versions'\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/2f70daf5ac36100ff0bbd4ac66ce921a2bc6dea0", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " list_zones_endpoint(HOST),\n list_spark_versions_endpoint(HOST),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/2f70daf5ac36100ff0bbd4ac66ce921a2bc6dea0", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " resources: Optional[k8s.V1ResourceRequirements] = None,\n container_resources: Optional[k8s.V1ResourceRequirements] = None,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/45f4290712f5f779e57034f81dbaab5d77d5de85", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4, 5, 6 ] }, { "input": " self.k8s_resources = convert_resources(resources) if resources else {}\n self.k8s_resources = convert_resources(container_resources) if container_resources else {}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/apache/airflow/commit/45f4290712f5f779e57034f81dbaab5d77d5de85", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 5, 6 ] }, { "input": " resources=resources,\n container_resources=resources,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/45f4290712f5f779e57034f81dbaab5d77d5de85", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 4, 6 ] }, { "input": " sql=f\"\"\"CREATE TABLE {SCHEMA}.{TABLE1}(cityid bigint,cityname varchar);\n sql=f\"\"\"CREATE TABLE IF NOT EXISTS {SCHEMA}.{TABLE1}(cityid bigint,cityname varchar);\n CREATE TABLE {SCHEMA}.{TABLE2}(cityid bigint,cityname varchar);\n CREATE TABLE IF NOT EXISTS {SCHEMA}.{TABLE2}(cityid bigint,cityname varchar);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/4f4f37c855d58f99c9b999fa0f19e0c0505274f4", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " mock.call(name=TEST_NAME, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA),\n mock.call(name=TEST_NAME, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA),\n mock.call(\n request=dict(name=TEST_NAME_DEFAULT_PROJECT_ID),\n retry=TEST_RETRY,\n timeout=TEST_TIMEOUT,\n metadata=TEST_METADATA,\n ),\n mock.call(\n request=dict(name=TEST_NAME_DEFAULT_PROJECT_ID),\n retry=TEST_RETRY,\n timeout=TEST_TIMEOUT,\n metadata=TEST_METADATA,\n ),\n mock.call(name=TEST_NAME, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA),\n mock.call(name=TEST_NAME, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA),\n mock.call(\n name=TEST_NAME_DEFAULT_PROJECT_ID,\n retry=TEST_RETRY,\n timeout=TEST_TIMEOUT,\n metadata=TEST_METADATA,\n ),\n mock.call(\n name=TEST_NAME_DEFAULT_PROJECT_ID,\n retry=TEST_RETRY,\n timeout=TEST_TIMEOUT,\n metadata=TEST_METADATA,\n ),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/3a2eb961ca628d962ed5fad68760ef3439b2f40b", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " name=\"projects/test-project-id/locations/test-location/instances/test-instance-id\",\n request=dict(\n name=\"projects/test-project-id/locations/test-location/instances/test-instance-id\"\n ),\n name=\"projects/test-project-id/locations/test-location/instances/test-instance-id\",\n request=dict(\n name=\"projects/test-project-id/locations/test-location/instances/test-instance-id\"\n ),\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/airflow/commit/3a2eb961ca628d962ed5fad68760ef3439b2f40b", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " get_conn.return_value.create_build.assert_called_once_with(\n mock_operation = get_conn.return_value.create_build\n\n mock_operation.assert_called_once_with(\n get_conn.return_value.retry_build.assert_called_once_with(\n mock_operation = get_conn.return_value.retry_build\n\n mock_operation.assert_called_once_with(\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/airflow/commit/0f0a1a7d22dffab4487c35d3598b3b6aaf24c4c6", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " bigquery_conn_id=self.gcp_conn_id,\n gcp_conn_id=self.gcp_conn_id,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/apache/airflow/commit/7d4d38b546c44287f8a9d09c4fc141cbea736511", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " \"You are about to delete these {count} tasks:\\n{ti_list}\\n\\nAre you sure? (yes/no): \"\n \"You are about to delete these {count} tasks:\\n{ti_list}\\n\\nAre you sure? [y/n]\"\n question = f\"You are about to delete these {count} tasks:\\n{ti_list}\\n\\nAre you sure? (yes/no): \"\n question = f\"You are about to delete these {count} tasks:\\n{ti_list}\\n\\nAre you sure? [y/n]\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/1a46a3c4da7e59edc9a46723c36ef74a1428a4e4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "def ask_yesno(question: str) -> bool:\n \"\"\"Helper to get yes / no answer from user.\"\"\"\ndef ask_yesno(question: str, default: Optional[bool] = None) -> bool:\n \"\"\"Helper to get a yes or no answer from the user.\"\"\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/1a46a3c4da7e59edc9a46723c36ef74a1428a4e4", "target_edit_idx": 4, "propagatable_edit_idx": [ 11 ] }, { "input": " return ask_yesno(question)\n return ask_yesno(question, default)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/1a46a3c4da7e59edc9a46723c36ef74a1428a4e4", "target_edit_idx": 11, "propagatable_edit_idx": [ 4 ] }, { "input": " ids=[\"clear\", \"success\", \"failed\", \"running\"],\n ids=[\"clear\", \"success\", \"failed\", \"running\", \"queued\"],\n ids=[\"clear\", \"success\", \"failed\", \"running\"],\n ids=[\"clear\", \"success\", \"failed\", \"running\", \"queued\"],\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/airflow/commit/0da54f1dbe65f55316d238308155103f820192a8", "target_edit_idx": 12, "propagatable_edit_idx": [ 14 ] }, { "input": " 'snowflake://user:pw@airflow/db/public?warehouse=af_wh&role=af_role&authenticator=snowflake'\n 'snowflake://user:pw@airflow.af_region/db/public?'\n 'warehouse=af_wh&role=af_role&authenticator=snowflake'\n 'snowflake://user:pw@airflow/db/public?warehouse=af_wh&role=af_role&authenticator=snowflake'\n 'snowflake://user:pw@airflow.af_region/db/public?'\n 'warehouse=af_wh&role=af_role&authenticator=snowflake'\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/0a37be3e3cf9289f63f1506bc31db409c2b46738", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " mounts=[Mount(source='/host/path', target='/container/path', type='bind')],\n mounts=[types.Mount(source='/host/path', target='/container/path', type='bind')],\n mounts=[Mount(source='/host/path', target='/container/path', type='bind')],\n mounts=[types.Mount(source='/host/path', target='/container/path', type='bind')],\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/4da4c186ecdcdae308fe8b4a7994c21faf42bc96", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": " (old_view_name, old_perm_name) = old\n old_pvm = appbuilder.sm.get_permission(old_perm_name, old_view_name)\n if not old_pvm:\n (old_resource_name, old_action_name) = old\n old_permission = appbuilder.sm.get_permission(old_action_name, old_resource_name)\n if not old_permission:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7777777777777778, "commit_url": "https://github.com/apache/airflow/commit/f073d1ba687ab9b460bbaf3ed3f5aeb8ae08de6a", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " if appbuilder.sm.exist_permission_on_roles(old_view_name, old_perm_name, [role.id]):\n appbuilder.sm.add_permission_role(role, new_pvm)\n appbuilder.sm.del_permission_role(role, old_pvm)\n appbuilder.sm.del_permission_view_menu(old_perm_name, old_view_name)\n if appbuilder.sm.exist_permission_on_roles(old_resource_name, old_action_name, [role.id]):\n appbuilder.sm.add_permission_to_role(role, new_permission)\n appbuilder.sm.remove_permission_from_role(role, old_permission)\n appbuilder.sm.delete_permission(old_action_name, old_resource_name)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7777777777777778, "commit_url": "https://github.com/apache/airflow/commit/f073d1ba687ab9b460bbaf3ed3f5aeb8ae08de6a", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " if not appbuilder.sm.find_permission(old_perm_name):\n if not appbuilder.sm.get_action(old_action_name):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/f073d1ba687ab9b460bbaf3ed3f5aeb8ae08de6a", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " \"\"\"Remove can_read permission on config resource for User and Viewer role\"\"\"\n \"\"\"Remove can_read action from config resource for User and Viewer role\"\"\"\n \"\"\"Add can_read permission on config resource for User and Viewer role\"\"\"\n \"\"\"Add can_read action on config resource for User and Viewer role\"\"\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/airflow/commit/f073d1ba687ab9b460bbaf3ed3f5aeb8ae08de6a", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": "\"\"\"This module is deprecated. Please use `airflow.sensors.weekday_sensor`.\"\"\"\n\"\"\"This module is deprecated. Please use `airflow.sensors.weekday`.\"\"\"\n \"This module is deprecated. Please use `airflow.sensors.weekday_sensor`.\",\n \"This module is deprecated. Please use `airflow.sensors.weekday`.\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/1d641d8f114660eee18c6246081cfe991bb74baa", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " (permissions.ACTION_CAN_ACCESS_MENU, permissions.RESOURCE_DOCS_LINKS),\n (permissions.ACTION_CAN_ACCESS_MENU, permissions.RESOURCE_DOCS),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/1bec3b21266764f367431ab5d9a5b75f52b9b6d2", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "class HeathInfoSchema(Schema):\nclass HealthInfoSchema(Schema):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/511f0426530bfabd9d93f4737df7add1080b4e8d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "health_schema = HeathInfoSchema()\nhealth_schema = HealthInfoSchema()", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/511f0426530bfabd9d93f4737df7add1080b4e8d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " return set(dag.dag_id for dag in self.get_readable_dags(user))\n return {dag.dag_id for dag in self.get_readable_dags(user)}\n return set(dag.dag_id for dag in self.get_editable_dags(user))\n return {dag.dag_id for dag in self.get_editable_dags(user)}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/56d72e3ff8798a2662847355d1b73b2c1f57b31f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " expected_missing_test_modules = set(pair[1] for pair in expected_missing_providers_modules)\n expected_missing_test_modules = {pair[1] for pair in expected_missing_providers_modules}\n expected_missing_modules = set(pair[0] for pair in expected_missing_providers_modules)\n expected_missing_modules = {pair[0] for pair in expected_missing_providers_modules}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/56d72e3ff8798a2662847355d1b73b2c1f57b31f", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " tags=['example'],\n tags=['example', 'example2'],\n tags=['example']\n tags=['example', 'example2']\n tags=['example'],\n tags=['example', 'example2', 'example3'],\n tags=['example'],\n tags=['example2'],\n tags=['example'],\n tags=['example2'],\n tags=['example'],\n tags=['example', 'example2'],\n tags=['example'],\n tags=['example3'],\n tags=['example']\n tags=['example2', 'example3']\n tags=['example']\n tags=['example3']\n", "class": "clone", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/apache/airflow/commit/080a4709448e446aa65946e0bb0964339df37526", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " self.processor_agent.heartbeat()\n self.processor_agent.run_single_parsing_loop()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/a143629ef992dd22aaa5ad16ef888a27bedbe98e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 5, 6, 7, 8 ] }, { "input": " def heartbeat(self):\n def run_single_parsing_loop(self):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/a143629ef992dd22aaa5ad16ef888a27bedbe98e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 5, 6, 7, 8 ] }, { "input": " self._parent_signal_conn.send(DagParsingSignal.AGENT_HEARTBEAT)\n self._parent_signal_conn.send(DagParsingSignal.AGENT_RUN_ONCE)\n elif agent_signal == DagParsingSignal.AGENT_HEARTBEAT:\n elif agent_signal == DagParsingSignal.AGENT_RUN_ONCE:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/a143629ef992dd22aaa5ad16ef888a27bedbe98e", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " elif agent_signal == DagParsingSignal.AGENT_HEARTBEAT:\n elif agent_signal == DagParsingSignal.AGENT_RUN_ONCE:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/a143629ef992dd22aaa5ad16ef888a27bedbe98e", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " processor_agent.heartbeat()\n processor_agent.run_single_parsing_loop()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/a143629ef992dd22aaa5ad16ef888a27bedbe98e", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 6, 7, 8 ] }, { "input": " # The _serialized_fields are lazily loaded when get_serialized_fields() method is called\n __serialized_fields: Optional[FrozenSet[str]] = None\n\n # The _serialized_fields are lazily loaded when get_serialized_fields() method is called\n __serialized_fields: Optional[FrozenSet[str]] = None\n template_fields = ['bash_command']\n # The _serialized_fields are lazily loaded when get_serialized_fields() method is called\n __serialized_fields: Optional[FrozenSet[str]] = None\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/de7e934ca3f21ce82f67accf92811b3ac044476f", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 4 ] }, { "input": " @classmethod\n def get_serialized_fields(cls):\n \"\"\"Serialized BigQueryOperator contain exactly these fields.\"\"\"\n if not cls.__serialized_fields:\n cls.__serialized_fields = frozenset(super().get_serialized_fields() | {\"sql\"})\n return cls.__serialized_fields\n\n @classmethod\n def get_serialized_fields(cls):\n \"\"\"Stringified CustomOperator contain exactly these fields.\"\"\"\n if not cls.__serialized_fields:\n cls.__serialized_fields = frozenset(super().get_serialized_fields() | {\"bash_command\"})\n return cls.__serialized_fields\n\n\n @classmethod\n def get_serialized_fields(cls):\n \"\"\"Serialized QuboleOperator contain exactly these fields.\"\"\"\n if not cls.__serialized_fields:\n cls.__serialized_fields = frozenset(super().get_serialized_fields() | {\"qubole_conn_id\"})\n return cls.__serialized_fields", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/de7e934ca3f21ce82f67accf92811b3ac044476f", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 5 ] }, { "input": "def _to_dataset(obj: Any) -> Optional[Metadata]:\ndef _to_dataset(obj: Any, source: str) -> Optional[Metadata]:\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/4bfde026d14441a9fcb26e5e7f465def3f13eaa5", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " outlets = [unstructure(_to_dataset(x))\n outlets = [unstructure(_to_dataset(x, f\"{self.dag_id}.{self.task_id}\"))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/4bfde026d14441a9fcb26e5e7f465def3f13eaa5", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " inlets = [unstructure(_to_dataset(x))\n inlets = [unstructure(_to_dataset(x, None))\ndef _to_dataset(obj: Any) -> Optional[Metadata]:\ndef _to_dataset(obj: Any, source: str) -> Optional[Metadata]:\n outlets = [unstructure(_to_dataset(x))\n outlets = [unstructure(_to_dataset(x, f\"{self.dag_id}.{self.task_id}\"))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/4bfde026d14441a9fcb26e5e7f465def3f13eaa5", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " self.assertEqual(op1.inlets[0], file1)\n self.assertEqual(op1.inlets[0].url, f1s.format(DEFAULT_DATE))\n self.assertEqual(op1.outlets[0], file2)\n self.assertEqual(op1.outlets[0].url, f2s.format(DEFAULT_DATE))\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/apache/airflow/commit/4bfde026d14441a9fcb26e5e7f465def3f13eaa5", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": " self.assertEqual(app.wsgi_app.x_for, '1')\n self.assertEqual(app.wsgi_app.x_proto, '1')\n self.assertEqual(app.wsgi_app.x_host, '1')\n self.assertEqual(app.wsgi_app.x_port, '1')\n self.assertEqual(app.wsgi_app.x_prefix, '1')\n self.assertEqual(app.wsgi_app.x_for, 1)\n self.assertEqual(app.wsgi_app.x_proto, 1)\n self.assertEqual(app.wsgi_app.x_host, 1)\n self.assertEqual(app.wsgi_app.x_port, 1)\n self.assertEqual(app.wsgi_app.x_prefix, 1)\n self.assertEqual(app.wsgi_app.x_for, '3')\n self.assertEqual(app.wsgi_app.x_proto, '4')\n self.assertEqual(app.wsgi_app.x_host, '5')\n self.assertEqual(app.wsgi_app.x_port, '6')\n self.assertEqual(app.wsgi_app.x_prefix, '7')\n self.assertEqual(app.wsgi_app.x_for, 3)\n self.assertEqual(app.wsgi_app.x_proto, 4)\n self.assertEqual(app.wsgi_app.x_host, 5)\n self.assertEqual(app.wsgi_app.x_port, 6)\n self.assertEqual(app.wsgi_app.x_prefix, 7)", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/airflow/commit/be58f173481c7651e50aeed485cd762a5b3c5629", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "def send_email(to, subject, html_content, files=None, dryrun=False, cc=None, bcc=None, mime_subtype='mixed'):\ndef send_email(to, subject, html_content, files=None,\n dryrun=False, cc=None, bcc=None,\n mime_subtype='mixed', **kwargs):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/airflow/commit/97680d85f4cf035affe680e4dde63ef1ecd8380f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " ti2.state = State.QUEUED\n ti2.state = State.RUNNING\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.13636363636363635, "commit_url": "https://github.com/apache/airflow/commit/8f9f5084bfdc2aa4017fee12e22d2e94672765ba", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " self.assertEqual(State.QUEUED, ti2.state)\n self.assertEqual(State.RUNNING, ti2.state)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.13636363636363635, "commit_url": "https://github.com/apache/airflow/commit/8f9f5084bfdc2aa4017fee12e22d2e94672765ba", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " def download(self, bucket, object, file_fd=False):\n def download(self, bucket, object, filename=False):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/465302e85337d72904c0434f69898a060ad4efa1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 6 ] }, { "input": " self.file_fd = file_fd\n self.filename = filename\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/465302e85337d72904c0434f69898a060ad4efa1", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 6 ] }, { "input": " print(hook.download(self.bucket, self.object, self.file_fd))\n print(hook.download(self.bucket, self.object, self.filename))", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/airflow/commit/465302e85337d72904c0434f69898a060ad4efa1", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": "dtype = 'bfloat16' if torch.cuda.is_bf16_supported() else 'float16' # 'float32' or 'bfloat16' or 'float16'\ndtype = 'bfloat16' if torch.cuda.is_available() and torch.cuda.is_bf16_supported() else 'float16' # 'float32' or 'bfloat16' or 'float16'\ndtype = 'bfloat16' if torch.cuda.is_bf16_supported() else 'float16' # 'float32' or 'bfloat16' or 'float16'\ndtype = 'bfloat16' if torch.cuda.is_available() and torch.cuda.is_bf16_supported() else 'float16' # 'float32' or 'bfloat16' or 'float16'\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/karpathy/nanoGPT/commit/1eaceae1931d79c248e441b7544efab8fa492523", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "compile_model = True\ncompile = True\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/karpathy/nanoGPT/commit/41184a27f535b79cea9f7ac2ef31edd908d040a2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "if compile_model:\nif compile:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/karpathy/nanoGPT/commit/41184a27f535b79cea9f7ac2ef31edd908d040a2", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " assert mode.type not in ServerInstance.__modes\n ServerInstance.__modes[mode.type] = cls\n assert mode.type_name not in ServerInstance.__modes\n ServerInstance.__modes[mode.type_name] = cls\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/360ac3666620336c9952d34ad7303f38dd596963", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": " inst = ServerInstance.__modes[mode.type](mode, manager)\n inst = ServerInstance.__modes[mode.type_name](mode, manager)\n assert mode.type not in ServerInstance.__modes\n ServerInstance.__modes[mode.type] = cls\n assert mode.type_name not in ServerInstance.__modes\n ServerInstance.__modes[mode.type_name] = cls\n \"type\": self.mode.type,\n \"type\": self.mode.type_name,\n type: ClassVar[str] # automatically derived from the class name in __init_subclass__\n type_name: ClassVar[str] # automatically derived from the class name in __init_subclass__\n cls.type = cls.__name__.removesuffix(\"Mode\").lower()\n assert cls.type not in ProxyMode.__types\n ProxyMode.__types[cls.type] = cls\n cls.type_name = cls.__name__.removesuffix(\"Mode\").lower()\n assert cls.type_name not in ProxyMode.__types\n ProxyMode.__types[cls.type_name] = cls\n raise ValueError(f\"{mode!r} is not a spec for a {cls.type} mode\")\n raise ValueError(f\"{mode!r} is not a spec for a {cls.type_name} mode\")\n assert m.type == \"reverse\"\n assert m.type_name == \"reverse\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/360ac3666620336c9952d34ad7303f38dd596963", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6 ] }, { "input": " \"type\": self.mode.type,\n \"type\": self.mode.type_name,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/360ac3666620336c9952d34ad7303f38dd596963", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6 ] }, { "input": " type: ClassVar[str] # automatically derived from the class name in __init_subclass__\n type_name: ClassVar[str] # automatically derived from the class name in __init_subclass__\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/360ac3666620336c9952d34ad7303f38dd596963", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6 ] }, { "input": " cls.type = cls.__name__.removesuffix(\"Mode\").lower()\n assert cls.type not in ProxyMode.__types\n ProxyMode.__types[cls.type] = cls\n cls.type_name = cls.__name__.removesuffix(\"Mode\").lower()\n assert cls.type_name not in ProxyMode.__types\n ProxyMode.__types[cls.type_name] = cls\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7777777777777778, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/360ac3666620336c9952d34ad7303f38dd596963", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6 ] }, { "input": " assert m.type == \"reverse\"\n assert m.type_name == \"reverse\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/360ac3666620336c9952d34ad7303f38dd596963", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5 ] }, { "input": " warnings.warn(\"reply.kill() is deprecated, set the error attribute instead.\", PendingDeprecationWarning)\n warnings.warn(\"reply.kill() is deprecated, set the error attribute instead.\", PendingDeprecationWarning, stacklevel=2)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5384615384615384, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/b59325a743dae0aef918323436036d13f7cab3b7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7 ] }, { "input": " warnings.warn(\"Client.address is deprecated, use Client.peername instead.\", PendingDeprecationWarning)\n warnings.warn(\"Client.address is deprecated, use Client.peername instead.\", PendingDeprecationWarning, stacklevel=2)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5384615384615384, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/b59325a743dae0aef918323436036d13f7cab3b7", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7 ] }, { "input": " warnings.warn(\"Client.cipher_name is deprecated, use Client.cipher instead.\", PendingDeprecationWarning)\n warnings.warn(\"Client.cipher_name is deprecated, use Client.cipher instead.\", PendingDeprecationWarning, stacklevel=2)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5384615384615384, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/b59325a743dae0aef918323436036d13f7cab3b7", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7 ] }, { "input": " warnings.warn(\"Client.clientcert is deprecated, use Client.certificate_list instead.\", PendingDeprecationWarning)\n warnings.warn(\"Client.clientcert is deprecated, use Client.certificate_list instead.\", PendingDeprecationWarning, stacklevel=2)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5384615384615384, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/b59325a743dae0aef918323436036d13f7cab3b7", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7 ] }, { "input": " warnings.warn(\"Server.ip_address is deprecated, use Server.peername instead.\", PendingDeprecationWarning)\n warnings.warn(\"Server.ip_address is deprecated, use Server.peername instead.\", PendingDeprecationWarning, stacklevel=2)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5384615384615384, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/b59325a743dae0aef918323436036d13f7cab3b7", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7 ] }, { "input": " warnings.warn(\"Server.cert is deprecated, use Server.certificate_list instead.\", PendingDeprecationWarning)\n warnings.warn(\"Server.cert is deprecated, use Server.certificate_list instead.\", PendingDeprecationWarning, stacklevel=2)\n warnings.warn(\"reply.kill() is deprecated, set the error attribute instead.\", PendingDeprecationWarning)\n warnings.warn(\"reply.kill() is deprecated, set the error attribute instead.\", PendingDeprecationWarning, stacklevel=2)\n warnings.warn(\"Client.address is deprecated, use Client.peername instead.\", PendingDeprecationWarning)\n warnings.warn(\"Client.address is deprecated, use Client.peername instead.\", PendingDeprecationWarning, stacklevel=2)\n warnings.warn(\"Client.address is deprecated, use Client.peername instead.\", PendingDeprecationWarning)\n warnings.warn(\"Client.address is deprecated, use Client.peername instead.\", PendingDeprecationWarning, stacklevel=2)\n warnings.warn(\"Client.cipher_name is deprecated, use Client.cipher instead.\", PendingDeprecationWarning)\n warnings.warn(\"Client.cipher_name is deprecated, use Client.cipher instead.\", PendingDeprecationWarning, stacklevel=2)\n warnings.warn(\"Client.clientcert is deprecated, use Client.certificate_list instead.\", PendingDeprecationWarning)\n warnings.warn(\"Client.clientcert is deprecated, use Client.certificate_list instead.\", PendingDeprecationWarning, stacklevel=2)\n warnings.warn(\"Server.ip_address is deprecated, use Server.peername instead.\", PendingDeprecationWarning)\n warnings.warn(\"Server.ip_address is deprecated, use Server.peername instead.\", PendingDeprecationWarning, stacklevel=2)\n warnings.warn(\"Server.cert is deprecated, use Server.certificate_list instead.\", PendingDeprecationWarning)\n warnings.warn(\"Server.cert is deprecated, use Server.certificate_list instead.\", PendingDeprecationWarning, stacklevel=2)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5384615384615384, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/b59325a743dae0aef918323436036d13f7cab3b7", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7 ] }, { "input": " warnings.warn(\"Server.cert is deprecated, use Server.certificate_list instead.\", PendingDeprecationWarning)\n warnings.warn(\"Server.cert is deprecated, use Server.certificate_list instead.\", PendingDeprecationWarning, stacklevel=2)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5384615384615384, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/b59325a743dae0aef918323436036d13f7cab3b7", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6 ] }, { "input": " a.trigger(\"custom\")\n assert not end.custom_called\n assert not end.running_called\n a.trigger(\"running\")\n assert not end.running_called\n a.trigger(\"custom\")\n assert end.custom_called\n a.trigger(\"running\")\n assert end.running_called\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/6bd2d5059b0beeb1aa9996c1d0619f167d98925e", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " tell = ctx.master.tell\n channel = ctx.master.channel\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/cdbe6f97af6ae86f80080b7a279c8d3734662c5c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " lambda message: tell(\"log\", log.LogEntry(message, \"warn\"))\n lambda message: channel(\"log\", log.LogEntry(message, \"warn\"))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/cdbe6f97af6ae86f80080b7a279c8d3734662c5c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " spec = \" \".join(spec)\n strspec = \" \".join(spec)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/56eb0441da1ae85399fdbc5597cf181eeb408223", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " ctx.options.set(spec)\n ctx.options.set(strspec)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/56eb0441da1ae85399fdbc5597cf181eeb408223", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " with open(p, \"r\") as f:\n txt = f.read()\n with open(p, \"rt\", encoding=\"utf8\") as f:\n try:\n txt = f.read()\n except UnicodeDecodeError as e:\n raise exceptions.OptionsError(\n \"Error reading %s: %s\" % (p, e)\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.04285714285714286, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/0d3e2c6adff0479c42dc28880cd0258d32958fc2", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " with open(path, \"r\") as f:\n data = f.read()\n with open(path, \"rt\", encoding=\"utf8\") as f:\n try:\n data = f.read()\n except UnicodeDecodeError as e:\n raise exceptions.OptionsError(\n \"Error trying to modify %s: %s\" % (path, e)\n )\n with open(p, \"r\") as f:\n txt = f.read()\n with open(p, \"rt\", encoding=\"utf8\") as f:\n try:\n txt = f.read()\n except UnicodeDecodeError as e:\n raise exceptions.OptionsError(\n \"Error reading %s: %s\" % (p, e)\n )\n with open(path, \"w\") as f:\n with open(path, \"wt\", encoding=\"utf8\") as f:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.04285714285714286, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/0d3e2c6adff0479c42dc28880cd0258d32958fc2", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " with open(path, \"w\") as f:\n with open(path, \"wt\", encoding=\"utf8\") as f:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.04285714285714286, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/0d3e2c6adff0479c42dc28880cd0258d32958fc2", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " self.add_log(\"{client} {direction} tcp {direction} {server}\".format(\n signals.add_log(\"{client} {direction} tcp {direction} {server}\".format(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/9bc5adfb03ca6fc08a115757e3de18299a06b091", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " self.add_log(strutils.bytes_to_escaped_str(message.content), \"debug\")\n signals.add_log(strutils.bytes_to_escaped_str(message.content), \"debug\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/9bc5adfb03ca6fc08a115757e3de18299a06b091", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": " needed = dict(error=0, warn=1, info=2, debug=3).get(level, 2)\n if self.options.verbosity < needed:\n if self.options.verbosity < utils.log_tier(level):\n needed = dict(error=0, warn=1, info=2, debug=3).get(level, 2)\n if self.options.verbosity >= needed:\n if self.options.verbosity >= utils.log_tier(level):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/49b65d2ea4418010e2fda954d9f02ecfa04e46c5", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " self.callback(self.master, self.options)\n self.callback()\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/a4127fb6d5f026c015525bab7993bf6f33e16f93", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " bytes = self.protocol._create_body(b'', 1)\n protocol = HTTP2Protocol(self.c)\n bytes = protocol._create_body(b'', 1)\n bytes = self.protocol._create_body('foobar', 1)\n protocol = HTTP2Protocol(self.c)\n bytes = protocol._create_body('foobar', 1)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/0d384ac2a91898d4c8623290ae0fb3a60a35e514", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " \"-c\", dest='craftanchor', default=pathod.DEFAULT_ANCHOR, type=str,\n \"-c\", dest='craftanchor', default=pathod.DEFAULT_CRAFT_ANCHOR, type=str,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/22811c45dd1e6e6f1c8108e83a7be625f305c19e", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " \"\"\"%pathod.DEFAULT_ANCHOR\n \"\"\"%pathod.DEFAULT_CRAFT_ANCHOR\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/22811c45dd1e6e6f1c8108e83a7be625f305c19e", "target_edit_idx": 6, "propagatable_edit_idx": [ 4 ] }, { "input": "def _read_value(s, start):\ndef _read_value(s, start, special):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/2630da7263242411d413b5e4b2c520d29848c918", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": " rhs, off = _read_value(s, off+1)\n vals.append([lhs.lstrip(), rhs])\n rhs, off = _read_value(s, off+1, lhs.lower() in specials)\n vals.append([lhs, rhs])\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/2630da7263242411d413b5e4b2c520d29848c918", "target_edit_idx": 7, "propagatable_edit_idx": [ 0 ] }, { "input": " return self.serve_crafted(aresp, request_log)\n again, retlog[\"response\"] = self.serve_crafted(aresp)\n return again, retlog\n return self.serve_crafted(crafted, request_log)\n again, retlog[\"response\"] = self.serve_crafted(crafted)\n return again, retlog\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/944f213ebca3bb70e0dc920d7095ae888cee2c8c", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " return self.serve_crafted(crafted, request_log)\n again, retlog[\"response\"] = self.serve_crafted(crafted)\n return again, retlog\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/944f213ebca3bb70e0dc920d7095ae888cee2c8c", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " r, w = cStringIO.StringIO(), cStringIO.StringIO()\n tutils.raises(\"connect failed\", c.http_connect, to, w, r)\n r = cStringIO.StringIO(\n c.rfile, c.wfile = cStringIO.StringIO(), cStringIO.StringIO()\n tutils.raises(\"connect failed\", c.http_connect, to)\n c.rfile = cStringIO.StringIO(\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.02127659574468085, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/7049becdfe5fa16820fc7dd3da0866cf08464efd", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " tutils.raises(\"connect failed\", c.http_connect, to, w, r)\n r = cStringIO.StringIO(\n tutils.raises(\"connect failed\", c.http_connect, to)\n c.rfile = cStringIO.StringIO(\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.02127659574468085, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/7049becdfe5fa16820fc7dd3da0866cf08464efd", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": " def serve(self, fp):\n def serve(self, fp, check):\n \"\"\"\n fp: The file pointer to write to.\n\n check: A function called with the effective actions (after random\n values have been calculated). If it returns False service\n proceeds, otherwise the return is treated as an error message to be\n sent to the client, and service stops.\n \"\"\"\n def serve(self, fp):\n d = Request.serve(self, fp)\n def serve(self, fp, check=None):\n d = Request.serve(self, fp, check)\n def serve(self, fp):\n d = Response.serve(self, fp)\n def serve(self, fp, check=None):\n d = Response.serve(self, fp, check)\n def serve(self, fp):\n d = Response.serve(self, fp)\n def serve(self, fp, check=None):\n d = Response.serve(self, fp, check)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/c7b5faf7dbaab518bbe9942f018861f738ebb2b0", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 10, 11 ] }, { "input": " def serve(self, fp):\n d = Request.serve(self, fp)\n def serve(self, fp, check=None):\n d = Request.serve(self, fp, check)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/c7b5faf7dbaab518bbe9942f018861f738ebb2b0", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11, 6 ] }, { "input": " def serve(self, fp):\n d = Response.serve(self, fp)\n def serve(self, fp, check=None):\n d = Response.serve(self, fp, check)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/c7b5faf7dbaab518bbe9942f018861f738ebb2b0", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 11, 6 ] }, { "input": " def __init__(self, certfile = None, cacert = None, clientcerts = None, cert_wait_time=0, upstream_cert=False, body_size_limit = None, reverse_proxy=None, transparent_proxy=None):\n def __init__(self, certfile = None, cacert = None, clientcerts = None, cert_wait_time=0, no_upstream_cert=False, body_size_limit = None, reverse_proxy=None, transparent_proxy=None):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/837fcc65f53eb60b87987df445d150b4b362d3e9", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5, 7 ] }, { "input": " upstream_cert = options.upstream_cert,\n no_upstream_cert = options.no_upstream_cert,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/837fcc65f53eb60b87987df445d150b4b362d3e9", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": " action=\"store_true\", dest=\"stickycookie_all\", default=None,\n help=\"Set sticky cookie for all requests.\"\n )\n parser.add_option(\n \"-T\",\n action=\"store_true\", dest=\"stickyauth_all\", default=None,\n help=\"Set sticky auth for all requests.\"\n )\n parser.add_option(\n \"-U\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/8ccfb376f34a66dfc591e8ffa0307810f588937c", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " self.flow_list_view = None\n self.flow_list_walker = None\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/d7748cea4f209d45af99e5ac03438faa3184bc64", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4, 8, 12 ] }, { "input": " self.flow_list_view = flowlist.ConnectionListView(self, self.state)\n self.flow_list_walker = flowlist.FlowListWalker(self, self.state)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/d7748cea4f209d45af99e5ac03438faa3184bc64", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 4, 8, 10, 12 ] }, { "input": " self.flow_list_view.set_focus(self.state.index(self.currentflow))\n self.flow_list_walker.set_focus(self.state.index(self.currentflow))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/d7748cea4f209d45af99e5ac03438faa3184bc64", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 4, 8, 12 ] }, { "input": " self.body = flowlist.ConnectionListBox(self)\n self.body = flowlist.FlowListBox(self)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/d7748cea4f209d45af99e5ac03438faa3184bc64", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 11 ] }, { "input": " if self.flow_list_view:\n if self.flow_list_walker:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/d7748cea4f209d45af99e5ac03438faa3184bc64", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 8, 12 ] }, { "input": " self.sync_list_view()\n self.sync_list_view()\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/d7748cea4f209d45af99e5ac03438faa3184bc64", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " self.flow_list_view._modified()\n self.flow_list_walker._modified()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/d7748cea4f209d45af99e5ac03438faa3184bc64", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 4, 12 ] }, { "input": " ConnectionListBox(master),\n FlowListBox(master),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/d7748cea4f209d45af99e5ac03438faa3184bc64", "target_edit_idx": 9, "propagatable_edit_idx": [ 11, 3 ] }, { "input": "class ConnectionListView(urwid.ListWalker):\nclass FlowListWalker(urwid.ListWalker):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/d7748cea4f209d45af99e5ac03438faa3184bc64", "target_edit_idx": 10, "propagatable_edit_idx": [ 1 ] }, { "input": "class ConnectionListBox(urwid.ListBox):\nclass FlowListBox(urwid.ListBox):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/d7748cea4f209d45af99e5ac03438faa3184bc64", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 3 ] }, { "input": " def __init__(self, request, code, msg, headers, content, peercert, timestamp=None):\n def __init__(self, request, code, msg, headers, content, der_cert, timestamp=None):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/4979a22d3e1e62786394b0038842ff9e20554619", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " self.peercert = peercert\n self.der_cert = der_cert\n def __init__(self, request, code, msg, headers, content, peercert, timestamp=None):\n def __init__(self, request, code, msg, headers, content, der_cert, timestamp=None):\n peercert = self.peercert,\n der_cert = self.der_cert,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/4979a22d3e1e62786394b0038842ff9e20554619", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " s = flow.ServerPlaybackState(None, [])\n s = flow.ServerPlaybackState(None, [], False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/7330f5fccf4b640b4ed28e5e17db33f772c84b2e", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " s = flow.ServerPlaybackState([\"foo\"], [])\n s = flow.ServerPlaybackState([\"foo\"], [], False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/7330f5fccf4b640b4ed28e5e17db33f772c84b2e", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " s = flow.ServerPlaybackState(None, [r, r2])\n s = flow.ServerPlaybackState(None, [r, r2], False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/7330f5fccf4b640b4ed28e5e17db33f772c84b2e", "target_edit_idx": 8, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " assert not fm.start_server_playback(pb, False, [])\n assert not fm.start_server_playback(pb, False, [], False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/7330f5fccf4b640b4ed28e5e17db33f772c84b2e", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " fm.start_server_playback(pb, False, [])\n fm.start_server_playback(pb, False, [], False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/7330f5fccf4b640b4ed28e5e17db33f772c84b2e", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 11 ] }, { "input": " fm.start_server_playback(pb, False, [])\n fm.start_server_playback(pb, False, [], True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/mitmproxy/mitmproxy/commit/7330f5fccf4b640b4ed28e5e17db33f772c84b2e", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " cohere_client=cohere.Client(cohere_api_key),\n cohere_client=cohere.Client(cohere_api_key, client_name=\"llama_index\"),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/run-llama/llama_index/commit/f906565002e5828434dbdb9df316ae2abdbac4be", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " self._model = cohere.Client(self.api_key)\n self._model = cohere.Client(self.api_key, client_name=\"llama_index\")\n cohere_client=cohere.Client(cohere_api_key),\n cohere_client=cohere.Client(cohere_api_key, client_name=\"llama_index\"),\n self._client = cohere.Client(api_key)\n self._aclient = cohere.AsyncClient(api_key)\n self._client = cohere.Client(api_key, client_name=\"llama_index\")\n self._aclient = cohere.AsyncClient(api_key, client_name=\"llama_index\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/run-llama/llama_index/commit/f906565002e5828434dbdb9df316ae2abdbac4be", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "def convert_chat_message_to_gemini_content(message: ChatMessage) -> Any:\ndef convert_chat_message_to_gemini_content(\n message: ChatMessage, is_history: bool = True\n) -> Any:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/run-llama/llama_index/commit/6867bc2fad5f0cd1a40c9267b991d0728cfe8d2b", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " return convert_chat_message_to_gemini_content(message)\n return convert_chat_message_to_gemini_content(message=message, is_history=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/run-llama/llama_index/commit/6867bc2fad5f0cd1a40c9267b991d0728cfe8d2b", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " vertex_messages.append(convert_chat_message_to_gemini_content(message))\n vertex_messages.append(\n convert_chat_message_to_gemini_content(\n message=message, is_history=True\n )\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/run-llama/llama_index/commit/6867bc2fad5f0cd1a40c9267b991d0728cfe8d2b", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " 'main_seeds': main_seeds,\n 'seeds': seeds,\n 'main_seeds': main_seeds,\n 'seeds': seeds,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openai/gym/commit/71bb5f85630318dd4fbe30a94c9b1a2cf506608a", "target_edit_idx": 10, "propagatable_edit_idx": [ 14 ] }, { "input": " training_episode_batch = upload_training_episode_batch(data_sources, episode_lengths, episode_rewards, episode_types, initial_reset_timestamps, timestamps, main_seeds, seeds, api_key, env_id=env_id)\n training_episode_batch = upload_training_episode_batch(data_sources, episode_lengths, episode_rewards, episode_types, initial_reset_timestamps, timestamps, api_key, env_id=env_id)\ndef upload_training_episode_batch(data_sources, episode_lengths, episode_rewards, episode_types, initial_reset_timestamps, timestamps, main_seeds, seeds, api_key=None, env_id=None):\ndef upload_training_episode_batch(data_sources, episode_lengths, episode_rewards, episode_types, initial_reset_timestamps, timestamps, api_key=None, env_id=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openai/gym/commit/71bb5f85630318dd4fbe30a94c9b1a2cf506608a", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": "def upload_training_episode_batch(data_sources, episode_lengths, episode_rewards, episode_types, initial_reset_timestamps, timestamps, main_seeds, seeds, api_key=None, env_id=None):\ndef upload_training_episode_batch(data_sources, episode_lengths, episode_rewards, episode_types, initial_reset_timestamps, timestamps, api_key=None, env_id=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openai/gym/commit/71bb5f85630318dd4fbe30a94c9b1a2cf506608a", "target_edit_idx": 13, "propagatable_edit_idx": [ 12 ] }, { "input": "from gym import spaces\nfrom gym import Env, spaces\nfrom gym import spaces\nfrom gym import Env, spaces\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openai/gym/commit/5372d34b37bf500b0017bef4b234849c937c1529", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "class PredictActionsCartpoleEnv(CartPoleEnv):\nclass PredictActionsCartpoleEnv(Env):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/openai/gym/commit/5372d34b37bf500b0017bef4b234849c937c1529", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " observation, reward, done, info = super(PredictActionsCartpoleEnv, self)._step(current_action)\n observation, reward, done, info = self.cartpole._step(current_action)\n observation, reward, done, info = super(PredictObsCartpoleEnv, self)._step(current_action)\n observation, reward, done, info = self.cartpole._step(current_action)\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openai/gym/commit/5372d34b37bf500b0017bef4b234849c937c1529", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " observation = super(PredictActionsCartpoleEnv, self)._reset()\n observation = self.cartpole._reset()\n observation = super(PredictObsCartpoleEnv, self)._reset()\n observation = self.cartpole._reset()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openai/gym/commit/5372d34b37bf500b0017bef4b234849c937c1529", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": "class PredictObsCartpoleEnv(CartPoleEnv):\nclass PredictObsCartpoleEnv(Env):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/openai/gym/commit/5372d34b37bf500b0017bef4b234849c937c1529", "target_edit_idx": 6, "propagatable_edit_idx": [ 1 ] }, { "input": " id='HumanoidStandup-v1',\n id='HumanoidStandup-v0',\n id='HumanoidStandup-v1',\n id='HumanoidStandup-v0',\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openai/gym/commit/eb8a9baaa3f756077ef393c8e3774a4b6bc6cc9a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " if 'max_elems_per_comm' in all_state_dict[0]:\n max_elems_per_comm = all_state_dict[0]['max_elems_per_comm'][group_idx]\n else:\n max_elems_per_comm = self.legacy_max_elements_per_comm\n max_elems_per_comm = self.max_elems_per_comm[group_idx]\n if 'max_elems_per_comm' in state_dict_list[0]:\n max_elems_per_comm = state_dict_list[0]['max_elems_per_comm'][group_idx]\n else:\n max_elems_per_comm = self.legacy_max_elements_per_comm\n max_elems_per_comm = self.max_elems_per_comm[group_idx]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/DeepSpeed/commit/dce054dbba525ec2fd59e7a5d2e06a190d133498", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " num_differnt_global_patterns = get_scalar_param(\n num_different_global_patterns = get_scalar_param(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/DeepSpeed/commit/a64b0abbcc8fb0be18b6572982e95641a6871e01", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " SPARSE_NUM_DIFFERENT_GLOBAL_PATTERNS: num_differnt_global_patterns\n SPARSE_NUM_DIFFERENT_GLOBAL_PATTERNS: num_different_global_patterns\n num_differnt_global_patterns = get_scalar_param(\n num_different_global_patterns = get_scalar_param(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/DeepSpeed/commit/a64b0abbcc8fb0be18b6572982e95641a6871e01", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " *Also note that ``unsafe_allow_html`` is a temporary measure and may\n be removed from Streamlit at any time.*\n\n If you decide to turn on HTML anyway, we ask you to please tell us\n your exact use case here:\n\n https://discuss.streamlit.io/t/96\n\n This will help us come up with safe APIs that allow you to do what\n you want.\n\n **Also note that `unsafe_allow_html` is a temporary measure and may be\n removed from Streamlit at any time.**\n\n If you decide to turn on HTML anyway, we ask you to please tell us your\n exact use case here:\n https://discuss.streamlit.io/t/96 .\n\n This will help us come up with safe APIs that allow you to do what you\n want.\n\n **Also note that `unsafe_allow_html` is a temporary measure and may be\n removed from Streamlit at any time.**\n\n If you decide to turn on HTML anyway, we ask you to please tell us your\n exact use case here:\n https://discuss.streamlit.io/t/96 .\n\n This will help us come up with safe APIs that allow you to do what you\n want.\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/streamlit/streamlit/commit/8b3c2de932321515ae438889a67437424a6e5320", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "def _read_from_cache(key, persisted, ignore_hash, func_or_code, caller_frame):\ndef _read_from_cache(key, persisted, ignore_hash, func_or_code, message_opts):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/streamlit/streamlit/commit/19cd970a49515096945d958e42ddea5be3583769", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " persisted, func_or_code, caller_frame)\n persisted, func_or_code, message_opts)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/streamlit/streamlit/commit/19cd970a49515096945d958e42ddea5be3583769", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "\n Parameters\n ----------\n enable_display : bool\n Whether Deltas should be sent to a Proxy (True) or not (False).\n\n Parameters\n ----------\n enable_display : bool\n Whether Deltas should be sent to a Proxy (True) or not (False).\n\n NOTE: The connection will be \"disabled\" by default. To actually\n connect, call set_enabled(True).\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/streamlit/streamlit/commit/1872838c0b8126bb6d00baa03a2bb54a94a32407", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " con = DeltaConnection.get_connection(enable_display=_enable_display)\n con = DeltaConnection.get_connection()\n con.set_enabled(_enable_display)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/streamlit/streamlit/commit/1872838c0b8126bb6d00baa03a2bb54a94a32407", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " DeltaConnection.get_connection(enable_display=_enable_display)\n con = DeltaConnection.get_connection()\n con.set_enabled(_enable_display) con = DeltaConnection.get_connection(enable_display=_enable_display)\n con = DeltaConnection.get_connection()\n con.set_enabled(_enable_display)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/streamlit/streamlit/commit/1872838c0b8126bb6d00baa03a2bb54a94a32407", "target_edit_idx": 11, "propagatable_edit_idx": [ 10 ] }, { "input": " args.hidden_channels + self.embedded_language_dim,\n args.hidden_channels,\n args.hidden_channels + self.embedded_language_dim,\n args.hidden_channels,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/coqui-ai/TTS/commit/87059e3bbba1219b980f0f19eb7302230f2296c8", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_align_tts.py --config_path {config_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tts.py --config_path {config_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_align_tts.py --continue_path {continue_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tts.py --continue_path {continue_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_glow_tts.py --config_path {config_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tts.py --config_path {config_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_glow_tts.py --continue_path {continue_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tts.py --continue_path {continue_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_speedy_speech.py --config_path {config_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tts.py --config_path {config_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_speedy_speech.py --continue_path {continue_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tts.py --continue_path {continue_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tacotron.py --config_path {config_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tts.py --config_path {config_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tacotron.py --continue_path {continue_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tts.py --continue_path {continue_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tacotron.py --config_path {config_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tts.py --config_path {config_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tacotron.py --continue_path {continue_path} \"\n f\"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_tts.py --continue_path {continue_path} \"\n", "class": "clone", "binary_label": 1, "regression_label": 0.9, "commit_url": "https://github.com/coqui-ai/TTS/commit/0c05318e8dc82014c18682a71124dce9daacfef5", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 5, 6, 8, 9, 11, 12, 14 ] }, { "input": " \"--coqpit.datasets.0.meta_file_attn_mask tests/data/ljspeech/metadata_attn_mask.txt\"\n \"--coqpit.datasets.0.meta_file_attn_mask tests/data/ljspeech/metadata_attn_mask.txt \"\n \"--coqpit.test_delay_epochs 0\"\n \"--coqpit.datasets.0.meta_file_attn_mask tests/data/ljspeech/metadata_attn_mask.txt\"\n \"--coqpit.datasets.0.meta_file_attn_mask tests/data/ljspeech/metadata_attn_mask.txt \"\n \"--coqpit.test_delay_epochs 0\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/coqui-ai/TTS/commit/0c05318e8dc82014c18682a71124dce9daacfef5", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "from six.moves import queue\nfrom six.moves import queue\nimport queue\nfrom six.moves import queue\nimport queue\nfrom six.moves import queue\nimport queue\nfrom six.moves import queue\nimport queue\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/c42b080617957030e57a565aa1c28be8b33e7e8e", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 9, 6, 7 ] }, { "input": "from six import string_types\nfrom six import string_types\nfrom six import string_types\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/c42b080617957030e57a565aa1c28be8b33e7e8e", "target_edit_idx": 2, "propagatable_edit_idx": [ 11, 4 ] }, { "input": " config = {\n \"action_space\": kwargs[\"config\"].action_space,\n \"observation_space\": kwargs[\"config\"].observation_space,\n env_config = {\n \"action_space\": config.action_space,\n \"observation_space\": config.observation_space,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/ba18004dc020a9d85526be599baf519d92bd0e37", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " lambda _: (RandomMultiAgentEnv if is_ma else RandomEnv)(config)\n lambda _: (RandomMultiAgentEnv if is_ma else RandomEnv)(env_config)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/ba18004dc020a9d85526be599baf519d92bd0e37", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " assert len(data) == 2\n assert len(result.result) == 2\n assert len(data) == 2\n assert len(result.result) == 2\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ray-project/ray/commit/c9cec443ddc861bed612c0384a06e3f15fc4f3c9", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " trial_config, 0, \"trial_0\", \"trainable\", PlacementGroupFactory([{\"CPU\": 1}])\n trial_config,\n 0,\n \"trial_0\",\n \"trainable\",\n PlacementGroupFactory([{\"CPU\": 1}]),\n \"/tmp\",\n config, 0, \"trial_0\", \"trainable\", PlacementGroupFactory([{\"CPU\": 1}])\n config,\n 0,\n \"trial_0\",\n \"trainable\",\n PlacementGroupFactory([{\"CPU\": 1}]),\n \"/tmp\",\n config, 0, \"trial_0\", \"trainable\", PlacementGroupFactory([{\"CPU\": 1}])\n config,\n 0,\n \"trial_0\",\n \"trainable\",\n PlacementGroupFactory([{\"CPU\": 1}]),\n \"/tmp\",\n trial_config, 0, \"trial_0\", \"trainable\", PlacementGroupFactory([{\"CPU\": 1}])\n trial_config,\n 0,\n \"trial_0\",\n \"trainable\",\n PlacementGroupFactory([{\"CPU\": 1}]),\n \"/tmp\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/f215c8c9887c5b0aa09ba36107391f706c8ddca8", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 7 ] }, { "input": " _scaling_config_allowed_keys = [\n _scaling_config_allowed_keys = Trainer._scaling_config_allowed_keys + [\n _scaling_config_allowed_keys = [\n _scaling_config_allowed_keys = Trainer._scaling_config_allowed_keys + [\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ray-project/ray/commit/d73572dde3871a939e2e396c94f4a54771ec153c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " ray.init(runtime_env=runtime_env)\n ray.init(runtime_env=runtime_env_class(**runtime_env))\n ray.init(runtime_env=runtime_env)\n ray.init(runtime_env=runtime_env_class(**runtime_env))\n ray.init(runtime_env=runtime_env)\n ray.init(runtime_env=runtime_env_class(**runtime_env))\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/ray-project/ray/commit/795b5787dc807bf7c1e3b06d2b3a20983874a818", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "_extensions_beta_api = None\n_networking_api = None\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/a8d8d0e1a6307ee4a92df5a57b69f7379b11187a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "def extensions_beta_api():\n global _extensions_beta_api\n if _extensions_beta_api is None:\ndef networking_api():\n global _networking_api\n if _networking_api is None:\n extensions_beta_api().delete_namespaced_ingress(\n networking_api().delete_namespaced_ingress(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/a8d8d0e1a6307ee4a92df5a57b69f7379b11187a", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " _extensions_beta_api = kubernetes.client.ExtensionsV1beta1Api()\n _networking_api = kubernetes.client.NetworkingV1Api()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/a8d8d0e1a6307ee4a92df5a57b69f7379b11187a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " return _extensions_beta_api\n return _networking_api\n_extensions_beta_api = None\n_networking_api = None\n _extensions_beta_api = kubernetes.client.ExtensionsV1beta1Api()\n _networking_api = kubernetes.client.NetworkingV1Api()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/a8d8d0e1a6307ee4a92df5a57b69f7379b11187a", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " extensions_beta_api().delete_namespaced_ingress(\n networking_api().delete_namespaced_ingress(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/a8d8d0e1a6307ee4a92df5a57b69f7379b11187a", "target_edit_idx": 6, "propagatable_edit_idx": [ 1 ] }, { "input": " min_history=config[\"metrics_smoothing_episodes\"],\n min_history=config[\"metrics_num_episodes_for_smoothing\"],\n min_history=self.config[\"metrics_smoothing_episodes\"],\n min_history=self.config[\"metrics_num_episodes_for_smoothing\"],\n min_history=config[\"metrics_smoothing_episodes\"],\n min_history=config[\"metrics_num_episodes_for_smoothing\"],\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/ray-project/ray/commit/db058d0fb35e712a44fdb59c00f52c7073007dc7", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 7 ] }, { "input": " \"metrics_smoothing_episodes\": 100,\n \"metrics_num_episodes_for_smoothing\": 100,\n \"metrics_smoothing_episodes\": 10,\n \"metrics_num_episodes_for_smoothing\": 10,\n \"metrics_smoothing_episodes\": 5,\n \"metrics_num_episodes_for_smoothing\": 5,\n \"metrics_smoothing_episodes\": 200,\n \"metrics_num_episodes_for_smoothing\": 200,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/db058d0fb35e712a44fdb59c00f52c7073007dc7", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 5, 6 ] }, { "input": " # -- Interval the monitor omits the memory usage information. --\n self.interval_s = interval_s\n # -- Interval the monitor prints the memory usage information. --\n self.print_interval_s = print_interval_s\n # -- Interval the monitor records the memory usage information. --\n self.record_interval_s = record_interval_s\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/ecd5a622ef620a41172cebdf1b5f963174e92ef0", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " worker_class=create_backend_replica(\n backend_tag, replica_config.serialized_backend_def),\n actor_def=ray.remote(\n create_backend_replica(\n backend_tag, replica_config.serialized_backend_def)),\n worker_class=create_backend_replica(\n name, replica_config.serialized_backend_def),\n actor_def=ray.remote(\n create_backend_replica(\n name, replica_config.serialized_backend_def)),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ray-project/ray/commit/cd32a92edc275be82074b8426a24121bcf6bab0f", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " worker_class=existing_info.worker_class,\n actor_def=existing_info.actor_def,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/ray-project/ray/commit/cd32a92edc275be82074b8426a24121bcf6bab0f", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " worker_class=None,\n actor_def=None,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/cd32a92edc275be82074b8426a24121bcf6bab0f", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": " # setting the n_suggestions parameter to >1 enables\n # the evolutionary part of HEBO. For best results,\n # use HEBOSearch with a ConcurrencyLimiter() set up\n # as below\n n_suggestions = 8\n # maximum number of concurrent trials\n max_concurrent = 8\n assert isinstance(n_suggestions, int) and n_suggestions >= 1, (\n \"`n_suggestions` must be an integer and at least 1.\")\n assert isinstance(max_concurrent, int) and max_concurrent >= 1, (\n \"`max_concurrent` must be an integer and at least 1.\")\n self._n_suggestions = n_suggestions\n self._max_concurrent = max_concurrent\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/2002cff42ebbbe873b2c5618e7346142bebf812a", "target_edit_idx": 1, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " self._n_suggestions = n_suggestions\n self._max_concurrent = max_concurrent\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/2002cff42ebbbe873b2c5618e7346142bebf812a", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 11, 13, 6 ] }, { "input": " n_suggestions=self._n_suggestions)\n n_suggestions=self._max_concurrent)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/2002cff42ebbbe873b2c5618e7346142bebf812a", "target_edit_idx": 11, "propagatable_edit_idx": [ 13, 7 ] }, { "input": " self._n_suggestions, self._suggestions_cache,\n self._space, self._hebo_config), f)\n self._max_concurrent, self._suggestions_cache,\n self._space, self._hebo_config, self._batch_filled),\n f)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/2002cff42ebbbe873b2c5618e7346142bebf812a", "target_edit_idx": 13, "propagatable_edit_idx": [ 11, 7 ] }, { "input": " if ignore_version:\n if ignore_version or \"RAY_IGNORE_VERSION_MISMATCH\" in os.environ:\n if ignore_version:\n if ignore_version or \"RAY_IGNORE_VERSION_MISMATCH\" in os.environ:\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/ray-project/ray/commit/4bae0c92285de0be16729411ae5f864cddb31285", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " self.ssh_command_runner.ssh_user, image, file_mounts,\n self.ssh_command_runner.ssh_user, image, cleaned_bind_mounts,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ray-project/ray/commit/4659e24495a7ecfce7add77a29112410b2f74a48", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " for remote, local in file_mounts.items():\n # Ignore ray bootstrap files.\n for remote, local in cleaned_bind_mounts.items():\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ray-project/ray/commit/4659e24495a7ecfce7add77a29112410b2f74a48", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " key_to_delete = None\n for pattern, pair in self.call_response.items():\n key_to_shrink = None\n for pattern, response_list in self.call_response.items():\n if key_to_delete:\n del self.call_response[key_to_delete]\n if key_to_shrink:\n self.call_response[key_to_shrink] = self.call_response[\n key_to_shrink][1:]\n if len(self.call_response[key_to_shrink]) == 0:\n del self.call_response[key_to_shrink]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/4659e24495a7ecfce7add77a29112410b2f74a48", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " if key_to_delete:\n del self.call_response[key_to_delete]\n if key_to_shrink:\n self.call_response[key_to_shrink] = self.call_response[\n key_to_shrink][1:]\n if len(self.call_response[key_to_shrink]) == 0:\n del self.call_response[key_to_shrink]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/ray-project/ray/commit/4659e24495a7ecfce7add77a29112410b2f74a48", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": " process_runner.respond_to_call(\"docker inspect -f\", \"true\")\n process_runner.respond_to_call(\"docker inspect -f\", [\"true\"])\n process_runner.respond_to_call(\"docker inspect -f\", \"true\")\n process_runner.respond_to_call(\"docker inspect -f\", [\"true\"])\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ray-project/ray/commit/4659e24495a7ecfce7add77a29112410b2f74a48", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " self._print(_format_msg(cf.cornflowerBlue(msg), *args, **kwargs))\n self.print(cf.cornflowerBlue(msg), *args, **kwargs)\n self._print(_format_msg(cf.green(msg), *args, **kwargs))\n self.print(cf.green(msg), *args, **kwargs)\n self._print(_format_msg(cf.yellow(msg), *args, **kwargs))\n self.print(cf.yellow(msg), *args, **kwargs)\n self._print(_format_msg(cf.red(msg), *args, **kwargs))\n self.print(cf.red(msg), *args, **kwargs)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/ray-project/ray/commit/eace94d2dc51369dfb204320c9c5fa641cfd54ae", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " cli_logger.error(cf.bold(\"!!! \") + msg, *args, **kwargs)\n cli_logger.error(cf.bold(\"!!! \") + \"{}\", msg, *args, **kwargs)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ray-project/ray/commit/eace94d2dc51369dfb204320c9c5fa641cfd54ae", "target_edit_idx": 2, "propagatable_edit_idx": [ 10 ] }, { "input": " cli_logger.verbose_error(vars(e), _no_format=True)\n cli_logger.error(str(e)) # todo: handle this better somehow?\n cli_logger.verbose_error(\"{}\", str(vars(e)))\n # todo: handle this better somehow?\n cli_logger.error(\"{}\", str(e))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.024390243902439025, "commit_url": "https://github.com/ray-project/ray/commit/eace94d2dc51369dfb204320c9c5fa641cfd54ae", "target_edit_idx": 10, "propagatable_edit_idx": [ 2 ] }, { "input": " self.provider = MockProvider()\n self.provider = MockProvider(default_instance_type=\"m4.large\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.04, "commit_url": "https://github.com/ray-project/ray/commit/82a5ed3fb57a79b956fa224ed4569c85811d1609", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "def averaged(kv):\ndef averaged(kv, axis=None):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ray-project/ray/commit/c9435cad43edc71f12a1a25c38cc27b186bea555", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " with pytest.raises(Exception):\n ray.get(g.remote())\n with pytest.raises(\n Exception, match=\"This function was not imported properly.\"):\n ray.get(g.remote(1, y=2))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0022522522522522522, "commit_url": "https://github.com/ray-project/ray/commit/2f573915954f7722816cb5afce8decfde0dcc04d", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " with pytest.raises(Exception):\n ray.get(foo.get_val.remote())\n with pytest.raises(Exception, match=\"failed to be imported\"):\n ray.get(foo.get_val.remote(1, arg2=2))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0022522522522522522, "commit_url": "https://github.com/ray-project/ray/commit/2f573915954f7722816cb5afce8decfde0dcc04d", "target_edit_idx": 8, "propagatable_edit_idx": [ 4 ] }, { "input": " '--sort', default=None, type=str, help='Select which column to sort on.')\ndef list_trials(experiment_path, sort):\n \"--sort\", default=None, type=str, help=\"Select which column to sort on.\")\n@click.option(\n \"--output\",\n \"-o\",\n default=None,\n type=str,\n help=\"Output information to a pickle file.\")\ndef list_trials(experiment_path, sort, output):\n '--sort', default=None, type=str, help='Select which column to sort on.')\ndef list_experiments(project_path, sort):\n \"--sort\", default=None, type=str, help=\"Select which column to sort on.\")\n@click.option(\n \"--output\",\n \"-o\",\n default=None,\n type=str,\n help=\"Select filename to output information to.\")\ndef list_experiments(project_path, sort, output):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/87bfa1cf82a53fc152cedb9c8bec3a7c73a56f5d", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " if tmux or screen:\n attach_command_parts = [\"ray attach\", cluster_config_file]\n if cluster_name is not None:\n attach_command_parts.append(\n \"--cluster-name={}\".format(cluster_name))\n if tmux:\n attach_command_parts.append(\"--tmux\")\n elif screen:\n attach_command_parts.append(\"--screen\")\n\n attach_command = \" \".join(attach_command_parts)\n attach_info = \"Use `{}` to check on command status.\".format(\n attach_command)\n logger.info(attach_info)\n\n if tmux or screen:\n attach_command_parts = [\"ray attach\", cluster_config_file]\n if cluster_name is not None:\n attach_command_parts.append(\n \"--cluster-name={}\".format(cluster_name))\n if tmux:\n attach_command_parts.append(\"--tmux\")\n elif screen:\n attach_command_parts.append(\"--screen\")\n\n attach_command = \" \".join(attach_command_parts)\n attach_info = \"Use `{}` to check on command status.\".format(\n attach_command)\n logger.info(attach_info)\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/b9eed2e86c2ff0e5568e1558e5c140ea4f9a6a68", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " actors = [Actor1.remote() for _ in range(num_local_schedulers * 2)]\n actors1 = [Actor1.remote() for _ in range(num_local_schedulers * 2)]\n for actor in actors])\n for actor in actors1])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/d0bfc0a849bc2c38ff9a5cb9c1f432b5abe66599", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " for actor in actors])\n for actor in actors1])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/d0bfc0a849bc2c38ff9a5cb9c1f432b5abe66599", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " actors = [Actor2.remote() for _ in range(num_local_schedulers)]\n actors2 = [Actor2.remote() for _ in range(num_local_schedulers)]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/d0bfc0a849bc2c38ff9a5cb9c1f432b5abe66599", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " for actor in actors])\n for actor in actors2])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ray-project/ray/commit/d0bfc0a849bc2c38ff9a5cb9c1f432b5abe66599", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "def server(host=RESTAPI_DEFAULT_ADDRESS, port=RESTAPI_DEFAULT_PORT):\ndef server(host=RESTAPI_DEFAULT_ADDRESS, port=RESTAPI_DEFAULT_PORT, server_name='wsgiref'):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/f5ffd9fa02d024e9994cd683c8bd8fc66f6c3495", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " server(args.host, args.port)\n server(args.host, args.port, server_name=args.servername)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/f5ffd9fa02d024e9994cd683c8bd8fc66f6c3495", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " warnMsg = \"provided parameter '%s' \" % paramStr\n warnMsg += \"is not inside the %s\" % place\n logger.warn(warnMsg)\n debugMsg = \"provided parameter '%s' \" % paramStr\n debugMsg += \"is not inside the %s\" % place\n logger.debug(debugMsg)\n warnMsg = \"provided parameter '%s' \" % parameter\n warnMsg += \"is not inside the %s\" % place\n logger.warn(warnMsg)\n debugMsg = \"provided parameter '%s' \" % parameter\n debugMsg += \"is not inside the %s\" % place\n logger.debug(debugMsg)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.17647058823529413, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/6c0054bc5fa57e1b48210d8e6956e5fdaf6d9bd3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " warnMsg = \"provided parameter '%s' \" % parameter\n warnMsg += \"is not inside the %s\" % place\n logger.warn(warnMsg)\n debugMsg = \"provided parameter '%s' \" % parameter\n debugMsg += \"is not inside the %s\" % place\n logger.debug(debugMsg)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.17647058823529413, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/6c0054bc5fa57e1b48210d8e6956e5fdaf6d9bd3", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " def unionWriteFile(self, localFile, remoteFile, fileType):\n def unionWriteFile(self, localFile, remoteFile, fileType, forceCheck=False):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/d42d28392a3ff02dfed84961b96d0b19a997315b", "target_edit_idx": 10, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " newValue = newValue.replace(CUSTOM_INJECTION_MARK_CHAR, ASTERISK_MARKER)\n newValue = newValue.replace(CUSTOM_INJECTION_MARK_CHAR, REPLACEMENT_MARKER)\n retVal = retVal.replace(CUSTOM_INJECTION_MARK_CHAR, \"\").replace(ASTERISK_MARKER, CUSTOM_INJECTION_MARK_CHAR)\n retVal = retVal.replace(CUSTOM_INJECTION_MARK_CHAR, \"\").replace(REPLACEMENT_MARKER, CUSTOM_INJECTION_MARK_CHAR)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/d78a3e977b78c682c53df357286ce05bb3b7e333", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " retVal = retVal.replace(CUSTOM_INJECTION_MARK_CHAR, \"\").replace(ASTERISK_MARKER, CUSTOM_INJECTION_MARK_CHAR)\n retVal = retVal.replace(CUSTOM_INJECTION_MARK_CHAR, \"\").replace(REPLACEMENT_MARKER, CUSTOM_INJECTION_MARK_CHAR)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/d78a3e977b78c682c53df357286ce05bb3b7e333", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "class htmlHandler(ContentHandler):\nclass HTMLHandler(ContentHandler):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/003d21e962b09deefef4844d4f621752450a47f6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " handler = htmlHandler(page)\n handler = HTMLHandler(page)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/003d21e962b09deefef4844d4f621752450a47f6", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "class Abstraction(Web, UDF, xp_cmdshell):\nclass Abstraction(Web, UDF, Xp_cmdshell):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/003d21e962b09deefef4844d4f621752450a47f6", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " xp_cmdshell.__init__(self)\n Xp_cmdshell.__init__(self)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/003d21e962b09deefef4844d4f621752450a47f6", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4, 6 ] }, { "input": "class xp_cmdshell:\nclass Xp_cmdshell:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/003d21e962b09deefef4844d4f621752450a47f6", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " self.cleanup()\n self.cleanup(web=web)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/6f6cd676b79ec348396682b4b7beb525ee233646", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " if payload[i] == '%' and (i < len(payload) - 2) and payload[i+1] in string.hexdigits and payload[i+2] in string.hexdigits:\n if payload[i] == '%' and (i < len(payload) - 2) and payload[i+1:i+2] in string.hexdigits and payload[i+2:i+3] in string.hexdigits:\n if payload[i] == '%' and (i < len(payload) - 2) and payload[i+1] in string.hexdigits and payload[i+2] in string.hexdigits:\n if payload[i] == '%' and (i < len(payload) - 2) and payload[i+1:i+2] in string.hexdigits and payload[i+2:i+3] in string.hexdigits:\n if payload[i] == '%' and (i < len(payload) - 2) and payload[i+1] in string.hexdigits and payload[i+2] in string.hexdigits:\n if payload[i] == '%' and (i < len(payload) - 2) and payload[i+1:i+2] in string.hexdigits and payload[i+2:i+3] in string.hexdigits:\n if payload[i] == '%' and (i < len(payload) - 2) and payload[i+1] in string.hexdigits and payload[i+2] in string.hexdigits:\n if payload[i] == '%' and (i < len(payload) - 2) and payload[i+1:i+2] in string.hexdigits and payload[i+2:i+3] in string.hexdigits:\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/50144756376a51205d46c23d679b7e47fbea1965", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " kb.retriesCount = 0\n threadData.retriesCount = 0\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.003669724770642202, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/a64407d9db5796d48420ab6b199ae26df59b2494", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " elif kb.retriesCount < conf.retries and not kb.threadException and not conf.realTest:\n kb.retriesCount += 1\n elif threadData.retriesCount < conf.retries and not kb.threadException and not conf.realTest:\n threadData.retriesCount += 1\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.001834862385321101, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/a64407d9db5796d48420ab6b199ae26df59b2494", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "from lib.core.settings import NON_CONTROL_CHAR_REGEX\nfrom lib.core.settings import NON_PRINTABLE_CHAR_REGEX\n return filterStringValue(value, NON_CONTROL_CHAR_REGEX, ' ')\n return filterStringValue(value, NON_PRINTABLE_CHAR_REGEX, ' ')\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/c193b896be3e1390972f39ac172e143959bedde8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return filterStringValue(value, NON_CONTROL_CHAR_REGEX, ' ')\n return filterStringValue(value, NON_PRINTABLE_CHAR_REGEX, ' ')\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/c193b896be3e1390972f39ac172e143959bedde8", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " fstPayload = agent.cleanupPayload(test.request.payload)\n fstPayload = agent.cleanupPayload(test.request.payload, value)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/283a04e29a8f1febd4bfff5b178f9e5449f45fc1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " boundPayload = agent.cleanupPayload(boundPayload)\n boundPayload = agent.cleanupPayload(boundPayload, value)\n fstPayload = agent.cleanupPayload(test.request.payload)\n fstPayload = agent.cleanupPayload(test.request.payload, value)\n check = agent.cleanupPayload(check)\n check = agent.cleanupPayload(check, value)\n sndPayload = agent.cleanupPayload(test.response.comparison)\n sndPayload = agent.cleanupPayload(test.response.comparison, value)\n boundPayload = agent.cleanupPayload(boundPayload)\n boundPayload = agent.cleanupPayload(boundPayload, value)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/283a04e29a8f1febd4bfff5b178f9e5449f45fc1", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": " check = agent.cleanupPayload(check)\n check = agent.cleanupPayload(check, value)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/283a04e29a8f1febd4bfff5b178f9e5449f45fc1", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": " sndPayload = agent.cleanupPayload(test.response.comparison)\n sndPayload = agent.cleanupPayload(test.response.comparison, value)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/283a04e29a8f1febd4bfff5b178f9e5449f45fc1", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4 ] }, { "input": " boundPayload = agent.cleanupPayload(boundPayload)\n boundPayload = agent.cleanupPayload(boundPayload, value)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/283a04e29a8f1febd4bfff5b178f9e5449f45fc1", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " inject.goStacked(\"DROP TABLE %s\" % tblName)\n inject.goStacked(\"DROP TABLE %s\" % tblName, silent=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06818181818181818, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/a0df231aa478f3ea1c5e458decde0ad816478771", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " inject.goStacked(\"DROP TABLE %s\" % self.fileTblName)\n inject.goStacked(\"DROP TABLE %s\" % self.fileTblName, silent=True)\n inject.goStacked(\"DROP TABLE %s\" % tblName)\n inject.goStacked(\"DROP TABLE %s\" % tblName, silent=True)\n inject.goStacked(\"DROP TABLE %s\" % self.cmdTblName)\n inject.goStacked(\"DROP TABLE %s\" % self.cmdTblName, silent=True)\n inject.goStacked(dropStr)\n inject.goStacked(dropStr, silent=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06818181818181818, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/a0df231aa478f3ea1c5e458decde0ad816478771", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5 ] }, { "input": " inject.goStacked(\"DROP TABLE %s\" % self.cmdTblName)\n inject.goStacked(\"DROP TABLE %s\" % self.cmdTblName, silent=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06818181818181818, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/a0df231aa478f3ea1c5e458decde0ad816478771", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": " inject.goStacked(dropStr)\n inject.goStacked(dropStr, silent=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06818181818181818, "commit_url": "https://github.com/sqlmapproject/sqlmap/commit/a0df231aa478f3ea1c5e458decde0ad816478771", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " self.raw_cf = fopen(self.fn).readlines()\n self.raw_cf = open(self.fn).readlines()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/certbot/certbot/commit/b50a71ff4e0b95dd9e491ea89bf2ce1bb1cd7bd6", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " with fopen(self.fn, \"w\") as f:\n with open(self.fn, \"w\") as f:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/certbot/certbot/commit/b50a71ff4e0b95dd9e491ea89bf2ce1bb1cd7bd6", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 5 ] }, { "input": " with fopen(self.policy_file, \"w\") as f:\n with open(self.policy_file, \"w\") as f:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/certbot/certbot/commit/b50a71ff4e0b95dd9e491ea89bf2ce1bb1cd7bd6", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " postfix_config_gen = installer.Installer(\n self.config,\n self.postfix_dir,\n fixup=True,\n fopen=self.fopen_names_only_config\n )\n with mock.patch('certbot_postfix.installer.open') as mock_open:\n mock_open.return_value = six.StringIO(names_only_config)\n postfix_config_gen = installer.Installer(\n self.config,\n self.postfix_dir,\n fixup=True,\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/certbot/certbot/commit/b50a71ff4e0b95dd9e491ea89bf2ce1bb1cd7bd6", "target_edit_idx": 11, "propagatable_edit_idx": [ 12, 13 ] }, { "input": " postfix_config_gen = installer.Installer(\n self.config,\n self.postfix_dir,\n fixup=True,\n fopen=self.fopen_certs_only_config\n )\n with mock.patch('certbot_postfix.installer.open') as mock_open:\n mock_open.return_value = six.StringIO(certs_only_config)\n postfix_config_gen = installer.Installer(\n self.config,\n self.postfix_dir,\n fixup=True,\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/certbot/certbot/commit/b50a71ff4e0b95dd9e491ea89bf2ce1bb1cd7bd6", "target_edit_idx": 12, "propagatable_edit_idx": [ 11, 13 ] }, { "input": " postfix_config_gen = installer.Installer(\n self.config,\n self.postfix_dir,\n fixup=True,\n fopen=self.fopen_no_certs_only_config\n )\n with mock.patch('certbot_postfix.installer.open') as mock_open:\n mock_open.return_value = six.StringIO(names_only_config)\n postfix_config_gen = installer.Installer(\n self.config,\n self.postfix_dir,\n fixup=True,\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/certbot/certbot/commit/b50a71ff4e0b95dd9e491ea89bf2ce1bb1cd7bd6", "target_edit_idx": 13, "propagatable_edit_idx": [ 11, 12 ] }, { "input": " server = self.servers.run(self.config.http01_port, challenges.HTTP01)\n port = self.config.http01_port\n addr = self.config.http01_address\n server = self.servers.run(port, challenges.HTTP01, listenaddr=addr)\n server = self.servers.run(port, challenges.TLSSNI01)\n addr = self.config.tls_sni_01_address\n server = self.servers.run(port, challenges.TLSSNI01, listenaddr=addr)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/certbot/certbot/commit/6f98987c128504ad08110b07a2db8004414987a6", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " server = self.servers.run(port, challenges.TLSSNI01)\n addr = self.config.tls_sni_01_address\n server = self.servers.run(port, challenges.TLSSNI01, listenaddr=addr)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/certbot/certbot/commit/6f98987c128504ad08110b07a2db8004414987a6", "target_edit_idx": 11, "propagatable_edit_idx": [ 10 ] }, { "input": " def notification(self, message, pause=True):\n def notification(self, message, pause=True, wrap=True):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/certbot/certbot/commit/2b229d4b9dacadcf8f4f084e1dd4c7c7dae3f73c", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " message = _wrap_lines(message)\n if wrap:\n message = _wrap_lines(message)\n message = _wrap_lines(message)\n if wrap:\n message = _wrap_lines(message)\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/certbot/certbot/commit/2b229d4b9dacadcf8f4f084e1dd4c7c7dae3f73c", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " def notification(self, message, pause=False):\n def notification(self, message, pause=False, wrap=True):\n def notification(self, message, pause=True):\n def notification(self, message, pause=True, wrap=True):\n def notification(message, pause):\n def notification(message, pause, wrap=True):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/certbot/certbot/commit/2b229d4b9dacadcf8f4f084e1dd4c7c7dae3f73c", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 6 ] }, { "input": "class ManualAuthenticator(common.Plugin):\nclass Authenticator(common.Plugin):\n super(ManualAuthenticator, self).__init__(*args, **kwargs)\n super(Authenticator, self).__init__(*args, **kwargs)\n from letsencrypt.plugins.manual import ManualAuthenticator\n from letsencrypt.plugins.manual import Authenticator\n self.auth = ManualAuthenticator(config=self.config, name=\"manual\")\n self.auth = Authenticator(config=self.config, name=\"manual\")\n self.auth_test_mode = ManualAuthenticator(\n self.auth_test_mode = Authenticator(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/certbot/certbot/commit/e7cbdc4f9a0e021b385a8eb1869a21011d5e7840", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": " super(ManualAuthenticator, self).__init__(*args, **kwargs)\n super(Authenticator, self).__init__(*args, **kwargs)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/certbot/certbot/commit/e7cbdc4f9a0e021b385a8eb1869a21011d5e7840", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 5 ] }, { "input": " from letsencrypt.plugins.manual import ManualAuthenticator\n from letsencrypt.plugins.manual import Authenticator\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/certbot/certbot/commit/e7cbdc4f9a0e021b385a8eb1869a21011d5e7840", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 4, 5 ] }, { "input": "class Authenticator(common.Plugin):\nclass ManualAuthenticator(common.Plugin):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/certbot/certbot/commit/6f1b1570b13d9e41dceaca909ebf417469609ee7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": " self.auth = Authenticator(config=self.config, name=\"manual\")\n self.auth = ManualAuthenticator(config=self.config, name=\"manual\")\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/certbot/certbot/commit/6f1b1570b13d9e41dceaca909ebf417469609ee7", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3, 5 ] }, { "input": " self.auth_test_mode = Authenticator(\n self.auth_test_mode = ManualAuthenticator(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/certbot/certbot/commit/6f1b1570b13d9e41dceaca909ebf417469609ee7", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": " image_key: str = 'image',\n input_key: str = 'image',\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/pytorch-image-models/commit/34c9fee55497027b95a068b49314d17156f28e4f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " self.dataset = self.dataset.cast_column(image_key, datasets.Image(decode=False))\n self.dataset = self.dataset.cast_column(input_key, datasets.Image(decode=False))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/pytorch-image-models/commit/34c9fee55497027b95a068b49314d17156f28e4f", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " self.image_key = image_key\n self.image_key = input_key\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/pytorch-image-models/commit/34c9fee55497027b95a068b49314d17156f28e4f", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " learned_token: bool = False,\n class_token: bool = False,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/pytorch-image-models/commit/57adc1acc8153583711068e2d1ff3e845891d0bc", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " if learned_token:\n self.token = nn.Parameter(torch.zeros(1, embed_dim))\n if class_token:\n self.cls_token = nn.Parameter(torch.zeros(1, embed_dim))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/pytorch-image-models/commit/57adc1acc8153583711068e2d1ff3e845891d0bc", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " #head_hidden_size=512,\n #head_hidden_size=640,\n #head_hidden_size=768,\n #head_hidden_size=1024,\n", "class": "clone", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/huggingface/pytorch-image-models/commit/57adc1acc8153583711068e2d1ff3e845891d0bc", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11, 12 ] }, { "input": "func decOpFor(typ reflect.Type) decOp {\n// Return the decoding op for the base type under rt and\n// the indirection count to reach it.\nfunc decOpFor(rt reflect.Type) (decOp, int) {\n\ttyp, indir := indirect(rt);\nfunc encOpFor(typ reflect.Type) encOp {\n// Return the encoding op for the base type under rt and\n// the indirection count to reach it.\nfunc encOpFor(rt reflect.Type) (encOp, int) {\n\ttyp, indir := indirect(rt);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/golang/go/commit/0ae7882b5c31991b8e9c2971c733f456ceec1d68", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\telemOp := decOpFor(t.Elem());\n\t\t\t_, elemIndir := indirect(t.Elem());\n\t\t\telemOp, elemIndir := decOpFor(t.Elem());\n\t\t\telemOp := encOpFor(t.Elem());\n\t\t\t_, indir := indirect(t.Elem());\n\t\t\telemOp, indir := encOpFor(t.Elem());\n\t\t\telemOp := decOpFor(t.Elem());\n\t\t\t_, elemIndir := indirect(t.Elem());\n\t\t\telemOp, elemIndir := decOpFor(t.Elem());\n\t\t\telemOp := encOpFor(t.Elem());\n\t\t\t_, indir := indirect(t.Elem());\n\t\t\telemOp, indir := encOpFor(t.Elem());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/golang/go/commit/0ae7882b5c31991b8e9c2971c733f456ceec1d68", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 2, 10 ] }, { "input": "\t\tpanicln(\"decode can't handle type\", typ.String());\n\t\tpanicln(\"decode can't handle type\", rt.String());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/golang/go/commit/0ae7882b5c31991b8e9c2971c733f456ceec1d68", "target_edit_idx": 3, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\tpanicln(\"encode can't handle type\", typ.String());\n\t\tpanicln(\"encode can't handle type\", rt.String());\n\t\tpanicln(\"decode can't handle type\", typ.String());\n\t\tpanicln(\"decode can't handle type\", rt.String());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/golang/go/commit/0ae7882b5c31991b8e9c2971c733f456ceec1d68", "target_edit_idx": 11, "propagatable_edit_idx": [ 3 ] }, { "input": "\ttz, err := os.Getenv(\"TZ\");\n\ttz, err := os.Getenverror(\"TZ\");\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/golang/go/commit/d330c712c12397f50261ca30666b5cb35383a33d", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 12, 7 ] }, { "input": "\tga, e0 := os.Getenv(\"GOARCH\");\n\tga, e0 := os.Getenverror(\"GOARCH\");\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.058823529411764705, "commit_url": "https://github.com/golang/go/commit/d330c712c12397f50261ca30666b5cb35383a33d", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 12, 7 ] }, { "input": "\txxx, e1 := os.Getenv(\"DOES_NOT_EXIST\");\n\txxx, e1 := os.Getenverror(\"DOES_NOT_EXIST\");\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.058823529411764705, "commit_url": "https://github.com/golang/go/commit/d330c712c12397f50261ca30666b5cb35383a33d", "target_edit_idx": 12, "propagatable_edit_idx": [ 10, 11, 7 ] }, { "input": "// Readn reads r until the buffer buf is full, or until EOF or error.\nfunc Readn(r Read, buf []byte) (n int, err os.Error) {\n// FullRead reads r until the buffer buf is full, or until EOF or error.\nfunc FullRead(r Read, buf []byte) (n int, err os.Error) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/golang/go/commit/7e1cfa74321335358e56d58986900fe6c26587d8", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 6, 8, 9, 10, 11 ] }, { "input": "\tn, err = Readn(fr.r, p);\n\tn, err = FullRead(fr.r, p);\n\tn, err1 := io.Readn(cmd.Stdout, &buf);\n\tn, err1 := io.FullRead(cmd.Stdout, &buf);\n\tn, err1 := io.Readn(cmd.Stdout, &buf);\n\tn, err1 := io.FullRead(cmd.Stdout, &buf);\n\t\tn, err := io.Readn(f, &buf);\n\t\tn, err := io.FullRead(f, &buf);\n// Readn reads r until the buffer buf is full, or until EOF or error.\nfunc Readn(r Read, buf []byte) (n int, err os.Error) {\n// FullRead reads r until the buffer buf is full, or until EOF or error.\nfunc FullRead(r Read, buf []byte) (n int, err os.Error) {\n\tn, err = io.Readn(fd, buf);\n\tn, err = io.FullRead(fd, buf);\n\t\tn, err := io.Readn(f.file, f.data[ln:cap(f.data)]);\n\t\tn, err := io.FullRead(f.file, f.data[ln:cap(f.data)]);\n\tn, err1 := io.Readn(f, p);\n\tn, err1 := io.FullRead(f, p);\n\tn, err1 := IO.Readn(f, &buf);\n\tn, err1 := IO.FullRead(f, &buf);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/golang/go/commit/7e1cfa74321335358e56d58986900fe6c26587d8", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 4, 8, 9, 10, 11 ] }, { "input": "\t\tfd.dirinfo = new(DirInfo);\n\t\tfd.dirinfo = new(dirInfo);\n\t\tfd.dirinfo = new(DirInfo);\n\t\tfd.dirinfo = new(dirInfo);\ntype DirInfo struct {\t// TODO(r): 6g bug means this can't be private\ntype dirInfo struct {\t// TODO(r): 6g bug means this can't be private\n\tdirinfo\t*DirInfo;\t// nil unless directory being read\n\tdirinfo\t*dirInfo;\t// nil unless directory being read\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/golang/go/commit/0c4010a74725e789321f86895403bbeddd11cb14", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\t\tfd.dirinfo = new(DirInfo);\n\t\tfd.dirinfo = new(dirInfo);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/golang/go/commit/0c4010a74725e789321f86895403bbeddd11cb14", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": "type DirInfo struct {\t// TODO(r): 6g bug means this can't be private\ntype dirInfo struct {\t// TODO(r): 6g bug means this can't be private\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/golang/go/commit/0c4010a74725e789321f86895403bbeddd11cb14", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\tfor i := 0; i < m; i++ { c, z[i] = Split(x[i] + y[i] + c); }\n\tfor i := m; i < n; i++ { c, z[i] = Split(x[i] + c); }\n\tfor i := 0; i < m; i++ { c, z[i] = Split(c + x[i] + y[i]); }\n\tfor i := m; i < n; i++ { c, z[i] = Split(c + x[i]); }\n\tfor i := 0; i < m; i++ { c, z[i] = Split(x[i] - y[i] + c); } // TODO verify asr!!!\n\tfor i := m; i < n; i++ { c, z[i] = Split(x[i] + c); }\n\tfor i := 0; i < m; i++ {\n\t\tt := c + x[i] - y[i];\n\t\tc, z[i] = Digit(int64(t)>>L), t&M; // arithmetic shift!\n\t}\n\tfor i := m; i < n; i++ {\n\t\tt := c + x[i];\n\t\tc, z[i] = Digit(int64(t)>>L), t&M; // arithmetic shift!\n\t}\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/golang/go/commit/00dc6e9678fe300c966ac360beb0f7f4e756584e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\terr := wait.PollImmediate(time.Second, 10*time.Second, func() (bool, error) {\n\terr := wait.PollUntilContextTimeout(context.Background(), time.Second, 30*time.Second, true, func(ctx context.Context) (bool, error) {\n\n\terr := wait.PollImmediate(time.Second, 10*time.Second, func() (bool, error) {\n\t\tvar err error\n\tvar err error\n\terr = wait.PollUntilContextTimeout(context.Background(), time.Second, 30*time.Second, true, func(ctx context.Context) (bool, error) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/fc07c23b73e33668b61a66c0032433c84322c8f2", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\tgoruntime \"runtime\"\n\tgoruntime \"runtime\"\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/e90cfb83ed0cfed05f63ecf453fa21e36ae270d0", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": "\tif goruntime.GOOS == \"windows\" {\n\t\t// TODO: remove skip once the failing test has been fixed.\n\t\tt.Skip(\"Skip failing test on Windows.\")\n\t}\n\tif goruntime.GOOS == \"windows\" {\n\t\t// TODO: remove skip once the failing test has been fixed.\n\t\tt.Skip(\"Skip failing test on Windows.\")\n\t}\n\tif goruntime.GOOS == \"windows\" {\n\t\t// TODO: remove skip once the failing test has been fixed.\n\t\tt.Skip(\"Skip failing test on Windows.\")\n\t}\n\tif goruntime.GOOS == \"windows\" {\n\t\t// TODO: remove skip once the failing test has been fixed.\n\t\tt.Skip(\"Skip failing test on Windows.\")\n\t}\n\tif goruntime.GOOS == \"windows\" {\n\t\t// TODO: remove skip once the failing test has been fixed.\n\t\tt.Skip(\"Skip failing test on Windows.\")\n\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/e90cfb83ed0cfed05f63ecf453fa21e36ae270d0", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 10, 5, 6 ] }, { "input": "\t\texpect: \"/src/prj\",\n\t\texpect: filepath.Clean(\"/src/prj\"),\n\t\texpect: \"/src/prj\",\n\t\texpect: filepath.Clean(\"/src/prj\"),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/e90cfb83ed0cfed05f63ecf453fa21e36ae270d0", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\texpectChanged: false,\n\t\t\texpectChanged: true,\n\t\t\texpectChanged: false,\n\t\t\texpectChanged: true,\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/f956fdf240cfcc52f0d9f73f4843227de1d4d1f6", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\texpectedAddresses: []v1.NodeAddress{},\n\t\t\tshouldError: false,\n\t\t\texpectedAddresses: []v1.NodeAddress{\n\t\t\t\t{Type: v1.NodeHostName, Address: testKubeletHostname},\n\t\t\t},\n\t\t\tshouldError: false,\n\t\t\texpectedAddresses: []v1.NodeAddress{},\n\t\t\tshouldError: false,\n\t\t\texpectedAddresses: []v1.NodeAddress{\n\t\t\t\t{Type: v1.NodeHostName, Address: testKubeletHostname},\n\t\t\t},\n\t\t\tshouldError: false,\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/30972710bd83496e221fde247e8e2a9f50893ff2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\tfor _, inputDir := range arguments.InputDirs {\n\t\tp := context.Universe.Package(inputDir)\n\tfor _, inputPkg := range context.Inputs {\n\t\tp := context.Universe.Package(inputPkg)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/299b0453070000ef7c389b9ff5a695f6ab11b8be", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\t\tinternalcfg, err := getInternalCfg(flags.cfgPath, flags.kubeconfigPath, flags.cfg, out, \"renew\")\n\t\t\t\tclient, _ := kubeconfigutil.ClientSetFromFile(flags.kubeconfigPath)\n\t\t\t\tinternalcfg, err := getInternalCfg(flags.cfgPath, client, flags.cfg, &output.TextPrinter{}, \"renew\")\n\t\t\tinternalcfg, err := getInternalCfg(flags.cfgPath, flags.kubeconfigPath, flags.cfg, out, \"renew\")\n\t\t\tclient, _ := kubeconfigutil.ClientSetFromFile(flags.kubeconfigPath)\n\t\t\tinternalcfg, err := getInternalCfg(flags.cfgPath, client, flags.cfg, &output.TextPrinter{}, \"renew\")\n\t\t\tinternalcfg, err := getInternalCfg(flags.cfgPath, flags.kubeconfigPath, flags.cfg, out, \"check-expiration\")\n\t\t\tclient, _ := clientSetFromFile(flags.kubeconfigPath)\n\t\t\tinternalcfg, err := getInternalCfg(flags.cfgPath, client, flags.cfg, printer, \"check-expiration\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kubernetes/kubernetes/commit/98437cb4be6aea662fc32901c88e8397d1b0dff5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 10 ] }, { "input": "\t\t\t\treturn fmt.Errorf(\"looking up PVC %s/%s: %v\", pod.Namespace, pvcName, err)\n\t\t\t\treturn fmt.Errorf(\"looking up PVC %s/%s: %w\", pod.Namespace, pvcName, err)\n\t\t\t\treturn fmt.Errorf(\"looking up PVC %s/%s: %v\", pod.Namespace, pvcName, err)\n\t\t\t\treturn fmt.Errorf(\"looking up PVC %s/%s: %w\", pod.Namespace, pvcName, err)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/bf1b3a161b8114a634c259190b0e5688db4f3674", "target_edit_idx": 3, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\t\twantStatus: framework.AsStatus(errors.New(`looking up PVC test/abc-xyz: persistentvolumeclaims \"abc-xyz\" not found`)),\n\t\t\twantStatus: framework.NewStatus(framework.UnschedulableAndUnresolvable, `looking up PVC test/abc-xyz: persistentvolumeclaims \"abc-xyz\" not found`),\n\t\t\twantStatus: framework.AsStatus(errors.New(`looking up PVC test/abc-xyz: persistentvolumeclaims \"abc-xyz\" not found`)),\n\t\t\twantStatus: framework.NewStatus(framework.UnschedulableAndUnresolvable, `looking up PVC test/abc-xyz: persistentvolumeclaims \"abc-xyz\" not found`),\n\t\t\twantStatus: framework.AsStatus(errors.New(`looking up PVC test/abc-xyz: persistentvolumeclaims \"abc-xyz\" not found`)),\n\t\t\twantStatus: framework.NewStatus(framework.UnschedulableAndUnresolvable, `looking up PVC test/abc-xyz: persistentvolumeclaims \"abc-xyz\" not found`),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/bf1b3a161b8114a634c259190b0e5688db4f3674", "target_edit_idx": 4, "propagatable_edit_idx": [ 10, 5 ] }, { "input": "func attachVolumeToNode(nodes *v1.NodeList, volumeName, nodeName string) {\nfunc attachVolumeToNode(nodes *v1.NodeList, volumeName, nodeName string, inUse bool) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/854347ac818970c6cc4a1d6a954b55509b9624d5", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": "\tliveObjTyped, err := f.typeConverter.ObjectToTyped(liveObjVersioned)\n\n\tliveObjTyped, err := f.typeConverter.ObjectToTyped(liveObjVersioned, typed.AllowDuplicates)\n\tnewObjTyped, err := f.typeConverter.ObjectToTyped(newObjVersioned)\n\tnewObjTyped, err := f.typeConverter.ObjectToTyped(newObjVersioned, typed.AllowDuplicates)\n\tliveObjTyped, err := f.typeConverter.ObjectToTyped(liveObjVersioned)\n\tliveObjTyped, err := f.typeConverter.ObjectToTyped(liveObjVersioned, typed.AllowDuplicates)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9d1847c1963bd9e3b5cf6fe7fb44f2e700a95774", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "func (c *typeConverter) ObjectToTyped(obj runtime.Object) (*typed.TypedValue, error) {\nfunc (c *typeConverter) ObjectToTyped(obj runtime.Object, opts ...typed.ValidationOptions) (*typed.TypedValue, error) {\nfunc (deducedTypeConverter) ObjectToTyped(obj runtime.Object) (*typed.TypedValue, error) {\nfunc (deducedTypeConverter) ObjectToTyped(obj runtime.Object, opts ...typed.ValidationOptions) (*typed.TypedValue, error) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9d1847c1963bd9e3b5cf6fe7fb44f2e700a95774", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\t\texpErr: fmt.Errorf(\"not enough cpus available to satisfy request\"),\n\t\t\texpErr: fmt.Errorf(\"not enough cpus available to satisfy request: requested=8, available=7\"),\n\t\t\texpErr: fmt.Errorf(\"not enough cpus available to satisfy request\"),\n\t\t\texpErr: fmt.Errorf(\"not enough cpus available to satisfy request: requested=10, available=8\"),\n\t\t\texpErr: fmt.Errorf(\"not enough cpus available to satisfy request\"),\n\t\t\texpErr: fmt.Errorf(\"not enough cpus available to satisfy request: requested=2, available=1\"),\n\t\t\texpErr: fmt.Errorf(\"not enough cpus available to satisfy request\"),\n\t\t\texpErr: fmt.Errorf(\"not enough cpus available to satisfy request: requested=76, available=7\"),\n\t\t\texpErr: fmt.Errorf(\"not enough cpus available to satisfy request\"),\n\t\t\texpErr: fmt.Errorf(\"not enough cpus available to satisfy request: requested=8, available=7\"),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/d4a5a085a84b3d2c3853b589787e25faec33e380", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": "\t\t\tssErr: true,\n\t\t\tdsErr: true,\n\t\t\tfatal: false,\n\t\t\tssErr: true,\n\t\t\tssFatal: false,\n\t\t\tdsErr: true,\n\t\t\tdsFatal: false,\n\t\t\tssErr: true,\n\t\t\tdsErr: true,\n\t\t\tfatal: true,\n\t\t\tssErr: true,\n\t\t\tssFatal: true,\n\t\t\tdsErr: true,\n\t\t\tdsFatal: false,\n\t\t\tssErr: true,\n\t\t\tdsErr: true,\n\t\t\tfatal: false,\n\t\t\tssErr: true,\n\t\t\tssFatal: false,\n\t\t\tdsErr: true,\n\t\t\tdsFatal: false,\n\t\t\tssErr: true,\n\t\t\tdsErr: true,\n\t\t\tfatal: true,\n\t\t\tssErr: true,\n\t\t\tssFatal: true,\n\t\t\tdsErr: true,\n\t\t\tdsFatal: true,\n\t\t\tssErr: true,\n\t\t\tdsErr: true,\n\t\t\tfatal: false,\n\t\t\tssErr: true,\n\t\t\tssFatal: false,\n\t\t\tdsErr: true,\n\t\t\tdsFatal: false,\n\t\t\tssErr: true,\n\t\t\tdsErr: false,\n\t\t\tfatal: false,\n\t\t\tssErr: true,\n\t\t\tssFatal: false,\n\t\t\tdsErr: false,\n\t\t\tssErr: true,\n\t\t\tdsErr: false,\n\t\t\tfatal: false,\n\t\t\tssErr: true,\n\t\t\tssFatal: false,\n\t\t\tdsErr: false,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b2f0052d27aa096499bcdd88c426eddfa67a6ef8", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8 ] }, { "input": "\t\tin, out := &in.XValidations, &out.XValidations\n\t\t*out = make([]ValidationRule, len(*in))\n\t\tcopy(*out, *in)\n\t\tinValidations, outValidations := &in.XValidations, &out.XValidations\n\t\t*outValidations = make([]ValidationRule, len(*inValidations))\n\t\tfor i := range *inValidations {\n\t\t\tin.XValidations[i].DeepCopyInto(&out.XValidations[i])\n\t\t}\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/c97eb2b5cb053c967826f5f16a0e0119b6957792", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "\t\tin, out := &in.XValidations, &out.XValidations\n\t\t*out = make([]ValidationRule, len(*in))\n\t\tcopy(*out, *in)\n\t\tinValidations, outValidations := &in.XValidations, &out.XValidations\n\t\t*outValidations = make([]ValidationRule, len(*inValidations))\n\t\tfor i := range *inValidations {\n\t\t\tin.XValidations[i].DeepCopyInto(&out.XValidations[i])\n\t\t}\n\t\tin, out := &in.XValidations, &out.XValidations\n\t\t*out = make([]ValidationRule, len(*in))\n\t\tcopy(*out, *in)\n\t\tinValidations, outValidations := &in.XValidations, &out.XValidations\n\t\t*outValidations = make([]ValidationRule, len(*inValidations))\n\t\tfor i := range *inValidations {\n\t\t\tin.XValidations[i].DeepCopyInto(&out.XValidations[i])\n\t\t}\n\t\tin, out := &in.XValidations, &out.XValidations\n\t\t*out = make([]ValidationRule, len(*in))\n\t\tcopy(*out, *in)\n\t\tinValidations, outValidations := &in.XValidations, &out.XValidations\n\t\t*outValidations = make([]ValidationRule, len(*inValidations))\n\t\tfor i := range *inValidations {\n\t\t\tin.XValidations[i].DeepCopyInto(&out.XValidations[i])\n\t\t}\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/c97eb2b5cb053c967826f5f16a0e0119b6957792", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "\t\t\tDropDisabledFields(tc.newSpec, tc.oldSpec)\n\t\t\tDropDisabledSpecFields(tc.newSpec, tc.oldSpec)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a31fee98f093e3e74ad170ea3d18aa92c725fa43", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": "\tpvutil.DropDisabledFields(&pv.Spec, nil)\n\tpvutil.DropDisabledSpecFields(&pv.Spec, nil)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a31fee98f093e3e74ad170ea3d18aa92c725fa43", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": "\tpvutil.DropDisabledFields(&newPv.Spec, &oldPv.Spec)\n\tpvutil.DropDisabledSpecFields(&newPv.Spec, &oldPv.Spec)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a31fee98f093e3e74ad170ea3d18aa92c725fa43", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\treturn loadConfig(logger, data)\n\treturn LoadConfig(logger, data)\nfunc loadConfig(logger klog.Logger, data []byte) (*config.KubeSchedulerConfiguration, error) {\nfunc LoadConfig(logger klog.Logger, data []byte) (*config.KubeSchedulerConfiguration, error) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8e284389a5d1650c662917329471250c586a2868", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "func loadConfig(logger klog.Logger, data []byte) (*config.KubeSchedulerConfiguration, error) {\nfunc LoadConfig(logger klog.Logger, data []byte) (*config.KubeSchedulerConfiguration, error) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8e284389a5d1650c662917329471250c586a2868", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tMasterCount: 5,\n\t\tMasterCount: 5,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/36e458612a9b7a3c42967b200cac152aee6ab622", "target_edit_idx": 3, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\t\t\tMasterCount: 0,\n\t\t\t\tMasterCount: 1,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/36e458612a9b7a3c42967b200cac152aee6ab622", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\tnames.ServiceController,\n\t\tnames.RouteController,\n\t\tnames.CloudNodeLifecycleController,\n\t\tcpnames.ServiceLBController,\n\t\tcpnames.NodeRouteController,\n\t\tcpnames.CloudNodeLifecycleController,\n\t\tregister(names.ServiceController, startServiceController)\n\t\tregister(names.RouteController, startRouteController)\n\t\tregister(names.CloudNodeLifecycleController, startCloudNodeLifecycleController)\n\t\tregister(cpnames.ServiceLBController, startServiceController)\n\t\tregister(cpnames.NodeRouteController, startRouteController)\n\t\tregister(cpnames.CloudNodeLifecycleController, startCloudNodeLifecycleController)\n\ts.ServiceController.AddFlags(fss.FlagSet(names.ServiceController))\n\ts.ServiceController.AddFlags(fss.FlagSet(cpnames.ServiceLBController))\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4e6a3fb9c1025fe24a5bd851f26c44454fc2d705", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 5 ] }, { "input": "\ts.ServiceController.AddFlags(fss.FlagSet(names.ServiceController))\n\ts.ServiceController.AddFlags(fss.FlagSet(cpnames.ServiceLBController))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.10344827586206896, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4e6a3fb9c1025fe24a5bd851f26c44454fc2d705", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "func ProbeControllerVolumePlugins(logger klog.Logger, cloud cloudprovider.Interface, config persistentvolumeconfig.VolumeConfiguration) ([]volume.VolumePlugin, error) {\nfunc ProbeControllerVolumePlugins(logger klog.Logger, config persistentvolumeconfig.VolumeConfiguration) ([]volume.VolumePlugin, error) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/07a1aea2defd8e30202ea60115bfb17cf8c6bc60", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t\t\t\tname: \"test-reflector\",\n\t\t\t\t\tlisterWatcher: lw,\n\t\t\t\t\tstore: NewFIFO(MetaNamespaceKeyFunc),\n\t\t\t\t\tinitConnBackoffManager: bm,\n\t\t\t\t\tclock: fakeClock,\n\t\t\t\t\twatchErrorHandler: WatchErrorHandler(DefaultWatchErrorHandler),\n\t\t\t\t\tname: \"test-reflector\",\n\t\t\t\t\tlisterWatcher: lw,\n\t\t\t\t\tstore: NewFIFO(MetaNamespaceKeyFunc),\n\t\t\t\t\tbackoffManager: bm,\n\t\t\t\t\tclock: fakeClock,\n\t\t\t\t\twatchErrorHandler: WatchErrorHandler(DefaultWatchErrorHandler),\n\t\tname: \"test-reflector\",\n\t\tlisterWatcher: lw,\n\t\tstore: NewFIFO(MetaNamespaceKeyFunc),\n\t\tinitConnBackoffManager: bm,\n\t\tclock: clock,\n\t\twatchErrorHandler: WatchErrorHandler(DefaultWatchErrorHandler),\n\t\tname: \"test-reflector\",\n\t\tlisterWatcher: lw,\n\t\tstore: NewFIFO(MetaNamespaceKeyFunc),\n\t\tbackoffManager: bm,\n\t\tclock: clock,\n\t\twatchErrorHandler: WatchErrorHandler(DefaultWatchErrorHandler),\n\t\t\tname: \"test-reflector\",\n\t\t\tlisterWatcher: lw,\n\t\t\tstore: NewFIFO(MetaNamespaceKeyFunc),\n\t\t\tinitConnBackoffManager: bm,\n\t\t\tclock: fakeClock,\n\t\t\twatchErrorHandler: WatchErrorHandler(DefaultWatchErrorHandler),\n\t\t\tname: \"test-reflector\",\n\t\t\tlisterWatcher: lw,\n\t\t\tstore: NewFIFO(MetaNamespaceKeyFunc),\n\t\t\tbackoffManager: bm,\n\t\t\tclock: fakeClock,\n\t\t\twatchErrorHandler: WatchErrorHandler(DefaultWatchErrorHandler),\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/337728b02559dec8a613fdef174f732da9cae310", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\tdiscoveryv1beta1 \"k8s.io/api/discovery/v1beta1\"\n\tdiscoveryv1beta1 \"k8s.io/api/discovery/v1beta1\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/da922f0af676cac310c661ee1efc5ecc6751c168", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\ttestItStmt: \"Should test that pv used in a pod that is deleted while the kubelet is down is usable by a new pod when kubelet returns [Feature:SELinux][Feature:SELinuxMountReadWriteOncePod].\",\n\t\t\ttestItStmt: \"Should test that pv used in a pod that is deleted while the kubelet is down is usable by a new pod when kubelet returns [Feature:SELinux].\",\n\t\t\ttestItStmt: \"Should test that pv used in a pod that is force deleted while the kubelet is down is usable by a new pod with a different SELinux context when kubelet returns [Feature:SELinux][Feature:SELinuxMountReadWriteOncePod].\",\n\t\t\ttestItStmt: \"Should test that pv used in a pod that is force deleted while the kubelet is down is usable by a new pod with a different SELinux context when kubelet returns [Feature:SELinux].\",\n\t\t\ttestItStmt: \"Should test that pv used in a pod that is force deleted while the kubelet is down is usable by a new pod when kubelet returns [Feature:SELinux][Feature:SELinuxMountReadWriteOncePod].\",\n\t\t\ttestItStmt: \"Should test that pv used in a pod that is force deleted while the kubelet is down is usable by a new pod when kubelet returns [Feature:SELinux].\",\n\t\t\ttestItStmt: \"Should test that pv used in a pod that is deleted while the kubelet is down is usable by a new pod with a different SELinux context when kubelet returns [Feature:SELinux][Feature:SELinuxMountReadWriteOncePod].\",\n\t\t\ttestItStmt: \"Should test that pv used in a pod that is deleted while the kubelet is down is usable by a new pod with a different SELinux context when kubelet returns [Feature:SELinux].\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a84dc2d5c5c6aa2b79b0520deada2297f5294463", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": "\t\t\tmetrics.ReconstructedVolumesErrorsTotal.Inc()\n\t\t\tmetrics.ReconstructVolumeOperationsErrorsTotal.Inc()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9ca548fcf0885a9e30ff1fff4f034c6b8563b76f", "target_edit_idx": 10, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tif test.err {\n\t\t\t\trequire.Error(t, err)\n\t\t\tif test.err != nil {\n\t\t\t\tassert.True(t, reflect.DeepEqual(test.err, err))\n\t\t\tif test.err {\n\t\t\t\trequire.Error(t, err)\n\t\t\tif test.err != nil {\n\t\t\t\tassert.True(t, reflect.DeepEqual(test.err, err))\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/dc83af0b44bd6432dea3ccd29a77ca3a0b6122a2", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\terr := e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, f.Timeouts.PodStart, map[string]string{})\n\t\terr := e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, f.Timeouts.PodStart)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8181818181818182, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4d63e7d4d6d63109a3555c1011fe3b6c89bd2be6", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 10, 11, 12, 13, 14 ] }, { "input": "\t\terr := e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, f.Timeouts.PodStart, map[string]string{})\n\t\terr := e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, f.Timeouts.PodStart)\n\t\t\terr := e2epod.WaitForPodsRunningReady(ctx, c, metav1.NamespaceSystem, systemPodsNo, 0, framework.PodReadyBeforeTimeout, map[string]string{})\n\t\t\terr := e2epod.WaitForPodsRunningReady(ctx, c, metav1.NamespaceSystem, systemPodsNo, 0, framework.PodReadyBeforeTimeout)\n\t\t\t\terr := e2epod.WaitForPodsRunningReady(ctx, c, metav1.NamespaceSystem, systemPodsNo, 0, framework.PodReadyBeforeTimeout, map[string]string{})\n\t\t\t\terr := e2epod.WaitForPodsRunningReady(ctx, c, metav1.NamespaceSystem, systemPodsNo, 0, framework.PodReadyBeforeTimeout)\n\t\terr := e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, f.Timeouts.PodStart, map[string]string{})\n\t\terr := e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, f.Timeouts.PodStart)\n\t\terr := e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 3, 0, f.Timeouts.PodStart, nil)\n\t\terr := e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 3, 0, f.Timeouts.PodStart)\n\tif err := e2epod.WaitForPodsRunningReady(ctx, c, metav1.NamespaceSystem, int32(framework.TestContext.MinStartupPods), int32(framework.TestContext.AllowedNotReadyNodes), timeouts.SystemPodsStartup, map[string]string{}); err != nil {\n\tif err := e2epod.WaitForPodsRunningReady(ctx, c, metav1.NamespaceSystem, int32(framework.TestContext.MinStartupPods), int32(framework.TestContext.AllowedNotReadyNodes), timeouts.SystemPodsStartup); err != nil {\n\t\terr = e2epod.WaitForPodsRunningReady(ctx, cs, metav1.NamespaceSystem, int32(systemPodsNo), 0, framework.PodReadyBeforeTimeout, map[string]string{})\n\t\terr = e2epod.WaitForPodsRunningReady(ctx, cs, metav1.NamespaceSystem, int32(systemPodsNo), 0, framework.PodReadyBeforeTimeout)\n\t\te2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, timeout, make(map[string]string))\n\t\te2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, timeout)\n\t\te2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, 3*time.Minute, make(map[string]string))\n\t\te2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, 3*time.Minute)\n\t\t\t\terr = e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 10, 0, timeout, make(map[string]string))\n\t\t\t\terr = e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 10, 0, timeout)\n\t\t\t\terr = e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 3, 0, timeout, make(map[string]string))\n\t\t\t\terr = e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 3, 0, timeout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8181818181818182, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4d63e7d4d6d63109a3555c1011fe3b6c89bd2be6", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 10, 11, 12, 13, 14 ] }, { "input": "\t\terr := e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 3, 0, f.Timeouts.PodStart, nil)\n\t\terr := e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 3, 0, f.Timeouts.PodStart)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8181818181818182, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4d63e7d4d6d63109a3555c1011fe3b6c89bd2be6", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 10, 11, 12, 13, 14 ] }, { "input": "\tif err := e2epod.WaitForPodsRunningReady(ctx, c, metav1.NamespaceSystem, int32(framework.TestContext.MinStartupPods), int32(framework.TestContext.AllowedNotReadyNodes), timeouts.SystemPodsStartup, map[string]string{}); err != nil {\n\tif err := e2epod.WaitForPodsRunningReady(ctx, c, metav1.NamespaceSystem, int32(framework.TestContext.MinStartupPods), int32(framework.TestContext.AllowedNotReadyNodes), timeouts.SystemPodsStartup); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8181818181818182, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4d63e7d4d6d63109a3555c1011fe3b6c89bd2be6", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 10, 11, 12, 13, 14 ] }, { "input": "\t\terr = e2epod.WaitForPodsRunningReady(ctx, cs, metav1.NamespaceSystem, int32(systemPodsNo), 0, framework.PodReadyBeforeTimeout, map[string]string{})\n\t\terr = e2epod.WaitForPodsRunningReady(ctx, cs, metav1.NamespaceSystem, int32(systemPodsNo), 0, framework.PodReadyBeforeTimeout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8181818181818182, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4d63e7d4d6d63109a3555c1011fe3b6c89bd2be6", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 11, 12, 13, 14 ] }, { "input": "\t\t\t\terr = e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 10, 0, timeout, make(map[string]string))\n\t\t\t\terr = e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 10, 0, timeout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8181818181818182, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4d63e7d4d6d63109a3555c1011fe3b6c89bd2be6", "target_edit_idx": 13, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 10, 11, 12, 14 ] }, { "input": "\t\t\t\terr = e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 3, 0, timeout, make(map[string]string))\n\t\t\t\terr = e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 3, 0, timeout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8181818181818182, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4d63e7d4d6d63109a3555c1011fe3b6c89bd2be6", "target_edit_idx": 14, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 10, 11, 12, 13 ] }, { "input": "\t\te2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, timeout, make(map[string]string))\n\t\te2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, timeout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8181818181818182, "commit_url": "https://github.com/kubernetes/kubernetes/commit/3ebab68c8a8819a6d6c869485455175110dc0333", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 10, 12, 13, 14 ] }, { "input": "\t\te2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, 3*time.Minute, make(map[string]string))\n\t\te2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 0, 3*time.Minute)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8181818181818182, "commit_url": "https://github.com/kubernetes/kubernetes/commit/3ebab68c8a8819a6d6c869485455175110dc0333", "target_edit_idx": 12, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 10, 11, 13, 14 ] }, { "input": "\tApi() api.DevicePluginClient\n\tAPI() api.DevicePluginClient\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5494b30ce5ac3a161d1a52abbcfa9dd349fedfad", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\t\t\tfor _, devId := range devlist {\n\t\t\tfor _, devID := range devlist {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5494b30ce5ac3a161d1a52abbcfa9dd349fedfad", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 5, 6, 7 ] }, { "input": "\t\t\t\t\tif pDev, ok := devicePluginMap[devId]; ok && pDev.Topology != nil {\n\t\t\t\t\tif pDev, ok := devicePluginMap[devID]; ok && pDev.Topology != nil {\n\t\t\trequire.Equal(t, devId, dev[0], \"Can't find device %s in result\", dev[0])\n\t\t\trequire.Equal(t, devID, dev[0], \"Can't find device %s in result\", dev[0])\n\t\t\tfor _, devId := range devlist {\n\t\t\tfor _, devID := range devlist {\n\t\t\t\tdevicePluginMap[devId] = pluginapi.Device{\n\t\t\t\tdevicePluginMap[devID] = pluginapi.Device{\n\tfor devId, plugInfo := range contDevices {\n\tfor devID, plugInfo := range contDevices {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5494b30ce5ac3a161d1a52abbcfa9dd349fedfad", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 4, 6, 7 ] }, { "input": "\t\t\t\tdevicePluginMap[devId] = pluginapi.Device{\n\t\t\t\tdevicePluginMap[devID] = pluginapi.Device{\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5494b30ce5ac3a161d1a52abbcfa9dd349fedfad", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 4, 5, 7 ] }, { "input": "\tfor devId, plugInfo := range contDevices {\n\tfor devID, plugInfo := range contDevices {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5494b30ce5ac3a161d1a52abbcfa9dd349fedfad", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 4, 5, 6 ] }, { "input": "\t\t\trequire.Equal(t, devId, dev[0], \"Can't find device %s in result\", dev[0])\n\t\t\trequire.Equal(t, devID, dev[0], \"Can't find device %s in result\", dev[0])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5494b30ce5ac3a161d1a52abbcfa9dd349fedfad", "target_edit_idx": 8, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": "func parseNonCpuResourceToInt64(res string) int64 {\nfunc parseNonCPUResourceToInt64(res string) int64 {\n\t\t\tquantity: parseNonCpuResourceToInt64(fmt.Sprintf(\"%dMi\", memory)),\n\t\t\tquantity: parseNonCPUResourceToInt64(fmt.Sprintf(\"%dMi\", memory)),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5494b30ce5ac3a161d1a52abbcfa9dd349fedfad", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\t\tquantity: parseNonCpuResourceToInt64(fmt.Sprintf(\"%dMi\", memory)),\n\t\t\tquantity: parseNonCPUResourceToInt64(fmt.Sprintf(\"%dMi\", memory)),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5494b30ce5ac3a161d1a52abbcfa9dd349fedfad", "target_edit_idx": 13, "propagatable_edit_idx": [ 12 ] }, { "input": "\treadOnlyObserver: fcmetrics.ReadWriteConcurrencyPairVec.NewForLabelValuesSafe(1, 1, []string{metrics.ReadOnlyKind}).RequestsExecuting,\n\tmutatingObserver: fcmetrics.ReadWriteConcurrencyPairVec.NewForLabelValuesSafe(1, 1, []string{metrics.MutatingKind}).RequestsExecuting,\n\treadOnlyObserver: fcmetrics.ReadWriteConcurrencyGaugeVec.NewForLabelValuesSafe(0, 1, []string{fcmetrics.LabelValueExecuting, metrics.ReadOnlyKind}),\n\tmutatingObserver: fcmetrics.ReadWriteConcurrencyGaugeVec.NewForLabelValuesSafe(0, 1, []string{fcmetrics.LabelValueExecuting, metrics.MutatingKind}),\n\treadOnlyObserver: fcmetrics.ReadWriteConcurrencyPairVec.NewForLabelValuesSafe(1, 1, []string{epmetrics.ReadOnlyKind}).RequestsWaiting,\n\tmutatingObserver: fcmetrics.ReadWriteConcurrencyPairVec.NewForLabelValuesSafe(1, 1, []string{epmetrics.MutatingKind}).RequestsWaiting,\n\treadOnlyObserver: fcmetrics.ReadWriteConcurrencyGaugeVec.NewForLabelValuesSafe(0, 1, []string{fcmetrics.LabelValueWaiting, epmetrics.ReadOnlyKind}),\n\tmutatingObserver: fcmetrics.ReadWriteConcurrencyGaugeVec.NewForLabelValuesSafe(0, 1, []string{fcmetrics.LabelValueWaiting, epmetrics.MutatingKind}),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/cd33c7cf2260b351dd345497223a944e80bc7b61", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tlabelNamePhase = \"phase\"\n\tlabelValueWaiting = \"waiting\"\n\tlabelValueExecuting = \"executing\"\n\tLabelNamePhase = \"phase\"\n\tLabelValueWaiting = \"waiting\"\n\tLabelValueExecuting = \"executing\"\n\t\turVec: NewSampleAndWaterMarkHistogramsVec(clock, samplePeriod, sampleOpts, waterMarkOpts, append([]string{labelNamePhase}, labelNames...)),\n\t\turVec: NewSampleAndWaterMarkHistogramsVec(clock, samplePeriod, sampleOpts, waterMarkOpts, append([]string{LabelNamePhase}, labelNames...)),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/cd33c7cf2260b351dd345497223a944e80bc7b61", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\turVec: NewSampleAndWaterMarkHistogramsVec(clock, samplePeriod, sampleOpts, waterMarkOpts, append([]string{labelNamePhase}, labelNames...)),\n\t\turVec: NewSampleAndWaterMarkHistogramsVec(clock, samplePeriod, sampleOpts, waterMarkOpts, append([]string{LabelNamePhase}, labelNames...)),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/cd33c7cf2260b351dd345497223a944e80bc7b61", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": ":KUBE-XLB-XPGD46QRK7WJZT7O - [0:0]\n:KUBE-XLB-XPGD46QRK7WJZT7O - [0:0]\n", "class": "clone", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/kubernetes/kubernetes/commit/37ada4b04f4a21daf0e3628c63226531b51ee6bf", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\tRegisterWatch(requestInfo *request.RequestInfo) ForgetWatchFunc\n\tRegisterWatch(r *http.Request) ForgetWatchFunc\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.008064516129032258, "commit_url": "https://github.com/kubernetes/kubernetes/commit/12746f4bc15458d585ffd4c6e9d6066810e27361", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 8, 4, 7 ] }, { "input": "func (w *watchTracker) RegisterWatch(requestInfo *request.RequestInfo) ForgetWatchFunc {\n\tif requestInfo == nil || requestInfo.Verb != \"watch\" {\nfunc (w *watchTracker) RegisterWatch(r *http.Request) ForgetWatchFunc {\n\trequestInfo, ok := request.RequestInfoFrom(r.Context())\n\tif !ok || requestInfo == nil || requestInfo.Verb != \"watch\" {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.014925373134328358, "commit_url": "https://github.com/kubernetes/kubernetes/commit/12746f4bc15458d585ffd4c6e9d6066810e27361", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 8, 3, 7 ] }, { "input": "\t\t\tforget := watchTracker.RegisterWatch(requestInfo)\n\t\t\tforget := watchTracker.RegisterWatch(r)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/12746f4bc15458d585ffd4c6e9d6066810e27361", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 8, 3, 4 ] }, { "input": "\t\tif forget := watchTracker.RegisterWatch(requestInfo); forget == nil {\n\t\tr := req.WithContext(request.WithRequestInfo(context.Background(), requestInfo))\n\t\tif forget := watchTracker.RegisterWatch(r); forget == nil {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/12746f4bc15458d585ffd4c6e9d6066810e27361", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 3, 4, 7 ] }, { "input": "// resources matches the request, and (d) least one member of\n// namespaces matches the request.\n// resources matches the request, and (d) either (d1) the request does\n// not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is\n// true or (d2) the request specifies a namespace and least one member\n// of namespaces matches the request's namespace.\n// resources matches the request, and (d) least one member of\n// namespaces matches the request.\n// resources matches the request, and (d) either (d1) the request does\n// not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is\n// true or (d2) the request specifies a namespace and least one member\n// of namespaces matches the request's namespace.\n// resources matches the request, and (d) least one member of\n// namespaces matches the request.\n// resources matches the request, and (d) either (d1) the request does\n// not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is\n// true or (d2) the request specifies a namespace and least one member\n// of namespaces matches the request's namespace.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/6c7c1cea6fd34980c89032fbfc21b8654e7738ab", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\t[]string{\"namespace\", \"code\"},\n\t\t[]string{\"code\"},\n\t\t[]string{\"namespace\", \"code\"},\n\t\t[]string{\"code\"},\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b67bd722a9000e70968ba03b0f80df94ee6cca48", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "root_ca_cert_publisher_sync_total{code=\"200\",namespace=\"test-ns\"} 1\nroot_ca_cert_publisher_sync_total{code=\"200\"} 1\nroot_ca_cert_publisher_sync_total{code=\"404\",namespace=\"test-ns\"} 1\nroot_ca_cert_publisher_sync_total{code=\"404\"} 1\nroot_ca_cert_publisher_sync_total{code=\"500\",namespace=\"test-ns\"} 1\nroot_ca_cert_publisher_sync_total{code=\"500\"} 1\nroot_ca_cert_publisher_sync_total{code=\"500\",namespace=\"test-ns\"} 1\nroot_ca_cert_publisher_sync_total{code=\"500\"} 1\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b67bd722a9000e70968ba03b0f80df94ee6cca48", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": "\t\t\trecordMetrics(time.Now(), \"test-ns\", tc.err)\n\t\t\trecordMetrics(time.Now(), tc.err)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b67bd722a9000e70968ba03b0f80df94ee6cca48", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 2 ] }, { "input": "\t\trecordMetrics(startTime, ns, err)\n\t\trecordMetrics(startTime, err)\n\t\t\trecordMetrics(time.Now(), \"test-ns\", tc.err)\n\t\t\trecordMetrics(time.Now(), tc.err)\nfunc recordMetrics(start time.Time, ns string, err error) {\nfunc recordMetrics(start time.Time, err error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b67bd722a9000e70968ba03b0f80df94ee6cca48", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 2 ] }, { "input": "// NewGenericREST returns a RESTStorage object that will work against services.\nfunc NewGenericREST(\n// NewREST returns a RESTStorage object that will work against services.\nfunc NewREST(\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/kubernetes/kubernetes/commit/245a654decd5c3f9d3af338d9ca6ae930f5c8869", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\tserviceStorage, statusStorage, _, err := NewGenericREST(restOptions, ipFamilies[0], ipAllocs, portAlloc, endpointsStorage, podStorage.Pod, nil)\n\tserviceStorage, statusStorage, _, err := NewREST(restOptions, ipFamilies[0], ipAllocs, portAlloc, endpointsStorage, podStorage.Pod, nil)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/245a654decd5c3f9d3af338d9ca6ae930f5c8869", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "func MakeMountArgsSensitive(source, target, fstype string, options []string, sensitiveOptions []string, mountFlags []string) (mountArgs []string, mountArgsLogStr string) {\nfunc MakeMountArgsSensitive(source, target, fstype string, options []string, sensitiveOptions []string) (mountArgs []string, mountArgsLogStr string) {\n\treturn MakeMountArgsSensitiveWithMountFlags(source, target, fstype, options, sensitiveOptions, nil /* mountFlags */)\n}\n\n// MakeMountArgsSensitiveWithMountFlags makes the arguments to the mount(8) command.\n// sensitiveOptions is an extension of options except they will not be logged (because they may contain sensitive material)\n// mountFlags are additional mount flags that are not related with the fstype\n// and mount options\nfunc MakeMountArgsSensitiveWithMountFlags(source, target, fstype string, options []string, sensitiveOptions []string, mountFlags []string) (mountArgs []string, mountArgsLogStr string) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/08bec6da0fcf418f351f86c113620edc7be1849c", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\tpreconditions *storage.Preconditions, tryUpdate storage.UpdateFunc, suggestion runtime.Object) error {\n\tpreconditions *storage.Preconditions, tryUpdate storage.UpdateFunc, cachedExistingObject runtime.Object) error {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/d0726e4b1354b1c8c3978b96ab7b01d13a2b6340", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 14 ] }, { "input": "\t\t\tif !mustCheckData {\n\t\t\tif origStateIsCurrent {\n\t\t\tif !mustCheckData {\n\t\t\tif origStateIsCurrent {\n\t\t\tif mustCheckData {\n\t\t\tif !origStateIsCurrent {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/d0726e4b1354b1c8c3978b96ab7b01d13a2b6340", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 10 ] }, { "input": "\t\t\tmustCheckData = false\n\t\t\torigStateIsCurrent = true\n\t\t\tmustCheckData = false\n\t\t\torigStateIsCurrent = true\n\t\t\t\tmustCheckData = false\n\t\t\t\torigStateIsCurrent = true\n\t\t\tmustCheckData = false\n\t\t\torigStateIsCurrent = true\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/d0726e4b1354b1c8c3978b96ab7b01d13a2b6340", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 11, 12 ] }, { "input": "\t\t\t\tfmt.Sprintf(\"%s=%s\", vers, defaultVers)},\n\t\t\t\tfmt.Sprintf(\"%s=%s\", vers, defaultVers),\n\t\t\t\tfmt.Sprintf(\"%s=%s\", actimeo, defaultActimeo),\n\t\t\t\tmfsymlinks,\n\t\t\t},\n\t\t\t\tfmt.Sprintf(\"%s=%s\", vers, defaultVers)},\n\t\t\t\tfmt.Sprintf(\"%s=%s\", vers, defaultVers),\n\t\t\t\tfmt.Sprintf(\"%s=%s\", actimeo, defaultActimeo),\n\t\t\t\tmfsymlinks,\n\t\t\t},\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/kubernetes/kubernetes/commit/ff110654e912040cb55396c743c610996bb3b674", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\texistedDisk: compute.Disk{Name: to.StringPtr(\"disk1\"), DiskProperties: &compute.DiskProperties{DiskSizeGB: &diskSizeGB}},\n\t\t\texistedDisk: compute.Disk{Name: to.StringPtr(\"disk1\"), DiskProperties: &compute.DiskProperties{DiskSizeGB: &diskSizeGB, DiskState: compute.Unattached}},\n\t\t\texistedDisk: compute.Disk{Name: to.StringPtr(\"disk1\"), DiskProperties: &compute.DiskProperties{DiskSizeGB: &diskSizeGB}},\n\t\t\texistedDisk: compute.Disk{Name: to.StringPtr(\"disk1\"), DiskProperties: &compute.DiskProperties{DiskSizeGB: &diskSizeGB, DiskState: compute.Unattached}},\n\t\t\texistedDisk: compute.Disk{Name: to.StringPtr(fakeGetDiskFailed), DiskProperties: &compute.DiskProperties{DiskSizeGB: &diskSizeGB}},\n\t\t\texistedDisk: compute.Disk{Name: to.StringPtr(fakeGetDiskFailed), DiskProperties: &compute.DiskProperties{DiskSizeGB: &diskSizeGB, DiskState: compute.Unattached}},\n\t\t\texistedDisk: compute.Disk{Name: to.StringPtr(fakeCreateDiskFailed), DiskProperties: &compute.DiskProperties{DiskSizeGB: &diskSizeGB}},\n\t\t\texistedDisk: compute.Disk{Name: to.StringPtr(fakeCreateDiskFailed), DiskProperties: &compute.DiskProperties{DiskSizeGB: &diskSizeGB, DiskState: compute.Unattached}},\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/0d38026687cb3f5dbed87563804f0bb0bcee8ad0", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "\t\t{\"?verbose\", \"[+]ping ok\\n[-]bad failed: reason withheld\\nhealthz check failed\\n\", http.StatusInternalServerError, true},\n\t\t{\"?verbose\", fmt.Sprintf(\"[+]ping ok\\n[-]bad failed: reason withheld\\n%s check failed\\n\", name), http.StatusInternalServerError, true},\n\t\t{\"\", \"[+]ping ok\\n[-]bad failed: reason withheld\\nhealthz check failed\\n\", http.StatusInternalServerError, true},\n\t\t{\"\", fmt.Sprintf(\"[+]ping ok\\n[-]bad failed: reason withheld\\n%s check failed\\n\", name), http.StatusInternalServerError, true},\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/480b4c74b858a9caac0b33cb4d9a1ab30ae65cf4", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "\ttestMultipleChecks(\"\", t)\n\ttestMultipleChecks(\"\", \"healthz\", t)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/480b4c74b858a9caac0b33cb4d9a1ab30ae65cf4", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 5 ] }, { "input": "\ttestMultipleChecks(\"/ready\", t)\n\ttestMultipleChecks(\"/ready\", \"ready\", t)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/480b4c74b858a9caac0b33cb4d9a1ab30ae65cf4", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 5 ] }, { "input": "\tkubeletVersion string\n\tkubeletVersion string\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kubernetes/kubernetes/commit/71856675a4c08a43ad1dfbab6c7124b1020788fe", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t[]string{\"major\", \"minor\", \"gitVersion\", \"gitCommit\", \"gitTreeState\", \"buildDate\", \"goVersion\", \"compiler\", \"platform\"},\n\t\t[]string{\"major\", \"minor\", \"git_version\", \"git_commit\", \"git_tree_state\", \"build_date\", \"go_version\", \"compiler\", \"platform\"},\n\t\t[]string{\"major\", \"minor\", \"gitVersion\", \"gitCommit\", \"gitTreeState\", \"buildDate\", \"goVersion\", \"compiler\", \"platform\"},\n\t\t[]string{\"major\", \"minor\", \"git_version\", \"git_commit\", \"git_tree_state\", \"build_date\", \"go_version\", \"compiler\", \"platform\"},\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/1bc5ed4515e7f92a1c40b2edb61b6a355513fb95", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tinformers := testCtx.InformerFactory\n\tinformers := testCtx.InformerFactory\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/fc11871c6110ae8d453f7e7fdc073415c6443ef7", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tinformers.Start(testCtx.Ctx.Done())\n\t\t\tinformers.WaitForCacheSync(testCtx.Ctx.Done())\n\t\t\ttestCtx.InformerFactory.Start(testCtx.Ctx.Done())\n\t\t\ttestCtx.InformerFactory.WaitForCacheSync(testCtx.Ctx.Done())\n\tinformers.Start(testCtx.Ctx.Done())\n\tinformers.WaitForCacheSync(testCtx.Ctx.Done())\n\ttestCtx.InformerFactory.Start(testCtx.Ctx.Done())\n\ttestCtx.InformerFactory.WaitForCacheSync(testCtx.Ctx.Done())\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/kubernetes/kubernetes/commit/fc11871c6110ae8d453f7e7fdc073415c6443ef7", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "// +k8s:prerelease-lifecycle-gen:removed=1.22\n// +k8s:prerelease-lifecycle-gen:removed=1.22\n// +k8s:prerelease-lifecycle-gen:removed=1.22\n// +k8s:prerelease-lifecycle-gen:removed=1.22\n// +k8s:prerelease-lifecycle-gen:removed=1.22\n// +k8s:prerelease-lifecycle-gen:removed=1.25\n// +k8s:prerelease-lifecycle-gen:removed=1.25\n// +k8s:prerelease-lifecycle-gen:removed=1.25\n// +k8s:prerelease-lifecycle-gen:removed=1.25\n", "class": "clone", "binary_label": 1, "regression_label": 0.15555555555555556, "commit_url": "https://github.com/kubernetes/kubernetes/commit/d9d6b5804adb22d158095bfd48940f44ea57a6de", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": "\t\tFailureDomain: failureDomain,\n\t\tRegion: to.String(vm.Location),\n\t\tFailureDomain: strings.ToLower(failureDomain),\n\t\tRegion: strings.ToLower(to.String(vm.Location)),\n\t\tFailureDomain: failureDomain,\n\t\tRegion: to.String(vm.Location),\n\t\tFailureDomain: strings.ToLower(failureDomain),\n\t\tRegion: strings.ToLower(to.String(vm.Location)),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/bdce3fdeb7c2801b1096ab3ab1a750c2d5c40aaa", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tsource.Add(&v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: \"pod1\", UID: \"pod1\"}})\n\tsource.Add(&v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: \"pod2\", UID: \"pod2\"}})\n\tsource.Add(&v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: \"pod1\", UID: \"pod1\", ResourceVersion: \"1\"}})\n\tsource.Add(&v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: \"pod2\", UID: \"pod2\", ResourceVersion: \"2\"}})\n\tsource.AddDropWatch(&v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: \"pod3\", UID: \"pod3\"}})\n\tsource.ModifyDropWatch(&v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: \"pod2\", UID: \"pod2\"}})\n\tsource.AddDropWatch(&v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: \"pod3\", UID: \"pod3\", ResourceVersion: \"3\"}})\n\tsource.ModifyDropWatch(&v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: \"pod2\", UID: \"pod2\", ResourceVersion: \"4\"}})\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a6caa0a4726ba97737056175494516367cf98cae", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t// TODO: Re-enable this test\n\t// fakeexec.FakeCmd supports only combined output.\n\t// Hence .Output() returns a \"not supported\" error and we cannot use it for the test ATM.\n\tt.Skip()\n\n\t// TODO: Re-enable this test\n\t// fakeexec.FakeCmd supports only combined output.\n\t// Hence .Output() returns a \"not supported\" error and we cannot use it for the test ATM.\n\tt.Skip()\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/107db83839c49c4433efe18fadd482919083e30e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tadmissionmetrics.Metrics.ObserveWebhook(time.Since(t), err != nil, versionedAttr.Attributes, \"admit\", hook.Name)\n\t\tignoreClientCallFailures := hook.FailurePolicy != nil && *hook.FailurePolicy == v1beta1.Ignore\n\t\trejected := false\n\t\tif err != nil {\n\t\t\t// ErrCallingWebhook is ignored if the webhook is configured to failopen.\n\t\t\t// Otherwise the request is rejected.\n\t\t\tif _, ok := err.(*webhookutil.ErrCallingWebhook); !ok || !ignoreClientCallFailures {\n\t\t\t\trejected = true\n\t\t\t}\n\t\t}\n\t\tadmissionmetrics.Metrics.ObserveWebhook(time.Since(t), rejected, versionedAttr.Attributes, \"admit\", hook.Name)\n\t\t\tadmissionmetrics.Metrics.ObserveWebhook(time.Since(t), err != nil, versionedAttr.Attributes, \"validating\", hook.Name)\n\t\t\tignoreClientCallFailures := hook.FailurePolicy != nil && *hook.FailurePolicy == v1beta1.Ignore\n\t\t\trejected := false\n\t\t\tif err != nil {\n\t\t\t\t// ErrCallingWebhook is ignored if the webhook is configured to failopen.\n\t\t\t\t// Otherwise the request is rejected.\n\t\t\t\tif _, ok := err.(*webhookutil.ErrCallingWebhook); !ok || !ignoreClientCallFailures {\n\t\t\t\t\trejected = true\n\t\t\t\t}\n\t\t\t}\n\t\t\tadmissionmetrics.Metrics.ObserveWebhook(time.Since(t), rejected, versionedAttr.Attributes, \"validating\", hook.Name)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/f3c793512b45ea3910d5e5a379292c13b62ab64b", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tignoreClientCallFailures := hook.FailurePolicy != nil && *hook.FailurePolicy == v1beta1.Ignore\n\t\t\tignoreClientCallFailures := hook.FailurePolicy != nil && *hook.FailurePolicy == v1beta1.Ignore\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/f3c793512b45ea3910d5e5a379292c13b62ab64b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, hostEntries, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, hostEntries, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\t// TODO: Validate both IPv4 and IPv6 families for dual-stack\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, hostEntries, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, hostEntries, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6875, "commit_url": "https://github.com/kubernetes/kubernetes/commit/930a1321dac4a8178184e8c64c1ab56057ef1862", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 9 ] }, { "input": "\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(nil, hostEntries, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(nil, hostEntries, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\t// TODO: Validate both IPv4 and IPv6 families for dual-stack\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(nil, hostEntries, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(nil, hostEntries, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\t// TODO: Validate both IPv4 and IPv6 families for dual-stack\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\t// TODO: Validate both IPv4 and IPv6 families for dual-stack\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, hostEntries, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, hostEntries, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\t// TODO: Validate both IPv4 and IPv6 families for dual-stack\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, hostEntries, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, hostEntries, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, regularService.Spec.ClusterIP, \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, regularService.Spec.ClusterIP, \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\t// TODO: Validate both IPv4 and IPv6 families for dual-stack\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, regularService.Spec.ClusterIP, \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, regularService.Spec.ClusterIP, \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, regularService.Spec.ClusterIP, \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, regularService.Spec.ClusterIP, \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\t// TODO: Validate both IPv4 and IPv6 families for dual-stack\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, regularService.Spec.ClusterIP, \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, regularService.Spec.ClusterIP, \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(nil, hostNames, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(nil, hostNames, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\t// TODO: Validate both IPv4 and IPv6 families for dual-stack\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(nil, hostNames, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(nil, hostNames, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\t// TODO: Validate both IPv4 and IPv6 families for dual-stack\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\nfunc createProbeCommand(namesToResolve []string, hostEntries []string, ptrLookupIP string, fileNamePrefix, namespace, dnsDomain string) (string, []string) {\nfunc createProbeCommand(namesToResolve []string, hostEntries []string, ptrLookupIP string, fileNamePrefix, namespace, dnsDomain string, isIPv6 bool) (string, []string) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6875, "commit_url": "https://github.com/kubernetes/kubernetes/commit/930a1321dac4a8178184e8c64c1ab56057ef1862", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 9 ] }, { "input": "\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, regularService.Spec.ClusterIP, \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, regularService.Spec.ClusterIP, \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\t// TODO: Validate both IPv4 and IPv6 families for dual-stack\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, regularService.Spec.ClusterIP, \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, regularService.Spec.ClusterIP, \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6875, "commit_url": "https://github.com/kubernetes/kubernetes/commit/930a1321dac4a8178184e8c64c1ab56057ef1862", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 9 ] }, { "input": "\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain)\n\t\t// TODO: Validate both IPv4 and IPv6 families for dual-stack\n\t\twheezyProbeCmd, wheezyFileNames := createProbeCommand(namesToResolve, nil, \"\", \"wheezy\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n\t\tjessieProbeCmd, jessieFileNames := createProbeCommand(namesToResolve, nil, \"\", \"jessie\", f.Namespace.Name, framework.TestContext.ClusterDNSDomain, framework.ClusterIsIPv6())\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6875, "commit_url": "https://github.com/kubernetes/kubernetes/commit/930a1321dac4a8178184e8c64c1ab56057ef1862", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 9 ] }, { "input": "\tutilversion \"k8s.io/apimachinery/pkg/util/version\"\n\tutilversion \"k8s.io/apimachinery/pkg/util/version\"\n\tutilversion \"k8s.io/apimachinery/pkg/util/version\"\n\tutilversion \"k8s.io/apimachinery/pkg/util/version\"\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/d4958c0beec34a36af28d019358f686785bb459b", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 3, 7 ] }, { "input": "\t\t\t\tif !strings.Contains(err.Error(), test.expectError) {\n\t\t\t\tif test.expectError == \"\" || !strings.Contains(err.Error(), test.expectError) {\n\t\t\t\tif !strings.Contains(err.Error(), test.expectError) {\n\t\t\t\tif test.expectError == \"\" || !strings.Contains(err.Error(), test.expectError) {\n\t\t\t\tif !strings.Contains(err.Error(), test.expectError) {\n\t\t\t\tif test.expectError == \"\" || !strings.Contains(err.Error(), test.expectError) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5bd8a045d651005cd8cb1d34d835fdb487651325", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\t// Object is the object from the incoming request prior to default values being applied\n\t// Object is the object from the incoming request.\n\t// Object is the object from the incoming request prior to default values being applied\n\t// Object is the object from the incoming request.\n\t// Object is the object from the incoming request prior to default values being applied\n\t// Object is the object from the incoming request.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/649ee4f2d0b987f2e84aca2c9227f5ab4804a225", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 5 ] }, { "input": "\t// OldObject is the existing object. Only populated for UPDATE requests.\n\t// OldObject is the existing object. Only populated for DELETE and UPDATE requests.\n\t// OldObject is the existing object. Only populated for UPDATE requests.\n\t// OldObject is the existing object. Only populated for DELETE and UPDATE requests.\n\t// OldObject is the existing object. Only populated for UPDATE requests.\n\t// OldObject is the existing object. Only populated for DELETE and UPDATE requests.\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kubernetes/kubernetes/commit/649ee4f2d0b987f2e84aca2c9227f5ab4804a225", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 6 ] }, { "input": "\t\t\t\tfmt.Sprintf(\"none of the versions accepted by this server. accepted version(s) are %v\",\n\t\t\t\tfmt.Sprintf(\"must include at least one of %v\",\n\t\t\t\tfmt.Sprintf(\"none of the versions accepted by this server. accepted version(s) are %v\",\n\t\t\t\tfmt.Sprintf(\"must include at least one of %v\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/649ee4f2d0b987f2e84aca2c9227f5ab4804a225", "target_edit_idx": 3, "propagatable_edit_idx": [ 11 ] }, { "input": "\t// rely on the server to generate the name. If that is the case, this method will return the empty string.\n\t// rely on the server to generate the name. If that is the case, this field will contain an empty string.\n\t// rely on the server to generate the name. If that is the case, this method will return the empty string.\n\t// rely on the server to generate the name. If that is the case, this field will contain an empty string.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/649ee4f2d0b987f2e84aca2c9227f5ab4804a225", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tUpdateEndpointsMap(fp.endpointsMap, fp.endpointsChanges)\n\t\tfp.endpointsMap.Update(fp.endpointsChanges)\n\t\tresult := UpdateEndpointsMap(fp.endpointsMap, fp.endpointsChanges)\n\t\tresult := fp.endpointsMap.Update(fp.endpointsChanges)\n\t\tresult := UpdateEndpointsMap(fp.endpointsMap, fp.endpointsChanges)\n\t\tresult := fp.endpointsMap.Update(fp.endpointsChanges)\n\t\tproxy.UpdateEndpointsMap(fp.endpointsMap, fp.endpointsChanges)\n\t\tfp.endpointsMap.Update(fp.endpointsChanges)\n\t\tresult := proxy.UpdateEndpointsMap(fp.endpointsMap, fp.endpointsChanges)\n\t\tresult := fp.endpointsMap.Update(fp.endpointsChanges)\n\t\tproxy.UpdateEndpointsMap(fp.endpointsMap, fp.endpointsChanges)\n\t\tfp.endpointsMap.Update(fp.endpointsChanges)\n\t\tresult := proxy.UpdateEndpointsMap(fp.endpointsMap, fp.endpointsChanges)\n\t\tresult := fp.endpointsMap.Update(fp.endpointsChanges)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9d4693a70f759780816c6174f98ff651dc725b88", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 7, 8, 10, 11 ] }, { "input": "\tendpointUpdateResult := proxy.UpdateEndpointsMap(proxier.endpointsMap, proxier.endpointsChanges)\n\tendpointUpdateResult := proxier.endpointsMap.Update(proxier.endpointsChanges)\n\tendpointUpdateResult := proxy.UpdateEndpointsMap(proxier.endpointsMap, proxier.endpointsChanges)\n\tendpointUpdateResult := proxier.endpointsMap.Update(proxier.endpointsChanges)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9d4693a70f759780816c6174f98ff651dc725b88", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": "\tautoscalingapi \"k8s.io/api/autoscaling/v1\"\n\tautoscalingv1 \"k8s.io/api/autoscaling/v1\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/838721b0aae37bbfad83f4a0aba881423a48fb11", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "func (precondition *ScalePrecondition) validate(scale *autoscalingapi.Scale) error {\nfunc (precondition *ScalePrecondition) validate(scale *autoscalingv1.Scale) error {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/838721b0aae37bbfad83f4a0aba881423a48fb11", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tr.metrics.numberOfWatches.Inc()\n\t\tr.metrics.numberOfShortWatches.Inc()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/ca096f8069aff73b774c8ef38900dca898c61938", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": "// AttachableLogsForObjectFunc is a function type that can tell you how to get the pod for which to attach a given object\ntype AttachableLogsForObjectFunc func(restClientGetter genericclioptions.RESTClientGetter, object runtime.Object, timeout time.Duration) (*v1.Pod, error)\n// AttachablePodForObjectFunc is a function type that can tell you how to get the pod for which to attach a given object\ntype AttachablePodForObjectFunc func(restClientGetter genericclioptions.RESTClientGetter, object runtime.Object, timeout time.Duration) (*v1.Pod, error)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/0a04bbbd9225bc76251bd3624486b6327d4eb37d", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "var AttachablePodForObjectFn AttachableLogsForObjectFunc = attachablePodForObject\nvar AttachablePodForObjectFn AttachablePodForObjectFunc = attachablePodForObject\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/0a04bbbd9225bc76251bd3624486b6327d4eb37d", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "\t\t\t\tkubeletapis.LabelHostname: kl.hostname,\n\t\t\t\tkubeletapis.LabelOS: goruntime.GOOS,\n\t\t\t\tkubeletapis.LabelArch: goruntime.GOARCH,\n\t\t\t\tkubeletapis.LabelHostname: kl.hostname,\n\t\t\t\tkubeletapis.LabelOS: goruntime.GOOS,\n\t\t\t\tkubeletapis.LabelArch: goruntime.GOARCH,\n\t\t\t\tkubeletapis.LegacyLabelOS: goruntime.GOOS,\n\t\t\t\tkubeletapis.LegacyLabelArch: goruntime.GOARCH,\n\t\t\t\t\tkubeletapis.LabelHostname: testKubeletHostname,\n\t\t\t\t\tkubeletapis.LabelOS: goruntime.GOOS,\n\t\t\t\t\tkubeletapis.LabelArch: goruntime.GOARCH,\n\t\t\t\t\tkubeletapis.LabelHostname: testKubeletHostname,\n\t\t\t\t\tkubeletapis.LabelOS: goruntime.GOOS,\n\t\t\t\t\tkubeletapis.LabelArch: goruntime.GOARCH,\n\t\t\t\t\tkubeletapis.LegacyLabelOS: goruntime.GOOS,\n\t\t\t\t\tkubeletapis.LegacyLabelArch: goruntime.GOARCH,\n\t\t\t\t\tkubeletapis.LabelHostname: testKubeletHostname,\n\t\t\t\t\tkubeletapis.LabelOS: goruntime.GOOS,\n\t\t\t\t\tkubeletapis.LabelArch: goruntime.GOARCH,\n\t\t\t\t\tkubeletapis.LabelHostname: testKubeletHostname,\n\t\t\t\t\tkubeletapis.LabelOS: goruntime.GOOS,\n\t\t\t\t\tkubeletapis.LabelArch: goruntime.GOARCH,\n\t\t\t\t\tkubeletapis.LegacyLabelOS: goruntime.GOOS,\n\t\t\t\t\tkubeletapis.LegacyLabelArch: goruntime.GOARCH,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kubernetes/kubernetes/commit/00d93f0cc3b874694b1d39f91b794457b2cc56aa", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\t\t\t\t\tfor range podChan.ResultChan() {\n\t\t\t\t\t}\n\t\t\t\t\tpodChan.Stop()\n\t\t\t\t\tfor range secretChan.ResultChan() {\n\t\t\t\t\t}\n\t\t\t\t\tsecretChan.Stop()\n\t\t\t\t\tfor range deploymentChan.ResultChan() {\n\t\t\t\t\t}\n\t\t\t\t\tdeploymentChan.Stop()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9b31985b08babae5a534ac46049f31e2f6cfe44f", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 3 ] }, { "input": "\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/pods?timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/pods?timeout=%ds&timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout, watchTestTimeout),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14893617021276595, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9b31985b08babae5a534ac46049f31e2f6cfe44f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4, 5, 7, 8, 10, 11, 13, 14 ] }, { "input": "\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/pods?timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/pods?timeout=%ds&timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/pods?timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/pods?timeout=%ds&timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/apis/apps/v1/namespaces/%s/deployments?timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/apis/apps/v1/namespaces/%s/deployments?timeout=%ds&timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/apis/apps/v1/namespaces/%s/deployments?timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/apis/apps/v1/namespaces/%s/deployments?timeout=%ds&timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/configmaps?timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/configmaps?timeout=%ds&timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/configmaps?timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/configmaps?timeout=%ds&timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/secrets?timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/secrets?timeout=%ds&timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/secrets?timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/secrets?timeout=%ds&timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout, watchTestTimeout),\n\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/configmaps?timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout),\n\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/configmaps?timeout=%ds&timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout, watchTestTimeout),\n\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/configmaps?timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout),\n\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/configmaps?timeout=%ds&timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout, watchTestTimeout),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14893617021276595, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9b31985b08babae5a534ac46049f31e2f6cfe44f", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4, 5, 7, 8, 10, 11, 13, 14 ] }, { "input": "\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/apis/apps/v1/namespaces/%s/deployments?timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/apis/apps/v1/namespaces/%s/deployments?timeout=%ds&timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout, watchTestTimeout),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14893617021276595, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9b31985b08babae5a534ac46049f31e2f6cfe44f", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 4, 7, 8, 10, 11, 13, 14 ] }, { "input": "\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/configmaps?timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout),\n\t\t\t\t\t\tRequestURI: fmt.Sprintf(\"/api/v1/namespaces/%s/configmaps?timeout=%ds&timeoutSeconds=%d&watch=true\", namespace, watchTestTimeout, watchTestTimeout),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14893617021276595, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9b31985b08babae5a534ac46049f31e2f6cfe44f", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 2, 4, 5, 7, 10, 11, 13, 14 ] }, { "input": "\t\thandler := buildHandlerChain(newHealthzHandler(&cc.ComponentConfig, separateMetrics), nil, nil)\n\t\thandler := buildHandlerChain(newHealthzHandler(&cc.ComponentConfig, separateMetrics, checks...), nil, nil)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/34b4a5bbee78c8bec93208c5d889b81c798bcd78", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\thandler := buildHandlerChain(newHealthzHandler(&cc.ComponentConfig, false), cc.Authentication.Authenticator, cc.Authorization.Authorizer)\n\t\thandler := buildHandlerChain(newHealthzHandler(&cc.ComponentConfig, false, checks...), cc.Authentication.Authenticator, cc.Authorization.Authorizer)\n\t\thandler := buildHandlerChain(newHealthzHandler(&cc.ComponentConfig, separateMetrics), nil, nil)\n\t\thandler := buildHandlerChain(newHealthzHandler(&cc.ComponentConfig, separateMetrics, checks...), nil, nil)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/34b4a5bbee78c8bec93208c5d889b81c798bcd78", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to create job (%s:%s)\", f.Namespace.Name, job.Name)\n\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to ensure job completion (%s:%s)\", f.Namespace.Name, job.Name)\n\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to list nodes in namespace: %s\", ns)\n\t\tsa, err := f.ClientSet.CoreV1().ServiceAccounts(ns).Get(\"default\", metav1.GetOptions{})\n\t\tExpect(err).NotTo(HaveOccurred())\n\t\tsaName := \"default\"\n\t\tsa, err := f.ClientSet.CoreV1().ServiceAccounts(ns).Get(saName, metav1.GetOptions{})\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to retrieve service account (%s:%s)\", ns, saName)\n\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to create service account (%s:%s)\", ns, newSA.Name)\n\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to list nodes in namespace: %s\", ns)\n\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to retrieve service account (%s:%s)\", ns, saName)\n\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to load kubernetes client config\")\n\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to create Clientset for the given config: %+v\", *config)\n\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to create configmap (%s:%s) %+v\", ns, configmap.Name, *configmap)\n\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to create secret (%s:%s)\", ns, secret.Name)\n\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to create pod (%s:%s)\", ns, pod.Name)\n\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to get secret after trying every %v for %v (%s:%s)\", itv, dur, ns, secret.Name)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8c4fd312c939e7578106811707b37df31ac1abe3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 14 ] }, { "input": "\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to list nodes in namespace: %s\", ns)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8c4fd312c939e7578106811707b37df31ac1abe3", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 7, 8, 9, 10, 11, 12, 14 ] }, { "input": "\t\tsa, err := f.ClientSet.CoreV1().ServiceAccounts(ns).Get(\"default\", metav1.GetOptions{})\n\t\tExpect(err).NotTo(HaveOccurred())\n\t\tsaName := \"default\"\n\t\tsa, err := f.ClientSet.CoreV1().ServiceAccounts(ns).Get(saName, metav1.GetOptions{})\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to retrieve service account (%s:%s)\", ns, saName)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8c4fd312c939e7578106811707b37df31ac1abe3", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 7, 8, 9, 10, 11, 12, 14 ] }, { "input": "\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to create service account (%s:%s)\", ns, newSA.Name)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8c4fd312c939e7578106811707b37df31ac1abe3", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 7, 8, 9, 10, 11, 12, 14 ] }, { "input": "\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to retrieve service account (%s:%s)\", ns, saName)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8c4fd312c939e7578106811707b37df31ac1abe3", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 14 ] }, { "input": "\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to load kubernetes client config\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8c4fd312c939e7578106811707b37df31ac1abe3", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 9, 10, 11, 12, 14 ] }, { "input": "\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to create Clientset for the given config: %+v\", *config)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8c4fd312c939e7578106811707b37df31ac1abe3", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 10, 11, 12, 14 ] }, { "input": "\t\tExpect(err).NotTo(HaveOccurred())\n\t\tExpect(err).NotTo(HaveOccurred(), \"failed to get secret after trying every %v for %v (%s:%s)\", itv, dur, ns, secret.Name)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8c4fd312c939e7578106811707b37df31ac1abe3", "target_edit_idx": 14, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12 ] }, { "input": "\t\t\t\tFsType: fsType,\n\t\t\t\tFsType: fsType,\n\t\t\t\tMountFlags: mountOptions,\n\t\t\t\t\tFsType: fsType,\n\t\t\t\t\tFsType: fsType,\n\t\t\t\t\tMountFlags: mountOptions,\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/kubernetes/kubernetes/commit/65d3beb820a370032ecb202ad3fbc3d6fda54969", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\"k8s.io/kubernetes/pkg/api/legacyscheme\"\n\t\"k8s.io/kubernetes/pkg/api/legacyscheme\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/ce65602410641974c7b6516d09ad36dd319adfb0", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t}, legacyscheme.ParameterCodec)\n\t\t}, scheme.ParameterCodec)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/ce65602410641974c7b6516d09ad36dd319adfb0", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tIt(\"should provision storage in the allowedTopologies [Slow] [Feature:DynamicProvisioningScheduling]\", func() {\n\t\tIt(\"should provision storage in the allowedTopologies [Slow]\", func() {\n\t\tIt(\"should provision storage in the allowedTopologies with delayed binding [Slow] [Feature:DynamicProvisioningScheduling]\", func() {\n\t\tIt(\"should provision storage in the allowedTopologies with delayed binding [Slow]\", func() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a1154682da27f240df7565d9e76800264dad381d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\tDescribe(\"DynamicProvisioner delayed binding [Feature:DynamicProvisioningScheduling] [Slow]\", func() {\n\tDescribe(\"DynamicProvisioner delayed binding [Slow]\", func() {\n\tDescribe(\"DynamicProvisioner delayed binding with allowedTopologies [Feature:DynamicProvisioningScheduling] [Slow]\", func() {\n\tDescribe(\"DynamicProvisioner delayed binding with allowedTopologies [Slow]\", func() {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a1154682da27f240df7565d9e76800264dad381d", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "func PodsWithDeletiontimestamps(pods []*v1.Pod) string {\nfunc PodsWithDeletionTimestamps(pods []*v1.Pod) string {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9319be121e95c4c9ec1446ab7061f282c1c74bf8", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t\tprinter.PrintObj(cmdutil.AsDefaultVersionedOrOriginal(info.Object, info.Mapping), o.Out)\n\t\t\tif err = printer.PrintObj(cmdutil.AsDefaultVersionedOrOriginal(info.Object, info.Mapping), o.Out); err != nil {\n\t\t\t\tallErrs = append(allErrs, err)\n\t\t\t}\n\t\tprinter.PrintObj(cmdutil.AsDefaultVersionedOrOriginal(info.Object, info.Mapping), o.Out)\n\t\tif err = printer.PrintObj(cmdutil.AsDefaultVersionedOrOriginal(info.Object, info.Mapping), o.Out); err != nil {\n\t\t\tallErrs = append(allErrs, err)\n\t\t}\n\t\t\tprinter.PrintObj(cmdutil.AsDefaultVersionedOrOriginal(info.Object, info.Mapping), o.Out)\n\t\t\tif err = printer.PrintObj(cmdutil.AsDefaultVersionedOrOriginal(info.Object, info.Mapping), o.Out); err != nil {\n\t\t\t\tallErrs = append(allErrs, err)\n\t\t\t}\n\t\tprinter.PrintObj(cmdutil.AsDefaultVersionedOrOriginal(info.Object, info.Mapping), o.Out)\n\t\tif err = printer.PrintObj(cmdutil.AsDefaultVersionedOrOriginal(info.Object, info.Mapping), o.Out); err != nil {\n\t\t\tallErrs = append(allErrs, err)\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b020a4ba8c84f6a2817529a77e1c1d3bafeb705e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\tIt(\"should be consumable from pods in volume as non-root with defaultMode and fsGroup set [Feature:FSGroup]\", func() {\n\tIt(\"should be consumable from pods in volume as non-root with defaultMode and fsGroup set\", func() {\n\tIt(\"should be consumable from pods in volume as non-root with defaultMode and fsGroup set [Feature:FSGroup]\", func() {\n\tIt(\"should be consumable from pods in volume as non-root with defaultMode and fsGroup set\", func() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b1ae20fdabb94d10ccf1f33d9712359bdcf19546", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\tIt(\"should be consumable from pods in volume as non-root with FSGroup [Feature:FSGroup]\", func() {\n\tIt(\"should be consumable from pods in volume as non-root with FSGroup\", func() {\n\tIt(\"should be consumable from pods in volume with mappings as non-root with FSGroup [Feature:FSGroup]\", func() {\n\tIt(\"should be consumable from pods in volume with mappings as non-root with FSGroup\", func() {\n\tIt(\"should be consumable from pods in volume as non-root with FSGroup [Feature:FSGroup]\", func() {\n\tIt(\"should be consumable from pods in volume as non-root with FSGroup\", func() {\n\tIt(\"should be consumable from pods in volume with mappings as non-root with FSGroup [Feature:FSGroup]\", func() {\n\tIt(\"should be consumable from pods in volume with mappings as non-root with FSGroup\", func() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b1ae20fdabb94d10ccf1f33d9712359bdcf19546", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 6, 7 ] }, { "input": "\tIt(\"should provide podname as non-root with fsgroup [Feature:FSGroup]\", func() {\n\tIt(\"should provide podname as non-root with fsgroup\", func() {\n\tIt(\"should provide podname as non-root with fsgroup [Feature:FSGroup]\", func() {\n\tIt(\"should provide podname as non-root with fsgroup\", func() {\n\tIt(\"should provide podname as non-root with fsgroup and defaultMode [Feature:FSGroup]\", func() {\n\tIt(\"should provide podname as non-root with fsgroup and defaultMode\", func() {\n\tIt(\"should provide podname as non-root with fsgroup and defaultMode [Feature:FSGroup]\", func() {\n\tIt(\"should provide podname as non-root with fsgroup and defaultMode\", func() {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b1ae20fdabb94d10ccf1f33d9712359bdcf19546", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 9, 4 ] }, { "input": "\t\t\t\t\treturn unassignedNonTerminatedPod(t)\n\t\t\t\t\treturn unassignedNonTerminatedPod(t) && responsibleForPod(t, schedulerName)\n\t\t\t\t\t\treturn unassignedNonTerminatedPod(pod)\n\t\t\t\t\t\treturn unassignedNonTerminatedPod(pod) && responsibleForPod(pod, schedulerName)\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a073dfdbd9220168a14670d0b86bc81a67a2335b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\tEnableCoreControllers: true,\n\t\t\tEnableCoreControllers: true,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kubernetes/kubernetes/commit/ee5bc39c4c94bf361ffc5870ae71971f152b0a2b", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": "\tconfig.ExtraConfig.EnableCoreControllers = false\n\tmasterConfig.ExtraConfig.EnableCoreControllers = false\n\tmasterConfig.ExtraConfig.EnableCoreControllers = true\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/ee5bc39c4c94bf361ffc5870ae71971f152b0a2b", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\t\t\texpectedError: \"999 is not an allowed group\",\n\t\t\texpectedError: \"group 999 must be in the ranges: [{1 1}]\",\n\t\t\texpectedError: \"999 is not an allowed group\",\n\t\t\texpectedError: \"group 999 must be in the ranges: [{1 1}]\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/ba1ef7a6c489b016fdc204e92f6b7fa6e3e58170", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": "\t\tif err := genericcontrollermanager.Serve(&c.Generic, c.Generic.SecureServing.Serve, stopCh); err != nil {\n\t\thandler := genericcontrollermanager.NewBaseHandler(&c.Generic)\n\t\thandler = genericcontrollermanager.BuildHandlerChain(handler, &c.Generic)\n\t\tif err := c.Generic.SecureServing.Serve(handler, 0, stopCh); err != nil {\n\t\tif err := genericcontrollerconfig.Serve(&c.Generic, c.Generic.InsecureServing.Serve, stopCh); err != nil {\n\t\thandler := genericcontrollermanager.NewBaseHandler(&c.Generic)\n\t\thandler = genericcontrollermanager.BuildHandlerChain(handler, &c.Generic)\n\t\tif err := c.Generic.InsecureServing.Serve(handler, 0, stopCh); err != nil {\n\t\tif err := genericcontrollermanager.Serve(&c.Generic, c.Generic.InsecureServing.Serve, stopCh); err != nil {\n\t\thandler := genericcontrollermanager.NewBaseHandler(&c.Generic)\n\t\thandler = genericcontrollermanager.BuildHandlerChain(handler, &c.Generic)\n\t\tif err := c.Generic.InsecureServing.Serve(handler, 0, stopCh); err != nil {\n\t\tif err := genericcontrollerconfig.Serve(&c.Generic, c.Generic.SecureServing.Serve, stopCh); err != nil {\n\t\thandler := genericcontrollermanager.NewBaseHandler(&c.Generic)\n\t\thandler = genericcontrollermanager.BuildHandlerChain(handler, &c.Generic)\n\t\tif err := c.Generic.SecureServing.Serve(handler, 0, stopCh); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/540a1de1614c7a42751cc961b46fe8f80871721c", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 1, 7 ] }, { "input": "\tgenericcontrollerconfig \"k8s.io/kubernetes/cmd/controller-manager/app\"\n\tgenericcontrollermanager \"k8s.io/kubernetes/cmd/controller-manager/app\"\n\tif err := genericcontrollerconfig.WaitForAPIServer(versionedClient, 10*time.Second); err != nil {\n\tif err := genericcontrollermanager.WaitForAPIServer(versionedClient, 10*time.Second); err != nil {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/540a1de1614c7a42751cc961b46fe8f80871721c", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": "\tgeneratedVolumeName, _ := util.GetUniqueVolumeNameFromSpec(plugin, volumeSpec)\n\tgeneratedVolumeName, err := util.GetUniqueVolumeNameFromSpec(plugin, volumeSpec)\n\tif err != nil {\n\t\tt.Fatalf(\"GetUniqueVolumeNameFromSpec failed. Expected: Actual: <%v>\", err)\n\t}\n\tgeneratedVolumeName, _ := util.GetUniqueVolumeNameFromSpec(plugin, volumeSpec)\n\tgeneratedVolumeName, err := util.GetUniqueVolumeNameFromSpec(plugin, volumeSpec)\n\tif err != nil {\n\t\tt.Fatalf(\"GetUniqueVolumeNameFromSpec failed. Expected: Actual: <%v>\", err)\n\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/kubernetes/kubernetes/commit/efb4c372704f3a2f8f28acc17f544b58da2c09e2", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\terr := asw.MarkVolumeAsAttached(emptyVolumeName, volumeSpec, \"\" /* nodeName */, devicePath)\n\terr = asw.MarkVolumeAsAttached(emptyVolumeName, volumeSpec, \"\" /* nodeName */, devicePath)\n\terr := asw.MarkVolumeAsAttached(emptyVolumeName, volumeSpec, \"\" /* nodeName */, devicePath)\n\terr = asw.MarkVolumeAsAttached(emptyVolumeName, volumeSpec, \"\" /* nodeName */, devicePath)\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/kubernetes/kubernetes/commit/efb4c372704f3a2f8f28acc17f544b58da2c09e2", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\treturn nil, nil, false, fmt.Errorf(\"given object is not a Fischer.\")\n\t\treturn nil, nil, false, fmt.Errorf(\"given object is not a Fischer\")\n\t\treturn nil, nil, false, fmt.Errorf(\"given object is not a Flunder.\")\n\t\treturn nil, nil, false, fmt.Errorf(\"given object is not a Flunder\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7e855f6861abafebbec0f4172fe6033f3e6076f4", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": "\treturn labels.Set(apiserver.ObjectMeta.Labels), fischerToSelectableFields(apiserver), apiserver.Initializers != nil, nil\n\treturn labels.Set(apiserver.ObjectMeta.Labels), SelectableFields(apiserver), apiserver.Initializers != nil, nil\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7e855f6861abafebbec0f4172fe6033f3e6076f4", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "// fischerToSelectableFields returns a field set that represents the object.\nfunc fischerToSelectableFields(obj *wardle.Fischer) fields.Set {\n// SelectableFields returns a field set that represents the object.\nfunc SelectableFields(obj *wardle.Fischer) fields.Set {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7e855f6861abafebbec0f4172fe6033f3e6076f4", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\treturn labels.Set(apiserver.ObjectMeta.Labels), FlunderToSelectableFields(apiserver), apiserver.Initializers != nil, nil\n\treturn labels.Set(apiserver.ObjectMeta.Labels), SelectableFields(apiserver), apiserver.Initializers != nil, nil\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7e855f6861abafebbec0f4172fe6033f3e6076f4", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "// FlunderToSelectableFields returns a field set that represents the object.\nfunc FlunderToSelectableFields(obj *wardle.Flunder) fields.Set {\n// SelectableFields returns a field set that represents the object.\nfunc SelectableFields(obj *wardle.Flunder) fields.Set {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7e855f6861abafebbec0f4172fe6033f3e6076f4", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": "\tif err := IngressToManifest(ing, \"/tmp/ing.yaml\"); err != nil {\n\tif err := IngressToManifest(ing, ingPath); err != nil {\n\tif err := IngressToManifest(ing, \"/tmp/ing.yaml\"); err != nil {\n\tif err := IngressToManifest(ing, ingPath); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/0694dd70659487d005febccbb449e669f6731fd2", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": "\treturn restclient.NewRequest(c, \"POST\", &url.URL{Host: \"localhost\"}, c.VersionedAPIPath, config, serializers, nil, nil)\n\treturn restclient.NewRequest(c, \"POST\", &url.URL{Host: \"localhost\"}, c.VersionedAPIPath, config, serializers, nil, nil, 0)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7da1002091f026d4a58c1639dd70e1310b1d8991", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 14 ] }, { "input": "\treturn restclient.NewRequest(c, \"POST\", &url.URL{Host: \"localhost\"}, c.VersionedAPIPath, config, serializers, nil, nil)\n\treturn restclient.NewRequest(c, \"POST\", &url.URL{Host: \"localhost\"}, c.VersionedAPIPath, config, serializers, nil, nil, 0)\n\treturn restclient.NewRequest(c, \"POST\", &url.URL{Host: \"localhost\"}, c.VersionedAPIPath, config, serializers, nil, nil)\n\treturn restclient.NewRequest(c, \"POST\", &url.URL{Host: \"localhost\"}, c.VersionedAPIPath, config, serializers, nil, nil, 0)\n\treturn restclient.NewRequest(c, verb, &url.URL{Host: \"localhost\"}, c.VersionedAPIPath, config, serializers, nil, nil)\n\treturn restclient.NewRequest(c, verb, &url.URL{Host: \"localhost\"}, c.VersionedAPIPath, config, serializers, nil, nil, 0)\n\treturn restclient.NewRequest(c.client, verb, baseURL, versionedAPIPath, contentConfig, *serializers, c.backoff, c.config.RateLimiter), nil\n\treturn restclient.NewRequest(c.client, verb, baseURL, versionedAPIPath, contentConfig, *serializers, c.backoff, c.config.RateLimiter, 0), nil\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7da1002091f026d4a58c1639dd70e1310b1d8991", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4, 14 ] }, { "input": "\t\treturn NewRequest(nil, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle)\n\t\treturn NewRequest(nil, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle, 0)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7da1002091f026d4a58c1639dd70e1310b1d8991", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": "\treturn NewRequest(c.Client, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle)\n\treturn NewRequest(c.Client, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle, c.Client.Timeout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7da1002091f026d4a58c1639dd70e1310b1d8991", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 5, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": "\treturn restclient.NewRequest(c, verb, &url.URL{Host: \"localhost\"}, c.VersionedAPIPath, config, serializers, nil, nil)\n\treturn restclient.NewRequest(c, verb, &url.URL{Host: \"localhost\"}, c.VersionedAPIPath, config, serializers, nil, nil, 0)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7da1002091f026d4a58c1639dd70e1310b1d8991", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 14 ] }, { "input": "func NewRequest(client HTTPClient, verb string, baseURL *url.URL, versionedAPIPath string, content ContentConfig, serializers Serializers, backoff BackoffManager, throttle flowcontrol.RateLimiter) *Request {\nfunc NewRequest(client HTTPClient, verb string, baseURL *url.URL, versionedAPIPath string, content ContentConfig, serializers Serializers, backoff BackoffManager, throttle flowcontrol.RateLimiter, timeout time.Duration) *Request {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7da1002091f026d4a58c1639dd70e1310b1d8991", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": "\tr := NewRequest(nil, \"get\", &url.URL{Path: \"/path/\"}, \"\", ContentConfig{}, Serializers{}, nil, nil)\n\tr := NewRequest(nil, \"get\", &url.URL{Path: \"/path/\"}, \"\", ContentConfig{}, Serializers{}, nil, nil, 0)\n\t\treturn NewRequest(nil, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle)\n\t\treturn NewRequest(nil, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle, 0)\n\treturn NewRequest(c.Client, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle)\n\treturn NewRequest(c.Client, verb, c.base, c.versionedAPIPath, c.contentConfig, c.serializers, backoff, c.Throttle, c.Client.Timeout)\nfunc NewRequest(client HTTPClient, verb string, baseURL *url.URL, versionedAPIPath string, content ContentConfig, serializers Serializers, backoff BackoffManager, throttle flowcontrol.RateLimiter) *Request {\nfunc NewRequest(client HTTPClient, verb string, baseURL *url.URL, versionedAPIPath string, content ContentConfig, serializers Serializers, backoff BackoffManager, throttle flowcontrol.RateLimiter, timeout time.Duration) *Request {\n\tr = NewRequest(nil, \"get\", &url.URL{Path: \"/path/\"}, \"\", ContentConfig{ContentType: \"application/other\"}, Serializers{}, nil, nil)\n\tr = NewRequest(nil, \"get\", &url.URL{Path: \"/path/\"}, \"\", ContentConfig{ContentType: \"application/other\"}, Serializers{}, nil, nil, 0)\n\tr := NewRequest(server, \"get\", &url.URL{Path: \"/path\"}, \"\", config, serializers, nil, nil)\n\tr := NewRequest(server, \"get\", &url.URL{Path: \"/path\"}, \"\", config, serializers, nil, nil, 0)\n\tr := NewRequest(nil, \"POST\", uri, \"\", ContentConfig{GroupVersion: &schema.GroupVersion{Group: \"test\"}}, Serializers{}, nil, nil)\n\tr := NewRequest(nil, \"POST\", uri, \"\", ContentConfig{GroupVersion: &schema.GroupVersion{Group: \"test\"}}, Serializers{}, nil, nil, 0)\n\t\tr := NewRequest(nil, \"\", uri, \"\", defaultContentConfig(), defaultSerializers(t), nil, nil)\n\t\tr := NewRequest(nil, \"\", uri, \"\", defaultContentConfig(), defaultSerializers(t), nil, nil, 0)\n\t\tr := NewRequest(nil, \"\", uri, \"\", contentConfig, serializers, nil, nil)\n\t\tr := NewRequest(nil, \"\", uri, \"\", contentConfig, serializers, nil, nil, 0)\n\t\tr := NewRequest(nil, \"POST\", u, \"\", ContentConfig{GroupVersion: &schema.GroupVersion{Group: \"test\"}}, Serializers{}, nil, nil).Prefix(tc.resourcePrefix).AbsPath(tc.absPath)\n\t\tr := NewRequest(nil, \"POST\", u, \"\", ContentConfig{GroupVersion: &schema.GroupVersion{Group: \"test\"}}, Serializers{}, nil, nil, 0).Prefix(tc.resourcePrefix).AbsPath(tc.absPath)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7da1002091f026d4a58c1639dd70e1310b1d8991", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 5, 8, 9, 10, 11, 12, 13 ] }, { "input": "\tr = NewRequest(nil, \"get\", &url.URL{Path: \"/path/\"}, \"\", ContentConfig{ContentType: \"application/other\"}, Serializers{}, nil, nil)\n\tr = NewRequest(nil, \"get\", &url.URL{Path: \"/path/\"}, \"\", ContentConfig{ContentType: \"application/other\"}, Serializers{}, nil, nil, 0)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7da1002091f026d4a58c1639dd70e1310b1d8991", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 3, 5, 7, 9, 10, 11, 12, 13 ] }, { "input": "\tr := NewRequest(nil, \"POST\", uri, \"\", ContentConfig{GroupVersion: &schema.GroupVersion{Group: \"test\"}}, Serializers{}, nil, nil)\n\tr := NewRequest(nil, \"POST\", uri, \"\", ContentConfig{GroupVersion: &schema.GroupVersion{Group: \"test\"}}, Serializers{}, nil, nil, 0)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7da1002091f026d4a58c1639dd70e1310b1d8991", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 3, 5, 7, 8, 9, 11, 12, 13 ] }, { "input": "\t\tr := NewRequest(nil, \"POST\", u, \"\", ContentConfig{GroupVersion: &schema.GroupVersion{Group: \"test\"}}, Serializers{}, nil, nil).Prefix(tc.resourcePrefix).AbsPath(tc.absPath)\n\t\tr := NewRequest(nil, \"POST\", u, \"\", ContentConfig{GroupVersion: &schema.GroupVersion{Group: \"test\"}}, Serializers{}, nil, nil, 0).Prefix(tc.resourcePrefix).AbsPath(tc.absPath)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7da1002091f026d4a58c1639dd70e1310b1d8991", "target_edit_idx": 13, "propagatable_edit_idx": [ 2, 3, 5, 7, 8, 9, 10, 11, 12 ] }, { "input": "\treturn restclient.NewRequest(c.client, verb, baseURL, versionedAPIPath, contentConfig, *serializers, c.backoff, c.config.RateLimiter), nil\n\treturn restclient.NewRequest(c.client, verb, baseURL, versionedAPIPath, contentConfig, *serializers, c.backoff, c.config.RateLimiter, 0), nil\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7da1002091f026d4a58c1639dd70e1310b1d8991", "target_edit_idx": 14, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": "\top *ga.Operation\n\top *beta.Operation\n\top *alpha.Operation\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7ebc34fea90ffb8306ca94f8e6a638bbe8cb73f1", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 4 ] }, { "input": "\t\top, err = o.s.GA.RegionOperations.Get(o.projectID, o.key.Region, o.op.Name).Context(ctx).Do()\n\t\tglog.V(5).Infof(\"GA.RegionOperations.Get(%v, %v, %v) = %+v, %v; ctx = %v\", o.projectID, o.key.Region, o.op.Name, op, err, ctx)\n\t\top, err = o.s.GA.RegionOperations.Get(o.projectID, o.key.Region, o.key.Name).Context(ctx).Do()\n\t\tglog.V(5).Infof(\"GA.RegionOperations.Get(%v, %v, %v) = %+v, %v; ctx = %v\", o.projectID, o.key.Region, o.key.Name, op, err, ctx)\n\t\top, err = o.s.GA.ZoneOperations.Get(o.projectID, o.key.Zone, o.op.Name).Context(ctx).Do()\n\t\tglog.V(5).Infof(\"GA.ZoneOperations.Get(%v, %v, %v) = %+v, %v; ctx = %v\", o.projectID, o.key.Zone, o.op.Name, op, err, ctx)\n\t\top, err = o.s.GA.ZoneOperations.Get(o.projectID, o.key.Zone, o.key.Name).Context(ctx).Do()\n\t\tglog.V(5).Infof(\"GA.ZoneOperations.Get(%v, %v, %v) = %+v, %v; ctx = %v\", o.projectID, o.key.Zone, o.key.Name, op, err, ctx)\n\t\top, err = o.s.Alpha.RegionOperations.Get(o.projectID, o.key.Region, o.op.Name).Context(ctx).Do()\n\t\tglog.V(5).Infof(\"Alpha.RegionOperations.Get(%v, %v, %v) = %+v, %v; ctx = %v\", o.projectID, o.key.Region, o.op.Name, op, err, ctx)\n\t\top, err = o.s.Alpha.RegionOperations.Get(o.projectID, o.key.Region, o.key.Name).Context(ctx).Do()\n\t\tglog.V(5).Infof(\"Alpha.RegionOperations.Get(%v, %v, %v) = %+v, %v; ctx = %v\", o.projectID, o.key.Region, o.key.Name, op, err, ctx)\n\t\top, err = o.s.Alpha.ZoneOperations.Get(o.projectID, o.key.Zone, o.op.Name).Context(ctx).Do()\n\t\tglog.V(5).Infof(\"Alpha.ZoneOperations.Get(%v, %v, %v) = %+v, %v; ctx = %v\", o.projectID, o.key.Zone, o.op.Name, op, err, ctx)\n\t\top, err = o.s.Alpha.ZoneOperations.Get(o.projectID, o.key.Zone, o.key.Name).Context(ctx).Do()\n\t\tglog.V(5).Infof(\"Alpha.ZoneOperations.Get(%v, %v, %v) = %+v, %v; ctx = %v\", o.projectID, o.key.Zone, o.key.Name, op, err, ctx)\n\t\top, err = o.s.Beta.RegionOperations.Get(o.projectID, o.key.Region, o.op.Name).Context(ctx).Do()\n\t\tglog.V(5).Infof(\"Beta.RegionOperations.Get(%v, %v, %v) = %+v, %v; ctx = %v\", o.projectID, o.key.Region, o.op.Name, op, err, ctx)\n\t\top, err = o.s.Beta.RegionOperations.Get(o.projectID, o.key.Region, o.key.Name).Context(ctx).Do()\n\t\tglog.V(5).Infof(\"Beta.RegionOperations.Get(%v, %v, %v) = %+v, %v; ctx = %v\", o.projectID, o.key.Region, o.key.Name, op, err, ctx)\n\t\top, err = o.s.Beta.ZoneOperations.Get(o.projectID, o.key.Zone, o.op.Name).Context(ctx).Do()\n\t\tglog.V(5).Infof(\"Beta.ZoneOperations.Get(%v, %v, %v) = %+v, %v; ctx = %v\", o.projectID, o.key.Zone, o.op.Name, op, err, ctx)\n\t\top, err = o.s.Beta.ZoneOperations.Get(o.projectID, o.key.Zone, o.key.Name).Context(ctx).Do()\n\t\tglog.V(5).Infof(\"Beta.ZoneOperations.Get(%v, %v, %v) = %+v, %v; ctx = %v\", o.projectID, o.key.Zone, o.key.Name, op, err, ctx)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7ebc34fea90ffb8306ca94f8e6a638bbe8cb73f1", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 5, 6, 9, 10 ] }, { "input": "\t\treturn &gaOperation{s, o, r.ProjectID, r.Key}, nil\n\t\treturn &gaOperation{s, r.ProjectID, r.Key}, nil\n\t\treturn &alphaOperation{s, o, r.ProjectID, r.Key}, nil\n\t\treturn &alphaOperation{s, r.ProjectID, r.Key}, nil\n\t\treturn &betaOperation{s, o, r.ProjectID, r.Key}, nil\n\t\treturn &betaOperation{s, r.ProjectID, r.Key}, nil\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kubernetes/kubernetes/commit/7ebc34fea90ffb8306ca94f8e6a638bbe8cb73f1", "target_edit_idx": 12, "propagatable_edit_idx": [ 13, 14 ] }, { "input": "func newEndpoint(socketPath, resourceName string, callback MonitorCallback) (*endpoint, error) {\nfunc newEndpoint(socketPath, resourceName string, devices map[string]pluginapi.Device, callback MonitorCallback) (*endpoint, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4fa0fa5ad17fd8484102e8d4e553d8cc28d86704", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\te, err := newEndpoint(socket, \"mock\", func(n string, a, u, r []pluginapi.Device) {})\n\te, err := newEndpoint(socket, \"mock\", make(map[string]pluginapi.Device), func(n string, a, u, r []pluginapi.Device) {})\nfunc newEndpoint(socketPath, resourceName string, callback MonitorCallback) (*endpoint, error) {\nfunc newEndpoint(socketPath, resourceName string, devices map[string]pluginapi.Device, callback MonitorCallback) (*endpoint, error) {\n\te, err := newEndpoint(socketPath, r.ResourceName, m.callback)\n\te, err := newEndpoint(socketPath, r.ResourceName, existingDevs, m.callback)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4fa0fa5ad17fd8484102e8d4e553d8cc28d86704", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4 ] }, { "input": "\te, err := newEndpoint(socketPath, r.ResourceName, m.callback)\n\te, err := newEndpoint(socketPath, r.ResourceName, existingDevs, m.callback)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4fa0fa5ad17fd8484102e8d4e553d8cc28d86704", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "\tssc := NewDefaultStatefulSetControl(spc, ssu, history.NewFakeHistory(informerFactory.Apps().V1beta1().ControllerRevisions()))\n\trecorder := record.NewFakeRecorder(10)\n\tssc := NewDefaultStatefulSetControl(spc, ssu, history.NewFakeHistory(informerFactory.Apps().V1beta1().ControllerRevisions()), recorder)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/f6af1904cd0e017c6181c23d41e1281fd4a9b198", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": "\tssc.control = NewDefaultStatefulSetControl(fpc, ssu, ssh)\n\trecorder := record.NewFakeRecorder(10)\n\tssc.control = NewDefaultStatefulSetControl(fpc, ssu, ssh, recorder)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/f6af1904cd0e017c6181c23d41e1281fd4a9b198", "target_edit_idx": 9, "propagatable_edit_idx": [ 6 ] }, { "input": "\tkubeletRootDirectory = \"/var/lib/kubelet\"\n\tKubeletRootDirectory = \"/var/lib/kubelet\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/2bbba1f6629996b721b3077067050c2f98ff4737", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "\terr = createRootDirectory(kubeletRootDirectory)\n\terr = createRootDirectory(KubeletRootDirectory)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/2bbba1f6629996b721b3077067050c2f98ff4737", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "\t\t\"--root-dir\", kubeletRootDirectory,\n\t\t\"--root-dir\", KubeletRootDirectory,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/2bbba1f6629996b721b3077067050c2f98ff4737", "target_edit_idx": 8, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\t\tDirAvailableCheck{Path: \"/var/lib/kubelet\"},\n\t\tDirAvailableCheck{Path: \"/var/lib/kubelet\"},\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8c25265314f69d2618ab90f8b588897f57a45e1d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tif err := gce.createFirewall(apiService, makeFirewallName(loadBalancerName), gce.region, desc, sourceRanges, ports, hosts); err != nil {\n\t\t\tif err := gce.createFirewall(apiService, MakeFirewallName(loadBalancerName), gce.region, desc, sourceRanges, ports, hosts); err != nil {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5532e24280d22fb29829dbb5a9fc0312070f2f07", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 10, 5, 6 ] }, { "input": "\t\t\t\thcToDelete = makeHttpHealthCheck(makeNodesHealthCheckName(clusterID), GetNodesHealthCheckPath(), GetNodesHealthCheckPort())\n\t\t\t\thcToDelete = makeHttpHealthCheck(MakeNodesHealthCheckName(clusterID), GetNodesHealthCheckPath(), GetNodesHealthCheckPort())\nfunc makeNodesHealthCheckName(clusterID string) string {\nfunc MakeNodesHealthCheckName(clusterID string) string {\n\t\treturn makeNodesHealthCheckName(clusterID) + \"-http-hc\"\n\t\treturn MakeNodesHealthCheckName(clusterID) + \"-http-hc\"\n\t\t\thcToCreate = makeHttpHealthCheck(makeNodesHealthCheckName(clusterID), GetNodesHealthCheckPath(), GetNodesHealthCheckPort())\n\t\t\thcToCreate = makeHttpHealthCheck(MakeNodesHealthCheckName(clusterID), GetNodesHealthCheckPath(), GetNodesHealthCheckPort())\n\t\thcNames = append(hcNames, makeNodesHealthCheckName(clusterID))\n\t\thcNames = append(hcNames, MakeNodesHealthCheckName(clusterID))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5532e24280d22fb29829dbb5a9fc0312070f2f07", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 9, 3, 4 ] }, { "input": "\t\thcNames = append(hcNames, makeNodesHealthCheckName(clusterID))\n\t\thcNames = append(hcNames, MakeNodesHealthCheckName(clusterID))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5532e24280d22fb29829dbb5a9fc0312070f2f07", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 9, 2, 3 ] }, { "input": "\t\t\tfwName := makeFirewallName(loadBalancerName)\n\t\t\tfwName := MakeFirewallName(loadBalancerName)\n\t\t\tif err := gce.updateFirewall(apiService, makeFirewallName(loadBalancerName), gce.region, desc, sourceRanges, ports, hosts); err != nil {\n\t\t\tif err := gce.updateFirewall(apiService, MakeFirewallName(loadBalancerName), gce.region, desc, sourceRanges, ports, hosts); err != nil {\n\t\t\tif err := gce.createFirewall(apiService, makeFirewallName(loadBalancerName), gce.region, desc, sourceRanges, ports, hosts); err != nil {\n\t\t\tif err := gce.createFirewall(apiService, MakeFirewallName(loadBalancerName), gce.region, desc, sourceRanges, ports, hosts); err != nil {\nfunc makeFirewallName(name string) string {\n// MakeFirewallName returns the firewall name used by the GCE load\n// balancers (l4) for serving traffic.\nfunc MakeFirewallName(name string) string {\n\tfw, err := gce.service.Firewalls.Get(gce.NetworkProjectID(), makeFirewallName(name)).Do()\n\tfw, err := gce.service.Firewalls.Get(gce.NetworkProjectID(), MakeFirewallName(name)).Do()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5532e24280d22fb29829dbb5a9fc0312070f2f07", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 10, 6 ] }, { "input": "\tfw, err := gce.service.Firewalls.Get(gce.NetworkProjectID(), makeFirewallName(name)).Do()\n\tfw, err := gce.service.Firewalls.Get(gce.NetworkProjectID(), MakeFirewallName(name)).Do()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5532e24280d22fb29829dbb5a9fc0312070f2f07", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 10, 5 ] }, { "input": "func makeNodesHealthCheckName(clusterID string) string {\nfunc MakeNodesHealthCheckName(clusterID string) string {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5532e24280d22fb29829dbb5a9fc0312070f2f07", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 2, 3, 4 ] }, { "input": "\t\treturn makeNodesHealthCheckName(clusterID) + \"-http-hc\"\n\t\treturn MakeNodesHealthCheckName(clusterID) + \"-http-hc\"\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5532e24280d22fb29829dbb5a9fc0312070f2f07", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 2, 3, 4 ] }, { "input": "func makeFirewallName(name string) string {\n// MakeFirewallName returns the firewall name used by the GCE load\n// balancers (l4) for serving traffic.\nfunc MakeFirewallName(name string) string {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5532e24280d22fb29829dbb5a9fc0312070f2f07", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 5, 6 ] }, { "input": "\tlocation.Path = path.Join(location.Path, proxyOpts.Path)\n\tlocation.Path = path.Join(\"/\", location.Path, proxyOpts.Path)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9648f1cb7ace807662686a05e926702fae3ca3d5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\t\tproxyHandler := &UpgradeAwareHandler{\n\t\t\t\tLocation: backendURL,\n\t\t\t\tResponder: responder,\n\t\t\t\tUpgradeRequired: test.upgradeRequired,\n\t\t\t}\n\t\t\tproxyHandler := NewUpgradeAwareHandler(backendURL, nil, false, test.upgradeRequired, responder)\n\t\tproxyHandler := &UpgradeAwareHandler{\n\t\t\tLocation: backendURL,\n\t\t\tResponder: responder,\n\t\t\tUpgradeRequired: false,\n\t\t}\n\t\tproxyHandler := NewUpgradeAwareHandler(backendURL, nil, false, false, responder)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9648f1cb7ace807662686a05e926702fae3ca3d5", "target_edit_idx": 6, "propagatable_edit_idx": [ 11 ] }, { "input": "\tgc, err := NewGarbageCollector(metaOnlyClientPool, clientPool, rm, twoResources, map[schema.GroupResource]struct{}{}, sharedInformers)\n\talwaysStarted := make(chan struct{})\n\tclose(alwaysStarted)\n\tgc, err := NewGarbageCollector(metaOnlyClientPool, clientPool, rm, twoResources, map[schema.GroupResource]struct{}{}, sharedInformers, alwaysStarted)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/253b047d89eac2b5a3074ece31842a8e1c4302d2", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\tgc, err := NewGarbageCollector(metaOnlyClientPool, clientPool, &testRESTMapper{api.Registry.RESTMapper()}, podResource, ignoredResources, sharedInformers)\n\talwaysStarted := make(chan struct{})\n\tclose(alwaysStarted)\n\tgc, err := NewGarbageCollector(metaOnlyClientPool, clientPool, &testRESTMapper{api.Registry.RESTMapper()}, podResource, ignoredResources, sharedInformers, alwaysStarted)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/253b047d89eac2b5a3074ece31842a8e1c4302d2", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": "\tSIGDescribe(\"master upgrade\", func() {\n\tDescribe(\"master upgrade\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.38461538461538464, "commit_url": "https://github.com/kubernetes/kubernetes/commit/3a12acee59a42c741bcf1c5ffab14025df09a8cd", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6 ] }, { "input": "\tSIGDescribe(\"node upgrade\", func() {\n\tDescribe(\"node upgrade\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.38461538461538464, "commit_url": "https://github.com/kubernetes/kubernetes/commit/3a12acee59a42c741bcf1c5ffab14025df09a8cd", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 5, 6 ] }, { "input": "\tSIGDescribe(\"cluster upgrade\", func() {\n\tDescribe(\"cluster upgrade\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.38461538461538464, "commit_url": "https://github.com/kubernetes/kubernetes/commit/3a12acee59a42c741bcf1c5ffab14025df09a8cd", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 5, 6 ] }, { "input": "\tSIGDescribe(\"cluster downgrade\", func() {\n\tDescribe(\"cluster downgrade\", func() {\n\tSIGDescribe(\"master upgrade\", func() {\n\tDescribe(\"master upgrade\", func() {\n\tSIGDescribe(\"node upgrade\", func() {\n\tDescribe(\"node upgrade\", func() {\n\tSIGDescribe(\"cluster upgrade\", func() {\n\tDescribe(\"cluster upgrade\", func() {\n\tSIGDescribe(\"etcd upgrade\", func() {\n\tDescribe(\"etcd upgrade\", func() {\n\tSIGDescribe(\"Resize [Slow]\", func() {\n\tDescribe(\"Resize [Slow]\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.38461538461538464, "commit_url": "https://github.com/kubernetes/kubernetes/commit/3a12acee59a42c741bcf1c5ffab14025df09a8cd", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5, 6 ] }, { "input": "\tSIGDescribe(\"etcd upgrade\", func() {\n\tDescribe(\"etcd upgrade\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.38461538461538464, "commit_url": "https://github.com/kubernetes/kubernetes/commit/3a12acee59a42c741bcf1c5ffab14025df09a8cd", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 4, 6 ] }, { "input": "\tSIGDescribe(\"DynamicProvisioner\", func() {\n\tDescribe(\"DynamicProvisioner\", func() {\n\tSIGDescribe(\"DynamicProvisioner External\", func() {\n\tDescribe(\"DynamicProvisioner External\", func() {\n\tSIGDescribe(\"DynamicProvisioner Default\", func() {\n\tDescribe(\"DynamicProvisioner Default\", func() {\n\tSIGDescribe(\"NFS\", func() {\n\tDescribe(\"NFS\", func() {\n\tSIGDescribe(\"GlusterFS\", func() {\n\tDescribe(\"GlusterFS\", func() {\n\tSIGDescribe(\"iSCSI [Feature:Volumes]\", func() {\n\tDescribe(\"iSCSI [Feature:Volumes]\", func() {\n\tSIGDescribe(\"Ceph RBD [Feature:Volumes]\", func() {\n\tDescribe(\"Ceph RBD [Feature:Volumes]\", func() {\n\tSIGDescribe(\"CephFS [Feature:Volumes]\", func() {\n\tDescribe(\"CephFS [Feature:Volumes]\", func() {\n\tSIGDescribe(\"Cinder [Feature:Volumes]\", func() {\n\tDescribe(\"Cinder [Feature:Volumes]\", func() {\n\tSIGDescribe(\"PD\", func() {\n\tDescribe(\"PD\", func() {\n\tSIGDescribe(\"ConfigMap\", func() {\n\tDescribe(\"ConfigMap\", func() {\n\tSIGDescribe(\"vsphere [Feature:Volumes]\", func() {\n\tDescribe(\"vsphere [Feature:Volumes]\", func() {\n\tSIGDescribe(\"Azure Disk [Feature:Volumes]\", func() {\n\tDescribe(\"Azure Disk [Feature:Volumes]\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3783783783783784, "commit_url": "https://github.com/kubernetes/kubernetes/commit/e53ba82702b00650d645693538934aff2b70e183", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "\tSIGDescribe(\"DynamicProvisioner External\", func() {\n\tDescribe(\"DynamicProvisioner External\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3783783783783784, "commit_url": "https://github.com/kubernetes/kubernetes/commit/e53ba82702b00650d645693538934aff2b70e183", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "\tSIGDescribe(\"DynamicProvisioner Default\", func() {\n\tDescribe(\"DynamicProvisioner Default\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3783783783783784, "commit_url": "https://github.com/kubernetes/kubernetes/commit/e53ba82702b00650d645693538934aff2b70e183", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "\tSIGDescribe(\"GlusterFS\", func() {\n\tDescribe(\"GlusterFS\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3783783783783784, "commit_url": "https://github.com/kubernetes/kubernetes/commit/e53ba82702b00650d645693538934aff2b70e183", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "\tSIGDescribe(\"iSCSI [Feature:Volumes]\", func() {\n\tDescribe(\"iSCSI [Feature:Volumes]\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3783783783783784, "commit_url": "https://github.com/kubernetes/kubernetes/commit/e53ba82702b00650d645693538934aff2b70e183", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "\tSIGDescribe(\"Ceph RBD [Feature:Volumes]\", func() {\n\tDescribe(\"Ceph RBD [Feature:Volumes]\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3783783783783784, "commit_url": "https://github.com/kubernetes/kubernetes/commit/e53ba82702b00650d645693538934aff2b70e183", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14 ] }, { "input": "\tSIGDescribe(\"CephFS [Feature:Volumes]\", func() {\n\tDescribe(\"CephFS [Feature:Volumes]\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3783783783783784, "commit_url": "https://github.com/kubernetes/kubernetes/commit/e53ba82702b00650d645693538934aff2b70e183", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14 ] }, { "input": "\tSIGDescribe(\"Cinder [Feature:Volumes]\", func() {\n\tDescribe(\"Cinder [Feature:Volumes]\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3783783783783784, "commit_url": "https://github.com/kubernetes/kubernetes/commit/e53ba82702b00650d645693538934aff2b70e183", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14 ] }, { "input": "\tSIGDescribe(\"ConfigMap\", func() {\n\tDescribe(\"ConfigMap\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3783783783783784, "commit_url": "https://github.com/kubernetes/kubernetes/commit/e53ba82702b00650d645693538934aff2b70e183", "target_edit_idx": 12, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14 ] }, { "input": "\tSIGDescribe(\"Azure Disk [Feature:Volumes]\", func() {\n\tDescribe(\"Azure Disk [Feature:Volumes]\", func() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3783783783783784, "commit_url": "https://github.com/kubernetes/kubernetes/commit/e53ba82702b00650d645693538934aff2b70e183", "target_edit_idx": 14, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": "\t\tCleanupServiceGCEResources(loadBalancerName, zone)\n\t\tCleanupServiceGCEResources(c, loadBalancerName, zone)\nfunc CleanupServiceGCEResources(loadBalancerName, zone string) {\nfunc CleanupServiceGCEResources(c clientset.Interface, loadBalancerName, zone string) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/be6bb318aae036eacee3cb1d97f911b893314054", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "func CleanupServiceGCEResources(loadBalancerName, zone string) {\nfunc CleanupServiceGCEResources(c clientset.Interface, loadBalancerName, zone string) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/be6bb318aae036eacee3cb1d97f911b893314054", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tif err := CleanupGCEResources(loadBalancerName, zone); err != nil {\n\t\tif err := CleanupGCEResources(c, loadBalancerName, zone); err != nil {\nfunc CleanupGCEResources(loadBalancerName, zone string) (retErr error) {\nfunc CleanupGCEResources(c clientset.Interface, loadBalancerName, zone string) (retErr error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/be6bb318aae036eacee3cb1d97f911b893314054", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "func CleanupGCEResources(loadBalancerName, zone string) (retErr error) {\nfunc CleanupGCEResources(c clientset.Interface, loadBalancerName, zone string) (retErr error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/be6bb318aae036eacee3cb1d97f911b893314054", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tSpec: v1.PodSpec{\n\t\t\tContainers: []v1.Container{\n\t\t\t\t{\n\t\t\t\t\tName: \"foo\",\n\t\t\t\t\tImage: \"busybox\",\n\t\t\t\t\tImagePullPolicy: v1.PullIfNotPresent,\n\t\t\t\t\tCommand: []string{\"testCommand\"},\n\t\t\t\t\tWorkingDir: \"testWorkingDir\",\n\t\t\t\t\tSecurityContext: &v1.SecurityContext{\n\t\t\t\t\t\tRunAsNonRoot: &RunAsNonRoot,\n\t\t\t\t\t\tRunAsUser: &runAsUser,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t{\n\t\t\tdesc: \"Pass if RunAsNonRoot is not set\",\n\t\t\tsc: &v1.SecurityContext{\n\t\t\t\tRunAsUser: &rootUser,\n\t\tSpec: v1.PodSpec{\n\t\t\tContainers: []v1.Container{\n\t\t\t\t{\n\t\t\t\t\tName: \"foo\",\n\t\t\t\t\tImage: \"busybox\",\n\t\t\t\t\tImagePullPolicy: v1.PullIfNotPresent,\n\t\t\t\t\tCommand: []string{\"testCommand\"},\n\t\t\t\t\tWorkingDir: \"testWorkingDir\",\n\t\t\t\t\tSecurityContext: &v1.SecurityContext{\n\t\t\t\t\t\tRunAsNonRoot: &RunAsNonRoot,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t{\n\t\t\tdesc: \"Fail if container's RunAsUser is root and RunAsNonRoot is true\",\n\t\t\tsc: &v1.SecurityContext{\n\t\t\t\tRunAsNonRoot: &runAsNonRootTrue,\n\t\t\t\tRunAsUser: &rootUser,\n\t\t\t},\n\t\t\terrStr: \"container's runAsUser breaks non-root policy\",\n\t\t},\n\t\t{\n\t\t\tdesc: \"Fail if image's user is root and RunAsNonRoot is true\",\n\t\t\tsc: &v1.SecurityContext{\n\t\t\t\tRunAsNonRoot: &runAsNonRootTrue,\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/07a67c252cacdb64da6dd951fcb0357aa1a10f75", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\treturn a.webhookError(attributes, err)\n\t\t\treturn a.webhookError(pod, attributes, err)\n\t\t\treturn a.webhookError(attributes, err)\n\t\t\treturn a.webhookError(pod, attributes, err)\n\t\t\treturn a.webhookError(attributes, fmt.Errorf(\"Error contacting webhook: %d\", statusCode))\n\t\t\treturn a.webhookError(pod, attributes, fmt.Errorf(\"Error contacting webhook: %d\", statusCode))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a38c2b4ce183da25262791c791215697e7aeaaa0", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "\t\t\treturn a.webhookError(attributes, fmt.Errorf(\"Error contacting webhook: %d\", statusCode))\n\t\t\treturn a.webhookError(pod, attributes, fmt.Errorf(\"Error contacting webhook: %d\", statusCode))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a38c2b4ce183da25262791c791215697e7aeaaa0", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "\t\t\treturn a.webhookError(attributes, err)\n\t\t\treturn a.webhookError(pod, attributes, err)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a38c2b4ce183da25262791c791215697e7aeaaa0", "target_edit_idx": 8, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\t\t\t\tworkqueue.Parallelize(25, len(services), createService)\n\t\t\t\tworkqueue.Parallelize(serviceOperationsParallelism, len(services), createService)\n\t\t\t\t\tworkqueue.Parallelize(25, len(services), deleteService)\n\t\t\t\t\tworkqueue.Parallelize(serviceOperationsParallelism, len(services), deleteService)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/ded8e03fc34ffff3c1196cb5f2dc5f33bc39cc41", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tvolumes := []api.Volume{k8sVolume(cfg)}\n\tvolumes := []api.Volume{k8sVolume()}\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/60efc38ef37ba883b5bbc7c348ee1cddd11aa0d8", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 5, 8, 9 ] }, { "input": "\t\tvolumes = append(volumes, pkiVolume(cfg))\n\t\tvolumes = append(volumes, pkiVolume())\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/60efc38ef37ba883b5bbc7c348ee1cddd11aa0d8", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 4 ] }, { "input": "\t\t}, k8sVolume(cfg)),\n\t\t}, k8sVolume()),\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/60efc38ef37ba883b5bbc7c348ee1cddd11aa0d8", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 5, 8, 9 ] }, { "input": "\t\t}, certsVolume(cfg), etcdVolume(cfg), k8sVolume(cfg))\n\t\t}, certsVolume(cfg), etcdVolume(cfg), k8sVolume())\n\tvolumes := []api.Volume{k8sVolume(cfg)}\n\tvolumes := []api.Volume{k8sVolume()}\n\t\t}, k8sVolume(cfg)),\n\t\t}, k8sVolume()),\nfunc k8sVolume(cfg *kubeadmapi.MasterConfiguration) api.Volume {\nfunc k8sVolume() api.Volume {\n\t\tactual := k8sVolume(rt.cfg)\n\t\tactual := k8sVolume()\n\tvolumes := []v1.Volume{k8sVolume(cfg)}\n\tvolumes := []v1.Volume{k8sVolume()}\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/60efc38ef37ba883b5bbc7c348ee1cddd11aa0d8", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 5, 8, 9 ] }, { "input": "func pkiVolume(cfg *kubeadmapi.MasterConfiguration) api.Volume {\nfunc pkiVolume() api.Volume {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/60efc38ef37ba883b5bbc7c348ee1cddd11aa0d8", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 10 ] }, { "input": "\t\tactual := k8sVolume(rt.cfg)\n\t\tactual := k8sVolume()\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/60efc38ef37ba883b5bbc7c348ee1cddd11aa0d8", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 2, 3, 5, 9 ] }, { "input": "\t\t\t\tLogf(summaries[i].PrintHumanReadable())\n\t\t\t\tif TestContext.ReportDir == \"\" {\n\t\t\t\t\tLogf(summaries[i].PrintHumanReadable())\n\t\t\t\t} else {\n\t\t\t\t\t// TODO: learn to extract test name and append it to the kind instead of timestamp.\n\t\t\t\t\tfilePath := path.Join(TestContext.ReportDir, summaries[i].SummaryKind()+now.Format(time.RFC3339)+\".txt\")\n\t\t\t\t\tif err := ioutil.WriteFile(filePath, []byte(summaries[i].PrintHumanReadable()), 0644); err != nil {\n\t\t\t\t\t\tLogf(\"Failed to write file %v with test performance data: %v\", filePath, err)\n\t\t\t\t\t}\n\t\t\t\t}\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0045045045045045045, "commit_url": "https://github.com/kubernetes/kubernetes/commit/be987ac247b5694ef43a14c65b7845ec1f4d7b59", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\ttypeName := reflect.TypeOf(summaries[i]).String()\n\t\t\t\tLogf(\"%v JSON\\n%v\", typeName[strings.LastIndex(typeName, \".\")+1:], summaries[i].PrintJSON())\n\t\t\t\tLogf(\"Finished\")\n\t\t\t\tif TestContext.ReportDir == \"\" {\n\t\t\t\t\tLogf(\"%v JSON\\n%v\", summaries[i].SummaryKind(), summaries[i].PrintJSON())\n\t\t\t\t\tLogf(\"Finished\")\n\t\t\t\t} else {\n\t\t\t\t\t// TODO: learn to extract test name and append it to the kind instead of timestamp.\n\t\t\t\t\tfilePath := path.Join(TestContext.ReportDir, summaries[i].SummaryKind()+now.Format(time.RFC3339)+\".json\")\n\t\t\t\t\tif err := ioutil.WriteFile(filePath, []byte(summaries[i].PrintJSON()), 0644); err != nil {\n\t\t\t\t\t\tLogf(\"Failed to write file %v with test performance data: %v\", filePath, err)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tLogf(summaries[i].PrintHumanReadable())\n\t\t\t\tif TestContext.ReportDir == \"\" {\n\t\t\t\t\tLogf(summaries[i].PrintHumanReadable())\n\t\t\t\t} else {\n\t\t\t\t\t// TODO: learn to extract test name and append it to the kind instead of timestamp.\n\t\t\t\t\tfilePath := path.Join(TestContext.ReportDir, summaries[i].SummaryKind()+now.Format(time.RFC3339)+\".txt\")\n\t\t\t\t\tif err := ioutil.WriteFile(filePath, []byte(summaries[i].PrintHumanReadable()), 0644); err != nil {\n\t\t\t\t\t\tLogf(\"Failed to write file %v with test performance data: %v\", filePath, err)\n\t\t\t\t\t}\n\t\t\t\t}\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0022522522522522522, "commit_url": "https://github.com/kubernetes/kubernetes/commit/be987ac247b5694ef43a14c65b7845ec1f4d7b59", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "// GetPodDaemonSets returns a list of daemon sets managing a pod.\n// Returns an error if and only if no matching daemon sets are found.\n// GetPodDaemonSets returns a list of DaemonSets that potentially match a pod.\n// Only the one specified in the Pod's ControllerRef will actually manage it.\n// Returns an error only if no matching DaemonSets are found.\n// GetPodDaemonSets returns a list of daemon sets managing a pod.\n// Returns an error if and only if no matching daemon sets are found.\n// GetPodDaemonSets returns a list of DaemonSets that potentially match a pod.\n// Only the one specified in the Pod's ControllerRef will actually manage it.\n// Returns an error only if no matching DaemonSets are found.\n// GetPodDaemonSets returns a list of daemon sets managing a pod.\n// Returns an error if and only if no matching daemon sets are found.\n// GetPodDaemonSets returns a list of DaemonSets that potentially match a pod.\n// Only the one specified in the Pod's ControllerRef will actually manage it.\n// Returns an error only if no matching DaemonSets are found.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/c288f52d2f3a05c305c9e5fb54ca01374b84ffa3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\t\ttrace.Step(\"Decoding dir \" + node.Key + \" START\")\n\t\t\t// IMPORTANT: do not log each key as a discrete step in the trace log\n\t\t\t// as it produces an immense amount of log spam when there is a large\n\t\t\t// amount of content in the list.\n\t\t\ttrace.Step(\"Decoding dir \" + node.Key + \" END\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9211e0380f39f08ff99dcf78f50fefad1d0179b8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\treturn deleteResource(info, out, shortOutput, mapper)\n\t\treturn deleteResource(info, out, shortOutput, mapper, nil)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/78ae193de6775b261b61cef5689e5c0ddf8c17e2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "func deleteResource(info *resource.Info, out io.Writer, shortOutput bool, mapper meta.RESTMapper) error {\n\tif err := resource.NewHelper(info.Client, info.Mapping).Delete(info.Namespace, info.Name); err != nil {\nfunc cascadingDeleteResource(info *resource.Info, out io.Writer, shortOutput bool, mapper meta.RESTMapper) error {\n\tfalseVar := false\n\tdeleteOptions := &metav1.DeleteOptions{OrphanDependents: &falseVar}\n\treturn deleteResource(info, out, shortOutput, mapper, deleteOptions)\n}\n\nfunc deleteResource(info *resource.Info, out io.Writer, shortOutput bool, mapper meta.RESTMapper, deleteOptions *metav1.DeleteOptions) error {\n\tif err := resource.NewHelper(info.Client, info.Mapping).DeleteWithOptions(info.Namespace, info.Name, deleteOptions); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kubernetes/kubernetes/commit/78ae193de6775b261b61cef5689e5c0ddf8c17e2", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t// NB: since this is used for round-tripping, we can only fuzz\n\t\t\t// fields that round-trip successfully, so only the resource source\n\t\t\t// type is usable here\n\t\t\trandomQuantity := func() resource.Quantity {\n\t\t\t\tvar q resource.Quantity\n\t\t\t\tc.Fuzz(&q)\n\t\t\t\t// precalc the string for benchmarking purposes\n\t\t\t\t_ = q.String()\n\t\t\t\treturn q\n\t\t\t}\n\n\t\t\t// NB: since this is used for round-tripping, we can only fuzz\n\t\t\t// fields that round-trip successfully, so only the resource status\n\t\t\t// type is usable here\n\t\t\trandomQuantity := func() resource.Quantity {\n\t\t\t\tvar q resource.Quantity\n\t\t\t\tc.Fuzz(&q)\n\t\t\t\t// precalc the string for benchmarking purposes\n\t\t\t\t_ = q.String()\n\t\t\t\treturn q\n\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/caa78e0b3e3a68b84456120e04d4f219e25ce20d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\terr = updateKubeconfig(config, i.commonOptions.Name, endpoint, entKeyPairs, i.options.dryRun)\n\terr = updateKubeconfig(config, i.commonOptions.Name, endpoint, i.commonOptions.Kubeconfig, entKeyPairs, i.options.dryRun)\nfunc updateKubeconfig(config util.AdminConfig, name, endpoint string, entKeyPairs *entityKeyPairs, dryRun bool) error {\nfunc updateKubeconfig(config util.AdminConfig, name, endpoint, kubeConfigPath string, entKeyPairs *entityKeyPairs, dryRun bool) error {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/c71fd73251ce80d813b7c66859fec64f698758ca", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "func updateKubeconfig(config util.AdminConfig, name, endpoint string, entKeyPairs *entityKeyPairs, dryRun bool) error {\nfunc updateKubeconfig(config util.AdminConfig, name, endpoint, kubeConfigPath string, entKeyPairs *entityKeyPairs, dryRun bool) error {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/c71fd73251ce80d813b7c66859fec64f698758ca", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\tAddCleanupAction(func() {\n\t\tif nfsServerPod != nil && c != nil {\n\t\t\tBy(\"Deleting NFS server pod\")\n\t\t\tnfsServerPodCleanup(c, nfsServerConfig)\n\t\t\tnfsServerPod = nil\n\t\t}\n\tAfterEach(func() {\n\t\tdeletePodWithWait(f, c, nfsServerPod)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/kubernetes/kubernetes/commit/d1ab959bf41152ca02a6ba314f5c1b0fe436a645", "target_edit_idx": 5, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\t// Execute after *all* the tests have run\n\t\tAddCleanupAction(func() {\n\t\t\tif nfsServerPod != nil && c != nil {\n\t\t\t\tframework.Logf(\"AfterSuite: nfs-server pod %v is non-nil, deleting pod\", nfsServerPod.Name)\n\t\t\t\tnfsServerPodCleanup(c, NFSconfig)\n\t\t\t\tnfsServerPod = nil\n\t\t\t}\n\t\tAfterEach(func() {\n\t\t\tdeletePodWithWait(f, c, nfsServerPod)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/kubernetes/kubernetes/commit/d1ab959bf41152ca02a6ba314f5c1b0fe436a645", "target_edit_idx": 10, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\"github.com/spf13/pflag\"\n\t\"github.com/spf13/pflag\"\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/cef71341c54680f27df9e417d1a64986f923b376", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\tvar cmdArgs string\n\tpflag.VisitAll(func(f *pflag.Flag) {\n\t\tif !f.Changed || f.Name == \"verify-only\" {\n\t\t\treturn\n\t\t}\n\t\tcmdArgs += fmt.Sprintf(\"--%s=%s \", f.Name, f.Value)\n\t})\n\treturn fmt.Sprintf(\"\\n// This file was automatically generated by informer-gen with arguments: %s\\n\\n\", cmdArgs)\n\treturn fmt.Sprintf(\"\\n// This file was automatically generated by informer-gen\\n\\n\")\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/cef71341c54680f27df9e417d1a64986f923b376", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\tvar cmdArgs string\n\tpflag.VisitAll(func(f *pflag.Flag) {\n\t\tif !f.Changed || f.Name == \"verify-only\" {\n\t\t\treturn\n\t\t}\n\t\tcmdArgs += fmt.Sprintf(\"--%s=%s \", f.Name, f.Value)\n\t})\n\treturn fmt.Sprintf(\"\\n// This file was automatically generated by lister-gen with arguments: %s\\n\\n\", cmdArgs)\n\treturn fmt.Sprintf(\"\\n// This file was automatically generated by lister-gen\\n\\n\")\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/cef71341c54680f27df9e417d1a64986f923b376", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\terr := RunCompletion(out, cmd, args)\n\t\t\terr := RunCompletion(out, boilerPlate, cmd, args)\nfunc RunCompletion(out io.Writer, cmd *cobra.Command, args []string) error {\nfunc RunCompletion(out io.Writer, boilerPlate string, cmd *cobra.Command, args []string) error {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/56147c51746d097a6b795fc0e75e91346feaa614", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "func RunCompletion(out io.Writer, cmd *cobra.Command, args []string) error {\nfunc RunCompletion(out io.Writer, boilerPlate string, cmd *cobra.Command, args []string) error {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/56147c51746d097a6b795fc0e75e91346feaa614", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\t_, err := out.Write([]byte(boilerPlate))\n\tif err != nil {\n\t\treturn err\n\t}\n\t_, err := out.Write([]byte(boilerPlate))\n\tif err != nil {\n\t\treturn err\n\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/56147c51746d097a6b795fc0e75e91346feaa614", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tname := fmt.Sprintf(\"[Feature:%s] should allow starting %d pods per node using %v with %v secrets\", feature, testArg.podsPerNode, testArg.kind, testArg.secretsPerPod)\n\t\tname := fmt.Sprintf(\"[Feature:%s] should allow starting %d pods per node using %v with %v secrets and %v daemons\",\n\t\t\tfeature,\n\t\t\ttestArg.podsPerNode,\n\t\t\ttestArg.kind,\n\t\t\ttestArg.secretsPerPod,\n\t\t\ttestArg.daemonsPerNode,\n\t\t)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.001303780964797914, "commit_url": "https://github.com/kubernetes/kubernetes/commit/2e79abe542447f16e468f6538472f07286e57e52", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tname := fmt.Sprintf(\"[Feature:%s] should be able to handle %v pods per node %v with %v secrets\",\n\t\t\tfeature, testArg.podsPerNode, testArg.kind, testArg.secretsPerPod)\n\t\tname := fmt.Sprintf(\"[Feature:%s] should be able to handle %v pods per node %v with %v secrets and %v daemons\",\n\t\t\tfeature,\n\t\t\ttestArg.podsPerNode,\n\t\t\ttestArg.kind,\n\t\t\ttestArg.secretsPerPod,\n\t\t\ttestArg.daemonsPerNode,\n\t\t)\n\t\tname := fmt.Sprintf(\"[Feature:%s] should allow starting %d pods per node using %v with %v secrets\", feature, testArg.podsPerNode, testArg.kind, testArg.secretsPerPod)\n\t\tname := fmt.Sprintf(\"[Feature:%s] should allow starting %d pods per node using %v with %v secrets and %v daemons\",\n\t\t\tfeature,\n\t\t\ttestArg.podsPerNode,\n\t\t\ttestArg.kind,\n\t\t\ttestArg.secretsPerPod,\n\t\t\ttestArg.daemonsPerNode,\n\t\t)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.001303780964797914, "commit_url": "https://github.com/kubernetes/kubernetes/commit/2e79abe542447f16e468f6538472f07286e57e52", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": "\tprinter, ok, err := PrinterForCommand(cmd)\n\tprinter, generic, err := PrinterForCommand(cmd)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/12806be2bfbe39f48d402e72b3f12236d0e2a102", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tif ok {\n\n\t// Make sure we output versioned data for generic printers\n\tif generic {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/12806be2bfbe39f48d402e72b3f12236d0e2a102", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\ttemplatePrinter, err := NewTemplatePrinter([]byte(\"{{.name}}\"))\n\n\tvar (\n\t\terr error\n\t\ttemplatePrinter ResourcePrinter\n\t\ttemplatePrinter2 ResourcePrinter\n\t\tjsonpathPrinter ResourcePrinter\n\t)\n\n\ttemplatePrinter, err = NewTemplatePrinter([]byte(\"{{.name}}\"))\n\ttemplatePrinter2, err := NewTemplatePrinter([]byte(\"{{len .items}}\"))\n\ttemplatePrinter = NewVersionedPrinter(templatePrinter, api.Scheme, v1.SchemeGroupVersion)\n\n\ttemplatePrinter2, err = NewTemplatePrinter([]byte(\"{{len .items}}\"))\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/12806be2bfbe39f48d402e72b3f12236d0e2a102", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\textensions \"k8s.io/kubernetes/pkg/apis/extensions/v1beta1\"\n\textensionsv1beta1 \"k8s.io/kubernetes/pkg/apis/extensions/v1beta1\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/6676bab9c33a8c0da3b8db717e6d9571e8bf40fe", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7 ] }, { "input": "func (a *HorizontalController) computeReplicasForCPUUtilization(hpa *autoscaling.HorizontalPodAutoscaler, scale *extensions.Scale) (int32, *int32, time.Time, error) {\nfunc (a *HorizontalController) computeReplicasForCPUUtilization(hpa *autoscaling.HorizontalPodAutoscaler, scale *extensionsv1beta1.Scale) (int32, *int32, time.Time, error) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/6676bab9c33a8c0da3b8db717e6d9571e8bf40fe", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5, 6, 7 ] }, { "input": "func (a *HorizontalController) computeReplicasForCustomMetrics(hpa *autoscaling.HorizontalPodAutoscaler, scale *extensions.Scale,\nfunc (a *HorizontalController) computeReplicasForCustomMetrics(hpa *autoscaling.HorizontalPodAutoscaler, scale *extensionsv1beta1.Scale,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/6676bab9c33a8c0da3b8db717e6d9571e8bf40fe", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5, 6, 7 ] }, { "input": "\tvar targetList extensions.CustomMetricTargetList\n\tvar targetList extensionsv1beta1.CustomMetricTargetList\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/6676bab9c33a8c0da3b8db717e6d9571e8bf40fe", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 6, 7 ] }, { "input": "\tstatusList := extensions.CustomMetricCurrentStatusList{\n\t\tItems: make([]extensions.CustomMetricCurrentStatus, 0),\n\tstatusList := extensionsv1beta1.CustomMetricCurrentStatusList{\n\t\tItems: make([]extensionsv1beta1.CustomMetricCurrentStatus, 0),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/kubernetes/kubernetes/commit/6676bab9c33a8c0da3b8db717e6d9571e8bf40fe", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 4, 5, 7 ] }, { "input": "\t\tstatusList.Items = append(statusList.Items, extensions.CustomMetricCurrentStatus{\n\t\tstatusList.Items = append(statusList.Items, extensionsv1beta1.CustomMetricCurrentStatus{\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/6676bab9c33a8c0da3b8db717e6d9571e8bf40fe", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 4, 5, 6 ] }, { "input": "\t\t\tframework.SkipIfMissingResource(f.ClientPool, StatefulSetGroupVersionResource, f.Namespace.Name)\n\t\tframework.SkipIfMissingResource(f.ClientPool, StatefulSetGroupVersionResource, f.Namespace.Name)\n\t\tframework.SkipIfMissingResource(f.ClientPool, StatefulSetGroupVersionResource, f.Namespace.Name)\n\t\tframework.SkipUnlessProviderIs(\"gce\", \"vagrant\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/388fb2028cb0938c31ea354d08982d4eb69cfa91", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\t\t\terr := initFederation(f, cmdOut, config, cmd, args)\n\t\t\terr := initFederation(cmdOut, config, cmd, args)\nfunc initFederation(f cmdutil.Factory, cmdOut io.Writer, config util.AdminConfig, cmd *cobra.Command, args []string) error {\nfunc initFederation(cmdOut io.Writer, config util.AdminConfig, cmd *cobra.Command, args []string) error {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b8109eae5bee46d373f471ccd5a305e99b1c09f6", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "func initFederation(f cmdutil.Factory, cmdOut io.Writer, config util.AdminConfig, cmd *cobra.Command, args []string) error {\nfunc initFederation(cmdOut io.Writer, config util.AdminConfig, cmd *cobra.Command, args []string) error {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b8109eae5bee46d373f471ccd5a305e99b1c09f6", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\tstickyMaxAgeSeconds int\n\tstickyMaxAgeMinutes int\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/528bc97dd3fa01a25ba6d7393fa341645c85d5bc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\tstickyMaxAgeSeconds: 180, // TODO: paramaterize this in the API.\n\t\tstickyMaxAgeMinutes: 180, // TODO: paramaterize this in the API.\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/528bc97dd3fa01a25ba6d7393fa341645c85d5bc", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\t\t\t\tmap[int]testutils.PrepareNodeStrategy{nodeCount: &testutils.TrivialNodePrepareStrategy{}},\n\t\t\t\t[]testutils.CountToStrategy{{Count: nodeCount, Strategy: &testutils.TrivialNodePrepareStrategy{}}},\n\t\tmap[int]testutils.PrepareNodeStrategy{numNodes: &testutils.TrivialNodePrepareStrategy{}},\n\t\t[]testutils.CountToStrategy{{Count: numNodes, Strategy: &testutils.TrivialNodePrepareStrategy{}}},\n\t\tmap[int]testutils.PrepareNodeStrategy{numNodes: &testutils.TrivialNodePrepareStrategy{}},\n\t\t[]testutils.CountToStrategy{{Count: numNodes, Strategy: &testutils.TrivialNodePrepareStrategy{}}},\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/aeba0f1dc4f3e767fca9dcd5325333eb2eee0480", "target_edit_idx": 0, "propagatable_edit_idx": [ 11, 12 ] }, { "input": "\tcountToStrategy map[int]testutils.PrepareNodeStrategy\n\tcountToStrategy []testutils.CountToStrategy\n\tcountToStrategy map[int]testutils.PrepareNodeStrategy\n\tcountToStrategy []testutils.CountToStrategy\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/aeba0f1dc4f3e767fca9dcd5325333eb2eee0480", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\tif err := testutils.DoPrepareNode(p.client, &nodes.Items[index], strategy); err != nil {\n\t\t\tif err := testutils.DoPrepareNode(p.client, &nodes.Items[index], v.Strategy); err != nil {\n\t\t\tif err := testutils.DoPrepareNode(p.client, &nodes.Items[index], strategy); err != nil {\n\t\t\tif err := testutils.DoPrepareNode(p.client, &nodes.Items[index], v.Strategy); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/aeba0f1dc4f3e767fca9dcd5325333eb2eee0480", "target_edit_idx": 4, "propagatable_edit_idx": [ 10 ] }, { "input": "\tfor k, strategy := range p.countToStrategy {\n\t\tsum += k\n\tfor _, v := range p.countToStrategy {\n\t\tsum += v.Count\n\tfor k, strategy := range p.countToStrategy {\n\t\tsum += k\n\tfor _, v := range p.countToStrategy {\n\t\tsum += v.Count\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/aeba0f1dc4f3e767fca9dcd5325333eb2eee0480", "target_edit_idx": 9, "propagatable_edit_idx": [ 3 ] }, { "input": "// TODO(phase1+): kube-proxy should be a daemonset, three different daemonsets should not be here\nfunc createKubeProxyPodSpec(cfg *kubeadmapi.MasterConfiguration, architecture string) api.PodSpec {\nfunc createKubeProxyPodSpec(cfg *kubeadmapi.MasterConfiguration) api.PodSpec {\n\tarches := [3]string{\"amd64\", \"arm\", \"arm64\"}\n\n\tfor _, arch := range arches {\n\t\tkubeProxyDaemonSet := NewDaemonSet(kubeProxy+\"-\"+arch, createKubeProxyPodSpec(cfg, arch))\n\t\tSetMasterTaintTolerations(&kubeProxyDaemonSet.Spec.Template.ObjectMeta)\n\tkubeProxyDaemonSet := NewDaemonSet(kubeProxy, createKubeProxyPodSpec(cfg))\n\tSetMasterTaintTolerations(&kubeProxyDaemonSet.Spec.Template.ObjectMeta)\n\tSetNodeAffinity(&kubeProxyDaemonSet.Spec.Template.ObjectMeta, NativeArchitectureNodeAffinity())\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9703df391f7584298537a4425d3a6a094bbc9031", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\tarches := [3]string{\"amd64\", \"arm\", \"arm64\"}\n\n\tfor _, arch := range arches {\n\t\tkubeProxyDaemonSet := NewDaemonSet(kubeProxy+\"-\"+arch, createKubeProxyPodSpec(cfg, arch))\n\t\tSetMasterTaintTolerations(&kubeProxyDaemonSet.Spec.Template.ObjectMeta)\n\tkubeProxyDaemonSet := NewDaemonSet(kubeProxy, createKubeProxyPodSpec(cfg))\n\tSetMasterTaintTolerations(&kubeProxyDaemonSet.Spec.Template.ObjectMeta)\n\tSetNodeAffinity(&kubeProxyDaemonSet.Spec.Template.ObjectMeta, NativeArchitectureNodeAffinity())\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/9703df391f7584298537a4425d3a6a094bbc9031", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tcurr, err := f.Client.Batch().Jobs(f.Namespace.Name).Get(job.Name)\n\t\t\tcurr, err := getV1Job(f.Client, f.Namespace.Name, job.Name)\n\t\t_, err = f.Client.Extensions().Jobs(f.Namespace.Name).Get(job.Name)\n\t\t_, err = getJob(f.Client, f.Namespace.Name, job.Name)\n\t\t_, err = f.Client.Batch().Jobs(f.Namespace.Name).Get(job.Name)\n\t\t_, err = getV1Job(f.Client, f.Namespace.Name, job.Name)\n\t\t\tcurr, err := f.Client.Extensions().Jobs(f.Namespace.Name).Get(job.Name)\n\t\t\tcurr, err := getJob(f.Client, f.Namespace.Name, job.Name)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/393d551332e1b8546f5fa6ee475406e5552fd2f9", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 1, 7 ] }, { "input": "\t\terr = waitForV1JobFail(f.Client, f.Namespace.Name, job.Name)\n\t\terr = waitForV1JobFail(f.Client, f.Namespace.Name, job.Name, 20*time.Second)\n\t\tif err == wait.ErrWaitTimeout {\n\t\t\tjob, err = getV1Job(f.Client, f.Namespace.Name, job.Name)\n\t\t\tExpect(err).NotTo(HaveOccurred())\n\t\t\t// the job stabilized and won't be synced until modification or full\n\t\t\t// resync happens, we don't want to wait for the latter so we force\n\t\t\t// sync modifying it\n\t\t\tjob.Spec.Parallelism = &completions\n\t\t\tjob, err = updateV1Job(f.Client, f.Namespace.Name, job)\n\t\t\tExpect(err).NotTo(HaveOccurred())\n\t\t\terr = waitForV1JobFail(f.Client, f.Namespace.Name, job.Name, v1JobTimeout)\n\t\t}\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/393d551332e1b8546f5fa6ee475406e5552fd2f9", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "func waitForV1JobFail(c *client.Client, ns, jobName string) error {\n\treturn wait.Poll(framework.Poll, v1JobTimeout, func() (bool, error) {\nfunc waitForV1JobFail(c *client.Client, ns, jobName string, timeout time.Duration) error {\n\treturn wait.Poll(framework.Poll, timeout, func() (bool, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/393d551332e1b8546f5fa6ee475406e5552fd2f9", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\terr = waitForJobFail(f.Client, f.Namespace.Name, job.Name)\n\t\terr = waitForJobFail(f.Client, f.Namespace.Name, job.Name, 20*time.Second)\n\t\tif err == wait.ErrWaitTimeout {\n\t\t\tjob, err = getJob(f.Client, f.Namespace.Name, job.Name)\n\t\t\tExpect(err).NotTo(HaveOccurred())\n\t\t\t// the job stabilized and won't be synced until modification or full\n\t\t\t// resync happens, we don't want to wait for the latter so we force\n\t\t\t// sync modifying it\n\t\t\tjob.Spec.Parallelism = &completions\n\t\t\tjob, err = updateJob(f.Client, f.Namespace.Name, job)\n\t\t\tExpect(err).NotTo(HaveOccurred())\n\t\t\terr = waitForJobFail(f.Client, f.Namespace.Name, job.Name, jobTimeout)\n\t\t}\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/393d551332e1b8546f5fa6ee475406e5552fd2f9", "target_edit_idx": 9, "propagatable_edit_idx": [ 12 ] }, { "input": "func waitForJobFail(c *client.Client, ns, jobName string) error {\n\treturn wait.Poll(framework.Poll, jobTimeout, func() (bool, error) {\nfunc waitForJobFail(c *client.Client, ns, jobName string, timeout time.Duration) error {\n\treturn wait.Poll(framework.Poll, timeout, func() (bool, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/393d551332e1b8546f5fa6ee475406e5552fd2f9", "target_edit_idx": 12, "propagatable_edit_idx": [ 9 ] }, { "input": "// ConnectToDockerOrDie creates docker client connecting to docker daemon.\n// If the endpoint passed in is \"fake://\", a fake docker client\n// will be returned. The program exits if error occurs. The requestTimeout\n// is the timeout for docker requests. If timeout is exceeded, the request\n// will be cancelled and throw out an error. If requestTimeout is 0, a default\n// value will be applied.\nfunc ConnectToDockerOrDie(dockerEndpoint string, requestTimeout time.Duration) DockerInterface {\n// CreateDockerClientOrDie creates a docker client for connecting to the docker daemon.\n// It does not actually try to connect to the docker daemon!\n// requestTimeout is the timeout for docker requests.\n// If requestTimeout=0, a default value is used instead.\n// Pass dockerEndpoint=\"fake://\" to create a fake docker client.\n// Errors during client creation will cause program termination.\nfunc CreateDockerClientOrDie(dockerEndpoint string, requestTimeout time.Duration) DockerInterface {\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b9ad337bbdbc5e929491331325d521ae26619e83", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7 ] }, { "input": "\tkubeClient clientset.Interface\n\tkubeClient *client.Client\n\tKubeClient clientset.Interface\n\tKubeClient *client.Client\n\tKubeClient clientset.Interface\n\tKubeClient *client.Client\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/fe53ec34cf853b4ed935c3ac817052e2ec46bb05", "target_edit_idx": 5, "propagatable_edit_idx": [ 12, 13 ] }, { "input": "func NewScheduledJobController(kubeClient clientset.Interface) *ScheduledJobController {\nfunc NewScheduledJobController(kubeClient *client.Client) *ScheduledJobController {\nfunc NewScheduledJobControllerFromClient(kubeClient clientset.Interface) *ScheduledJobController {\nfunc NewScheduledJobControllerFromClient(kubeClient *client.Client) *ScheduledJobController {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/fe53ec34cf853b4ed935c3ac817052e2ec46bb05", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": "\tBy(fmt.Sprintf(\"Waiting for deployment status to sync (current available: %d, minimum available: %d)\", deployment.Status.AvailableReplicas, deploymentutil.MinAvailable(deployment)))\n\terr = framework.WaitForDeploymentStatusValid(c, deployment, true)\n\t// Verify that the required pods have come up.\n\tBy(\"Waiting for all required pods to come up\")\n\terr = framework.VerifyPods(f.Client, ns, nginxImageName, false, deployment.Spec.Replicas)\n\tif err != nil {\n\t\tframework.Logf(\"error in waiting for pods to come up: %s\", err)\n\t\tExpect(err).NotTo(HaveOccurred())\n\t}\n\terr = framework.WaitForDeploymentStatus(c, deployment)\n\tBy(fmt.Sprintf(\"Waiting for deployment status to sync (current available: %d, minimum available: %d)\", deployment.Status.AvailableReplicas, deploymentutil.MinAvailable(deployment)))\n\terr = framework.WaitForDeploymentStatusValid(c, deployment, false)\n\tExpect(err).NotTo(HaveOccurred())\n\tif deployment.Status.AvailableReplicas < deploymentutil.MinAvailable(deployment) {\n\t\tExpect(fmt.Errorf(\"Observed %d available replicas, less than min required %d\", deployment.Status.AvailableReplicas, deploymentutil.MinAvailable(deployment))).NotTo(HaveOccurred())\n\t}\n\tBy(fmt.Sprintf(\"Waiting for deployment status to sync (current available: %d, minimum available: %d)\", deployment.Status.AvailableReplicas, deploymentutil.MinAvailable(deployment)))\n\terr = framework.WaitForDeploymentStatusValid(c, deployment, false)\n\tExpect(err).NotTo(HaveOccurred())\n\tif deployment.Status.AvailableReplicas < deploymentutil.MinAvailable(deployment) {\n\t\tExpect(fmt.Errorf(\"Observed %d available replicas, less than min required %d\", deployment.Status.AvailableReplicas, deploymentutil.MinAvailable(deployment))).NotTo(HaveOccurred())\n\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/242c11b580c1dfb732bc9ee7d6e4800edcdec9a5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\t\tExpectNoError(pst.verifyDirectoryIsUsable(\"/data\"))\n\t\t\tExpectNoError(pst.checkMount(ps, \"/data\"))\n\t\t\tExpectNoError(pst.verifyDirectoryIsUsable(\"/data\"))\n\t\t\tExpectNoError(pst.checkMount(ps, \"/data\"))\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4e2f97a80e0394df7c3abdeae388f85ace18acb5", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tfmt.Sprintf(\"ls -idlh %v\", dirPath),\n\t\tfmt.Sprintf(\"ls -idlh %v\", mountPath),\n\t\tfmt.Sprintf(\"find %v\", dirPath),\n\t\tfmt.Sprintf(\"find %v\", mountPath),\n\t\tfmt.Sprintf(\"touch %v\", filepath.Join(dirPath, fmt.Sprintf(\"%v\", time.Now().UnixNano()))),\n\t\tfmt.Sprintf(\"touch %v\", filepath.Join(mountPath, fmt.Sprintf(\"%v\", time.Now().UnixNano()))),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4e2f97a80e0394df7c3abdeae388f85ace18acb5", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10 ] }, { "input": "\t\tfmt.Sprintf(\"find %v\", dirPath),\n\t\tfmt.Sprintf(\"find %v\", mountPath),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4e2f97a80e0394df7c3abdeae388f85ace18acb5", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 10 ] }, { "input": "\t\tfmt.Sprintf(\"touch %v\", filepath.Join(dirPath, fmt.Sprintf(\"%v\", time.Now().UnixNano()))),\n\t\tfmt.Sprintf(\"touch %v\", filepath.Join(mountPath, fmt.Sprintf(\"%v\", time.Now().UnixNano()))),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4e2f97a80e0394df7c3abdeae388f85ace18acb5", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9 ] }, { "input": "\tklet.runtimeState = newRuntimeState(maxWaitForContainerRuntime, configureCBR0)\n\tklet.runtimeState = newRuntimeState(maxWaitForContainerRuntime)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/265fdd93440c7fbfb4279d53970f38a96ce4ab96", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\tkubelet.runtimeState = newRuntimeState(maxWaitForContainerRuntime, false)\n\tkubelet.runtimeState = newRuntimeState(maxWaitForContainerRuntime)\n\tkubelet.runtimeState.setNetworkState(nil)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/265fdd93440c7fbfb4279d53970f38a96ce4ab96", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": "func InstallSupport(mux Mux, ws *restful.WebService, checks ...healthz.HealthzChecker) {\nfunc InstallSupport(mux Mux, checks ...healthz.HealthzChecker) []*restful.WebService {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a79cb3c44ea1752880fcd7c0498d249eda96ff05", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\tws := new(restful.WebService)\n\tInstallSupport(mux, ws)\n\tcontainer.Add(ws)\n\twebservices := InstallSupport(mux)\n\tfor i := range webservices {\n\t\tcontainer.Add(webservices[i])\n\t}\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a79cb3c44ea1752880fcd7c0498d249eda96ff05", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4 ] }, { "input": "\t\tfakeClient := &FakeDockerClient{}\n\t\tfakeClient := NewFakeDockerClient()\n\tfakeClient := &FakeDockerClient{}\n\tfakeClient := NewFakeDockerClient()\n\t\tfakeClient := &FakeDockerClient{}\n\t\tfakeClient := NewFakeDockerClient()\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8fb7ee38b04f911aa2bd4279a16fd80ef938ec07", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 5 ] }, { "input": "\toldPod := old.(*api.Pod)\n\toldPod := old.(*api.Pod)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/59b1f5b8b578a35583fda02c458f4854168e3627", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "func getPodReadyCondition(spec *api.PodSpec, containerStatuses []api.ContainerStatus) []api.PodCondition {\nfunc getPodReadyCondition(spec *api.PodSpec, containerStatuses []api.ContainerStatus, podPhase api.PodPhase) []api.PodCondition {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/3f630d8ad7c162d7cac8fedfb32b35f0cc7240ff", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 11 ] }, { "input": "\tpodStatus.Conditions = append(podStatus.Conditions, getPodReadyCondition(spec, podStatus.ContainerStatuses)...)\n\tpodStatus.Conditions = append(podStatus.Conditions, getPodReadyCondition(spec, podStatus.ContainerStatuses, podStatus.Phase)...)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/3f630d8ad7c162d7cac8fedfb32b35f0cc7240ff", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 11 ] }, { "input": "\t\tcondition := getPodReadyCondition(test.spec, test.containerStatuses)\n\t\tcondition := getPodReadyCondition(test.spec, test.containerStatuses, test.podPhase)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/3f630d8ad7c162d7cac8fedfb32b35f0cc7240ff", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "\tpkg_runtime \"k8s.io/kubernetes/pkg/runtime\"\n\tkruntime \"k8s.io/kubernetes/pkg/runtime\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/569035f2d25e60e2563db96b4b74387806bed129", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7 ] }, { "input": "\tgenerator := pkg_runtime.NewConversionGenerator(api.Scheme.Raw(), versionPath)\n\tgenerator := kruntime.NewConversionGenerator(api.Scheme.Raw(), versionPath)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/569035f2d25e60e2563db96b4b74387806bed129", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7 ] }, { "input": "\tgenerator := pkg_runtime.NewDeepCopyGenerator(api.Scheme.Raw(), versionPath, sets.NewString(\"k8s.io/kubernetes\"))\n\tgenerator := kruntime.NewDeepCopyGenerator(api.Scheme.Raw(), versionPath, sets.NewString(\"k8s.io/kubernetes\"))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/569035f2d25e60e2563db96b4b74387806bed129", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7 ] }, { "input": "\tdocsForTypes := pkg_runtime.ParseDocumentationFrom(*typeSrc)\n\tdocsForTypes := kruntime.ParseDocumentationFrom(*typeSrc)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/569035f2d25e60e2563db96b4b74387806bed129", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7 ] }, { "input": "\t\trc, err := pkg_runtime.VerifySwaggerDocsExist(docsForTypes, funcOut)\n\t\trc, err := kruntime.VerifySwaggerDocsExist(docsForTypes, funcOut)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/569035f2d25e60e2563db96b4b74387806bed129", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7 ] }, { "input": "\t\tif err := pkg_runtime.WriteSwaggerDocFunc(docsForTypes, funcOut); err != nil {\n\t\tif err := kruntime.WriteSwaggerDocFunc(docsForTypes, funcOut); err != nil {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/569035f2d25e60e2563db96b4b74387806bed129", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6 ] }, { "input": "\t\tawsServices: awsServices,\n\t\tawsServices: awsServices,\n\t\tawsServices: awsServices,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/326dd7c1c028e5bf15604aa05341245dd1c87577", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\t\t\t\t\treturn findMappedPortName(pod, port.Protocol, name)\n\t\t\t\t\thostPort, err := findMappedPortName(pod, port.Protocol, name)\n\t\t\t\t\treturn hostPort, port.ContainerPort, err\n\t\t\t\t\treturn findMappedPort(pod, port.Protocol, p)\n\t\t\t\t\thostPort, err := findMappedPort(pod, port.Protocol, p)\n\t\t\t\t\treturn hostPort, port.ContainerPort, err\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/c55e7bf731f54dfa4a99e93f5964f5e00c74f9e9", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tSkipUnlessProviderIs(\"gce\", \"aws\")\n\t\tSkipUnlessProviderIs(\"gce\", \"gke\", \"aws\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.13043478260869565, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a885166890f18ae9f3d12ef10bf2919ce7e33157", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 1, 9 ] }, { "input": "\t\tSkipUnlessProviderIs(\"gce\")\n\t\tSkipUnlessProviderIs(\"gce\", \"gke\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.13043478260869565, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a885166890f18ae9f3d12ef10bf2919ce7e33157", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 8, 9 ] }, { "input": "\tif testContext.Provider == \"gce\" {\n\tif testContext.Provider == \"gce\" || testContext.Provider == \"gke\" {\n\tif testContext.Provider == \"gce\" {\n\tif testContext.Provider == \"gce\" || testContext.Provider == \"gke\" {\n\tif testContext.Provider == \"gce\" {\n\tif testContext.Provider == \"gce\" || testContext.Provider == \"gke\" {\n\tif testContext.Provider == \"gce\" {\n\tif testContext.Provider == \"gce\" || testContext.Provider == \"gke\" {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a885166890f18ae9f3d12ef10bf2919ce7e33157", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": "\t\tSkipUnlessProviderIs(\"gce\", \"aws\")\n\t\tSkipUnlessProviderIs(\"gce\", \"gke\", \"aws\")\n\t\tSkipUnlessProviderIs(\"gce\", \"aws\")\n\t\tSkipUnlessProviderIs(\"gce\", \"gke\", \"aws\")\n\t\tSkipUnlessProviderIs(\"gce\")\n\t\tSkipUnlessProviderIs(\"gce\", \"gke\")\n\t\tSkipUnlessProviderIs(\"gce\")\n\t\tSkipUnlessProviderIs(\"gce\", \"gke\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.13043478260869565, "commit_url": "https://github.com/kubernetes/kubernetes/commit/a885166890f18ae9f3d12ef10bf2919ce7e33157", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 9 ] }, { "input": "\tserviceAccount, err := e.getServiceAccount(secret)\n\tserviceAccount, err := e.getServiceAccount(secret, true)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/1ee557814676fcf69c5c7c9e8d77ccb684939009", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\t\t// We shouldn't delete a secret based on an invalid serviceAccount reference until the serviceAccount store is synced\n\t\tif !e.serviceAccountsSynced() {\n\t\t\treturn\n\t\t}\n\t\t// We shouldn't delete a secret based on an invalid serviceAccount reference until the serviceAccount store is synced\n\t\tif !e.serviceAccountsSynced() {\n\t\t\treturn\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/1ee557814676fcf69c5c7c9e8d77ccb684939009", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\tnewServiceAccount, err := e.getServiceAccount(newSecret)\n\tnewServiceAccount, err := e.getServiceAccount(newSecret, true)\n\tserviceAccount, err := e.getServiceAccount(secret)\n\tserviceAccount, err := e.getServiceAccount(secret, true)\n\tserviceAccount, err := e.getServiceAccount(secret)\n\tserviceAccount, err := e.getServiceAccount(secret, false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/1ee557814676fcf69c5c7c9e8d77ccb684939009", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4 ] }, { "input": "\tserviceAccount, err := e.getServiceAccount(secret)\n\tserviceAccount, err := e.getServiceAccount(secret, false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/1ee557814676fcf69c5c7c9e8d77ccb684939009", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "\t\t\"added secret without serviceaccount with unsynced service account store\": {\n\t\t\tClientObjects: []runtime.Object{serviceAccountTokenSecret()},\n\n\t\t\tServiceAccountsSyncPending: true,\n\n\t\t\tAddedSecret: serviceAccountTokenSecret(),\n\t\t\tExpectedActions: []testclient.FakeAction{},\n\t\t},\n\t\t\"updated secret without serviceaccount with unsynced service account store\": {\n\t\t\tClientObjects: []runtime.Object{serviceAccountTokenSecret()},\n\n\t\t\tServiceAccountsSyncPending: true,\n\n\t\t\tUpdatedSecret: serviceAccountTokenSecret(),\n\t\t\tExpectedActions: []testclient.FakeAction{},\n\t\t},\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/1ee557814676fcf69c5c7c9e8d77ccb684939009", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": "\tif _, err := storage.Allocate(1); fmt.Sprintf(\"%v\", err) != \"cannot allocate resources of type serviceipallocation at this time\" {\n\tif _, err := storage.Allocate(1); !strings.Contains(err.Error(), \"cannot allocate resources of type serviceipallocation at this time\") {\n\tif err := storage.Allocate(net.ParseIP(\"192.168.1.2\")); fmt.Sprintf(\"%v\", err) != \"cannot allocate resources of type serviceipallocation at this time\" {\n\tif err := storage.Allocate(net.ParseIP(\"192.168.1.2\")); !strings.Contains(err.Error(), \"cannot allocate resources of type serviceipallocation at this time\") {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4c0c7dd8793aa5b0fde172f5e441f26e26a40442", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": "\tlatest, err := c.alloc.Get()\n\t// If etcd server is not running we should wait for some time and fail only then. This is particularly\n\t// important when we start apiserver and etcd at the same time.\n\tvar latest *api.RangeAllocation\n\tvar err error\n\tfor i := 0; i < 10; i++ {\n\t\tif latest, err = c.alloc.Get(); err != nil {\n\t\t\ttime.Sleep(time.Second)\n\t\t} else {\n\t\t\tbreak\n\t\t}\n\t}\n\tlatest, err := c.alloc.Get()\n\t// If etcd server is not running we should wait for some time and fail only then. This is particularly\n\t// important when we start apiserver and etcd at the same time.\n\tvar latest *api.RangeAllocation\n\tvar err error\n\tfor i := 0; i < 10; i++ {\n\t\tif latest, err = c.alloc.Get(); err != nil {\n\t\t\ttime.Sleep(time.Second)\n\t\t} else {\n\t\t\tbreak\n\t\t}\n\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/4c0c7dd8793aa5b0fde172f5e441f26e26a40442", "target_edit_idx": 5, "propagatable_edit_idx": [ 9 ] }, { "input": "\tservice *api.Service\n\t// The last-known state of the service\n\tlastState *api.Service\n\t// The state as successfully applied to the load balancer\n\tappliedState *api.Service\n\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/kubernetes/kubernetes/commit/1561fce81ce0b9bf9239d2249cd447390d5018e2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tservice = cachedService.service\n\t\tdelta.Object = cachedService.service\n\t\tservice = cachedService.lastState\n\t\tdelta.Object = cachedService.lastState\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/kubernetes/kubernetes/commit/1561fce81ce0b9bf9239d2249cd447390d5018e2", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\terr, retry := s.createLoadBalancerIfNeeded(namespacedName, service, cachedService.service)\n\t\terr, retry := s.createLoadBalancerIfNeeded(namespacedName, service, cachedService.appliedState)\n\t\tcachedService.service = service\n\t\tcachedService.appliedState = service\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/1561fce81ce0b9bf9239d2249cd447390d5018e2", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\tTo(ConnectResource(connecter, reqScope, connectOptionsKind, connectSubpath, connectSubpathKey)).\n\t\t\t\t\tTo(ConnectResource(connecter, reqScope, admit, connectOptionsKind, path, connectSubpath, connectSubpathKey)).\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/328b1d08173e9240ee2af2d43077b2b9fab23913", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "func ConnectResource(connecter rest.Connecter, scope RequestScope, connectOptionsKind string, subpath bool, subpathKey string) restful.RouteFunction {\nfunc ConnectResource(connecter rest.Connecter, scope RequestScope, admit admission.Interface, connectOptionsKind, restPath string, subpath bool, subpathKey string) restful.RouteFunction {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/328b1d08173e9240ee2af2d43077b2b9fab23913", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tif podExp.add != -1 || podExp.del != -1 {\n\t\tadd, del := podExp.getExpectations()\n\t\tif add != -1 || del != -1 {\n\t\tif podExp.add != 1 || podExp.del != 2 {\n\t\tadd, del := podExp.getExpectations()\n\t\tif add != 1 || del != 2 {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8bf0adf147f094af199c4444860005a69b73a5f5", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tcase <-time.After(100 * time.Millisecond):\n\tcase <-time.After(controllerTimeout):\n\tcase <-time.After(100 * time.Millisecond):\n\tcase <-time.After(controllerTimeout):\n\tcase <-time.After(100 * time.Millisecond):\n\tcase <-time.After(controllerTimeout):\n\t\tcase <-time.After(100 * time.Millisecond):\n\t\tcase <-time.After(controllerTimeout):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/8bf0adf147f094af199c4444860005a69b73a5f5", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": "func (kr *kubeletRuntimeHooks) ReportImagePull(pod *api.Pod, container *api.Container, err error) {\nfunc (kr *kubeletRuntimeHooks) ReportImagePull(pod *api.Pod, container *api.Container, pullError error) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/kubernetes/kubernetes/commit/090d0c95fa69635a5a0ed1493aa6196a7e95915a", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\tif err != nil {\n\t\tkr.recorder.Eventf(ref, \"failed\", \"Failed to pull image %q: %v\", container.Image, err)\n\tif pullError != nil {\n\t\tkr.recorder.Eventf(ref, \"failed\", \"Failed to pull image %q: %v\", container.Image, pullError)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/kubernetes/kubernetes/commit/090d0c95fa69635a5a0ed1493aa6196a7e95915a", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\t\t\tCommand: []string{\"bash\", \"-c\", fmt.Sprintf(\"i=0; while ((i < %d)); do echo \\\"%d %s $i %s\\\"; i=$(($i+1)); done\", countTo, i, underscoreName, podName)},\n\t\t\t\t\t\tCommand: []string{\"bash\", \"-c\", fmt.Sprintf(\"i=0; while ((i < %d)); do echo \\\"%d %s $i %s\\\"; i=$(($i+1)); done\", countTo, i, taintName, podName)},\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/f2980a3f132e568248293fdc92e0803863f14f50", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\t\tParam(\"q\", fmt.Sprintf(\"log:%s\", underscoreName)).\n\t\t\tParam(\"q\", fmt.Sprintf(\"log:%s\", taintName)).\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/f2980a3f132e568248293fdc92e0803863f14f50", "target_edit_idx": 10, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\t\tLogf(\"Waiting for pod %q status to be success or failure\", podName)\n\t\t\t\tLogf(\"Waiting for pod %q in namespace %s status to be success or failure\", podName, namespace)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.017857142857142856, "commit_url": "https://github.com/kubernetes/kubernetes/commit/f2980a3f132e568248293fdc92e0803863f14f50", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\t\t\tLogf(\"Nil State.Termination for container %s in pod %s so far\", contName, podName)\n\t\t\t\tLogf(\"Nil State.Termination for container %s in pod %s in namespace %s so far\", contName, podName, namespace)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.017857142857142856, "commit_url": "https://github.com/kubernetes/kubernetes/commit/f2980a3f132e568248293fdc92e0803863f14f50", "target_edit_idx": 13, "propagatable_edit_idx": [ 12 ] }, { "input": "\tPodCIDR string `json:\"cidr,omitempty\" description:\"IP range assigned to the node\"`\n\tPodCIDR string `json:\"podCIDR,omitempty\" description:\"IP range assigned to the node\"`\n\tPodCIDR string `json:\"cidr,omitempty\" description:\"IP range assigned to the node\"`\n\tPodCIDR string `json:\"podCIDR,omitempty\" description:\"IP range assigned to the node\"`\n\tPodCIDR string `json:\"cidr,omitempty\" description:\"pod IP range assined to the node\"`\n\tPodCIDR string `json:\"podCIDR,omitempty\" description:\"pod IP range assigned to the node\"`\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kubernetes/kubernetes/commit/243a3ae315caafd1ce8791c1437ba42f37918ea1", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\tif !waitForPodNotPending(c, ns, podDescr.Name) {\n\t\tglog.Infof(\"Failed to start pod %s in namespace %s\", podDescr.Name, ns)\n\terr = waitForPodNotPending(c, ns, podDescr.Name, 60*time.Second)\n\tif err != nil {\n\t\tglog.Infof(\"Failed to start pod %s in namespace %s: %v\", podDescr.Name, ns, err)\nfunc waitForPodNotPending(c *client.Client, ns, podName string) bool {\n\tfor i := 0; i < 10; i++ {\nfunc waitForPodNotPending(c *client.Client, ns, podName string, tryFor time.Duration) error {\n\ttrySecs := int(tryFor.Seconds())\n\tfor i := 0; i <= trySecs; i += 5 {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/ff670524088328b7e8d8293f02507cb5d1feaf6e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "func waitForPodNotPending(c *client.Client, ns, podName string) bool {\n\tfor i := 0; i < 10; i++ {\nfunc waitForPodNotPending(c *client.Client, ns, podName string, tryFor time.Duration) error {\n\ttrySecs := int(tryFor.Seconds())\n\tfor i := 0; i <= trySecs; i += 5 {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/ff670524088328b7e8d8293f02507cb5d1feaf6e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tperPodBackoff: map[string]*backoffEntry{},\n\t\tclock: &fakeClock{},\n\t\tperPodBackoff: map[string]*backoffEntry{},\n\t\tclock: &fakeClock{},\n\t\tdefaultDuration: 1 * time.Millisecond,\n\t\tmaxDuration: 1 * time.Second,\n\t\tperPodBackoff: map[string]*backoffEntry{},\n\t\tclock: &clock,\n\t\tperPodBackoff: map[string]*backoffEntry{},\n\t\tclock: &clock,\n\t\tdefaultDuration: 1 * time.Second,\n\t\tmaxDuration: 60 * time.Second,\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b38c25ebf4cf0f00d7774706ec551b8f76ac8b7a", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "func registerResourceHandlers(ws *restful.WebService, version string, path string, storage RESTStorage, kinds map[string]reflect.Type, h restful.RouteFunction) {\nfunc registerResourceHandlers(ws *restful.WebService, version string, path string, storage RESTStorage, kinds map[string]reflect.Type, h restful.RouteFunction, namespaceScope bool) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/6694a45542f68b91c6ec250ac9a34ee73a1a8268", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tregisterResourceHandlers(ws, version, path, storage, kinds, h)\n\t\tregisterResourceHandlers(ws, version, \"ns/{namespace}/\"+path, storage, kinds, h)\n\t\t// register legacy patterns where namespace is optional in path\n\t\tregisterResourceHandlers(ws, version, path, storage, kinds, h, false)\n\t\t// register pattern where namespace is required in path\n\t\tregisterResourceHandlers(ws, version, path, storage, kinds, h, true)\nfunc registerResourceHandlers(ws *restful.WebService, version string, path string, storage RESTStorage, kinds map[string]reflect.Type, h restful.RouteFunction) {\nfunc registerResourceHandlers(ws *restful.WebService, version string, path string, storage RESTStorage, kinds map[string]reflect.Type, h restful.RouteFunction, namespaceScope bool) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/6694a45542f68b91c6ec250ac9a34ee73a1a8268", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\tallErrs = append(allErrs, validateLabels(pod.Labels)...)\n\tallErrs = append(allErrs, validateLabels(pod.Labels, \"labels\")...)\n\tallErrs = append(allErrs, validateLabels(spec.NodeSelector).Prefix(\"nodeSelector\")...)\n\tallErrs = append(allErrs, validateLabels(spec.NodeSelector, \"nodeSelector\")...)\nfunc validateLabels(labels map[string]string) errs.ValidationErrorList {\nfunc validateLabels(labels map[string]string, field string) errs.ValidationErrorList {\n\tallErrs = append(allErrs, validateLabels(service.Labels)...)\n\tallErrs = append(allErrs, validateLabels(service.Spec.Selector)...)\n\tallErrs = append(allErrs, validateLabels(service.Labels, \"labels\")...)\n\tallErrs = append(allErrs, validateLabels(service.Spec.Selector, \"selector\")...)\n\tallErrs = append(allErrs, validateLabels(controller.Labels)...)\n\tallErrs = append(allErrs, validateLabels(controller.Labels, \"labels\")...)\n\tallErrs = append(allErrs, validateLabels(minion.Labels)...)\n\tallErrs = append(allErrs, validateLabels(minion.Labels, \"labels\")...)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/d5a6a5439189fc5aee9445145836fe5d46c397b3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4, 5, 8 ] }, { "input": "\tallErrs = append(allErrs, validateLabels(spec.NodeSelector).Prefix(\"nodeSelector\")...)\n\tallErrs = append(allErrs, validateLabels(spec.NodeSelector, \"nodeSelector\")...)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/d5a6a5439189fc5aee9445145836fe5d46c397b3", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 4, 5, 8 ] }, { "input": "\tallErrs = append(allErrs, validateLabels(service.Labels)...)\n\tallErrs = append(allErrs, validateLabels(service.Spec.Selector)...)\n\tallErrs = append(allErrs, validateLabels(service.Labels, \"labels\")...)\n\tallErrs = append(allErrs, validateLabels(service.Spec.Selector, \"selector\")...)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/kubernetes/kubernetes/commit/d5a6a5439189fc5aee9445145836fe5d46c397b3", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 5, 8 ] }, { "input": "\tallErrs = append(allErrs, validateLabels(controller.Labels)...)\n\tallErrs = append(allErrs, validateLabels(controller.Labels, \"labels\")...)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/d5a6a5439189fc5aee9445145836fe5d46c397b3", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 4, 8 ] }, { "input": "\tallErrs = append(allErrs, validateLabels(minion.Labels)...)\n\tallErrs = append(allErrs, validateLabels(minion.Labels, \"labels\")...)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/d5a6a5439189fc5aee9445145836fe5d46c397b3", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 4, 5 ] }, { "input": "\tHost string `json:\"host,omitempty\" yaml:\"host,omitempty\"`\n\tHostIP string `json:\"hostIP,omitempty\" yaml:\"hostIP,omitempty\"`\n\tPodIP string `json:\"podIP,omitempty\" yaml:\"podIP,omitempty\"`\n\t// A human readable message indicating details about why the pod is in this state.\n\tMessage string `json:\"message,omitempty\" yaml:\"message,omitempty\"`\n\tHost string `json:\"host,omitempty\" yaml:\"host,omitempty\"`\n\tHostIP string `json:\"hostIP,omitempty\" yaml:\"hostIP,omitempty\"`\n\tPodIP string `json:\"podIP,omitempty\" yaml:\"podIP,omitempty\"`\n\tHost string `json:\"host,omitempty\" yaml:\"host,omitempty\"`\n\tHostIP string `json:\"hostIP,omitempty\" yaml:\"hostIP,omitempty\"`\n\tPodIP string `json:\"podIP,omitempty\" yaml:\"podIP,omitempty\"`\n\t// A human readable message indicating details about why the pod is in this state.\n\tMessage string `json:\"message,omitempty\" yaml:\"message,omitempty\"`\n\tHost string `json:\"host,omitempty\" yaml:\"host,omitempty\"`\n\tHostIP string `json:\"hostIP,omitempty\" yaml:\"hostIP,omitempty\"`\n\tPodIP string `json:\"podIP,omitempty\" yaml:\"podIP,omitempty\"`\n\tHost string `json:\"host,omitempty\" yaml:\"host,omitempty\"`\n\tHostIP string `json:\"hostIP,omitempty\" yaml:\"hostIP,omitempty\"`\n\tPodIP string `json:\"podIP,omitempty\" yaml:\"podIP,omitempty\"`\n\t// A human readable message indicating details about why the pod is in this state.\n\tMessage string `json:\"message,omitempty\" yaml:\"message,omitempty\"`\n\tHost string `json:\"host,omitempty\" yaml:\"host,omitempty\"`\n\tHostIP string `json:\"hostIP,omitempty\" yaml:\"hostIP,omitempty\"`\n\tPodIP string `json:\"podIP,omitempty\" yaml:\"podIP,omitempty\"`\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/3fdbb10255ee51b303e015f843669f3956b680b3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\tif len(portName.StrVal) == 0 && firstContainerPort != -1 {\n\t\t\treturn firstContainerPort, nil\n\t\tif len(portName.StrVal) == 0 {\n\t\t\tif firstContainerPort != 0 {\n\t\t\t\treturn firstContainerPort, nil\n\t\t\t}\n\t\t\tbreak\n\t\tif portName.IntVal == 0 && firstContainerPort != -1 {\n\t\t\treturn firstContainerPort, nil\n\t\tif portName.IntVal == 0 {\n\t\t\tif firstContainerPort != 0 {\n\t\t\t\treturn firstContainerPort, nil\n\t\t\t}\n\t\t\tbreak\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/5a7c00754f676ceec713d9b8d3f0ca35e75327fa", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "func NewMinionController(cloud cloudprovider.Interface, matchRE string, staticResources *api.NodeResources, registry minion.Registry) (*MinionController, error) {\nfunc NewMinionController(\n\tcloud cloudprovider.Interface,\n\tmatchRE string,\n\tstaticResources *api.NodeResources,\n\tregistry minion.Registry,\n\tperiod time.Duration) *MinionController {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/2bd88d4544bc826737bad6d92b7d7d3caced3cb8", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": "\tminionController, err := NewMinionController(&fakeCloud, \".*\", nil, registry)\n\tif err != nil {\n\t\tt.Errorf(\"Unexpected error\")\n\t}\n\tminionController := NewMinionController(&fakeCloud, \".*\", nil, registry, time.Second)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/2bd88d4544bc826737bad6d92b7d7d3caced3cb8", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 3, 7 ] }, { "input": "\tminionController, err := NewMinionController(&fakeCloud, \"m[0-9]+\", nil, registry)\n\tif err != nil {\n\t\tt.Errorf(\"Unexpected error\")\n\t}\n\tminionController := NewMinionController(&fakeCloud, \"m[0-9]+\", nil, registry, time.Second)\nfunc NewMinionController(cloud cloudprovider.Interface, matchRE string, staticResources *api.NodeResources, registry minion.Registry) (*MinionController, error) {\nfunc NewMinionController(\n\tcloud cloudprovider.Interface,\n\tmatchRE string,\n\tstaticResources *api.NodeResources,\n\tregistry minion.Registry,\n\tperiod time.Duration) *MinionController {\n\tminionController, err := NewMinionController(&fakeCloud, \".*\", nil, registry)\n\tif err != nil {\n\t\tt.Errorf(\"Unexpected error\")\n\t}\n\tminionController := NewMinionController(&fakeCloud, \".*\", nil, registry, time.Second)\n\tminionController, err := NewMinionController(&fakeCloud, \".*\", nil, registry)\n\tif err != nil {\n\t\tt.Errorf(\"Unexpected error\")\n\t}\n\tminionController := NewMinionController(&fakeCloud, \".*\", nil, registry, time.Second)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/2bd88d4544bc826737bad6d92b7d7d3caced3cb8", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 6, 7 ] }, { "input": "func DefaultServerURL(host, version string, defaultSecure bool) (*url.URL, error) {\nfunc DefaultServerURL(host, prefix, version string, defaultSecure bool) (*url.URL, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/756f4afb2c2656a387a87439e096447470c111b5", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\treturn DefaultServerURL(host, version, defaultSecure)\n\treturn DefaultServerURL(host, config.Prefix, version, defaultSecure)\nfunc DefaultServerURL(host, version string, defaultSecure bool) (*url.URL, error) {\nfunc DefaultServerURL(host, prefix, version string, defaultSecure bool) (*url.URL, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/756f4afb2c2656a387a87439e096447470c111b5", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tcase err == nil && expected.Err:\n\t\tcase err == nil && testCase.Err:\n\t\tcase err != nil && !expected.Err:\n\t\tcase err != nil && !testCase.Err:\n\t\tif e, a := expected.URL, c.baseURL.String(); e != a {\n\t\t\tt.Errorf(\"%s: expected host %s, got %s\", k, e, a)\n\t\tif e, a := testCase.URL, c.baseURL.String(); e != a {\n\t\t\tt.Errorf(\"%d: expected host %s, got %s\", i, e, a)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/756f4afb2c2656a387a87439e096447470c111b5", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11 ] }, { "input": "\t\tcase err != nil && !expected.Err:\n\t\tcase err != nil && !testCase.Err:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/756f4afb2c2656a387a87439e096447470c111b5", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 11 ] }, { "input": "// NewProxier returns a new Proxier given a LoadBalancer.\nfunc NewProxier(loadBalancer LoadBalancer) *Proxier {\n// NewProxier returns a new Proxier given a LoadBalancer and an\n// address on which to listen\nfunc NewProxier(loadBalancer LoadBalancer, address string) *Proxier {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/34922226fdcad7fa696ccb6ade398ef408b82b65", "target_edit_idx": 3, "propagatable_edit_idx": [ 7, 8, 9, 10, 11, 12 ] }, { "input": "\tp := NewProxier(lb)\n\tp := NewProxier(lb, \"127.0.0.1\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/kubernetes/kubernetes/commit/34922226fdcad7fa696ccb6ade398ef408b82b65", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 8, 9, 10, 11, 12 ] }, { "input": "\tp := NewProxier(lb)\n\tp := NewProxier(lb, \"127.0.0.1\")\n// NewProxier returns a new Proxier given a LoadBalancer.\nfunc NewProxier(loadBalancer LoadBalancer) *Proxier {\n// NewProxier returns a new Proxier given a LoadBalancer and an\n// address on which to listen\nfunc NewProxier(loadBalancer LoadBalancer, address string) *Proxier {\n\tp := NewProxier(lb)\n\tp := NewProxier(lb, \"127.0.0.1\")\n\tp := NewProxier(lb)\n\tp := NewProxier(lb, \"127.0.0.1\")\n\tp := NewProxier(lb)\n\tp := NewProxier(lb, \"127.0.0.1\")\n\tp := NewProxier(lb)\n\tp := NewProxier(lb, \"127.0.0.1\")\n\tp := NewProxier(lb)\n\tp := NewProxier(lb, \"127.0.0.1\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/kubernetes/kubernetes/commit/34922226fdcad7fa696ccb6ade398ef408b82b65", "target_edit_idx": 10, "propagatable_edit_idx": [ 3, 7, 8, 9, 11, 12 ] }, { "input": "func NewSourceEtcd(key string, client tools.EtcdClient, period time.Duration, updates chan<- interface{}) *SourceEtcd {\nfunc NewSourceEtcd(key string, client tools.EtcdClient, updates chan<- interface{}) *SourceEtcd {\n\tNewSourceEtcd(\"/registry/hosts/machine/kubelet\", fakeClient, time.Millisecond, ch)\n\tNewSourceEtcd(\"/registry/hosts/machine/kubelet\", fakeClient, ch)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/34031dbc6ad060f68f1b58aa3459789f30f27d09", "target_edit_idx": 4, "propagatable_edit_idx": [ 10 ] }, { "input": "\tNewSourceEtcd(\"/registry/hosts/machine/kubelet\", fakeClient, time.Millisecond, ch)\n\tNewSourceEtcd(\"/registry/hosts/machine/kubelet\", fakeClient, ch)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/34031dbc6ad060f68f1b58aa3459789f30f27d09", "target_edit_idx": 10, "propagatable_edit_idx": [ 4 ] }, { "input": "func MakeFirstFitScheduler(podLister PodLister, random *rand.Rand) Scheduler {\nfunc NewFirstFitScheduler(podLister PodLister, random *rand.Rand) Scheduler {\n\ts := scheduler.MakeFirstFitScheduler(m.podRegistry, m.random)\n\ts := scheduler.NewFirstFitScheduler(m.podRegistry, m.random)\n\t\tscheduler: MakeFirstFitScheduler(&fakeRegistry, r),\n\t\tscheduler: NewFirstFitScheduler(&fakeRegistry, r),\n\t\tscheduler: MakeFirstFitScheduler(fakeRegistry, r),\n\t\tscheduler: NewFirstFitScheduler(fakeRegistry, r),\n\t\tscheduler: MakeFirstFitScheduler(fakeRegistry, r),\n\t\tscheduler: NewFirstFitScheduler(fakeRegistry, r),\n\t\tscheduler: MakeFirstFitScheduler(fakeRegistry, r),\n\t\tscheduler: NewFirstFitScheduler(fakeRegistry, r),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/6a2703627be0a5e9f8f1c7005cd384561b72644c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5 ] }, { "input": "\t\tscheduler: MakeFirstFitScheduler(&fakeRegistry, r),\n\t\tscheduler: NewFirstFitScheduler(&fakeRegistry, r),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/kubernetes/commit/6a2703627be0a5e9f8f1c7005cd384561b72644c", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5 ] }, { "input": "\tf.ResponseBody = string(bodyReceived)\n\tf.RequestBody = string(bodyReceived)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tif *body != f.ResponseBody {\n\t\t\tt.Errorf(\"Received body:\\n%s\\n Doesn't match expected body:\\n%s\", f.ResponseBody, *body)\n\t\tif *body != f.RequestBody {\n\t\t\tt.Errorf(\"Received body:\\n%s\\n Doesn't match expected body:\\n%s\", f.RequestBody, *body)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "// parseName is the same as [ParseName] without a merge.\nfunc parseName(s string) Name {\n// ParseNameBare parses s as a name string and returns a Name. No merge with\n// [DefaultName] is performed.\nfunc ParseNameBare(s string) Name {\n\treturn merge(parseName(s), DefaultName())\n\treturn Merge(ParseNameBare(s), DefaultName())\n\t\t\tgot := parseName(tt.in)\n\t\t\tgot := ParseNameBare(tt.in)\n\t\tn := parseName(s)\n\t\tn := ParseNameBare(s)\n\t\t\tgot := parseName(s).String()\n\t\t\tgot := ParseNameBare(s).String()\n\t\tn := parseName(s)\n\t\tn := ParseNameBare(s)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/ollama/ollama/commit/b1390a7b37dc44380306330631c1c7948bafd36b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4, 5, 6, 7 ] }, { "input": "func merge(a, b Name) Name {\nfunc Merge(a, b Name) Name {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ollama/ollama/commit/b1390a7b37dc44380306330631c1c7948bafd36b", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t\tgot := parseName(tt.in)\n\t\t\tgot := ParseNameBare(tt.in)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ollama/ollama/commit/b1390a7b37dc44380306330631c1c7948bafd36b", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 5, 6, 7 ] }, { "input": "\t\tn := parseName(s)\n\t\tn := ParseNameBare(s)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ollama/ollama/commit/b1390a7b37dc44380306330631c1c7948bafd36b", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 4, 6, 7 ] }, { "input": "\t\t\tgot := parseName(s).String()\n\t\t\tgot := ParseNameBare(s).String()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ollama/ollama/commit/b1390a7b37dc44380306330631c1c7948bafd36b", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 4, 5, 7 ] }, { "input": "\tModel string\n\tModel string\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ollama/ollama/commit/fa2f095bd9f002c298042aed5fdc0e7ccd50a652", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\t\tModel: predict.Model,\n\t\t\t\t\tModel: predict.Model,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ollama/ollama/commit/fa2f095bd9f002c298042aed5fdc0e7ccd50a652", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tModel: model.Name,\n\t\t\tModel: model.Name,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ollama/ollama/commit/fa2f095bd9f002c298042aed5fdc0e7ccd50a652", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\t\tModel: r.Model,\n\t\t\t\tModel: req.Model,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ollama/ollama/commit/fa2f095bd9f002c298042aed5fdc0e7ccd50a652", "target_edit_idx": 6, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tpath.Join(buildPath, \"metal\", \"bin\", \"server\"),\n\t\t\tpath.Join(buildPath, \"cpu\", \"bin\", \"server\"),\n\t\t\tpath.Join(buildPath, \"metal\", \"bin\", \"ollama-runner\"),\n\t\t\tpath.Join(buildPath, \"cpu\", \"bin\", \"ollama-runner\"),\n\t\t\tpath.Join(buildPath, \"cuda\", \"bin\", \"server\"),\n\t\t\tpath.Join(buildPath, \"cpu\", \"bin\", \"server\"),\n\t\t\tpath.Join(buildPath, \"cuda\", \"bin\", \"ollama-runner\"),\n\t\t\tpath.Join(buildPath, \"cpu\", \"bin\", \"ollama-runner\"),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ollama/ollama/commit/5d22319a2c7f8509d5eb8f325a7ff9decd1ccda0", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\t\tremote_port = 20001\n\t\t\tremote_port = 25001\n\t\t\tremote_port = 20003\n\t\t\tremote_port = 25003\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/fatedier/frp/commit/15a245766e293098c23b96ae76cdf8117b245714", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tp.setContentInit(start)\n\t\tif err := p.initMainOutputFormat(); err != nil {\n\t\tif err := p.prepareForRender(start); err != nil {\n\t\tp.setContentInit(start)\n\t\tif err := p.initMainOutputFormat(); err != nil {\n\t\tif err := p.prepareForRender(start); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/b8b8436fcca17c152e94cae2a1acad32efc3946c", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tHtmlURL string `json:\"html_url\"`\n\tHTMLURL string `json:\"html_url\"`\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/ccd32854845030179dd74293b8c518c6a7e3f39c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7 ] }, { "input": "\t\tif info.GitHubCommit.HtmlURL == \"\" {\n\t\tif info.GitHubCommit.HTMLURL == \"\" {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/ccd32854845030179dd74293b8c518c6a7e3f39c", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7 ] }, { "input": "\t\treturn fmt.Sprintf(linkTemplate, info.Hash, info.GitHubCommit.HtmlURL)\n\t\treturn fmt.Sprintf(linkTemplate, info.Hash, info.GitHubCommit.HTMLURL)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/ccd32854845030179dd74293b8c518c6a7e3f39c", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7 ] }, { "input": "\t\treturn fmt.Sprintf(linkTemplate, \"@\"+info.GitHubCommit.Author.Login, info.GitHubCommit.Author.HtmlURL)\n\t\treturn fmt.Sprintf(linkTemplate, \"@\"+info.GitHubCommit.Author.Login, info.GitHubCommit.Author.HTMLURL)\n\tif c.GitHubAuthor.HtmlURL != \"\" {\n\t\treturn fmt.Sprintf(\"[@%s](%s)\", c.GitHubAuthor.Login, c.GitHubAuthor.HtmlURL)\n\tif c.GitHubAuthor.HTMLURL != \"\" {\n\t\treturn fmt.Sprintf(\"[@%s](%s)\", c.GitHubAuthor.Login, c.GitHubAuthor.HTMLURL)\n\tHtmlURL string `json:\"html_url\"`\n\tHTMLURL string `json:\"html_url\"`\n\tHtmlURL string `json:\"html_url\"`\n\tHTMLURL string `json:\"html_url\"`\n\tHtmlURL string `json:\"html_url\"`\n\tHTMLURL string `json:\"html_url\"`\n\tHtmlURL string `json:\"html_url\"`\n\tHTMLURL string `json:\"html_url\"`\n\t\tif info.GitHubCommit.HtmlURL == \"\" {\n\t\tif info.GitHubCommit.HTMLURL == \"\" {\n\t\treturn fmt.Sprintf(linkTemplate, info.Hash, info.GitHubCommit.HtmlURL)\n\t\treturn fmt.Sprintf(linkTemplate, info.Hash, info.GitHubCommit.HTMLURL)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/gohugoio/hugo/commit/ccd32854845030179dd74293b8c518c6a7e3f39c", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6 ] }, { "input": "\t\t\t\t\t\tif !counterFound {\n\t\t\t\t\t\t\tcounterFound = strings.Contains(name, counterPlaceHolder)\n\t\t\t\t\t\tif !nameCounterFound {\n\t\t\t\t\t\t\tnameCounterFound = strings.Contains(name, counterPlaceHolder)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/gohugoio/hugo/commit/df20b05463fef42aba93d5208e410a7ecc56da5d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\t\t\tif counterFound && currentCounter == 0 {\n\t\t\t\t\t\t\tcurrentCounter = counters[srcKey] + 1\n\t\t\t\t\t\t\tcounters[srcKey] = currentCounter\n\t\t\t\t\t\tif nameCounterFound && nameCounter == 0 {\n\t\t\t\t\t\t\tcounterKey := \"name_\" + srcKey\n\t\t\t\t\t\t\tnameCounter = counters[counterKey] + 1\n\t\t\t\t\t\t\tcounters[counterKey] = nameCounter\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/gohugoio/hugo/commit/df20b05463fef42aba93d5208e410a7ecc56da5d", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\t\t\t\t\tma.setName(replaceResourcePlaceholders(name, currentCounter))\n\t\t\t\t\t\tma.setName(replaceResourcePlaceholders(name, nameCounter))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/df20b05463fef42aba93d5208e410a7ecc56da5d", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\t\t\tif !counterFound {\n\t\t\t\t\t\t\tcounterFound = strings.Contains(title, counterPlaceHolder)\n\t\t\t\t\t\tif !titleCounterFound {\n\t\t\t\t\t\t\ttitleCounterFound = strings.Contains(title, counterPlaceHolder)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/gohugoio/hugo/commit/df20b05463fef42aba93d5208e410a7ecc56da5d", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\t\t\tif counterFound && currentCounter == 0 {\n\t\t\t\t\t\t\tcurrentCounter = counters[srcKey] + 1\n\t\t\t\t\t\t\tcounters[srcKey] = currentCounter\n\t\t\t\t\t\tif titleCounterFound && titleCounter == 0 {\n\t\t\t\t\t\t\tcounterKey := \"title_\" + srcKey\n\t\t\t\t\t\t\ttitleCounter = counters[counterKey] + 1\n\t\t\t\t\t\t\tcounters[counterKey] = titleCounter\n\t\t\t\t\t\tif !counterFound {\n\t\t\t\t\t\t\tcounterFound = strings.Contains(title, counterPlaceHolder)\n\t\t\t\t\t\tif !titleCounterFound {\n\t\t\t\t\t\t\ttitleCounterFound = strings.Contains(title, counterPlaceHolder)\n\t\t\t\t\t\tma.setTitle((replaceResourcePlaceholders(title, currentCounter)))\n\t\t\t\t\t\tma.setTitle((replaceResourcePlaceholders(title, titleCounter)))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7857142857142857, "commit_url": "https://github.com/gohugoio/hugo/commit/df20b05463fef42aba93d5208e410a7ecc56da5d", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6 ] }, { "input": "\t\t\t\t\t\tma.setTitle((replaceResourcePlaceholders(title, currentCounter)))\n\t\t\t\t\t\tma.setTitle((replaceResourcePlaceholders(title, titleCounter)))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/df20b05463fef42aba93d5208e410a7ecc56da5d", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\tassert.Equal(\"Resource #1\", logo2.Title())\n\t\t\tassert.Equal(\"Resource #2\", logo2.Title())\n\t\t\tassert.Equal(\"Resource #2\", logo1.Title())\n\t\t\tassert.Equal(\"Resource #4\", logo1.Title())\n\t\t\tassert.Equal(\"Resource #2\", foo1.Title())\n\t\t\tassert.Equal(\"Resource #3\", foo1.Title())\n\t\t\tassert.Equal(\"Resource #3\", foo3.Title())\n\t\t\tassert.Equal(\"Resource #5\", foo3.Title())\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/gohugoio/hugo/commit/df20b05463fef42aba93d5208e410a7ecc56da5d", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10 ] }, { "input": "\tif f, ok := translater.translateFuncs[lang]; ok {\n\t\ttranslater.current = f\n\tif f, ok := translator.translateFuncs[lang]; ok {\n\t\ttranslator.current = f\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/gohugoio/hugo/commit/fe0c270577325dcd08d5e21faa42c5288a205f93", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 6, 7, 8, 9 ] }, { "input": "\t\ttranslater.current = translater.translateFuncs[viper.GetString(\"DefaultContentLanguage\")]\n\t\ttranslator.current = translator.translateFuncs[viper.GetString(\"DefaultContentLanguage\")]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/gohugoio/hugo/commit/fe0c270577325dcd08d5e21faa42c5288a205f93", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 6, 7, 8, 9 ] }, { "input": "\t\t\ttranslater.translateFuncs[currentLang] = defaultT\n\t\t\ttranslator.translateFuncs[currentLang] = defaultT\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/fe0c270577325dcd08d5e21faa42c5288a205f93", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 7, 8, 9 ] }, { "input": "\t\ttranslater.translateFuncs[currentLang] = func(translationID string, args ...interface{}) string {\n\t\ttranslator.translateFuncs[currentLang] = func(translationID string, args ...interface{}) string {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/fe0c270577325dcd08d5e21faa42c5288a205f93", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 4, 6, 8, 9 ] }, { "input": "\tif translater == nil || translater.current == nil {\n\t\treturn \"\", fmt.Errorf(\"i18n not initialized, have you configured everything properly?\")\n\tif translator == nil || translator.current == nil {\n\t\thelpers.DistinctErrorLog.Printf(\"i18n not initialized, check that you have language file (in i18n) that matches the site language or the default language.\")\n\t\treturn \"\", nil\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7777777777777778, "commit_url": "https://github.com/gohugoio/hugo/commit/fe0c270577325dcd08d5e21faa42c5288a205f93", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 4, 6, 7, 9 ] }, { "input": "\treturn translater.current(id, args...), nil\n\treturn translator.current(id, args...), nil\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/fe0c270577325dcd08d5e21faa42c5288a205f93", "target_edit_idx": 9, "propagatable_edit_idx": [ 3, 4, 6, 7, 8 ] }, { "input": "\tif limit > seqv.Len() {\n\t\tlimit = seqv.Len()\n\tif limitv > seqv.Len() {\n\t\tlimitv = seqv.Len()\n\treturn seqv.Slice(0, limit).Interface(), nil\n\treturn seqv.Slice(0, limitv).Interface(), nil\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/gohugoio/hugo/commit/da5d98e958a1e5bf3082b55d5d3ae41ac60f6490", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\treturn seqv.Slice(0, limit).Interface(), nil\n\treturn seqv.Slice(0, limitv).Interface(), nil\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/da5d98e958a1e5bf3082b55d5d3ae41ac60f6490", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tif ignored := ignoreDotFile(test.path); test.ignore != ignored {\n\t\tif ignored := isNonProcessablePath(test.path); test.ignore != ignored {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/f271faea066c47817c8a9a62ef5509a151452d6a", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\t\t\tif ignoreDotFile(filePath) {\n\t\t\tif isNonProcessablePath(filePath) {\n\t\tif ignored := ignoreDotFile(test.path); test.ignore != ignored {\n\t\tif ignored := isNonProcessablePath(test.path); test.ignore != ignored {\nfunc ignoreDotFile(filePath string) bool {\nfunc isNonProcessablePath(filePath string) bool {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/f271faea066c47817c8a9a62ef5509a151452d6a", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "func ignoreDotFile(filePath string) bool {\nfunc isNonProcessablePath(filePath string) bool {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/f271faea066c47817c8a9a62ef5509a151452d6a", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\texpected := \"foo/bar/file.md\\n canonical => foo/bar/file/index.html\\n\" +\n\t\t\"alias/test/file1.md\\n\" +\n\texpected := \"foo/bar/file.md (renderer: markdown)\\n canonical => foo/bar/file/index.html\\n\" +\n\t\t\"alias/test/file1.md (renderer: markdown)\\n\" +\n\texpected := \"foo/bar/file.md\\n canonical => foo/bar/file.html\\n\" +\n\t\t\"alias/test/file1.md\\n\" +\n\texpected := \"foo/bar/file.md (renderer: markdown)\\n canonical => foo/bar/file.html\\n\" +\n\t\t\"alias/test/file1.md (renderer: markdown)\\n\" +\n\texpected := \"foo/bar/file.md\\n canonical => ../public/foo/bar/file/index.html\\n\" +\n\t\t\"alias/test/file1.md\\n\" +\n\texpected := \"foo/bar/file.md (renderer: markdown)\\n canonical => ../public/foo/bar/file/index.html\\n\" +\n\t\t\"alias/test/file1.md (renderer: markdown)\\n\" +\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gohugoio/hugo/commit/c510140c0c55394d5b699c62f60df53ef8a164c7", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "func getDriver(name, home string) (Driver, error) {\nfunc GetDriver(name, home string) (Driver, error) {\n\t\treturn getDriver(name, root)\n\t\treturn GetDriver(name, root)\n\t\tdriver, lastError = getDriver(name, root)\n\t\tdriver, lastError = GetDriver(name, root)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/moby/moby/commit/10f23a94f6daaf03c684937daea67d10205b4b89", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\treturn getDriver(name, root)\n\t\treturn GetDriver(name, root)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/moby/moby/commit/10f23a94f6daaf03c684937daea67d10205b4b89", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "\t\tdriver, lastError = getDriver(name, root)\n\t\tdriver, lastError = GetDriver(name, root)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/moby/moby/commit/10f23a94f6daaf03c684937daea67d10205b4b89", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "func (d *Driver) Changes(id string) ([]archive.Change, error) {\n\treturn nil, fmt.Errorf(\"Not implemented\")\n}\n\n\nfunc (d *Driver) Changes(id string) ([]archive.Change, error) {\n\treturn nil, fmt.Errorf(\"Not implemented\")\n}", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/moby/moby/commit/95147675870e9e84deb354f09f0f670a5cb2b1e1", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\treturn image.Mount(container.RootfsPath(), container.rwPath())\n\treturn image.Mount(container.runtime, container.RootfsPath(), container.rwPath(), container.ID)\n\tif err := image.Mount(rootfs, rw); err != nil {\n\tif err := image.Mount(runtime, rootfs, rw, \"testing\"); err != nil {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\tif err := image.Mount(rootfs, rw); err != nil {\n\tif err := image.Mount(runtime, rootfs, rw, \"testing\"); err != nil {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\treturn image.Mount(container.RootfsPath(), container.rwPath())\n\treturn image.Mount(container.runtime, container.RootfsPath(), container.rwPath(), container.ID)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/moby/moby/commit/8637ba710e8bd10ee36aa5c71f5ef54ab9037dfa", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\treturn nil, err\n\t\t\treturn &configFile, err\n\t\t\t\treturn nil, err\n\t\t\t\treturn &configFile, err\n", "class": "clone", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/moby/moby/commit/18962d0ff33cfa6ba2976aa459c766acfd23c1bf", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tfmt.Println(\"Version:\", out.Version)\n\tfmt.Println(\"Git Commit:\", out.GitCommit)\n\tif !out.MemoryLimit {\n\t\tfmt.Println(\"WARNING: No memory limit support\")\n\tfmt.Println(\"Client version:\", VERSION)\n\tfmt.Println(\"Server version:\", out.Version)\n\tif out.GitCommit != \"\" {\n\t\tfmt.Println(\"Git commit:\", out.GitCommit)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09523809523809523, "commit_url": "https://github.com/moby/moby/commit/1dae7a25b919dc70798cbab8107809690212cd69", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\tif !out.SwapLimit {\n\t\tfmt.Println(\"WARNING: No swap limit support\")\n\tif out.GoVersion != \"\" {\n\t\tfmt.Println(\"Go version:\", out.GoVersion)\n\tfmt.Println(\"Version:\", out.Version)\n\tfmt.Println(\"Git Commit:\", out.GitCommit)\n\tif !out.MemoryLimit {\n\t\tfmt.Println(\"WARNING: No memory limit support\")\n\tfmt.Println(\"Client version:\", VERSION)\n\tfmt.Println(\"Server version:\", out.Version)\n\tif out.GitCommit != \"\" {\n\t\tfmt.Println(\"Git commit:\", out.GitCommit)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.19047619047619047, "commit_url": "https://github.com/moby/moby/commit/1dae7a25b919dc70798cbab8107809690212cd69", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\tif err := container.Stop(); err != nil {\n\t\t\tif err := container.Stop(*nSeconds); err != nil {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/moby/moby/commit/1615bb08c7c3fc6c4b22db0a633edda516f97cf0", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": "\tif err := container.Stop(); err != nil {\n\tif err := container.Stop(10); err != nil {\n\t\t\tif err := container.Stop(); err != nil {\n\t\t\tif err := container.Stop(*nSeconds); err != nil {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/moby/moby/commit/1615bb08c7c3fc6c4b22db0a633edda516f97cf0", "target_edit_idx": 7, "propagatable_edit_idx": [ 1 ] }, { "input": "\toffset := 0\n\toffset16 := 0\n\toffset32 := 0\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/junegunn/fzf/commit/791076d3662f04a20386f6ea9d166f6eccbd1a81", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\toffset, B := alloc16(offset, slab, N, false)\n\toffset16, B := alloc16(offset16, slab, N, false)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/junegunn/fzf/commit/791076d3662f04a20386f6ea9d166f6eccbd1a81", "target_edit_idx": 1, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "\toffset, F := alloc16(offset, slab, M, false)\n\toffset32, F := alloc32(offset32, slab, M, false)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/junegunn/fzf/commit/791076d3662f04a20386f6ea9d166f6eccbd1a81", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\toffset, H := alloc16(offset, slab, width*M, false)\n\toffset16, H := alloc16(offset16, slab, width*M, false)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/junegunn/fzf/commit/791076d3662f04a20386f6ea9d166f6eccbd1a81", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 6 ] }, { "input": "\toffset, C := alloc16(offset, slab, width*M, false)\n\toffset16, C := alloc16(offset16, slab, width*M, false)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/junegunn/fzf/commit/791076d3662f04a20386f6ea9d166f6eccbd1a81", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 5 ] }, { "input": "func Max(first int, items ...int) int {\n\tmax := first\n\tfor _, item := range items {\n\t\tif item > max {\n\t\t\tmax = item\n\t\t}\nfunc Max(first int, second int) int {\n\tif first >= second {\n\t\treturn first\n\tif Max(-2, 5, 1, 4, 3) != 5 {\n\tif Max(-2, 5) != 5 {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/junegunn/fzf/commit/41e916a511f37848168a3cddf7cbd1ea1a9ba8da", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\tif Max(-2, 5, 1, 4, 3) != 5 {\n\tif Max(-2, 5) != 5 {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/junegunn/fzf/commit/41e916a511f37848168a3cddf7cbd1ea1a9ba8da", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tl.Debugln(w, \"unchanged:\", curFile, info.ModTime().Unix(), info.Mode()&fs.ModePerm)\n\t\t\tl.Debugln(w, \"unchanged:\", curFile)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0033112582781456954, "commit_url": "https://github.com/syncthing/syncthing/commit/ed588ce335877b31f864581bd130d9fa528fd36e", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\t\tif !cs.NegotiatedProtocolIsMutual || cs.NegotiatedProtocol != s.bepProtocolName {\n\t\tif cs.NegotiatedProtocol != s.bepProtocolName {\n\tif !cs.NegotiatedProtocolIsMutual || cs.NegotiatedProtocol != protocol.ProtocolName {\n\tif cs.NegotiatedProtocol != protocol.ProtocolName {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/7bdb5faa9c69a4e5507b3d747cdfd7cf5a599160", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": "\tf.Seek(0, os.SEEK_SET)\n\tf.Seek(0, io.SeekStart)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/syncthing/syncthing/commit/7bdb5faa9c69a4e5507b3d747cdfd7cf5a599160", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\treq.Cancel = ctx.Done()\n\treq.Cancel = ctx.Done()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/7bdb5faa9c69a4e5507b3d747cdfd7cf5a599160", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": "//go:build go1.14 && !noquic && !go1.17\n// +build go1.14,!noquic,!go1.17\n//go:build go1.15 && !noquic\n// +build go1.15,!noquic\n//go:build go1.14 && !noquic && !go1.17\n// +build go1.14,!noquic,!go1.17\n//go:build go1.15 && !noquic\n// +build go1.15,!noquic\n//go:build go1.14 && !noquic && !go1.17\n// +build go1.14,!noquic,!go1.17\n//go:build go1.15 && !noquic\n// +build go1.15,!noquic\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/70a840d3d5c4b107f6dc24e57ec7b50c9320b318", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\tpkt := packet(version)\n\tpkt := packet(version, \"crash\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/syncthing/syncthing/commit/0970aed5967ecbcbcce2280b35f1b96592156efa", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "func packet(version version) *raven.Packet {\nfunc packet(version version, reportType string) *raven.Packet {\n\t\t\tpkt := packet(version)\n\t\t\tpkt := packet(version, \"failure\")\n\tpkt := packet(version)\n\tpkt := packet(version, \"crash\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/syncthing/syncthing/commit/0970aed5967ecbcbcce2280b35f1b96592156efa", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "\t\treturn \"\", ErrNotRelative\n\t\treturn \"\", errNotRelative\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/9e0b924d57dd6d296472d6af39878437dd7e10bb", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\t\tpanic(fmt.Sprintf(\"%v for nonexistent folder %q\", op, folder))\n\t\tl.Warnf(\"%v for nonexistent folder %q\", op, folder)\n\t\tpanic(\"handling index for nonexistent folder\")\n\t\tpanic(fmt.Sprintf(\"%v for not running folder %q\", op, folder))\n\t\tl.Warnf(\"%v for not running folder %q\", op, folder)\n\t\tpanic(\"handling index for not running folder\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/9fef1552fcc86a33cd5f92bc05b9fef2e6771fd8", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\tf.handleFile(requiredFile, copyChan, nil, dbUpdateChan)\n\tf.handleFile(requiredFile, copyChan, dbUpdateChan)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/syncthing/syncthing/commit/d4e81fff8a096ee6ff1a6c91545a55044c151e8c", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5, 6, 9, 10, 11 ] }, { "input": "\tf.handleFile(requiredFile, copyChan, finisherChan, dbUpdateChan)\n\tf.handleFile(requiredFile, copyChan, dbUpdateChan)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/syncthing/syncthing/commit/d4e81fff8a096ee6ff1a6c91545a55044c151e8c", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 4, 5, 9, 10, 11 ] }, { "input": "\tfo.handleFile(desiredFile, copyChan, finisherChan, dbUpdateChan)\n\tfo.handleFile(desiredFile, copyChan, dbUpdateChan)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/syncthing/syncthing/commit/d4e81fff8a096ee6ff1a6c91545a55044c151e8c", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\tfo.handleFile(desiredFile, copyChan, finisherChan, dbUpdateChan)\n\tfo.handleFile(desiredFile, copyChan, dbUpdateChan)\n\tfo.handleFile(desiredFile, copyChan, finisherChan, dbUpdateChan)\n\tfo.handleFile(desiredFile, copyChan, dbUpdateChan)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/syncthing/syncthing/commit/d4e81fff8a096ee6ff1a6c91545a55044c151e8c", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": "\tf.handleFile(file, copyChan, finisherChan, dbUpdateChan)\n\tf.handleFile(file, copyChan, dbUpdateChan)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/syncthing/syncthing/commit/d4e81fff8a096ee6ff1a6c91545a55044c151e8c", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 4, 5, 6, 10, 11 ] }, { "input": "\tf.handleFile(file, copyChan, finisherChan, dbUpdateChan)\n\tf.handleFile(file, copyChan, dbUpdateChan)\n\t\t\t\tf.handleFile(fi, copyChan, finisherChan, dbUpdateChan)\n\t\t\t\tf.handleFile(fi, copyChan, dbUpdateChan)\n\tf.handleFile(requiredFile, copyChan, nil, dbUpdateChan)\n\tf.handleFile(requiredFile, copyChan, dbUpdateChan)\n\tf.handleFile(requiredFile, copyChan, nil, dbUpdateChan)\n\tf.handleFile(requiredFile, copyChan, dbUpdateChan)\n\tf.handleFile(requiredFile, copyChan, finisherChan, dbUpdateChan)\n\tf.handleFile(requiredFile, copyChan, dbUpdateChan)\n\tf.handleFile(file, copyChan, finisherChan, dbUpdateChan)\n\tf.handleFile(file, copyChan, dbUpdateChan)\n\tf.handleFile(file, copierChan, nil, nil)\n\tf.handleFile(file, copierChan, nil)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/syncthing/syncthing/commit/d4e81fff8a096ee6ff1a6c91545a55044c151e8c", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 4, 5, 6, 9, 11 ] }, { "input": "\tf.handleFile(file, copierChan, nil, nil)\n\tf.handleFile(file, copierChan, nil)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/syncthing/syncthing/commit/d4e81fff8a096ee6ff1a6c91545a55044c151e8c", "target_edit_idx": 11, "propagatable_edit_idx": [ 2, 4, 5, 6, 9, 10 ] }, { "input": "\tfmt.Println(\"awaiting startup\")\n\tfmt.Println(\"awaited startup\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/657be162ddd22f8f30e69d248ae0018b4e6dfda0", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\treturn xdr.ElementSizeExceeded(\"Blocks\", _BlocksSize, 1000000)\n\t\treturn xdr.ElementSizeExceeded(\"Blocks\", _BlocksSize, 10000000)\n\t\treturn xdr.ElementSizeExceeded(\"Blocks\", _BlocksSize, 1000000)\n\t\treturn xdr.ElementSizeExceeded(\"Blocks\", _BlocksSize, 10000000)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/syncthing/syncthing/commit/c8b6e6fd9b443dfa0864f8dc8e3aece58ad79bc0", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tif _BlocksSize > 1000000 {\n\t\t\treturn xdr.ElementSizeExceeded(\"Blocks\", _BlocksSize, 1000000)\n\t\tif _BlocksSize > 10000000 {\n\t\t\treturn xdr.ElementSizeExceeded(\"Blocks\", _BlocksSize, 10000000)\n\t\tif _BlocksSize > 1000000 {\n\t\t\treturn xdr.ElementSizeExceeded(\"Blocks\", _BlocksSize, 1000000)\n\t\tif _BlocksSize > 10000000 {\n\t\t\treturn xdr.ElementSizeExceeded(\"Blocks\", _BlocksSize, 10000000)\n", "class": "clone", "binary_label": 1, "regression_label": 0.2222222222222222, "commit_url": "https://github.com/syncthing/syncthing/commit/c8b6e6fd9b443dfa0864f8dc8e3aece58ad79bc0", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": "\tif len(p.queue.progress) != 1 {\n\tif p.queue.lenProgress() != 1 {\n\tif len(p.queue.progress) != 1 {\n\tif p.queue.lenProgress() != 1 {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/syncthing/syncthing/commit/0f9fa9507e145e579e7205710fc6b2561b4f27ff", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tif len(p.progressEmitter.registry) != 1 || len(p.queue.progress) != 1 || len(p.queue.queued) != 0 {\n\t\tif p.progressEmitter.lenRegistry() != 1 || p.queue.lenProgress() != 1 || p.queue.lenQueued() != 0 {\n\t\tif len(p.progressEmitter.registry) != 1 || len(p.queue.progress) != 1 || len(p.queue.queued) != 0 {\n\t\tif p.progressEmitter.lenRegistry() != 1 || p.queue.lenProgress() != 1 || p.queue.lenQueued() != 0 {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/syncthing/syncthing/commit/0f9fa9507e145e579e7205710fc6b2561b4f27ff", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tp.queue.mut.Lock()\n\t\tlenQProgr := len(p.queue.progress)\n\t\tlenQQueued := len(p.queue.queued)\n\t\tp.queue.mut.Unlock()\n\t\tif len(p.progressEmitter.registry) != 0 || lenQProgr != 0 || lenQQueued != 0 {\n\t\t\tt.Fatal(\"Still registered\", len(p.progressEmitter.registry), len(p.queue.progress), len(p.queue.queued))\n\t\tif p.progressEmitter.lenRegistry() != 0 || p.queue.lenProgress() != 0 || p.queue.lenQueued() != 0 {\n\t\t\tt.Fatal(\"Still registered\", p.progressEmitter.lenRegistry(), p.queue.lenProgress(), p.queue.lenQueued())\n\t\tp.queue.mut.Lock()\n\t\tlenQProgr := len(p.queue.progress)\n\t\tlenQQueued := len(p.queue.queued)\n\t\tp.queue.mut.Unlock()\n\t\tif len(p.progressEmitter.registry) != 0 || lenQProgr != 0 || lenQQueued != 0 {\n\t\t\tt.Fatal(\"Still registered\", len(p.progressEmitter.registry), lenQProgr, lenQQueued)\n\t\tif p.progressEmitter.lenRegistry() != 0 || p.queue.lenProgress() != 0 || p.queue.lenQueued() != 0 {\n\t\t\tt.Fatal(\"Still registered\", p.progressEmitter.lenRegistry(), p.queue.lenProgress(), p.queue.lenQueued())\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/syncthing/syncthing/commit/0f9fa9507e145e579e7205710fc6b2561b4f27ff", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tp.queue.mut.Lock()\n\t\tlenQProgr = len(p.queue.progress)\n\t\tlenQQueued = len(p.queue.queued)\n\t\tp.queue.mut.Unlock()\n\t\tif len(p.progressEmitter.registry) != 0 || lenQProgr != 0 || lenQQueued != 0 {\n\t\t\tt.Fatal(\"Still registered\")\n\t\tif p.progressEmitter.lenRegistry() != 0 || p.queue.lenProgress() != 0 || p.queue.lenQueued() != 0 {\n\t\t\tt.Fatal(\"Still registered\", p.progressEmitter.lenRegistry(), p.queue.lenProgress(), p.queue.lenQueued())\n\t\tif len(p.progressEmitter.registry) != 0 || len(p.queue.progress) != 0 || len(p.queue.queued) != 0 {\n\t\t\tt.Fatal(\"Still registered\")\n\t\tif p.progressEmitter.lenRegistry() != 0 || p.queue.lenProgress() != 0 || p.queue.lenQueued() != 0 {\n\t\t\tt.Fatal(\"Still registered\", p.progressEmitter.lenRegistry(), p.queue.lenProgress(), p.queue.lenQueued())\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06, "commit_url": "https://github.com/syncthing/syncthing/commit/0f9fa9507e145e579e7205710fc6b2561b4f27ff", "target_edit_idx": 5, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\tif len(p.progressEmitter.registry) != 0 || len(p.queue.progress) != 0 || len(p.queue.queued) != 0 {\n\t\t\tt.Fatal(\"Still registered\")\n\t\tif p.progressEmitter.lenRegistry() != 0 || p.queue.lenProgress() != 0 || p.queue.lenQueued() != 0 {\n\t\t\tt.Fatal(\"Still registered\", p.progressEmitter.lenRegistry(), p.queue.lenProgress(), p.queue.lenQueued())\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06, "commit_url": "https://github.com/syncthing/syncthing/commit/0f9fa9507e145e579e7205710fc6b2561b4f27ff", "target_edit_idx": 9, "propagatable_edit_idx": [ 5 ] }, { "input": "type externalAddr struct {\ntype addressLister struct {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/95fc253d6bb8df30141fa7d8707f1b7297f51d2a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 7 ] }, { "input": "func newExternalAddr(upnpSvc *upnpSvc, cfg *config.Wrapper) *externalAddr {\n\treturn &externalAddr{\nfunc newAddressLister(upnpSvc *upnpSvc, cfg *config.Wrapper) *addressLister {\n\treturn &addressLister{\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/syncthing/syncthing/commit/95fc253d6bb8df30141fa7d8707f1b7297f51d2a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 7 ] }, { "input": "func (e *externalAddr) ExternalAddresses() []string {\nfunc (e *addressLister) ExternalAddresses() []string {\ntype externalAddr struct {\ntype addressLister struct {\nfunc newExternalAddr(upnpSvc *upnpSvc, cfg *config.Wrapper) *externalAddr {\n\treturn &externalAddr{\nfunc newAddressLister(upnpSvc *upnpSvc, cfg *config.Wrapper) *addressLister {\n\treturn &addressLister{\n\tvar extAddr *externalAddr\n\tvar addrList *addressLister\nfunc discovery(extAddr *externalAddr, relaySvc *relay.Svc) *discover.Discoverer {\nfunc discovery(addrList *addressLister, relaySvc *relay.Svc) *discover.Discoverer {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/95fc253d6bb8df30141fa7d8707f1b7297f51d2a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 7 ] }, { "input": "\tvar extAddr *externalAddr\n\tvar addrList *addressLister\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/95fc253d6bb8df30141fa7d8707f1b7297f51d2a", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8 ] }, { "input": "\t\textAddr = newExternalAddr(upnpSvc, cfg)\n\t\taddrList = newAddressLister(upnpSvc, cfg)\nfunc newExternalAddr(upnpSvc *upnpSvc, cfg *config.Wrapper) *externalAddr {\n\treturn &externalAddr{\nfunc newAddressLister(upnpSvc *upnpSvc, cfg *config.Wrapper) *addressLister {\n\treturn &addressLister{\n\tvar extAddr *externalAddr\n\tvar addrList *addressLister\n\t\textAddr = newExternalAddr(nil, cfg)\n\t\taddrList = newAddressLister(nil, cfg)\n\tdiscoverer := discovery(extAddr, relaySvc)\n\tdiscoverer := discovery(addrList, relaySvc)\nfunc discovery(extAddr *externalAddr, relaySvc *relay.Svc) *discover.Discoverer {\nfunc discovery(addrList *addressLister, relaySvc *relay.Svc) *discover.Discoverer {\n\t\t\tdisc.StartGlobal(opts.GlobalAnnServers, extAddr)\n\t\t\tdisc.StartGlobal(opts.GlobalAnnServers, addrList)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/95fc253d6bb8df30141fa7d8707f1b7297f51d2a", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5, 6, 7, 8 ] }, { "input": "\t\textAddr = newExternalAddr(nil, cfg)\n\t\taddrList = newAddressLister(nil, cfg)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/95fc253d6bb8df30141fa7d8707f1b7297f51d2a", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4, 6, 7, 8 ] }, { "input": "\tdiscoverer := discovery(extAddr, relaySvc)\n\tdiscoverer := discovery(addrList, relaySvc)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/95fc253d6bb8df30141fa7d8707f1b7297f51d2a", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 5, 7, 8 ] }, { "input": "func discovery(extAddr *externalAddr, relaySvc *relay.Svc) *discover.Discoverer {\nfunc discovery(addrList *addressLister, relaySvc *relay.Svc) *discover.Discoverer {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/95fc253d6bb8df30141fa7d8707f1b7297f51d2a", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8 ] }, { "input": "\t\t\tdisc.StartGlobal(opts.GlobalAnnServers, extAddr)\n\t\t\tdisc.StartGlobal(opts.GlobalAnnServers, addrList)\n\tvar extAddr *externalAddr\n\tvar addrList *addressLister\n\t\textAddr = newExternalAddr(upnpSvc, cfg)\n\t\taddrList = newAddressLister(upnpSvc, cfg)\n\t\textAddr = newExternalAddr(nil, cfg)\n\t\taddrList = newAddressLister(nil, cfg)\n\tdiscoverer := discovery(extAddr, relaySvc)\n\tdiscoverer := discovery(addrList, relaySvc)\nfunc discovery(extAddr *externalAddr, relaySvc *relay.Svc) *discover.Discoverer {\nfunc discovery(addrList *addressLister, relaySvc *relay.Svc) *discover.Discoverer {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/95fc253d6bb8df30141fa7d8707f1b7297f51d2a", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 4, 5, 6, 7 ] }, { "input": "\treturn withPreparedTarget(to, func() error {\n\treturn withPreparedTarget(from, to, func() error {\n\treturn withPreparedTarget(to, func() error {\n\treturn withPreparedTarget(from, to, func() error {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/syncthing/syncthing/commit/67f0c9bef0d1c311e577cbcf8293020d2dcd7013", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\terr = os.Rename(path, strings.Replace(path, filepath.Base(path), string(base), 1))\n\t\t\terr = osutil.TryRename(path, strings.Replace(path, filepath.Base(path), string(base), 1))\n\t\t\t\terr := os.Remove(path)\n\t\t\t\terr := osutil.Remove(path)\n\t\t\terr = os.Rename(path, filepath.Join(rpath, randomName()))\n\t\t\terr = osutil.TryRename(path, filepath.Join(rpath, randomName()))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/syncthing/syncthing/commit/67f0c9bef0d1c311e577cbcf8293020d2dcd7013", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\t\t\terr = os.Rename(path, filepath.Join(rpath, randomName()))\n\t\t\terr = osutil.TryRename(path, filepath.Join(rpath, randomName()))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/syncthing/syncthing/commit/67f0c9bef0d1c311e577cbcf8293020d2dcd7013", "target_edit_idx": 7, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "\t\t\tif err := p.versioner.Archive(p.repoCfg.Directory, of.filepath); err == nil {\n\t\t\tif err := p.versioner.Archive(of.filepath); err == nil {\n\t\terr := p.versioner.Archive(p.repoCfg.Directory, of.filepath)\n\t\terr := p.versioner.Archive(of.filepath)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/syncthing/syncthing/commit/d20df121680b8e0ea9021c8bcefe88f75f04b28d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\terr := p.versioner.Archive(p.repoCfg.Directory, of.filepath)\n\t\terr := p.versioner.Archive(of.filepath)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/syncthing/syncthing/commit/d20df121680b8e0ea9021c8bcefe88f75f04b28d", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\tflag.Usage = usageFor(flag.CommandLine, \"syncthing [options]\")\n\tflag.Usage = usageFor(flag.CommandLine, usage, extraUsage)\nfunc usageFor(fs *flag.FlagSet, usage string) func() {\nfunc usageFor(fs *flag.FlagSet, usage string, extra string) func() {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/syncthing/syncthing/commit/d4ef6a62854cbcb2d6708685606b1b330596fcc2", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "\td := newTestDispenser(input)\n\td := NewTestDispenser(input)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/caddyserver/caddy/commit/6fe04a30b102cc9aaa9d0df717c9fbb73f276139", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8 ] }, { "input": "\td := newTestDispenser(input)\n\td := NewTestDispenser(input)\n\td := newTestDispenser(input)\n\td := NewTestDispenser(input)\n\td := newTestDispenser(input)\n\td := NewTestDispenser(input)\n\td := newTestDispenser(input)\n\td := NewTestDispenser(input)\n\td := newTestDispenser(input)\n\td := NewTestDispenser(input)\n\td := newTestDispenser(input)\n\td := NewTestDispenser(input)\n\td := newTestDispenser(input)\n\td := NewTestDispenser(input)\nfunc newTestDispenser(input string) *Dispenser {\n// NewTestDispenser parses input into tokens and creates a new\n// Disenser for test purposes only; any errors are fatal.\nfunc NewTestDispenser(input string) *Dispenser {\n\treturn parser{Dispenser: newTestDispenser(input)}\n\treturn parser{Dispenser: NewTestDispenser(input)}\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/caddyserver/caddy/commit/6fe04a30b102cc9aaa9d0df717c9fbb73f276139", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8 ] }, { "input": "func newTestDispenser(input string) *Dispenser {\n// NewTestDispenser parses input into tokens and creates a new\n// Disenser for test purposes only; any errors are fatal.\nfunc NewTestDispenser(input string) *Dispenser {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/caddyserver/caddy/commit/6fe04a30b102cc9aaa9d0df717c9fbb73f276139", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8 ] }, { "input": "\treturn parser{Dispenser: newTestDispenser(input)}\n\treturn parser{Dispenser: NewTestDispenser(input)}\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/caddyserver/caddy/commit/6fe04a30b102cc9aaa9d0df717c9fbb73f276139", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7 ] }, { "input": "type Policy struct {\ntype CustomCertSelectionPolicy struct {\n\tcaddy.RegisterModule(Policy{})\n\tcaddy.RegisterModule(CustomCertSelectionPolicy{})\nfunc (Policy) CaddyModule() caddy.ModuleInfo {\nfunc (CustomCertSelectionPolicy) CaddyModule() caddy.ModuleInfo {\n\t\tNew: func() caddy.Module { return new(Policy) },\n\t\tNew: func() caddy.Module { return new(CustomCertSelectionPolicy) },\nfunc (p Policy) SelectCertificate(_ *tls.ClientHelloInfo, choices []certmagic.Certificate) (certmagic.Certificate, error) {\nfunc (p CustomCertSelectionPolicy) SelectCertificate(_ *tls.ClientHelloInfo, choices []certmagic.Certificate) (certmagic.Certificate, error) {\nvar _ certmagic.CertificateSelector = (*Policy)(nil)\nvar _ certmagic.CertificateSelector = (*CustomCertSelectionPolicy)(nil)", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/caddyserver/caddy/commit/b81ae38686fb9fb133a0308294b3dd898b769dac", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 7, 8, 9, 10 ] }, { "input": "\t\tNew: func() caddy.Module { return new(Policy) },\n\t\tNew: func() caddy.Module { return new(CustomCertSelectionPolicy) },\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/caddyserver/caddy/commit/b81ae38686fb9fb133a0308294b3dd898b769dac", "target_edit_idx": 8, "propagatable_edit_idx": [ 4, 6, 7, 9, 10 ] }, { "input": "func (p Policy) SelectCertificate(_ *tls.ClientHelloInfo, choices []certmagic.Certificate) (certmagic.Certificate, error) {\nfunc (p CustomCertSelectionPolicy) SelectCertificate(_ *tls.ClientHelloInfo, choices []certmagic.Certificate) (certmagic.Certificate, error) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/caddyserver/caddy/commit/b81ae38686fb9fb133a0308294b3dd898b769dac", "target_edit_idx": 9, "propagatable_edit_idx": [ 4, 6, 7, 8, 10 ] }, { "input": "\t\t\tkey := fmt.Sprintf(\"http.matchers.%s.%s.%s\", scope, mre.Name, name)\n\t\t\tkey := fmt.Sprintf(\"http.regexp.%s.%s\", mre.Name, name)\n\t\tkey := fmt.Sprintf(\"http.matchers.%s.%s.%d\", scope, mre.Name, i)\n\t\tkey := fmt.Sprintf(\"http.regexp.%s.%d\", mre.Name, i)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.05128205128205128, "commit_url": "https://github.com/caddyserver/caddy/commit/7c7ef8d40e3af35444d522debc95451c04666615", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tplaceholder := fmt.Sprintf(\"{http.matchers.path_regexp.%s}\", key)\n\t\t\tplaceholder := fmt.Sprintf(\"{http.regexp.%s}\", key)\n\t\t\tplaceholder := fmt.Sprintf(\"{http.matchers.header_regexp.%s}\", key)\n\t\t\tplaceholder := fmt.Sprintf(\"{http.regexp.%s}\", key)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/caddyserver/caddy/commit/7c7ef8d40e3af35444d522debc95451c04666615", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\t\tt.Errorf(\"Test %d [%v]: Expected placeholder {http.matchers.path_regexp.%s} to be '%s' but got '%s'\",\n\t\t\t\tt.Errorf(\"Test %d [%v]: Expected placeholder {http.regexp.%s} to be '%s' but got '%s'\",\n\t\t\t\tt.Errorf(\"Test %d [%v]: Expected placeholder {http.matchers.header_regexp.%s} to be '%s' but got '%s'\",\n\t\t\t\tt.Errorf(\"Test %d [%v]: Expected placeholder {http.regexp.%s} to be '%s' but got '%s'\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/caddyserver/caddy/commit/7c7ef8d40e3af35444d522debc95451c04666615", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": "\tTotalEvalTime QueryTiming = iota\n\tEvalTotalTime QueryTiming = iota\n\tevalTimer := q.stats.GetTimer(stats.TotalEvalTime).Start()\n\tevalTimer := q.stats.GetTimer(stats.EvalTotalTime).Start()\n\tcase TotalEvalTime:\n\t\treturn \"Total eval time\"\n\tcase EvalTotalTime:\n\t\treturn \"Eval total time\"\n\t\tcase TotalEvalTime:\n\t\t\tqs.TotalEvalTime = timer.Duration()\n\t\tcase EvalTotalTime:\n\t\t\tqs.EvalTotalTime = timer.Duration()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/87c46ea6c3368a3d5fc94f4cdff88030dcff8225", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": "\tcase TotalEvalTime:\n\t\treturn \"Total eval time\"\n\tcase EvalTotalTime:\n\t\treturn \"Eval total time\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/87c46ea6c3368a3d5fc94f4cdff88030dcff8225", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": "\t// Lock mutex and leave it locked so we panic if there's a bug causing\n\t// the block to be used afterwards.\n\t// Lock mutex and leave it locked so we panic if there's a bug causing\n\t// the block to be used afterwards.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/65b846ae5b1ed531901db0b2804a61a4adcf3b1b", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\tScrapeUrl string `json:\"scrapeUrl\"`\n\tScrapeURL string `json:\"scrapeUrl\"`\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/bd92571bdd881b171c1ea2a2c0ff9c842bb997f7", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tScrapeUrl: t.URL().String(),\n\t\t\tScrapeURL: t.URL().String(),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/bd92571bdd881b171c1ea2a2c0ff9c842bb997f7", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": "func (t *Target) scrape(ctx context.Context) (model.Samples, error) {\nfunc (t *Target) scrape(ctx context.Context, ts time.Time) (model.Samples, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/1a3253e8ede7fa55641ccb291bf99b08fcc97287", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": "func NewFileDiscovery(paths []string, interval time.Duration) *FileDiscovery {\n\tfd := &FileDiscovery{\n\t\tpaths: paths,\n\t\tinterval: interval,\nfunc NewFileDiscovery(conf *config.FileSDConfig) *FileDiscovery {\n\treturn &FileDiscovery{\n\t\tpaths: conf.Names,\n\t\tinterval: time.Duration(conf.RefreshInterval),\n\tfsd := NewFileDiscovery([]string{\"fixtures/_*\" + ext}, 1*time.Hour)\n\tvar conf config.FileSDConfig\n\tconf.Names = []string{\"fixtures/_*\" + ext}\n\tconf.RefreshInterval = config.Duration(1 * time.Hour)\n\n\tfsd := NewFileDiscovery(&conf)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/9ca47869ed54832228e6891751b5b950217d63e2", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\tcloser, err := prepareInstantQuery(node, timestamp, storage, queryStats)\n\tcloser, err := PrepareInstantQuery(node, timestamp, storage, queryStats)\n\tcloser, err := prepareInstantQuery(node, timestamp, storage, queryStats)\n\tcloser, err := PrepareInstantQuery(node, timestamp, storage, queryStats)\n\tcloser, err := prepareInstantQuery(node, timestamp, storage, queryStats)\n\tcloser, err := PrepareInstantQuery(node, timestamp, storage, queryStats)\nfunc prepareInstantQuery(node Node, timestamp clientmodel.Timestamp, storage local.Storage, queryStats *stats.TimerGroup) (local.Preloader, error) {\n// PrepareInstantQuery analyzes the query and preloads the necessary time range for each series.\nfunc PrepareInstantQuery(node Node, timestamp clientmodel.Timestamp, storage local.Storage, queryStats *stats.TimerGroup) (local.Preloader, error) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/a0c8b9abbed1e648936084d2d2d8c08717480275", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "\tcloser, err := prepareRangeQuery(node, start, end, interval, storage, queryStats)\n\tcloser, err := PrepareRangeQuery(node, start, end, interval, storage, queryStats)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/a0c8b9abbed1e648936084d2d2d8c08717480275", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "\tcloser, err := prepareInstantQuery(node, timestamp, storage, queryStats)\n\tcloser, err := PrepareInstantQuery(node, timestamp, storage, queryStats)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/a0c8b9abbed1e648936084d2d2d8c08717480275", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4 ] }, { "input": "func prepareInstantQuery(node Node, timestamp clientmodel.Timestamp, storage local.Storage, queryStats *stats.TimerGroup) (local.Preloader, error) {\n// PrepareInstantQuery analyzes the query and preloads the necessary time range for each series.\nfunc PrepareInstantQuery(node Node, timestamp clientmodel.Timestamp, storage local.Storage, queryStats *stats.TimerGroup) (local.Preloader, error) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/a0c8b9abbed1e648936084d2d2d8c08717480275", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": "func prepareRangeQuery(node Node, start clientmodel.Timestamp, end clientmodel.Timestamp, interval time.Duration, storage local.Storage, queryStats *stats.TimerGroup) (local.Preloader, error) {\n// PrepareRangeQuery analyzes the query and preloads the necessary time range for each series.\nfunc PrepareRangeQuery(node Node, start clientmodel.Timestamp, end clientmodel.Timestamp, interval time.Duration, storage local.Storage, queryStats *stats.TimerGroup) (local.Preloader, error) {\n\tcloser, err := prepareRangeQuery(node, start, end, interval, storage, queryStats)\n\tcloser, err := PrepareRangeQuery(node, start, end, interval, storage, queryStats)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/a0c8b9abbed1e648936084d2d2d8c08717480275", "target_edit_idx": 5, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tInstanceLabel: \"http://example.url\",\n\t\t\tInstanceLabel: \"example.url:80\",\n\t\t\tInstanceLabel: \"http://example.url\",\n\t\t\tInstanceLabel: \"example.url:80\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/prometheus/prometheus/commit/0d0bb3c030dcadd0c16091842c4b2de44ef7cd47", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "\tProcess(stream io.ReadCloser, baseLabels model.LabelSet, results chan Result) (err error)\n\tProcess(stream io.ReadCloser, timestamp time.Time, baseLabels model.LabelSet, results chan Result) (err error)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/a1ba23038e9393fb049740b78b81e513d082c7cb", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "func (p *processor001) Process(stream io.ReadCloser, baseLabels model.LabelSet, results chan Result) (err error) {\nfunc (p *processor001) Process(stream io.ReadCloser, timestamp time.Time, baseLabels model.LabelSet, results chan Result) (err error) {\n\tProcess(stream io.ReadCloser, baseLabels model.LabelSet, results chan Result) (err error)\n\tProcess(stream io.ReadCloser, timestamp time.Time, baseLabels model.LabelSet, results chan Result) (err error)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/a1ba23038e9393fb049740b78b81e513d082c7cb", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\t\tTimestamp: now,\n\t\t\t\t\tTimestamp: timestamp,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/a1ba23038e9393fb049740b78b81e513d082c7cb", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tError string\n\t\tValue string\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/1760d927c8f45ce02b1068eacbc419501f5cb525", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tError: err.Error(),\n\t\tValue: err.Error(),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prometheus/prometheus/commit/1760d927c8f45ce02b1068eacbc419501f5cb525", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\tregistry.Register(\"sample_append_success_count_total\", appendSuccessCount)\n\tregistry.Register(\"sample_append_failure_count_total\", appendFailureCount)\n\tregistry.Register(\"sample_append_success_count_total\", \"Total successfully appended samples\", map[string]string{}, appendSuccessCount)\n\tregistry.Register(\"sample_append_failure_count_total\", \"Total sample append failures\", map[string]string{}, appendFailureCount)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/prometheus/prometheus/commit/6f937ee032a0b7eab120dfaea60dd45cbf96711c", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\tregistry.Register(\"get_label_name_fingerprints_success_count_total\", getLabelNameFingerprintsSuccessCount)\n\tregistry.Register(\"get_label_name_fingerprints_failure_count_total\", getLabelNameFingerprintsFailureCount)\n\n\tregistry.Register(\"get_fingerprints_for_label_set_success_count_total\", getFingerprintsForLabelSetSuccessCount)\n\tregistry.Register(\"get_fingerprints_for_label_set_failure_count_total\", getFingerprintsForLabelSetFailureCount)\n\tregistry.Register(\"get_fingerprints_for_label_name_success_count_total\", getFingerprintsForLabelNameSuccessCount)\n\tregistry.Register(\"get_fingerprints_for_label_name_failure_count_total\", getFingerprintsForLabelNameFailureCount)\n\tregistry.Register(\"get_metric_for_fingerprint_success_count_total\", getMetricForFingerprintSuccessCount)\n\tregistry.Register(\"get_metric_for_fingerprint_failure_count_total\", getMetricForFingerprintFailureCount)\n\tregistry.Register(\"get_boundary_values_success_count_total\", getBoundaryValuesSuccessCount)\n\tregistry.Register(\"get_boundary_values_failure_count_total\", getBoundaryValuesFailureCount)\n\tregistry.Register(\"get_label_name_fingerprints_success_count_total\", \"Successfully fetched label name fingerprints\", map[string]string{}, getLabelNameFingerprintsSuccessCount)\n\tregistry.Register(\"get_label_name_fingerprints_failure_count_total\", \"Failures while fetching label name fingerprints\", map[string]string{}, getLabelNameFingerprintsFailureCount)\n\n\tregistry.Register(\"get_fingerprints_for_label_set_success_count_total\", \"Successfully fetched label set fingerprints\", map[string]string{}, getFingerprintsForLabelSetSuccessCount)\n\tregistry.Register(\"get_fingerprints_for_label_set_failure_count_total\", \"Failures while fetching label set fingerprints\", map[string]string{}, getFingerprintsForLabelSetFailureCount)\n\tregistry.Register(\"get_fingerprints_for_label_name_success_count_total\", \"Successfully fetched label name fingerprints\", map[string]string{}, getFingerprintsForLabelNameSuccessCount)\n\tregistry.Register(\"get_fingerprints_for_label_name_failure_count_total\", \"Failures while fetching label name fingerprints\", map[string]string{}, getFingerprintsForLabelNameFailureCount)\n\tregistry.Register(\"get_metric_for_fingerprint_success_count_total\", \"Successfully fetched metrics by fingerprint\", map[string]string{}, getMetricForFingerprintSuccessCount)\n\tregistry.Register(\"get_metric_for_fingerprint_failure_count_total\", \"Failures while fetching metrics by fingerprint\", map[string]string{}, getMetricForFingerprintFailureCount)\n\tregistry.Register(\"get_boundary_values_success_count_total\", \"Successfully fetched metric boundary values\", map[string]string{}, getBoundaryValuesSuccessCount)\n\tregistry.Register(\"get_boundary_values_failure_count_total\", \"Failures while fetching boundary values\", map[string]string{}, getBoundaryValuesFailureCount)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/prometheus/prometheus/commit/6f937ee032a0b7eab120dfaea60dd45cbf96711c", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "\t\t\t\trawLogger.Debugf(s)\n\t\t\t\trawLogger.Debugf(\"%s\", s)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nektos/act/commit/64b8d2afa47ff6938d7617e00f1260a95c35268e", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\trawLogger.Infof(s)\n\t\t\trawLogger.Infof(\"%s\", s)\n\t\t\t\trawLogger.Infof(s)\n\t\t\t\trawLogger.Infof(\"%s\", s)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/nektos/act/commit/64b8d2afa47ff6938d7617e00f1260a95c35268e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tcli, err := client.NewClientWithOpts()\n\t\tcli, err := client.NewClientWithOpts(client.FromEnv)\n\t\tcli, err := client.NewClientWithOpts()\n\t\tcli, err := client.NewClientWithOpts(client.FromEnv)\n\t\tcli, err := client.NewClientWithOpts()\n\t\tcli, err := client.NewClientWithOpts(client.FromEnv)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/nektos/act/commit/e8c8579eff27c267e4e24ae1a60d542e1e4c8dc6", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "\t\tcli, err := client.NewClientWithOpts()\n\t\tcli, err := client.NewClientWithOpts(client.FromEnv)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/nektos/act/commit/e8c8579eff27c267e4e24ae1a60d542e1e4c8dc6", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "\t\t\t\t\tlog.Errorf(\"Error while retrieving service information from k8s API %s/%s: %v\", service.ObjectMeta.Namespace, pa.Backend.ServiceName, err)\n\t\t\t\t\tlog.Errorf(\"Error while retrieving service information from k8s API %s/%s: %v\", i.ObjectMeta.Namespace, pa.Backend.ServiceName, err)\n\t\t\t\t\tlog.Errorf(\"Service not found for %s/%s\", service.ObjectMeta.Namespace, pa.Backend.ServiceName)\n\t\t\t\t\tlog.Errorf(\"Service not found for %s/%s\", i.ObjectMeta.Namespace, pa.Backend.ServiceName)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.05555555555555555, "commit_url": "https://github.com/traefik/traefik/commit/f2297dd3eda5b0baf7d985492e9aed40d8d4a86e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\t\tlog.Errorf(\"Service not found for %s/%s\", service.ObjectMeta.Namespace, pa.Backend.ServiceName)\n\t\t\t\t\tlog.Errorf(\"Service not found for %s/%s\", i.ObjectMeta.Namespace, pa.Backend.ServiceName)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.05555555555555555, "commit_url": "https://github.com/traefik/traefik/commit/f2297dd3eda5b0baf7d985492e9aed40d8d4a86e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\treturn self.ActivateContext(c, types.OnFocusOpts{})\n\treturn self.Activate(c, types.OnFocusOpts{})\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/41f41ee4eeb60e6d8bf4a617d50df285c3a75832", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 6, 7 ] }, { "input": "\t\tif err := self.deactivateContext(contextToDeactivate, types.OnFocusLostOpts{NewContextKey: c.GetKey()}); err != nil {\n\t\tif err := self.deactivate(contextToDeactivate, types.OnFocusLostOpts{NewContextKey: c.GetKey()}); err != nil {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/41f41ee4eeb60e6d8bf4a617d50df285c3a75832", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "\treturn self.ActivateContext(contextToActivate, singleOpts)\n\treturn self.Activate(contextToActivate, singleOpts)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/41f41ee4eeb60e6d8bf4a617d50df285c3a75832", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4, 6, 7 ] }, { "input": "\tif err := self.deactivateContext(currentContext, types.OnFocusLostOpts{NewContextKey: newContext.GetKey()}); err != nil {\n\tif err := self.deactivate(currentContext, types.OnFocusLostOpts{NewContextKey: newContext.GetKey()}); err != nil {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/41f41ee4eeb60e6d8bf4a617d50df285c3a75832", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 5 ] }, { "input": "\treturn self.ActivateContext(newContext, types.OnFocusOpts{})\n\treturn self.Activate(newContext, types.OnFocusOpts{})\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/41f41ee4eeb60e6d8bf4a617d50df285c3a75832", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 6, 7 ] }, { "input": "func (self *ContextMgr) deactivateContext(c types.Context, opts types.OnFocusLostOpts) error {\nfunc (self *ContextMgr) deactivate(c types.Context, opts types.OnFocusLostOpts) error {\n\t\tif err := self.deactivateContext(contextToDeactivate, types.OnFocusLostOpts{NewContextKey: c.GetKey()}); err != nil {\n\t\tif err := self.deactivate(contextToDeactivate, types.OnFocusLostOpts{NewContextKey: c.GetKey()}); err != nil {\n\tif err := self.deactivateContext(currentContext, types.OnFocusLostOpts{NewContextKey: newContext.GetKey()}); err != nil {\n\tif err := self.deactivate(currentContext, types.OnFocusLostOpts{NewContextKey: newContext.GetKey()}); err != nil {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/41f41ee4eeb60e6d8bf4a617d50df285c3a75832", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "func (self *ContextMgr) ActivateContext(c types.Context, opts types.OnFocusOpts) error {\nfunc (self *ContextMgr) Activate(c types.Context, opts types.OnFocusOpts) error {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/41f41ee4eeb60e6d8bf4a617d50df285c3a75832", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 4, 7 ] }, { "input": "\treturn self.gui.State.ContextMgr.ActivateContext(context, types.OnFocusOpts{})\n\treturn self.gui.State.ContextMgr.Activate(context, types.OnFocusOpts{})\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/41f41ee4eeb60e6d8bf4a617d50df285c3a75832", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 2, 4, 6 ] }, { "input": "func (self *ConfirmationHelper) ResizeCurrentPopupPanel() {\n\tc := self.c.CurrentContext()\n\n\tswitch c {\n\tcase self.c.Contexts().Menu:\n\t\tself.resizeMenu()\n\tcase self.c.Contexts().Confirmation, self.c.Contexts().Suggestions:\n\t\tself.resizeConfirmationPanel()\n\tcase self.c.Contexts().CommitMessage, self.c.Contexts().CommitDescription:\n\t\tself.ResizeCommitMessagePanels()\nfunc (self *ConfirmationHelper) ResizeCurrentPopupPanels() {\n\tfor _, c := range self.c.CurrentPopupContexts() {\n\t\tswitch c {\n\t\tcase self.c.Contexts().Menu:\n\t\t\tself.resizeMenu()\n\t\tcase self.c.Contexts().Confirmation, self.c.Contexts().Suggestions:\n\t\t\tself.resizeConfirmationPanel()\n\t\tcase self.c.Contexts().CommitMessage, self.c.Contexts().CommitDescription:\n\t\t\tself.ResizeCommitMessagePanels()\n\t\t}\n\tgui.helpers.Confirmation.ResizeCurrentPopupPanel()\n\tgui.helpers.Confirmation.ResizeCurrentPopupPanels()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/1ab1fb3599c9aa891e9ff0c8ca52f1a22b8af141", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\tgui.helpers.Confirmation.ResizeCurrentPopupPanel()\n\tgui.helpers.Confirmation.ResizeCurrentPopupPanels()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/1ab1fb3599c9aa891e9ff0c8ca52f1a22b8af141", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "\twithWaitingStatusSyncFn func(message string, f func() error)\n\twithWaitingStatusSyncFn func(message string, f func() error) error\n\twithWaitingStatusSyncFn func(message string, f func() error),\n\twithWaitingStatusSyncFn func(message string, f func() error) error,\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/jesseduffield/lazygit/commit/5396a706611220077d32d01058d5e4b025eab0de", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\treturn helpers.FuzzySearchFunc(history, self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn helpers.FilterFunc(history, self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FuzzySearchFunc(remoteNames, self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FilterFunc(remoteNames, self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FuzzySearchFunc(self.getRemoteBranchNames(separator), self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FilterFunc(self.getRemoteBranchNames(separator), self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FuzzySearchFunc(tagNames, self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FilterFunc(tagNames, self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FuzzySearchFunc(refNames, self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FilterFunc(refNames, self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FuzzySearchFunc(authors, self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FilterFunc(authors, self.c.UserConfig.Gui.UseFuzzySearch())\nfunc FuzzySearchFunc(options []string, useFuzzySearch bool) func(string) []*types.Suggestion {\nfunc FilterFunc(options []string, useFuzzySearch bool) func(string) []*types.Suggestion {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/7d2163d63297063364a18a4d62077badc1c1f47e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": "\treturn FuzzySearchFunc(remoteNames, self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FilterFunc(remoteNames, self.c.UserConfig.Gui.UseFuzzySearch())\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/7d2163d63297063364a18a4d62077badc1c1f47e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6 ] }, { "input": "\treturn FuzzySearchFunc(self.getRemoteBranchNames(separator), self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FilterFunc(self.getRemoteBranchNames(separator), self.c.UserConfig.Gui.UseFuzzySearch())\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/7d2163d63297063364a18a4d62077badc1c1f47e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6 ] }, { "input": "\treturn FuzzySearchFunc(tagNames, self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FilterFunc(tagNames, self.c.UserConfig.Gui.UseFuzzySearch())\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/7d2163d63297063364a18a4d62077badc1c1f47e", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6 ] }, { "input": "\treturn FuzzySearchFunc(refNames, self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FilterFunc(refNames, self.c.UserConfig.Gui.UseFuzzySearch())\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/7d2163d63297063364a18a4d62077badc1c1f47e", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6 ] }, { "input": "\treturn FuzzySearchFunc(authors, self.c.UserConfig.Gui.UseFuzzySearch())\n\treturn FilterFunc(authors, self.c.UserConfig.Gui.UseFuzzySearch())\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/7d2163d63297063364a18a4d62077badc1c1f47e", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6 ] }, { "input": "func FuzzySearchFunc(options []string, useFuzzySearch bool) func(string) []*types.Suggestion {\nfunc FilterFunc(options []string, useFuzzySearch bool) func(string) []*types.Suggestion {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/7d2163d63297063364a18a4d62077badc1c1f47e", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5 ] }, { "input": "\t\t\tmatchingBranchNames = utils.FuzzySearch(input, branchNames, self.c.UserConfig.Gui.UseFuzzySearch())\n\t\t\tmatchingBranchNames = utils.FilterStrings(input, branchNames, self.c.UserConfig.Gui.UseFuzzySearch())\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/561afa990186ce6bdf7f62ce6e0114e6430eda8b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": "\t\t\tmatchingNames = utils.FuzzySearch(input, matchingNames, true)\n\t\t\tmatchingNames = utils.FilterStrings(input, matchingNames, true)\n\t\t\tmatchingBranchNames = utils.FuzzySearch(input, branchNames, self.c.UserConfig.Gui.UseFuzzySearch())\n\t\t\tmatchingBranchNames = utils.FilterStrings(input, branchNames, self.c.UserConfig.Gui.UseFuzzySearch())\n\t\t\tmatches = utils.FuzzySearch(input, options, useFuzzySearch)\n\t\t\tmatches = utils.FilterStrings(input, options, useFuzzySearch)\nfunc FuzzySearch(needle string, haystack []string, useFuzzySearch bool) []string {\nfunc FilterStrings(needle string, haystack []string, useFuzzySearch bool) []string {\n\t\tassert.EqualValues(t, s.expected, FuzzySearch(s.needle, s.haystack, s.useFuzzySearch))\n\t\tassert.EqualValues(t, s.expected, FilterStrings(s.needle, s.haystack, s.useFuzzySearch))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/561afa990186ce6bdf7f62ce6e0114e6430eda8b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 5 ] }, { "input": "\t\t\tmatches = utils.FuzzySearch(input, options, useFuzzySearch)\n\t\t\tmatches = utils.FilterStrings(input, options, useFuzzySearch)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/561afa990186ce6bdf7f62ce6e0114e6430eda8b", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 5 ] }, { "input": "\t\tassert.EqualValues(t, s.expected, FuzzySearch(s.needle, s.haystack, s.useFuzzySearch))\n\t\tassert.EqualValues(t, s.expected, FilterStrings(s.needle, s.haystack, s.useFuzzySearch))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/561afa990186ce6bdf7f62ce6e0114e6430eda8b", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": "\treturn self.startInteractiveRebaseWithEdit(selectedCommit, selectedCommit)\n\treturn self.startInteractiveRebaseWithEdit(selectedCommit)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jesseduffield/lazygit/commit/f9876c9742c15ff193f8959a596967863de80d60", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\treturn self.startInteractiveRebaseWithEdit(commitToEdit, selectedCommit)\n\treturn self.startInteractiveRebaseWithEdit(commitToEdit)\n\treturn self.startInteractiveRebaseWithEdit(selectedCommit, selectedCommit)\n\treturn self.startInteractiveRebaseWithEdit(selectedCommit)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jesseduffield/lazygit/commit/f9876c9742c15ff193f8959a596967863de80d60", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\t\treturn self.c.WithWaitingStatus(self.c.Tr.DeletingStatus, func(t gocui.Task) error {\n\t\t\t\t\treturn self.c.WithInlineStatus(tag, types.ItemOperationDeleting, context.TAGS_CONTEXT_KEY, func(task gocui.Task) error {\n\t\t\treturn self.c.WithWaitingStatus(self.c.Tr.PushingTagStatus, func(task gocui.Task) error {\n\t\t\treturn self.c.WithInlineStatus(tag, types.ItemOperationPushing, context.TAGS_CONTEXT_KEY, func(task gocui.Task) error {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/jesseduffield/lazygit/commit/3d6965ccbbd992adc7cd68015dfd38309cbc8835", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\treturn getTagDisplayStrings(tag, diffed)\n\t\treturn getTagDisplayStrings(tag, getItemOperation(tag), diffed, tr)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/3d6965ccbbd992adc7cd68015dfd38309cbc8835", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": "func getTagDisplayStrings(t *models.Tag, diffed bool) []string {\nfunc getTagDisplayStrings(t *models.Tag, itemOperation types.ItemOperation, diffed bool, tr *i18n.TranslationSet) []string {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/3d6965ccbbd992adc7cd68015dfd38309cbc8835", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": "\tgui.CmdLog = append(gui.CmdLog, cmdStr)\n\tgui.GuiLog = append(gui.GuiLog, cmdStr)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/jesseduffield/lazygit/commit/114ad52ff61346bb4c4eaa64f157197ebfb998a5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "\t// Log of the commands that get run, to be displayed to the user.\n\tCmdLog []string\n\t// Log of the commands/actions logged in the Command Log panel.\n\tGuiLog []string\n\tgui.CmdLog = append(gui.CmdLog, cmdStr)\n\tgui.GuiLog = append(gui.GuiLog, cmdStr)\n\t\tCmdLog: []string{},\n\t\tGuiLog: []string{},\n\t\tstrings.Join(self.gui.CmdLog, \"\\n\"),\n\t\tstrings.Join(self.gui.GuiLog, \"\\n\"),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/114ad52ff61346bb4c4eaa64f157197ebfb998a5", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": "\t\tCmdLog: []string{},\n\t\tGuiLog: []string{},\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/114ad52ff61346bb4c4eaa64f157197ebfb998a5", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": "\t\tstrings.Join(self.gui.CmdLog, \"\\n\"),\n\t\tstrings.Join(self.gui.GuiLog, \"\\n\"),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/114ad52ff61346bb4c4eaa64f157197ebfb998a5", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\t\toSCmd.UserConfig.OS.OpenCommand = \"open {{filename}}\"\n\t\toSCmd.UserConfig.OS.Open = \"open {{filename}}\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jesseduffield/lazygit/commit/e4e16fa38ea5d89fb139c5153338e32d1eeafede", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 5, 6, 7, 8, 9 ] }, { "input": "\t\toSCmd.UserConfig.OS.OpenCommand = `xdg-open {{filename}} > /dev/null`\n\t\toSCmd.UserConfig.OS.Open = `xdg-open {{filename}} > /dev/null`\n\tcommandTemplate := c.UserConfig.OS.OpenCommand\n\tcommandTemplate := c.UserConfig.OS.Open\n\t\tcommandTemplate = config.GetPlatformDefaultConfig().OpenCommand\n\t\t// Legacy support\n\t\tcommandTemplate = c.UserConfig.OS.OpenCommand\n\t}\n\tif commandTemplate == \"\" {\n\t\tcommandTemplate = config.GetPlatformDefaultConfig().Open\n\t\toSCmd.UserConfig.OS.OpenCommand = \"open {{filename}}\"\n\t\toSCmd.UserConfig.OS.Open = \"open {{filename}}\"\n\t\tOpenCommand: \"open -- {{filename}}\",\n\t\tOpenLinkCommand: \"open {{link}}\",\n\t\tOpen: \"open -- {{filename}}\",\n\t\tOpenLink: \"open {{link}}\",\n\t\t\tOpenCommand: `powershell.exe start explorer.exe {{filename}} >/dev/null`,\n\t\t\tOpenLinkCommand: `powershell.exe start {{link}} >/dev/null`,\n\t\t\tOpen: `powershell.exe start explorer.exe {{filename}} >/dev/null`,\n\t\t\tOpenLink: `powershell.exe start {{link}} >/dev/null`,\n\t\tOpenCommand: `xdg-open {{filename}} >/dev/null`,\n\t\tOpenLinkCommand: `xdg-open {{link}} >/dev/null`,\n\t\tOpen: `xdg-open {{filename}} >/dev/null`,\n\t\tOpenLink: `xdg-open {{link}} >/dev/null`,\n\t\tOpenCommand: `start \"\" {{filename}}`,\n\t\tOpenLinkCommand: `start \"\" {{link}}`,\n\t\tOpen: `start \"\" {{filename}}`,\n\t\tOpenLink: `start \"\" {{link}}`,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jesseduffield/lazygit/commit/e4e16fa38ea5d89fb139c5153338e32d1eeafede", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 4, 6, 7, 8, 9 ] }, { "input": "\t\tOpenCommand: \"open -- {{filename}}\",\n\t\tOpenLinkCommand: \"open {{link}}\",\n\t\tOpen: \"open -- {{filename}}\",\n\t\tOpenLink: \"open {{link}}\",\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/jesseduffield/lazygit/commit/e4e16fa38ea5d89fb139c5153338e32d1eeafede", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 4, 5, 7, 8, 9 ] }, { "input": "\t\t\tOpenCommand: `powershell.exe start explorer.exe {{filename}} >/dev/null`,\n\t\t\tOpenLinkCommand: `powershell.exe start {{link}} >/dev/null`,\n\t\t\tOpen: `powershell.exe start explorer.exe {{filename}} >/dev/null`,\n\t\t\tOpenLink: `powershell.exe start {{link}} >/dev/null`,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jesseduffield/lazygit/commit/e4e16fa38ea5d89fb139c5153338e32d1eeafede", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 4, 5, 6, 8, 9 ] }, { "input": "\t\tOpenCommand: `xdg-open {{filename}} >/dev/null`,\n\t\tOpenLinkCommand: `xdg-open {{link}} >/dev/null`,\n\t\tOpen: `xdg-open {{filename}} >/dev/null`,\n\t\tOpenLink: `xdg-open {{link}} >/dev/null`,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jesseduffield/lazygit/commit/e4e16fa38ea5d89fb139c5153338e32d1eeafede", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 4, 5, 6, 7, 9 ] }, { "input": "\t\tOpenCommand: `start \"\" {{filename}}`,\n\t\tOpenLinkCommand: `start \"\" {{link}}`,\n\t\tOpen: `start \"\" {{filename}}`,\n\t\tOpenLink: `start \"\" {{link}}`,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/e4e16fa38ea5d89fb139c5153338e32d1eeafede", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 4, 5, 6, 7, 8 ] }, { "input": "func (gui *Gui) returnFromContext() error {\nfunc (gui *Gui) popContext() error {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/fab2e14b55455be370d8514871d60bc59adfbf30", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": "\treturn self.gui.returnFromContext()\n\treturn self.gui.popContext()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/fab2e14b55455be370d8514871d60bc59adfbf30", "target_edit_idx": 7, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tfunc(test *integration.Test, f func() error) {\n\t\tfunc(test *integration.Test, f func(*testing.T) error) {\n\t\tfunc(test *integration.Test, f func() error) {\n\t\tfunc(test *integration.Test, f func(*testing.T) error) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jesseduffield/lazygit/commit/fb9b6314a0439999079a511d83427744de973f60", "target_edit_idx": 0, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\t\t\terr := f()\n\t\t\t\terr := f(t)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/fb9b6314a0439999079a511d83427744de973f60", "target_edit_idx": 1, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\tfunc(expected string, actual string) {\n\t\tfunc(t *testing.T, expected string, actual string) {\n\t\tfunc(expected string, actual string) {\n\t\tfunc(_t *testing.T, expected string, actual string) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/jesseduffield/lazygit/commit/fb9b6314a0439999079a511d83427744de973f60", "target_edit_idx": 2, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\t\tif err := f(); err != nil {\n\t\t\tif err := f(nil); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/fb9b6314a0439999079a511d83427744de973f60", "target_edit_idx": 10, "propagatable_edit_idx": [ 1 ] }, { "input": "func (c *GitCommand) GetFilesInRef(commitSha string, isStash bool, patchManager *patch.PatchManager) ([]*CommitFile, error) {\nfunc (c *GitCommand) GetFilesInRef(parent string, isStash bool, patchManager *patch.PatchManager) ([]*CommitFile, error) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/609f3f4bfaa71e0d94eac845ee0f8f6ffcf2e624", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\tfiles, err := c.OSCommand.RunCommandWithOutput(\"%s --no-commit-id --name-only -r --no-renames %s\", command, commitSha)\n\tfiles, err := c.OSCommand.RunCommandWithOutput(\"%s --no-commit-id --name-only -r --no-renames %s\", command, parent)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/609f3f4bfaa71e0d94eac845ee0f8f6ffcf2e624", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\tif patchManager != nil && patchManager.CommitSha == commitSha {\n\t\tif patchManager != nil && patchManager.CommitSha == parent {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/609f3f4bfaa71e0d94eac845ee0f8f6ffcf2e624", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\tgui.GitCommand.ShowCommitFileCmdStr(commitFile.Sha, commitFile.Name, false),\n\t\tgui.GitCommand.ShowCommitFileCmdStr(commitFile.Parent, commitFile.Name, false),\n\tif err := gui.GitCommand.CheckoutFile(file.Sha, file.Name); err != nil {\n\tif err := gui.GitCommand.CheckoutFile(file.Parent, file.Name); err != nil {\n\tif gui.GitCommand.PatchManager.CommitSelected() && gui.GitCommand.PatchManager.CommitSha != commitFile.Sha {\n\tif gui.GitCommand.PatchManager.CommitSelected() && gui.GitCommand.PatchManager.CommitSha != commitFile.Parent {\n\t\tcommitText, err := gui.GitCommand.ShowCommitFile(commitFile.Sha, commitFile.Name, true)\n\t\tcommitText, err := gui.GitCommand.ShowCommitFile(commitFile.Parent, commitFile.Name, true)\n\tif gui.GitCommand.PatchManager.CommitSelected() && gui.GitCommand.PatchManager.CommitSha != commitFile.Sha {\n\tif gui.GitCommand.PatchManager.CommitSelected() && gui.GitCommand.PatchManager.CommitSha != commitFile.Parent {\n\tdiff, err := gui.GitCommand.ShowCommitFile(commitFile.Sha, commitFile.Name, true)\n\tdiff, err := gui.GitCommand.ShowCommitFile(commitFile.Parent, commitFile.Name, true)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/609f3f4bfaa71e0d94eac845ee0f8f6ffcf2e624", "target_edit_idx": 6, "propagatable_edit_idx": [ 7, 8, 9, 10, 11 ] }, { "input": "\t\tcommitText, err := gui.GitCommand.ShowCommitFile(commitFile.Sha, commitFile.Name, true)\n\t\tcommitText, err := gui.GitCommand.ShowCommitFile(commitFile.Parent, commitFile.Name, true)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/609f3f4bfaa71e0d94eac845ee0f8f6ffcf2e624", "target_edit_idx": 9, "propagatable_edit_idx": [ 6, 7, 8, 10, 11 ] }, { "input": "\tif gui.GitCommand.PatchManager.CommitSelected() && gui.GitCommand.PatchManager.CommitSha != commitFile.Sha {\n\tif gui.GitCommand.PatchManager.CommitSelected() && gui.GitCommand.PatchManager.CommitSha != commitFile.Parent {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/609f3f4bfaa71e0d94eac845ee0f8f6ffcf2e624", "target_edit_idx": 10, "propagatable_edit_idx": [ 6, 7, 8, 9, 11 ] }, { "input": "\tdiff, err := gui.GitCommand.ShowCommitFile(commitFile.Sha, commitFile.Name, true)\n\tdiff, err := gui.GitCommand.ShowCommitFile(commitFile.Parent, commitFile.Name, true)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jesseduffield/lazygit/commit/609f3f4bfaa71e0d94eac845ee0f8f6ffcf2e624", "target_edit_idx": 11, "propagatable_edit_idx": [ 6, 7, 8, 9, 10 ] }, { "input": "// Delete inserts the a key removal into the batch for later committing.\n// Delete inserts the key removal into the batch for later committing.\n// Delete inserts the a key removal into the batch for later committing.\n// Delete inserts the key removal into the batch for later committing.\n// Delete inserts the a key removal into the batch for later committing.\n// Delete inserts the key removal into the batch for later committing.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ethereum/go-ethereum/commit/06263b1b356dde3e2509aef4efef295744e4f6c3", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\t// Track the amount of time wasted on updating the storage trie\n\tdefer func(start time.Time) { s.db.StorageUpdates += time.Since(start) }(time.Now())\n\n\t// Track the amount of time wasted on hashing the storage trie\n\tdefer func(start time.Time) { s.db.StorageHashes += time.Since(start) }(time.Now())\n\n\t// Track the amount of time wasted on committing the storage trie\n\tdefer func(start time.Time) { s.db.StorageCommits += time.Since(start) }(time.Now())\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ethereum/go-ethereum/commit/4253030ef67a2af2e59bbd1fd90a4c1e75939b9f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\t// case the head state is not available(might occur when node is not\n\t// case the head state is not available (might occur when node is not\n\t// case the head state is not available(might occur when node is not\n\t// case the head state is not available (might occur when node is not\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ethereum/go-ethereum/commit/b9ca38b7358dbf7e236c624043bbab789a8d0389", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tif inclusions != nil { // only during reorgs will the heap will be initialized\n\t\tif inclusions != nil { // only during reorgs will the heap be initialized\n\t\t\tif inclusions != nil { // only during reorgs will the heap will be initialized\n\t\t\tif inclusions != nil { // only during reorgs will the heap be initialized\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ethereum/go-ethereum/commit/b9ca38b7358dbf7e236c624043bbab789a8d0389", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\treturn nil, fmt.Errorf(\"Tracer accessed out of bound memory: available %d, offset %d, size %d\", mo.memory.Len(), begin, end-begin)\n\t\treturn nil, fmt.Errorf(\"tracer accessed out of bound memory: available %d, offset %d, size %d\", mo.memory.Len(), begin, end-begin)\n\t\treturn nil, fmt.Errorf(\"Tracer accessed out of bound memory: available %d, offset %d, size %d\", mo.memory.Len(), addr, 32)\n\t\treturn nil, fmt.Errorf(\"tracer accessed out of bound memory: available %d, offset %d, size %d\", mo.memory.Len(), addr, 32)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ethereum/go-ethereum/commit/d2247d9f5d8e004c6e3396e3b223ad603bb67273", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\ts, n, teardown := newTestServerPeer(t, 0, protocol)\n\t\t\ts, n, teardown := newTestServerPeer(t, 0, protocol, nil)\nfunc newTestServerPeer(t *testing.T, blocks int, protocol int) (*testServer, *enode.Node, func()) {\nfunc newTestServerPeer(t *testing.T, blocks int, protocol int, indexFn indexerCallback) (*testServer, *enode.Node, func()) {\n\tfor i := 0; i < 10; i++ {\n\t\ts, n, teardown := newTestServerPeer(t, 10, protocol)\n\tfor i := 0; i < 4; i++ {\n\t\ts, n, teardown := newTestServerPeer(t, int(2*config.ChtSize+config.ChtConfirms), protocol, waitIndexers)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ethereum/go-ethereum/commit/c1b69bd12184cc6278f5641c14bc72ca0a42d397", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 6 ] }, { "input": "func newTestServerPeer(t *testing.T, blocks int, protocol int) (*testServer, *enode.Node, func()) {\nfunc newTestServerPeer(t *testing.T, blocks int, protocol int, indexFn indexerCallback) (*testServer, *enode.Node, func()) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ethereum/go-ethereum/commit/c1b69bd12184cc6278f5641c14bc72ca0a42d397", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 6 ] }, { "input": "func opSha3(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {\nfunc opKeccak256(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/a69d4b273d1164637e0edb2cbad2e51325b7e897", "target_edit_idx": 4, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\t\topSha3(&pc, evmInterpreter, &ScopeContext{mem, stack, nil})\n\t\topKeccak256(&pc, evmInterpreter, &ScopeContext{mem, stack, nil})\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/a69d4b273d1164637e0edb2cbad2e51325b7e897", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 7 ] }, { "input": "\t\tSHA3: {\n\t\t\texecute: opSha3,\n\t\t\tconstantGas: params.Sha3Gas,\n\t\t\tdynamicGas: gasSha3,\n\t\tKECCAK256: {\n\t\t\texecute: opKeccak256,\n\t\t\tconstantGas: params.Keccak256Gas,\n\t\t\tdynamicGas: gasKeccak256,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/a69d4b273d1164637e0edb2cbad2e51325b7e897", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 6 ] }, { "input": "\t\t\tmemorySize: memorySha3,\n\t\t\tmemorySize: memoryKeccak256,\nfunc memorySha3(stack *Stack) (uint64, bool) {\nfunc memoryKeccak256(stack *Stack) (uint64, bool) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/a69d4b273d1164637e0edb2cbad2e51325b7e897", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "func memorySha3(stack *Stack) (uint64, bool) {\nfunc memoryKeccak256(stack *Stack) (uint64, bool) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/a69d4b273d1164637e0edb2cbad2e51325b7e897", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": "\tif err := RegisterApisFromWhitelist(apis, config.Modules, srv, false); err != nil {\n\tif err := RegisterApis(apis, config.Modules, srv, false); err != nil {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/ethereum/go-ethereum/commit/95bbd46eabc5d95d9fb2108ec232dd62df2f44ab", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": "func RegisterApisFromWhitelist(apis []rpc.API, modules []string, srv *rpc.Server, exposeAll bool) error {\nfunc RegisterApis(apis []rpc.API, modules []string, srv *rpc.Server, exposeAll bool) error {\n\t\terr := node.RegisterApisFromWhitelist(rpcAPI, []string{\"account\"}, srv, false)\n\t\terr := node.RegisterApis(rpcAPI, []string{\"account\"}, srv, false)\n\tif err := RegisterApisFromWhitelist(apis, config.Modules, srv, false); err != nil {\n\tif err := RegisterApis(apis, config.Modules, srv, false); err != nil {\n\tif err := RegisterApisFromWhitelist(apis, config.Modules, srv, false); err != nil {\n\tif err := RegisterApis(apis, config.Modules, srv, false); err != nil {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/ethereum/go-ethereum/commit/95bbd46eabc5d95d9fb2108ec232dd62df2f44ab", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "\t// Generate the whitelist based on the allowed modules\n\twhitelist := make(map[string]bool)\n\t// Generate the allow list based on the allowed modules\n\tallowList := make(map[string]bool)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/ethereum/go-ethereum/commit/95bbd46eabc5d95d9fb2108ec232dd62df2f44ab", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\t\twhitelist[module] = true\n\t\tallowList[module] = true\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/95bbd46eabc5d95d9fb2108ec232dd62df2f44ab", "target_edit_idx": 6, "propagatable_edit_idx": [ 5, 7 ] }, { "input": "\t\tif exposeAll || whitelist[api.Namespace] || (len(whitelist) == 0 && api.Public) {\n\t\tif exposeAll || allowList[api.Namespace] || (len(allowList) == 0 && api.Public) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/ethereum/go-ethereum/commit/95bbd46eabc5d95d9fb2108ec232dd62df2f44ab", "target_edit_idx": 7, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "\t\thashrate = int(fullBackend.Miner().HashRate())\n\t\thashrate = int(fullBackend.Miner().Hashrate())\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/55300d4fdbfda751a7a3d4baadd9db65c50b22b8", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": "func (miner *Miner) HashRate() uint64 {\nfunc (miner *Miner) Hashrate() uint64 {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/55300d4fdbfda751a7a3d4baadd9db65c50b22b8", "target_edit_idx": 8, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\tevm.StateDB.SubRefund(params.SstoreClearRefundEIP2200)\n\t\t\tevm.StateDB.SubRefund(params.SstoreClearsScheduleRefundEIP2200)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/0ddd4612b7db34a6b23926f05f0dd5807d86c7ab", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 6 ] }, { "input": "\t\t\tevm.StateDB.AddRefund(params.SstoreClearRefundEIP2200)\n\t\t\tevm.StateDB.AddRefund(params.SstoreClearsScheduleRefundEIP2200)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/0ddd4612b7db34a6b23926f05f0dd5807d86c7ab", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "\t\t\tevm.StateDB.AddRefund(params.SstoreInitRefundEIP2200)\n\t\t\tevm.StateDB.AddRefund(params.SstoreSetGasEIP2200 - params.SloadGasEIP2200)\n\t\t\tevm.StateDB.AddRefund(params.SstoreCleanRefundEIP2200)\n\t\t\tevm.StateDB.AddRefund(params.SstoreResetGasEIP2200 - params.SloadGasEIP2200)\n", "class": "clone", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/ethereum/go-ethereum/commit/0ddd4612b7db34a6b23926f05f0dd5807d86c7ab", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "func newMsgEventer(rw MsgReadWriter, feed *event.Feed, peerID enode.ID, proto string) *msgEventer {\nfunc newMsgEventer(rw MsgReadWriter, feed *event.Feed, peerID enode.ID, proto, remote, local string) *msgEventer {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/7fd82a0e3e87aaf26198a6cf2de242c30fa7c2ab", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tType: PeerEventTypeMsgRecv,\n\t\tPeer: ev.peerID,\n\t\tProtocol: ev.Protocol,\n\t\tMsgCode: &msg.Code,\n\t\tMsgSize: &msg.Size,\n\t\tType: PeerEventTypeMsgRecv,\n\t\tPeer: ev.peerID,\n\t\tProtocol: ev.Protocol,\n\t\tMsgCode: &msg.Code,\n\t\tMsgSize: &msg.Size,\n\t\tLocalAddress: ev.localAddress,\n\t\tRemoteAddress: ev.remoteAddress,\n\t\tType: PeerEventTypeMsgSend,\n\t\tPeer: ev.peerID,\n\t\tProtocol: ev.Protocol,\n\t\tMsgCode: &msg.Code,\n\t\tMsgSize: &msg.Size,\n\t\tType: PeerEventTypeMsgSend,\n\t\tPeer: ev.peerID,\n\t\tProtocol: ev.Protocol,\n\t\tMsgCode: &msg.Code,\n\t\tMsgSize: &msg.Size,\n\t\tLocalAddress: ev.localAddress,\n\t\tRemoteAddress: ev.remoteAddress,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ethereum/go-ethereum/commit/7fd82a0e3e87aaf26198a6cf2de242c30fa7c2ab", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\trw = newMsgEventer(rw, p.events, p.ID(), proto.Name)\n\t\t\trw = newMsgEventer(rw, p.events, p.ID(), proto.Name, p.Info().Network.RemoteAddress, p.Info().Network.LocalAddress)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/7fd82a0e3e87aaf26198a6cf2de242c30fa7c2ab", "target_edit_idx": 6, "propagatable_edit_idx": [ 1 ] }, { "input": "\tch := Lex(\"test.asm\", []byte(src), false)\n\tch := Lex([]byte(src), false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/768b4c2e6baa54527b76dc7cc03eae04f43f2a0c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "func Lex(name string, source []byte, debug bool) <-chan token {\nfunc Lex(source []byte, debug bool) <-chan token {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/768b4c2e6baa54527b76dc7cc03eae04f43f2a0c", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "func run(evm *EVM, contract *Contract, input []byte) ([]byte, error) {\nfunc run(evm *EVM, contract *Contract, input []byte, readOnly bool) ([]byte, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/ae992a5d73311742389fce3f855575be98fc6972", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 6, 7 ] }, { "input": "\tret, err = run(evm, contract, input)\n\tret, err = run(evm, contract, input, false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/ae992a5d73311742389fce3f855575be98fc6972", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4, 6, 7 ] }, { "input": "\tret, err = run(evm, contract, input)\n\tret, err = run(evm, contract, input, false)\nfunc run(evm *EVM, contract *Contract, input []byte) ([]byte, error) {\nfunc run(evm *EVM, contract *Contract, input []byte, readOnly bool) ([]byte, error) {\n\tret, err = run(evm, contract, input)\n\tret, err = run(evm, contract, input, false)\n\tret, err = run(evm, contract, input)\n\tret, err = run(evm, contract, input, false)\n\tret, err = run(evm, contract, input)\n\tret, err = run(evm, contract, input, true)\n\tret, err := run(evm, contract, nil)\n\tret, err := run(evm, contract, nil, false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/ae992a5d73311742389fce3f855575be98fc6972", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 6, 7 ] }, { "input": "\tret, err = run(evm, contract, input)\n\tret, err = run(evm, contract, input, true)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/ae992a5d73311742389fce3f855575be98fc6972", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 3, 4, 7 ] }, { "input": "\tret, err := run(evm, contract, nil)\n\tret, err := run(evm, contract, nil, false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/ae992a5d73311742389fce3f855575be98fc6972", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 2, 3, 4, 6 ] }, { "input": "\t\t\tdatabase.TrieDB().Dereference(proot)\n\t\t\tif proot != (common.Hash{}) {\n\t\t\t\tdatabase.TrieDB().Dereference(proot)\n\t\t\t}\n\t\tdatabase.TrieDB().Dereference(proot)\n\t\tif proot != (common.Hash{}) {\n\t\t\tdatabase.TrieDB().Dereference(proot)\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ethereum/go-ethereum/commit/11bbc660823246b9fc25e4b994121e30a9f17306", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tBigEndian32ByteAt(bigint, 15)\n\t\tbigEndianByteAt(bigint, 15)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/1496b3aff6a537a1c5597ec55b8d3b25afded26c", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tactual := LittleEndianByteAt(v, test.y)\n\t\tactual := bigEndianByteAt(v, test.y)\n// LittleEndianByteAt returns the byte at position n,\n// if bigint is considered little-endian.\n// So n==0 gives the least significant byte\nfunc LittleEndianByteAt(bigint *big.Int, n int) byte {\n// bigEndianByteAt returns the byte at position n,\n// if bigint is considered big-endian.\n// So n==0 returns the least significant byte\nfunc bigEndianByteAt(bigint *big.Int, n int) byte {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ethereum/go-ethereum/commit/1496b3aff6a537a1c5597ec55b8d3b25afded26c", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": "\tinfo := bindataFileInfo{name: \"bignumber.js\", size: 17314, mode: os.FileMode(420), modTime: time.Unix(1484232218, 0)}\n\tinfo := bindataFileInfo{name: \"bignumber.js\", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}\n\tinfo := bindataFileInfo{name: \"web3.js\", size: 491740, mode: os.FileMode(420), modTime: time.Unix(1484232456, 0)}\n\tinfo := bindataFileInfo{name: \"web3.js\", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ethereum/go-ethereum/commit/667cd518ceada7084698c8ea11d966db9f9e674a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tEnsRoot: toyNetEnsRoot,\n\t\tEnsRoot: ensRootAddress,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/671fd94e256fb33761dc3b0ae2b8b6374d1d9576", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tself.EnsRoot = toyNetEnsRoot\n\t\tself.EnsRoot = ensRootAddress\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/671fd94e256fb33761dc3b0ae2b8b6374d1d9576", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tclient.EthSubscribe(arg, \"foo_bar\")\n\t\tclient.EthSubscribe(context.Background(), arg, \"foo_bar\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/e32925397b3110f6dd5e18c79f6641bd2a55776f", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11, 12 ] }, { "input": "\tsub, err := client.EthSubscribe(nc, \"someSubscription\", count, 0)\n\tsub, err := client.EthSubscribe(context.Background(), nc, \"someSubscription\", count, 0)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/e32925397b3110f6dd5e18c79f6641bd2a55776f", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 11, 12 ] }, { "input": "\t\tsub, err = client.EthSubscribe(nc, \"hangSubscription\", 999)\n\t\tsub, err = client.EthSubscribe(context.Background(), nc, \"hangSubscription\", 999)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/e32925397b3110f6dd5e18c79f6641bd2a55776f", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 10, 12 ] }, { "input": "\t\tsub, err := client.EthSubscribe(nc, \"someSubscription\", count, 0)\n\t\tsub, err := client.EthSubscribe(ctx, nc, \"someSubscription\", count, 0)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/e32925397b3110f6dd5e18c79f6641bd2a55776f", "target_edit_idx": 12, "propagatable_edit_idx": [ 9, 10, 11 ] }, { "input": "func NewAdminApi(xeth *xeth.XEth, network *p2p.Server, ethereum *eth.Ethereum, codec codec.Codec) *adminApi {\nfunc NewAdminApi(xeth *xeth.XEth, ethereum *eth.Ethereum, codec codec.Codec) *adminApi {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/6e5349880e79b8321ae311d824493e4581039d30", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "\treturn self.network.PeersInfo(), nil\n\treturn self.ethereum.Network().PeersInfo(), nil\n\treturn self.network.NodeInfo(), nil\n\treturn self.ethereum.Network().NodeInfo(), nil\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/6e5349880e79b8321ae311d824493e4581039d30", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\tapis[i] = NewAdminApi(xeth, eth.Network(), eth, codec)\n\t\t\tapis[i] = NewAdminApi(xeth, eth, codec)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/6e5349880e79b8321ae311d824493e4581039d30", "target_edit_idx": 6, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tif size == 1 && slice[0] < 56 {\n\t\tif size == 1 && slice[0] < 128 {\n\t\tif size == 1 && b[0] < 56 {\n\t\tif size == 1 && b[0] < 128 {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/345590f27f81517fd7b560a3fafb0a2c8b498094", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tfetch, sync := []*types.Block{}, []*types.Block{}\n\t\t\texplicit, download := []*types.Block{}, []*types.Block{}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/8216bb901c9fbdcde427cc42ca7e82ec3ee2e8e7", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 10, 7 ] }, { "input": "\t\t\t\t\tsync = append(sync, block)\n\t\t\t\t\tdownload = append(download, block)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/ethereum/go-ethereum/commit/8216bb901c9fbdcde427cc42ca7e82ec3ee2e8e7", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 4 ] }, { "input": "\t\t\tcase filter <- sync:\n\t\t\tcase filter <- download:\n\t\t\tfetch, sync := []*types.Block{}, []*types.Block{}\n\t\t\texplicit, download := []*types.Block{}, []*types.Block{}\n\t\t\t\t\tsync = append(sync, block)\n\t\t\t\t\tdownload = append(download, block)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/8216bb901c9fbdcde427cc42ca7e82ec3ee2e8e7", "target_edit_idx": 8, "propagatable_edit_idx": [ 4, 7 ] }, { "input": "\t\t\t\t\tfor _, block := range fetch {\n\t\t\t\t\t\tif announce := pending[block.Hash()]; announce != nil {\n\t\t\t\t\tfor _, block := range explicit {\n\t\t\t\t\t\thash := block.Hash()\n\n\t\t\t\t\t\t// Make sure there's still something pending to import\n\t\t\t\t\t\tif announce := pending[hash]; announce != nil {\n\t\t\t\t\t\t\tdelete(pending, hash)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/8216bb901c9fbdcde427cc42ca7e82ec3ee2e8e7", "target_edit_idx": 10, "propagatable_edit_idx": [ 4 ] }, { "input": "\terrEmptyHashSet = errors.New(\"empty hash set by peer\")\n\tErrEmptyHashSet = errors.New(\"empty hash set by peer\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/94e525ae12bf3455ae434feb83ad834c8dcfa1ad", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\treturn errEmptyHashSet\n\t\t\t\treturn ErrEmptyHashSet\n\terrEmptyHashSet = errors.New(\"empty hash set by peer\")\n\tErrEmptyHashSet = errors.New(\"empty hash set by peer\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/94e525ae12bf3455ae434feb83ad834c8dcfa1ad", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "func NewBlockProcessor(db, extra common.Database, pow pow.PoW, txpool *TxPool, chainManager *ChainManager, eventMux *event.TypeMux) *BlockProcessor {\nfunc NewBlockProcessor(db, extra common.Database, pow pow.PoW, chainManager *ChainManager, eventMux *event.TypeMux) *BlockProcessor {\n\treturn NewBlockProcessor(db, db, ezp.New(), nil, chainMan, &mux), chainMan\n\treturn NewBlockProcessor(db, db, ezp.New(), chainMan, &mux), chainMan\n\ttxpool := NewTxPool(eventMux, chainMan.State, chainMan.GasLimit)\n\tbman := NewBlockProcessor(db, db, FakePow{}, txpool, chainMan, eventMux)\n\tbman := NewBlockProcessor(db, db, FakePow{}, chainMan, eventMux)\n\ttxPool := NewTxPool(&eventMux, chainMan.State, func() *big.Int { return big.NewInt(100000000) })\n\tblockMan := NewBlockProcessor(db, db, nil, txPool, chainMan, &eventMux)\n\tblockMan := NewBlockProcessor(db, db, nil, chainMan, &eventMux)\n\ttxPool := NewTxPool(&eventMux, chainMan.State, func() *big.Int { return big.NewInt(100000000) })\n\tblockMan := NewBlockProcessor(db, db, nil, txPool, chainMan, &eventMux)\n\tblockMan := NewBlockProcessor(db, db, nil, chainMan, &eventMux)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/ec7a2c34423f9337c238ff07c39a15eb18eed79a", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": "\ttxPool := NewTxPool(&eventMux, chainMan.State, func() *big.Int { return big.NewInt(100000000) })\n\tblockMan := NewBlockProcessor(db, db, nil, txPool, chainMan, &eventMux)\n\tblockMan := NewBlockProcessor(db, db, nil, chainMan, &eventMux)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/ec7a2c34423f9337c238ff07c39a15eb18eed79a", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4, 6 ] }, { "input": "\terrPendingQueue = errors.New(\"pending items in queue\")\n\tErrPendingQueue = errors.New(\"pending items in queue\")\n\t\treturn errPendingQueue\n\t\treturn ErrPendingQueue\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/48bd48876c02d1a08690b9604df09ef4bcf77838", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\treturn errPendingQueue\n\t\treturn ErrPendingQueue\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/48bd48876c02d1a08690b9604df09ef4bcf77838", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "func newJSRE(ethereum *eth.Ethereum, libPath string) *jsre {\nfunc newJSRE(ethereum *eth.Ethereum, libPath string, interactive bool) *jsre {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/ethereum/go-ethereum/commit/1c4c71dcff442e3ae30e510fef312d3c05341f30", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\trepl := newJSRE(ethereum, ctx.String(utils.JSpathFlag.Name))\n\trepl := newJSRE(ethereum, ctx.String(utils.JSpathFlag.Name), true)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/ethereum/go-ethereum/commit/1c4c71dcff442e3ae30e510fef312d3c05341f30", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\trepl := newJSRE(ethereum, ctx.String(utils.JSpathFlag.Name))\n\trepl := newJSRE(ethereum, ctx.String(utils.JSpathFlag.Name), false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/ethereum/go-ethereum/commit/1c4c71dcff442e3ae30e510fef312d3c05341f30", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "\tcopy(headbuf[16:], updateHeaderMAC(rw.egressMAC, rw.macCipher, headbuf[:16]))\n\n\t// write header MAC\n\tcopy(headbuf[16:], updateMAC(rw.egressMAC, rw.macCipher, headbuf[:16]))\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ethereum/go-ethereum/commit/d344054e5a2844241bf0e4f64ccfc4d2ad259718", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 7 ] }, { "input": "\tshouldMAC := updateHeaderMAC(rw.ingressMAC, rw.macCipher, headbuf[:16])\n\tif !hmac.Equal(shouldMAC[:16], headbuf[16:]) {\n\tshouldMAC := updateMAC(rw.ingressMAC, rw.macCipher, headbuf[:16])\n\tif !hmac.Equal(shouldMAC, headbuf[16:]) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/d344054e5a2844241bf0e4f64ccfc4d2ad259718", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 7 ] }, { "input": "func updateHeaderMAC(mac hash.Hash, block cipher.Block, header []byte) []byte {\n// updateMAC reseeds the given hash with encrypted seed.\n// it returns the first 16 bytes of the hash sum after seeding.\nfunc updateMAC(mac hash.Hash, block cipher.Block, seed []byte) []byte {\n\tcopy(headbuf[16:], updateHeaderMAC(rw.egressMAC, rw.macCipher, headbuf[:16]))\n\n\t// write header MAC\n\tcopy(headbuf[16:], updateMAC(rw.egressMAC, rw.macCipher, headbuf[:16]))\n\t\taesbuf[i] ^= header[i]\n\t\taesbuf[i] ^= seed[i]\n\tshouldMAC := updateHeaderMAC(rw.ingressMAC, rw.macCipher, headbuf[:16])\n\tif !hmac.Equal(shouldMAC[:16], headbuf[16:]) {\n\tshouldMAC := updateMAC(rw.ingressMAC, rw.macCipher, headbuf[:16])\n\tif !hmac.Equal(shouldMAC, headbuf[16:]) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/ethereum/go-ethereum/commit/d344054e5a2844241bf0e4f64ccfc4d2ad259718", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 8, 4 ] }, { "input": "\t\taesbuf[i] ^= header[i]\n\t\taesbuf[i] ^= seed[i]\nfunc updateHeaderMAC(mac hash.Hash, block cipher.Block, header []byte) []byte {\n// updateMAC reseeds the given hash with encrypted seed.\n// it returns the first 16 bytes of the hash sum after seeding.\nfunc updateMAC(mac hash.Hash, block cipher.Block, seed []byte) []byte {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/d344054e5a2844241bf0e4f64ccfc4d2ad259718", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": "\tUseSeed bool\n\tSeedNode string\n\tUseSeed bool\n\tSeedNode string\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ethereum/go-ethereum/commit/1f4ed49b4c3400c8f567a29c70d4fb26df97f305", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\tflag.BoolVar(&UseSeed, \"seed\", true, \"seed peers\")\n\tflag.StringVar(&SeedNode, \"seednode\", \"poc-8.ethdev.com:30303\", \"ip:port of seed node to connect to. Set to blank for skip\")\n\tflag.BoolVar(&UseSeed, \"seed\", true, \"seed peers\")\n\tflag.StringVar(&SeedNode, \"seednode\", \"poc-8.ethdev.com:30303\", \"ip:port of seed node to connect to. Set to blank for skip\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/1f4ed49b4c3400c8f567a29c70d4fb26df97f305", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\tgo utils.StartEthereum(ethereum, UseSeed)\n\tgo utils.StartEthereum(ethereum, SeedNode)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/1f4ed49b4c3400c8f567a29c70d4fb26df97f305", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 2, 7 ] }, { "input": "func StartEthereum(ethereum *eth.Ethereum, UseSeed bool) {\nfunc StartEthereum(ethereum *eth.Ethereum, SeedNode string) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/1f4ed49b4c3400c8f567a29c70d4fb26df97f305", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 2, 10, 5 ] }, { "input": "\terr := ethereum.Start(UseSeed)\n\terr := ethereum.Start(SeedNode)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/1f4ed49b4c3400c8f567a29c70d4fb26df97f305", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 5, 7 ] }, { "input": "func (s *Ethereum) Start(seed bool) error {\nfunc (s *Ethereum) Start(seedNode string) error {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/1f4ed49b4c3400c8f567a29c70d4fb26df97f305", "target_edit_idx": 10, "propagatable_edit_idx": [ 7 ] }, { "input": "\tif pwd == path.Join(os.Getenv(\"GOPATH\"), \"src\", \"github.com\", \"ethereum\", \"go-ethereum\", \"mist\") {\n\tif pwd == path.Join(os.Getenv(\"GOPATH\"), \"src\", \"github.com\", \"ethereum\", \"go-ethereum\", \"cmd\", \"mist\") {\n\tassetPath := path.Join(os.Getenv(\"GOPATH\"), \"src\", \"github.com\", \"ethereum\", \"go-ethereum\", \"mist\", \"assets\", \"ext\")\n\tassetPath := path.Join(os.Getenv(\"GOPATH\"), \"src\", \"github.com\", \"ethereum\", \"go-ethereum\", \"cmd\", \"mist\", \"assets\", \"ext\")\n\tif pwd == path.Join(os.Getenv(\"GOPATH\"), \"src\", \"github.com\", \"ethereum\", \"go-ethereum\", \"mist\") {\n\tif pwd == path.Join(os.Getenv(\"GOPATH\"), \"src\", \"github.com\", \"ethereum\", \"go-ethereum\", \"cmd\", \"mist\") {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/b095bd32371f02d204a4d0fbde75dc58baa7430d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4 ] }, { "input": "\tassetPath := path.Join(os.Getenv(\"GOPATH\"), \"src\", \"github.com\", \"ethereum\", \"go-ethereum\", \"mist\", \"assets\", \"ext\")\n\tassetPath := path.Join(os.Getenv(\"GOPATH\"), \"src\", \"github.com\", \"ethereum\", \"go-ethereum\", \"cmd\", \"mist\", \"assets\", \"ext\")\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/b095bd32371f02d204a4d0fbde75dc58baa7430d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4 ] }, { "input": "\tif pwd == path.Join(os.Getenv(\"GOPATH\"), \"src\", \"github.com\", \"ethereum\", \"go-ethereum\", \"mist\") {\n\tif pwd == path.Join(os.Getenv(\"GOPATH\"), \"src\", \"github.com\", \"ethereum\", \"go-ethereum\", \"cmd\", \"mist\") {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ethereum/go-ethereum/commit/b095bd32371f02d204a4d0fbde75dc58baa7430d", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "\t\tmux.mutex.Unlock()\n\t\tmux.mutex.Unlock()\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ethereum/go-ethereum/commit/690690489610352d43f8547744b6c9486ad5affa", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\tmux := NewTypeMux()\n\tmux := new(TypeMux)\n\tmux := NewTypeMux()\n\tmux := new(TypeMux)\n\tmux := NewTypeMux()\n\tmux := new(TypeMux)\n\tmux := NewTypeMux()\n\tmux := new(TypeMux)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/ethereum/go-ethereum/commit/690690489610352d43f8547744b6c9486ad5affa", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 7 ] }, { "input": "\tvar mux = NewTypeMux()\n\tvar mux = new(TypeMux)\n\tvar mux = NewTypeMux()\n\tvar mux = new(TypeMux)\n", "class": "clone", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/ethereum/go-ethereum/commit/690690489610352d43f8547744b6c9486ad5affa", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\tgot := newDirector(zaptest.NewLogger(t), uf, time.Minute, time.Minute)\n\t\tstop, donec := make(chan struct{}), make(chan struct{})\n\t\tgot := newDirector(zaptest.NewLogger(t), uf, time.Minute, time.Minute, stop, donec)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/etcd-io/etcd/commit/70a7674e20998acac9280ed0f1ca7f9d2a7acf19", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 5 ] }, { "input": "\t\tdirector: newDirector(lg, urlsFunc, failureWait, refreshInterval),\n\t\tdirector: newDirector(lg, urlsFunc, failureWait, refreshInterval, nil, nil),\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/etcd-io/etcd/commit/70a7674e20998acac9280ed0f1ca7f9d2a7acf19", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\t\t\terr := e2e.SpawnWithExpects(e2e.CURLPrefixArgs(epc, \"GET\", e2e.CURLReq{Endpoint: \"/version\"}), nil, `\"etcdcluster\":\"`+expect.Cluster)\n\t\t\terr := e2e.SpawnWithExpects(e2e.CURLPrefixArgs(epc.Cfg, epc.Procs[rand.Intn(epc.Cfg.ClusterSize)], \"GET\", e2e.CURLReq{Endpoint: \"/version\"}), nil, `\"etcdcluster\":\"`+expect.Cluster)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/etcd-io/etcd/commit/75449c075df341e580acf2f2333ec854b4c75826", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4 ] }, { "input": "\t\tcmdArgs = e2e.CURLPrefixArgs(cx.epc, \"POST\", e2e.CURLReq{Endpoint: path.Join(p, \"/auth/authenticate\"), Value: string(authreq)})\n\t\tcmdArgs = e2e.CURLPrefixArgs(cx.epc.Cfg, cx.epc.Procs[rand.Intn(cx.epc.Cfg.ClusterSize)], \"POST\", e2e.CURLReq{Endpoint: path.Join(p, \"/auth/authenticate\"), Value: string(authreq)})\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/etcd-io/etcd/commit/75449c075df341e580acf2f2333ec854b4c75826", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "func CURLPrefixArgs(clus *EtcdProcessCluster, method string, req CURLReq) []string {\nfunc CURLPrefixArgs(cfg *EtcdProcessClusterConfig, member EtcdProcess, method string, req CURLReq) []string {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/etcd-io/etcd/commit/75449c075df341e580acf2f2333ec854b4c75826", "target_edit_idx": 6, "propagatable_edit_idx": [ 11, 12, 13 ] }, { "input": "\treturn SpawnWithExpect(CURLPrefixArgs(clus, \"POST\", req), req.Expected)\n\treturn SpawnWithExpect(CURLPrefixArgs(clus.Cfg, clus.Procs[rand.Intn(clus.Cfg.ClusterSize)], \"POST\", req), req.Expected)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/etcd-io/etcd/commit/75449c075df341e580acf2f2333ec854b4c75826", "target_edit_idx": 11, "propagatable_edit_idx": [ 12, 13, 6 ] }, { "input": "\treturn SpawnWithExpect(CURLPrefixArgs(clus, \"PUT\", req), req.Expected)\n\treturn SpawnWithExpect(CURLPrefixArgs(clus.Cfg, clus.Procs[rand.Intn(clus.Cfg.ClusterSize)], \"PUT\", req), req.Expected)\n\treturn SpawnWithExpect(CURLPrefixArgs(clus, \"POST\", req), req.Expected)\n\treturn SpawnWithExpect(CURLPrefixArgs(clus.Cfg, clus.Procs[rand.Intn(clus.Cfg.ClusterSize)], \"POST\", req), req.Expected)\n\treturn SpawnWithExpect(CURLPrefixArgs(clus, \"GET\", req), req.Expected)\n\treturn SpawnWithExpect(CURLPrefixArgs(clus.Cfg, clus.Procs[rand.Intn(clus.Cfg.ClusterSize)], \"GET\", req), req.Expected)\nfunc CURLPrefixArgs(clus *EtcdProcessCluster, method string, req CURLReq) []string {\nfunc CURLPrefixArgs(cfg *EtcdProcessClusterConfig, member EtcdProcess, method string, req CURLReq) []string {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/etcd-io/etcd/commit/75449c075df341e580acf2f2333ec854b4c75826", "target_edit_idx": 12, "propagatable_edit_idx": [ 11, 13, 6 ] }, { "input": "\treturn SpawnWithExpect(CURLPrefixArgs(clus, \"GET\", req), req.Expected)\n\treturn SpawnWithExpect(CURLPrefixArgs(clus.Cfg, clus.Procs[rand.Intn(clus.Cfg.ClusterSize)], \"GET\", req), req.Expected)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/etcd-io/etcd/commit/75449c075df341e580acf2f2333ec854b4c75826", "target_edit_idx": 13, "propagatable_edit_idx": [ 11, 12, 6 ] }, { "input": "\turls := newEmbedURLs(2)\n\turls := newEmbedURLs(t, 2)\nfunc newEmbedURLs(n int) (urls []url.URL) {\nfunc newEmbedURLs(t testutil.TB, n int) (urls []url.URL) {\n\turls := newEmbedURLs(clusterN * 2)\n\turls := newEmbedURLs(t, clusterN*2)\n\turls := newEmbedURLs(clusterN * 2)\n\turls := newEmbedURLs(t, clusterN*2)\n\turls := newEmbedURLs(clusterN * 2)\n\turls := newEmbedURLs(t, clusterN*2)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/24002fb099d30218c6e120a42f85133afbb86969", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 5, 6, 7 ] }, { "input": "\turls := newEmbedURLs(clusterN * 2)\n\turls := newEmbedURLs(t, clusterN*2)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/24002fb099d30218c6e120a42f85133afbb86969", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 3, 6, 7 ] }, { "input": "func newEmbedURLs(n int) (urls []url.URL) {\nfunc newEmbedURLs(t testutil.TB, n int) (urls []url.URL) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/24002fb099d30218c6e120a42f85133afbb86969", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 5, 6, 7 ] }, { "input": "\t\tbackend.be.Close()\n\t\tbackend.Close()\n\t\tbackend.be.Close()\n\t\tbackend.Close()\n\t\tbackend.be.Close()\n\t\tbackend.Close()\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/etcd-io/etcd/commit/39f92a32ca0f32be80bf9845637bf70d2529c015", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "func (d *discovery) checkCluster() ([]*client.Node, int, uint64, error) {\nfunc (d *discovery) checkCluster() ([]*client.Node, uint64, uint64, error) {\nfunc (d *discovery) checkClusterRetry() ([]*client.Node, int, uint64, error) {\nfunc (d *discovery) checkClusterRetry() ([]*client.Node, uint64, uint64, error) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/etcd-io/etcd/commit/4c25efc1f8e6b9d64bec94fe095a6f058112af2b", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\tnotlockedC <- m\n\t\t\t\tselect {\n\t\t\t\tcase notlockedC <- m:\n\t\t\t\tcase <-stopC:\n\t\t\t\t}\n\t\t\tlockedC <- m\n\t\t\tselect {\n\t\t\tcase lockedC <- m:\n\t\t\tcase <-stopC:\n\t\t\t}\n\n\t\t\t\tlockedC <- m\n\t\t\t\tselect {\n\t\t\t\tcase lockedC <- m:\n\t\t\t\tcase <-stopC:\n\t\t\t\t}\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/etcd-io/etcd/commit/1f8764be3b43448ccfd60706c42dab09b0bc6ed3", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 7 ] }, { "input": "func newLogWithSize(storage Storage, logger Logger, maxMsgSize uint64) *raftLog {\nfunc newLogWithSize(storage Storage, logger Logger, maxNextEntsSize uint64) *raftLog {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/etcd-io/etcd/commit/e4af2be5bbcbea27976e8af543defb4a7b7e1245", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\tcfg.MaxSizePerMsg = 2048\n\tcfg.MaxCommittedSizePerReady = 2048\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/etcd-io/etcd/commit/e4af2be5bbcbea27976e8af543defb4a7b7e1245", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "\traftlog := newLogWithSize(c.Storage, c.Logger, c.MaxSizePerMsg)\n\traftlog := newLogWithSize(c.Storage, c.Logger, c.MaxCommittedSizePerReady)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/etcd-io/etcd/commit/e4af2be5bbcbea27976e8af543defb4a7b7e1245", "target_edit_idx": 7, "propagatable_edit_idx": [ 4 ] }, { "input": "\tif err := checkTxnRequest(r); err != nil {\n\tif err := checkTxnRequest(r, int(s.maxTxnOps)); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/ae7ddfb4838f30da1ef04ee48cb89170d7c3268f", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "func checkTxnRequest(r *pb.TxnRequest) error {\n\tif len(r.Compare) > MaxOpsPerTxn || len(r.Success) > MaxOpsPerTxn || len(r.Failure) > MaxOpsPerTxn {\nfunc checkTxnRequest(r *pb.TxnRequest, maxTxnOps int) error {\n\tplog.Infof(\"maxTxnOps %v\", maxTxnOps)\n\tif len(r.Compare) > maxTxnOps || len(r.Success) > maxTxnOps || len(r.Failure) > maxTxnOps {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/ae7ddfb4838f30da1ef04ee48cb89170d7c3268f", "target_edit_idx": 11, "propagatable_edit_idx": [ 10 ] }, { "input": "\n\tif !resp.Node.Dir {\n\tif !resp.Node.Dir || c.GlobalString(\"output\") != \"simple\" {\n\tif !resp.Node.Dir {\n\tif !resp.Node.Dir || c.GlobalString(\"output\") != \"simple\" {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "func WithFirstRev() []OpOption { return withTop(SortByModifiedRev, SortAscend) }\nfunc WithFirstRev() []OpOption { return withTop(SortByModRevision, SortAscend) }\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/606889a0024d265dbc8ce0d520e74195483a5890", "target_edit_idx": 5, "propagatable_edit_idx": [ 10, 4, 6, 7 ] }, { "input": "func WithLastRev() []OpOption { return withTop(SortByModifiedRev, SortDescend) }\nfunc WithLastRev() []OpOption { return withTop(SortByModRevision, SortDescend) }\n\t\tsortByTarget = clientv3.SortByModifiedRev\n\t\tsortByTarget = clientv3.SortByModRevision\n\t\t\t[]clientv3.OpOption{clientv3.WithSort(clientv3.SortByModifiedRev, clientv3.SortDescend)},\n\t\t\t[]clientv3.OpOption{clientv3.WithSort(clientv3.SortByModRevision, clientv3.SortDescend)},\nfunc WithFirstRev() []OpOption { return withTop(SortByModifiedRev, SortAscend) }\nfunc WithFirstRev() []OpOption { return withTop(SortByModRevision, SortAscend) }\n\tSortByModifiedRev\n\tSortByModRevision\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/606889a0024d265dbc8ce0d520e74195483a5890", "target_edit_idx": 6, "propagatable_edit_idx": [ 10, 4, 5, 7 ] }, { "input": "\t\t\t{\"put\", []interface{}{keyBucketName, tt.wkey, data}},\n\t\t\t{\"seqput\", []interface{}{keyBucketName, tt.wkey, data}},\n\t\t\t\t{\"put\", []interface{}{keyBucketName, tt.wkey, data}},\n\t\t\t\t{\"seqput\", []interface{}{keyBucketName, tt.wkey, data}},\n\t\t\t{\"put\", []interface{}{keyBucketName, tt.wkey, data}},\n\t\t\t{\"seqput\", []interface{}{keyBucketName, tt.wkey, data}},\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/etcd-io/etcd/commit/d883d5acd3cafede2fb06aca945e3bb69b78fd47", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\t\t\t\t\tlog.Printf(\"etcd-tester: [round#%d case#%d] checking current revisions succeed!\", i, j)\n\t\t\t\t\tlog.Printf(\"etcd-tester: [round#%d case#%d.%d] checking current revisions succeed!\", i, j, k)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.037037037037037035, "commit_url": "https://github.com/etcd-io/etcd/commit/044f7775e306f10917e72c34cd258061971bf111", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\t\tlog.Printf(\"etcd-tester: [round#%d case#%d] current revisions %+v\", i, j, revs)\n\t\t\t\t\tlog.Printf(\"etcd-tester: [round#%d case#%d.%d] current revisions %+v\", i, j, k, revs)\n\t\t\t\t\tlog.Printf(\"etcd-tester: [round#%d case#%d] checking current revisions succeed!\", i, j)\n\t\t\t\t\tlog.Printf(\"etcd-tester: [round#%d case#%d.%d] checking current revisions succeed!\", i, j, k)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.037037037037037035, "commit_url": "https://github.com/etcd-io/etcd/commit/044f7775e306f10917e72c34cd258061971bf111", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "func NewTransport(info TLSInfo) (*http.Transport, error) {\nfunc NewTransport(info TLSInfo, dialtimeoutd time.Duration) (*http.Transport, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/9673eb625a4c33faa17cb7129e60930b3c1f6468", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 9 ] }, { "input": "\t\ttrans, err := NewTransport(tt)\n\t\ttrans, err := NewTransport(tt, time.Second)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/9673eb625a4c33faa17cb7129e60930b3c1f6468", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 3 ] }, { "input": "\ttr, err := NewTransport(info)\n\ttr, err := NewTransport(info, dialtimeoutd)\n\t\ttrans, err := NewTransport(tt)\n\t\ttrans, err := NewTransport(tt, time.Second)\nfunc NewTransport(info TLSInfo) (*http.Transport, error) {\nfunc NewTransport(info TLSInfo, dialtimeoutd time.Duration) (*http.Transport, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/9673eb625a4c33faa17cb7129e60930b3c1f6468", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 3 ] }, { "input": "\t\t\treturn ErrTimeoutDueToLeaderLost\n\t\t\treturn ErrTimeoutDueToLeaderFail\n\t\tif err == etcdserver.ErrTimeoutDueToLeaderLost {\n\t\tif err == etcdserver.ErrTimeoutDueToLeaderFail {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/c229e6e655c3f289de3398985d1078e05464bd22", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "func startPeer(tr http.RoundTripper, urls types.URLs, local, to, cid types.ID, r Raft, fs *stats.FollowerStats, errorc chan error) *peer {\nfunc startPeer(tr http.RoundTripper, urls types.URLs, local, to, cid types.ID, r Raft, fs *stats.FollowerStats, errorc chan error, term uint64) *peer {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/fb4b0b5cf075212f79fcdfa58533915a29c0912d", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\tp.msgAppReader = startStreamReader(tr, picker, streamTypeMsgAppV2, local, to, cid, status, p.recvc, p.propc, errorc)\n\treader := startStreamReader(tr, picker, streamTypeMessage, local, to, cid, status, p.recvc, p.propc, errorc)\n\tp.msgAppReader = startStreamReader(tr, picker, streamTypeMsgAppV2, local, to, cid, status, p.recvc, p.propc, errorc, term)\n\treader := startStreamReader(tr, picker, streamTypeMessage, local, to, cid, status, p.recvc, p.propc, errorc, term)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/etcd-io/etcd/commit/fb4b0b5cf075212f79fcdfa58533915a29c0912d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "func startStreamReader(tr http.RoundTripper, picker *urlPicker, t streamType, local, remote, cid types.ID, status *peerStatus, recvc chan<- raftpb.Message, propc chan<- raftpb.Message, errorc chan<- error) *streamReader {\nfunc startStreamReader(tr http.RoundTripper, picker *urlPicker, t streamType, local, remote, cid types.ID, status *peerStatus, recvc chan<- raftpb.Message, propc chan<- raftpb.Message, errorc chan<- error, term uint64) *streamReader {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/fb4b0b5cf075212f79fcdfa58533915a29c0912d", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4 ] }, { "input": "\t\tsr := startStreamReader(&http.Transport{}, picker, tt.t, types.ID(1), types.ID(2), types.ID(1), newPeerStatus(types.ID(1)), recvc, propc, nil)\n\t\tsr := startStreamReader(&http.Transport{}, picker, tt.t, types.ID(1), types.ID(2), types.ID(1), newPeerStatus(types.ID(1)), recvc, propc, nil, 1)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/fb4b0b5cf075212f79fcdfa58533915a29c0912d", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\tp := startPeer(t.roundTripper, urls, t.id, id, t.clusterID, t.raft, fs, t.errorc)\n\tp.setTerm(t.term)\n\tt.peers[id] = p\n\tt.peers[id] = startPeer(t.roundTripper, urls, t.id, id, t.clusterID, t.raft, fs, t.errorc, t.term)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/fb4b0b5cf075212f79fcdfa58533915a29c0912d", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": "\ttx.UnsafePut(keyBucketName, scheduledCompactKeyName, rbytes)\n\ttx.UnsafePut(metaBucketName, scheduledCompactKeyName, rbytes)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/etcd-io/etcd/commit/7b1a93e1efb3937c3e98f61f4355f3dac5b6c896", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "\t_, finishedCompactBytes := tx.UnsafeRange(keyBucketName, finishedCompactKeyName, nil, 0)\n\t_, finishedCompactBytes := tx.UnsafeRange(metaBucketName, finishedCompactKeyName, nil, 0)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/etcd-io/etcd/commit/7b1a93e1efb3937c3e98f61f4355f3dac5b6c896", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5 ] }, { "input": "\t_, scheduledCompactBytes := tx.UnsafeRange(keyBucketName, scheduledCompactKeyName, nil, 0)\n\t_, scheduledCompactBytes := tx.UnsafeRange(metaBucketName, scheduledCompactKeyName, nil, 0)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/etcd-io/etcd/commit/7b1a93e1efb3937c3e98f61f4355f3dac5b6c896", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": "\t\t\ttx.UnsafePut(keyBucketName, finishedCompactKeyName, rbytes)\n\t\t\ttx.UnsafePut(metaBucketName, finishedCompactKeyName, rbytes)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/etcd-io/etcd/commit/7b1a93e1efb3937c3e98f61f4355f3dac5b6c896", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "func startStreamReader(tr http.RoundTripper, picker *urlPicker, t streamType, from, to, cid types.ID, status *peerStatus, recvc chan<- raftpb.Message, propc chan<- raftpb.Message, errorc chan<- error) *streamReader {\nfunc startStreamReader(tr http.RoundTripper, picker *urlPicker, t streamType, local, remote, cid types.ID, status *peerStatus, recvc chan<- raftpb.Message, propc chan<- raftpb.Message, errorc chan<- error) *streamReader {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/2f05b24d6d81a76a5ed95a8ea13da70af983fb6a", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": "\t\tdec = &msgAppDecoder{r: rc, local: cr.from, remote: cr.to, term: cr.msgAppTerm}\n\t\tdec = &msgAppDecoder{r: rc, local: cr.local, remote: cr.remote, term: cr.msgAppTerm}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/2f05b24d6d81a76a5ed95a8ea13da70af983fb6a", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": "\t\tdec = newMsgAppV2Decoder(rc, cr.from, cr.to)\n\t\tdec = newMsgAppV2Decoder(rc, cr.local, cr.remote)\nfunc startStreamReader(tr http.RoundTripper, picker *urlPicker, t streamType, from, to, cid types.ID, status *peerStatus, recvc chan<- raftpb.Message, propc chan<- raftpb.Message, errorc chan<- error) *streamReader {\nfunc startStreamReader(tr http.RoundTripper, picker *urlPicker, t streamType, local, remote, cid types.ID, status *peerStatus, recvc chan<- raftpb.Message, propc chan<- raftpb.Message, errorc chan<- error) *streamReader {\n\t\tdec = &msgAppDecoder{r: rc, local: cr.from, remote: cr.to, term: cr.msgAppTerm}\n\t\tdec = &msgAppDecoder{r: rc, local: cr.local, remote: cr.remote, term: cr.msgAppTerm}\n\tuu.Path = path.Join(t.endpoint(), cr.from.String())\n\tuu.Path = path.Join(t.endpoint(), cr.local.String())\n\treq.Header.Set(\"X-Server-From\", cr.from.String())\n\treq.Header.Set(\"X-Server-From\", cr.local.String())\n\treq.Header.Set(\"X-Raft-To\", cr.to.String())\n\treq.Header.Set(\"X-Raft-To\", cr.remote.String())\n\t\treturn nil, fmt.Errorf(\"remote member %s could not recognize local member\", cr.to)\n\t\treturn nil, fmt.Errorf(\"remote member %s could not recognize local member\", cr.remote)\n\t\t\tplog.Errorf(\"request sent was ignored by peer %s (server version incompatible)\", cr.to)\n\t\t\tplog.Errorf(\"request sent was ignored by peer %s (server version incompatible)\", cr.remote)\n\t\t\t\tcr.to, resp.Header.Get(\"X-Etcd-Cluster-ID\"), cr.cid)\n\t\t\t\tcr.remote, resp.Header.Get(\"X-Etcd-Cluster-ID\"), cr.cid)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/2f05b24d6d81a76a5ed95a8ea13da70af983fb6a", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5, 6, 7, 8, 9, 10 ] }, { "input": "\tuu.Path = path.Join(t.endpoint(), cr.from.String())\n\tuu.Path = path.Join(t.endpoint(), cr.local.String())\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/2f05b24d6d81a76a5ed95a8ea13da70af983fb6a", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4, 6 ] }, { "input": "\treq.Header.Set(\"X-Server-From\", cr.from.String())\n\treq.Header.Set(\"X-Server-From\", cr.local.String())\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/2f05b24d6d81a76a5ed95a8ea13da70af983fb6a", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": "\treq.Header.Set(\"X-Raft-To\", cr.to.String())\n\treq.Header.Set(\"X-Raft-To\", cr.remote.String())\nfunc startStreamReader(tr http.RoundTripper, picker *urlPicker, t streamType, from, to, cid types.ID, status *peerStatus, recvc chan<- raftpb.Message, propc chan<- raftpb.Message, errorc chan<- error) *streamReader {\nfunc startStreamReader(tr http.RoundTripper, picker *urlPicker, t streamType, local, remote, cid types.ID, status *peerStatus, recvc chan<- raftpb.Message, propc chan<- raftpb.Message, errorc chan<- error) *streamReader {\n\t\tdec = &msgAppDecoder{r: rc, local: cr.from, remote: cr.to, term: cr.msgAppTerm}\n\t\tdec = &msgAppDecoder{r: rc, local: cr.local, remote: cr.remote, term: cr.msgAppTerm}\n\t\tdec = newMsgAppV2Decoder(rc, cr.from, cr.to)\n\t\tdec = newMsgAppV2Decoder(rc, cr.local, cr.remote)\n\t\treturn nil, fmt.Errorf(\"remote member %s could not recognize local member\", cr.to)\n\t\treturn nil, fmt.Errorf(\"remote member %s could not recognize local member\", cr.remote)\n\t\t\tplog.Errorf(\"request sent was ignored by peer %s (server version incompatible)\", cr.to)\n\t\t\tplog.Errorf(\"request sent was ignored by peer %s (server version incompatible)\", cr.remote)\n\t\t\t\tcr.to, resp.Header.Get(\"X-Etcd-Cluster-ID\"), cr.cid)\n\t\t\t\tcr.remote, resp.Header.Get(\"X-Etcd-Cluster-ID\"), cr.cid)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/2f05b24d6d81a76a5ed95a8ea13da70af983fb6a", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 3, 4, 8, 9, 10 ] }, { "input": "\t\t\tplog.Errorf(\"request sent was ignored by peer %s (server version incompatible)\", cr.to)\n\t\t\tplog.Errorf(\"request sent was ignored by peer %s (server version incompatible)\", cr.remote)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/2f05b24d6d81a76a5ed95a8ea13da70af983fb6a", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 3, 4, 7, 8, 10 ] }, { "input": "\t\t\tfrom: types.ID(1),\n\t\t\tto: types.ID(2),\n\t\t\tlocal: types.ID(1),\n\t\t\tremote: types.ID(2),\n\t\t\tfrom: types.ID(1),\n\t\t\tto: types.ID(2),\n\t\t\tlocal: types.ID(1),\n\t\t\tremote: types.ID(2),\n\t\t\tfrom: types.ID(1),\n\t\t\tto: types.ID(2),\n\t\t\tlocal: types.ID(1),\n\t\t\tremote: types.ID(2),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/etcd-io/etcd/commit/2f05b24d6d81a76a5ed95a8ea13da70af983fb6a", "target_edit_idx": 11, "propagatable_edit_idx": [ 12, 13 ] }, { "input": "func OpenAtIndex(dirpath string, index uint64) (*WAL, error) {\nfunc Open(dirpath string, index uint64) (*WAL, error) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/53bf7e4b5e7faf34d6eebfc08cd76bb9319275b7", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 5, 6, 7, 8, 9, 10 ] }, { "input": "\tw, err := OpenAtIndex(dir, 0)\n\tw, err := Open(dir, 0)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/53bf7e4b5e7faf34d6eebfc08cd76bb9319275b7", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 6, 7, 8, 9, 10 ] }, { "input": "\tw, err = OpenAtIndex(dir, 5)\n\tw, err = Open(dir, 5)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/53bf7e4b5e7faf34d6eebfc08cd76bb9319275b7", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3, 5, 7, 8, 9, 10 ] }, { "input": "\tif _, err = OpenAtIndex(emptydir, 0); err != ErrFileNotFound {\n\tif _, err = Open(emptydir, 0); err != ErrFileNotFound {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/53bf7e4b5e7faf34d6eebfc08cd76bb9319275b7", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 3, 5, 6, 8, 9, 10 ] }, { "input": "\tif w, err = OpenAtIndex(p, 0); err != nil {\n\tif w, err = Open(p, 0); err != nil {\n\tif w, err = wal.OpenAtIndex(waldir, index); err != nil {\n\tif w, err = wal.Open(waldir, index); err != nil {\nfunc OpenAtIndex(dirpath string, index uint64) (*WAL, error) {\nfunc Open(dirpath string, index uint64) (*WAL, error) {\n\tw, err := OpenAtIndex(dir, 0)\n\tw, err := Open(dir, 0)\n\tw, err = OpenAtIndex(dir, 5)\n\tw, err = Open(dir, 5)\n\tif _, err = OpenAtIndex(emptydir, 0); err != ErrFileNotFound {\n\tif _, err = Open(emptydir, 0); err != ErrFileNotFound {\n\t\tw, err := OpenAtIndex(p, uint64(i))\n\t\tw, err := Open(p, uint64(i))\n\tw, err = OpenAtIndex(p, 1)\n\tw, err = Open(p, 1)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/53bf7e4b5e7faf34d6eebfc08cd76bb9319275b7", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 3, 5, 6, 7, 9, 10 ] }, { "input": "\t\tw, err := OpenAtIndex(p, uint64(i))\n\t\tw, err := Open(p, uint64(i))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/53bf7e4b5e7faf34d6eebfc08cd76bb9319275b7", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 3, 5, 6, 7, 8, 10 ] }, { "input": "\tw, err = OpenAtIndex(p, 1)\n\tw, err = Open(p, 1)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/53bf7e4b5e7faf34d6eebfc08cd76bb9319275b7", "target_edit_idx": 10, "propagatable_edit_idx": [ 1, 3, 5, 6, 7, 8, 9 ] }, { "input": "\t\t_, err := srv.applyConfChange(tt.cc)\n\t\t_, err := srv.applyConfChange(tt.cc, nil)\n\tshouldStop, err := srv.applyConfChange(cc)\n\tshouldStop, err := srv.applyConfChange(cc, nil)\n\tshouldStop, err = srv.applyConfChange(cc)\n\tshouldStop, err = srv.applyConfChange(cc, nil)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/29d7a2a5589bf8120ca6a17d5d74aaa0e76d1644", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 12 ] }, { "input": "\tclient, err := client.NewHTTPClient(&http.Transport{}, u.String(), time.Second*5)\n\tc, err := client.NewHTTPClient(&http.Transport{}, u.String(), time.Second*5)\n\tclient.SetPrefix(\"\")\n\tc.SetPrefix(\"\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/ca1bbee7374837c4d906a9cad63b2745baf293a7", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\tclient.SetPrefix(\"\")\n\tc.SetPrefix(\"\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/ca1bbee7374837c4d906a9cad63b2745baf293a7", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "\tt.CancelWhenTimeout(req)\n\t\t\tt.CancelWhenTimeout(req)\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/etcd-io/etcd/commit/349a802a82d45b0dd88d9388970b6afdd30162aa", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tt.CancelWhenTimeout(httpRequest)\n\n\t\tt.CancelWhenTimeout(httpRequest)\n\n\t\tt.CancelWhenTimeout(httpRequest)\n\n\t\tt.CancelWhenTimeout(httpRequest)\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/etcd-io/etcd/commit/349a802a82d45b0dd88d9388970b6afdd30162aa", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 10, 12 ] }, { "input": "\t\t_, err := objAPI.HealBucket(ctx, bucket, madmin.HealOpts{\n\t\t\tRecreate: true,\n\t\t\tScanMode: scanMode,\n\t\t})\n\t\tif err != nil {\n\t\tif err := bgSeq.healBucket(objAPI, bucket, true); err != nil {\n\t\tif _, err := objAPI.HealBucket(ctx, bucket, madmin.HealOpts{\n\t\t\tRecreate: true,\n\t\t\tScanMode: scanMode,\n\t\t}); err != nil {\n\t\tif err := bgSeq.healBucket(objAPI, bucket, true); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/a9dc061d847277e30c5c6918d6de6f0606f9d285", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tm.SetHistogram(apiRequestsTTFBSecondsDistribution, httpRequestsDuration, renameLabels, nil,\n\tlabelsFilter := map[string]set.StringSet{\"api\": set.CreateStringSet(\"GetObject\")}\n\tm.SetHistogram(apiRequestsTTFBSecondsDistribution, httpRequestsDuration, labelsFilter, renameLabels, nil,\n\tm.SetHistogram(apiRequestsTTFBSecondsDistribution, bucketHTTPRequestsDuration, renameLabels,\n\tlabelsFilter := map[string]set.StringSet{\"api\": set.CreateStringSet(\"GetObject\")}\n\tm.SetHistogram(apiRequestsTTFBSecondsDistribution, bucketHTTPRequestsDuration, labelsFilter, renameLabels,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/minio/minio/commit/4c8562bceca62b591f0259324239afabfdbda4be", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\t\t_, _ = sys.PolicyDBSet(ctx, origKeys[i], \"\", stsUser, isGroup)\n\t\t\t\t\t_, delErr := sys.PolicyDBSet(ctx, origKeys[i], \"\", stsUser, isGroup)\n\t\t\t\t\tif delErr != nil {\n\t\t\t\t\t\tlogErr := fmt.Errorf(\"failed to delete extraneous LDAP DN mapping for `%s`: %w\", origKeys[i], delErr)\n\t\t\t\t\t\tiamLogIf(ctx, logErr)\n\t\t\t\t\t}\n\t\t\t_, _ = sys.PolicyDBSet(ctx, origKeys[0], \"\", stsUser, isGroup)\n\t\t\t_, delErr := sys.PolicyDBSet(ctx, origKeys[0], \"\", stsUser, isGroup)\n\t\t\tif delErr != nil {\n\t\t\t\tlogErr := fmt.Errorf(\"failed to delete extraneous LDAP DN mapping for `%s`: %w\", origKeys[0], delErr)\n\t\t\t\tiamLogIf(ctx, logErr)\n\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/minio/minio/commit/e00de1c302733d7ea85693c91508640e7ed46b89", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tloggerInfo = append(loggerInfo, madmin.Logger{tgt.String(): logger.TargetStatus(GlobalContext, tgt)})\n\t\t\tloggerInfo = append(loggerInfo, madmin.Logger{tgt.String(): targetStatus(ctx, tgt)})\n\t\t\tauditloggerInfo = append(auditloggerInfo, madmin.Audit{tgt.String(): logger.TargetStatus(GlobalContext, tgt)})\n\t\t\tauditloggerInfo = append(auditloggerInfo, madmin.Audit{tgt.String(): targetStatus(ctx, tgt)})\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/minio/minio/commit/8bd4f6568bc397ef8e615a5b4df0df15813a8c67", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\terasureDisks := z.serverPools[0].sets[0].getDisks()\n\n\terasureDisks, err := z.GetDisks(0, 0)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\terasureDisks := z.serverPools[0].sets[0].getDisks()\n\n\terasureDisks, err := z.GetDisks(0, 0)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/24e86d0c593779daf174718dbc1ccda163c898b4", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": "\tif owner && accessKey == cred.AccessKey {\n\tif accessKey == globalActiveCred.AccessKey {\n\t\t\t\tif owner && accessKey == cred.AccessKey {\n\t\t\t\tif accessKey == globalActiveCred.AccessKey {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/c7f7e67a100ce35af559e3f49a2ed0b67deaa919", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tlogger.LogIf(ctx, ObjectNameInvalid{Bucket: bucket, Object: object})\n\t\tlogger.LogIf(ctx, ObjectNameInvalid{Bucket: bucket, Object: object})\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/minio/minio/commit/726024151132466496251c3fb45c060c657f0a04", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\t\t\tpartial: func(entries metaCacheEntries, nAgreed int, errs []error) {\n\t\t\t\tpartial: func(entries metaCacheEntries, _ []error) {\n\t\t\t\t\t\tpartial: func(entries metaCacheEntries, nAgreed int, errs []error) {\n\t\t\t\t\t\tpartial: func(entries metaCacheEntries, _ []error) {\n\t\tpartial: func(entries metaCacheEntries, nAgreed int, errs []error) {\n\t\tpartial: func(entries metaCacheEntries, _ []error) {\n\t\t\t\tpartial: func(entries metaCacheEntries, nAgreed int, errs []error) {\n\t\t\t\tpartial: func(entries metaCacheEntries, _ []error) {\n\t\t\tpartial: func(entries metaCacheEntries, nAgreed int, errs []error) {\n\t\t\tpartial: func(entries metaCacheEntries, _ []error) {\n\t\tpartial: func(entries metaCacheEntries, nAgreed int, errs []error) {\n\t\tpartial: func(entries metaCacheEntries, errs []error) {\n\t\tpartial: func(entries metaCacheEntries, nAgreed int, errs []error) {\n\t\tpartial: func(entries metaCacheEntries, errs []error) {\n\tpartial func(entries metaCacheEntries, nAgreed int, errs []error)\n\tpartial func(entries metaCacheEntries, errs []error)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/ae9252131091dc612549b12c0d068e16c406bef3", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8 ] }, { "input": "\t\t\t\tlogger.LogIf(context.Background(), fmt.Errorf(\"Marking %s temporary offline; caused by %w\", c.url.String(), err))\n\t\t\t\tlogger.LogIf(ctx, fmt.Errorf(\"Marking %s temporary offline; caused by %w\", c.url.String(), err))\n\t\t\t\t\tlogger.LogIf(context.Background(), fmt.Errorf(\"Marking %s temporary offline; caused by %w\", c.url.String(), err))\n\t\t\t\t\tlogger.LogIf(ctx, fmt.Errorf(\"Marking %s temporary offline; caused by %w\", c.url.String(), err))\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/minio/minio/commit/9004d69c6f8eff499032ebeadcd21bdb6428745c", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\ts3Select.close = rc.Close\n\t\ts3Select.close = rc.Close\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/79ba458051a3f995e38498893073e9f07d988839", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\t\t\tif f.healObjectSelect == 0 || !thisHash.mod(f.oldCache.Info.NextCycle, f.healFolderInclude/folder.objectHealProbDiv) {\n\t\t\t\tif f.healObjectSelect == 0 || !thisHash.modAlt(f.oldCache.Info.NextCycle/folder.objectHealProbDiv, f.healFolderInclude/folder.objectHealProbDiv) {\n\t\t\t\t\tif f.healObjectSelect == 0 || !h.mod(f.oldCache.Info.NextCycle, f.healFolderInclude/folder.objectHealProbDiv) {\n\t\t\t\t\tif f.healObjectSelect == 0 || !h.modAlt(f.oldCache.Info.NextCycle/folder.objectHealProbDiv, f.healFolderInclude/folder.objectHealProbDiv) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/minio/minio/commit/1d1b213f1fec1093c3aef4217348ac36a9d9b743", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\tfor _, parentUser := range parentUsers {\n\tfor parentUser, expiredUser := range parentUsers {\n\tfor _, parentUser := range parentUsers {\n\tfor parentUser, expiredUser := range parentUsers {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/minio/minio/commit/03b35ecdd0be0426bcba75a2721afde6649c8cef", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tif z.poolMeta.IsSuspended(index) {\n\t\tif z.IsSuspended(index) {\n\t\tif z.poolMeta.IsSuspended(idx) {\n\t\tif z.IsSuspended(idx) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/404b05a44c3d85b70d41e8b1ce64a20429956dff", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\tfor _, nerr := range globalNotificationSys.DeleteServiceAccount(serviceAccount) {\n\t\tif nerr.Err != nil {\n\t\t\tlogger.GetReqInfo(ctx).SetTags(\"peerAddress\", nerr.Host.String())\n\t\t\tlogger.LogIf(ctx, nerr.Err)\n\t\t}\n\t}\n\t\tfor _, nerr := range globalNotificationSys.DeleteServiceAccount(change.Delete.AccessKey) {\n\t\t\tif nerr.Err != nil {\n\t\t\t\tlogger.GetReqInfo(ctx).SetTags(\"peerAddress\", nerr.Host.String())\n\t\t\t\tlogger.LogIf(ctx, nerr.Err)\n\t\t\t}\n\t\t}\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/minio/minio/commit/6fbf4f96b60892738321d6ac1b85063dbe4f3c8b", "target_edit_idx": 3, "propagatable_edit_idx": [ 11 ] }, { "input": "\treturn sys.store.DeleteUser(ctx, accessKey, regUser)\n\tif err := sys.store.DeleteUser(ctx, accessKey, regUser); err != nil {\n\t\treturn err\n\t}\n\n\t// Notify all other MinIO peers to delete user.\n\tif notifyPeers && !sys.HasWatcher() {\n\t\tfor _, nerr := range sys.notificationSys.DeleteUser(accessKey) {\n\t\t\tif nerr.Err != nil {\n\t\t\t\tlogger.GetReqInfo(ctx).SetTags(\"peerAddress\", nerr.Host.String())\n\t\t\t\tlogger.LogIf(ctx, nerr.Err)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn nil\n\treturn sys.store.DeleteUser(ctx, accessKey, svcUser)\n\tif err := sys.store.DeleteUser(ctx, accessKey, svcUser); err != nil {\n\t\treturn err\n\t}\n\n\tif notifyPeers && !sys.HasWatcher() {\n\t\tfor _, nerr := range sys.notificationSys.DeleteServiceAccount(accessKey) {\n\t\t\tif nerr.Err != nil {\n\t\t\t\tlogger.GetReqInfo(ctx).SetTags(\"peerAddress\", nerr.Host.String())\n\t\t\t\tlogger.LogIf(ctx, nerr.Err)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn nil\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/minio/minio/commit/6fbf4f96b60892738321d6ac1b85063dbe4f3c8b", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "\tvar success []int\n\tsuccess := make([]int, len(li.paths))\n\tvar success []int\n\tsuccess := make([]int, len(li.paths))\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/e85b28398bdcc4a72eb1e345784a0a74cb4d7a8f", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tsuccess = append(success, i)\n\t\tsuccess[i] = 1\n\t\tsuccess = append(success, i)\n\t\tsuccess[i] = 1\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/minio/minio/commit/e85b28398bdcc4a72eb1e345784a0a74cb4d7a8f", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tgr.Close() // make sure to avoid leaks.\n\t\tgr.Close()\n\t\tgr.Close() // make sure to avoid leaks.\n\t\tgr.Close()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/51dad1d1301166aaf0d08a78ca67bc01f1168f42", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\ttestReq = []byte(fmt.Sprintf(defRequest, testCase.query))\n\t\t\t\tvar escaped bytes.Buffer\n\t\t\t\txml.EscapeText(&escaped, []byte(testCase.query))\n\t\t\t\ttestReq = []byte(fmt.Sprintf(defRequest, escaped.String()))\n\t\t\t\ttestReq = []byte(fmt.Sprintf(defRequest, testCase.query))\n\t\t\t\tvar escaped bytes.Buffer\n\t\t\t\txml.EscapeText(&escaped, []byte(testCase.query))\n\t\t\t\ttestReq = []byte(fmt.Sprintf(defRequest, escaped.String()))\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/minio/minio/commit/0987069e373f6ae4f7391c3d2a00f76e416f2000", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tn, err := erasure.Encode(ctx, data, writers, buffer, fi.Erasure.DataBlocks+1)\n\tn, err := erasure.Encode(ctx, data, writers, buffer, writeQuorum)\n\tn, erasureErr := erasure.Encode(ctx, data, writers, buffer, fi.Erasure.DataBlocks+1)\n\tn, erasureErr := erasure.Encode(ctx, data, writers, buffer, writeQuorum)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/b68bc75dad321e43fd0655de7b7e1784c6ab5ef6", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tzoneEntries[i][j], zoneEntriesValid[i][j] = entryChs[j].Pop()\n\t\t\tj := j\n\t\t\twg.Add(1)\n\t\t\t// Pop() entries in parallel for large drive setups.\n\t\t\tgo func() {\n\t\t\t\tdefer wg.Done()\n\t\t\t\tzoneEntries[i][j], zoneEntriesValid[i][j] = entryChs[j].Pop()\n\t\t\t}()\n\t\t\tzoneEntries[i][j], zoneEntriesValid[i][j] = entryChs[j].Pop()\n\t\t\tj := j\n\t\t\twg.Add(1)\n\t\t\t// Pop() entries in parallel for large drive setups.\n\t\t\tgo func() {\n\t\t\t\tdefer wg.Done()\n\t\t\t\tzoneEntries[i][j], zoneEntriesValid[i][j] = entryChs[j].Pop()\n\t\t\t}()\n\t\t\tzoneEntries[i][j], zoneEntriesValid[i][j] = entryChs[j].Pop()\n\t\t\tj := j\n\t\t\twg.Add(1)\n\t\t\t// Pop() entries in parallel for large drive setups.\n\t\t\tgo func() {\n\t\t\t\tdefer wg.Done()\n\t\t\t\tzoneEntries[i][j], zoneEntriesValid[i][j] = entryChs[j].Pop()\n\t\t\t}()\n\t\t\tzoneEntries[i][j], zoneEntriesValid[i][j] = entryChs[j].Pop()\n\t\t\tj := j\n\t\t\twg.Add(1)\n\t\t\t// Pop() entries in parallel for large drive setups.\n\t\t\tgo func() {\n\t\t\t\tdefer wg.Done()\n\t\t\t\tzoneEntries[i][j], zoneEntriesValid[i][j] = entryChs[j].Pop()\n\t\t\t}()\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/minio/minio/commit/2f681bed57de127e0c262dc3c470c0cdd9d50fe6", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 12, 6 ] }, { "input": "\t\t_, ok := cfg.HTTP[target]\n\t\tif ok {\n\t\t\tcfg.HTTP[target] = HTTP{\n\t\t\t\tEnabled: true,\n\t\t\t\tEndpoint: env.Get(e, cfg.HTTP[target].Endpoint),\n\t\t\t}\n\t\tcfg.HTTP[target] = HTTP{\n\t\t\tEnabled: true,\n\t\t\tEndpoint: env.Get(k, cfg.HTTP[target].Endpoint),\n\t\t_, ok := cfg.Audit[target]\n\t\tif ok {\n\t\t\tcfg.Audit[target] = HTTP{\n\t\t\t\tEnabled: true,\n\t\t\t\tEndpoint: env.Get(e, cfg.Audit[target].Endpoint),\n\t\t\t}\n\t\tcfg.Audit[target] = HTTP{\n\t\t\tEnabled: true,\n\t\t\tEndpoint: env.Get(k, cfg.Audit[target].Endpoint),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/minio/minio/commit/bd106408462ecef70debf51f1e6179de950c5812", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\tglobalObjLayerMutex.Lock()\n\tglobalObjectAPI = objLayer\n\tglobalObjLayerMutex.Unlock()\n\n\tglobalObjLayerMutex.Lock()\n\tglobalObjectAPI = newObject\n\tglobalObjLayerMutex.Unlock()\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/minio/minio/commit/b01e69e08fd814a7ce8af2b9f1897320eb0c3a37", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": "\tif err := migrateConfigToMinioSys(); err != nil {\n\tif err := migrateConfigToMinioSys(objLayer); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/b01e69e08fd814a7ce8af2b9f1897320eb0c3a37", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 6 ] }, { "input": "func migrateConfigToMinioSys() error {\nfunc migrateConfigToMinioSys(objAPI ObjectLayer) error {\n\tif err := migrateConfigToMinioSys(); err != nil {\n\tif err := migrateConfigToMinioSys(objLayer); err != nil {\n\t\t\tif err := migrateConfigToMinioSys(); err != nil {\n\t\t\tif err := migrateConfigToMinioSys(objAPI); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/b01e69e08fd814a7ce8af2b9f1897320eb0c3a37", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 6 ] }, { "input": "\t\t\tif err := migrateConfigToMinioSys(); err != nil {\n\t\t\tif err := migrateConfigToMinioSys(objAPI); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/b01e69e08fd814a7ce8af2b9f1897320eb0c3a37", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\tif err = globalConfigSys.Init(newObjectLayerFn()); err != nil {\n\tif err = globalConfigSys.Init(newObject); err != nil {\n\tif err := globalPolicySys.Init(newObjectLayerFn()); err != nil {\n\tif err := globalPolicySys.Init(newObject); err != nil {\n\tif err := globalNotificationSys.Init(newObjectLayerFn()); err != nil {\n\tif err := globalNotificationSys.Init(newObject); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/minio/minio/commit/b01e69e08fd814a7ce8af2b9f1897320eb0c3a37", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11 ] }, { "input": "\t\treturn errDiskFull\n\t\treturn errMinDiskSize\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.058823529411764705, "commit_url": "https://github.com/minio/minio/commit/ea76e720544d59757209cbb639c025a10baf0b60", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\terr: errDiskFull,\n\t\t\terr: errMinDiskSize,\n\t\treturn errDiskFull\n\t\treturn errMinDiskSize\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.058823529411764705, "commit_url": "https://github.com/minio/minio/commit/ea76e720544d59757209cbb639c025a10baf0b60", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "func initRetryableStorageDisks(disks []StorageAPI, retryUnit, retryCap time.Duration) (outDisks []StorageAPI) {\nfunc initRetryableStorageDisks(disks []StorageAPI, retryUnit, retryCap, retryInterval time.Duration, retryThreshold int) (outDisks []StorageAPI) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/minio/minio/commit/819d1e80c61e9bd711a8c515b9305ca35c88b2df", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "\tretryDisks := initRetryableStorageDisks(storageDisks, time.Second, time.Second*30)\n\tretryDisks := initRetryableStorageDisks(storageDisks, time.Second, time.Second*30,\n\t\tglobalStorageInitHealthCheckInterval, globalStorageInitRetryThreshold)\nfunc initRetryableStorageDisks(disks []StorageAPI, retryUnit, retryCap time.Duration) (outDisks []StorageAPI) {\nfunc initRetryableStorageDisks(disks []StorageAPI, retryUnit, retryCap, retryInterval time.Duration, retryThreshold int) (outDisks []StorageAPI) {\n\tformattedDisks = initRetryableStorageDisks(storageDisks, time.Millisecond, time.Millisecond*5)\n\tformattedDisks = initRetryableStorageDisks(storageDisks, time.Millisecond, time.Millisecond*5,\n\t\tglobalStorageHealthCheckInterval, globalStorageRetryThreshold)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/minio/minio/commit/819d1e80c61e9bd711a8c515b9305ca35c88b2df", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 5 ] }, { "input": "\tformattedDisks = initRetryableStorageDisks(storageDisks, time.Millisecond, time.Millisecond*5)\n\tformattedDisks = initRetryableStorageDisks(storageDisks, time.Millisecond, time.Millisecond*5,\n\t\tglobalStorageHealthCheckInterval, globalStorageRetryThreshold)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/minio/minio/commit/819d1e80c61e9bd711a8c515b9305ca35c88b2df", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "// ignoreErr returns true if error is due to a network timeout or\n// io.EOF and false otherwise\nfunc ignoreErr(err error) bool {\n// isRoutineNetErr returns true if error is due to a network timeout,\n// connect reset or io.EOF and false otherwise\nfunc isRoutineNetErr(err error) bool {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/minio/minio/commit/98d07210e7b9a3ecd7dd6f607f8e3aec856bbf67", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 6 ] }, { "input": "\t\t\t\tif !ignoreErr(err) {\n\t\t\t\tif !isRoutineNetErr(err) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/98d07210e7b9a3ecd7dd6f607f8e3aec856bbf67", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 6 ] }, { "input": "\t\tif actual := ignoreErr(tc.err); actual != tc.want {\n\t\tif actual := isRoutineNetErr(tc.err); actual != tc.want {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/98d07210e7b9a3ecd7dd6f607f8e3aec856bbf67", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 4 ] }, { "input": "\tif s.ioErrCount > maxAllowedIOError {\n\tif atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {\n\tif s.ioErrCount > maxAllowedIOError {\n\tif atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {\n\tif s.ioErrCount > maxAllowedIOError {\n\tif atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {\n\tif s.ioErrCount > maxAllowedIOError {\n\tif atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {\n\tif s.ioErrCount > maxAllowedIOError {\n\tif atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {\n\tif s.ioErrCount > maxAllowedIOError {\n\tif atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {\n\tif s.ioErrCount > maxAllowedIOError {\n\tif atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {\n\tif s.ioErrCount > maxAllowedIOError {\n\tif atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {\n\tif s.ioErrCount > maxAllowedIOError {\n\tif atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {\n\tif s.ioErrCount > maxAllowedIOError {\n\tif atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {\n\tif s.ioErrCount > maxAllowedIOError {\n\tif atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {\n\tif s.ioErrCount > maxAllowedIOError {\n\tif atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {\n\tif s.ioErrCount > maxAllowedIOError {\n\tif atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/minio/minio/commit/0f0758aeced1a65ebb7d1070ea6c031d79484205", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": "\tgracefulWait *sync.WaitGroup\n\t// Current number of concurrent http requests\n\tcurrentReqs int32\n\t// Time to wait before forcing server shutdown\n\t\tgracefulWait: &sync.WaitGroup{},\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/7e84c7427d08f9112241d820bfdca2825d0f895a", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\tif m.closed {\n\tif m.closing {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/7e84c7427d08f9112241d820bfdca2825d0f895a", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\tm.closed = true\n\tm.closing = true\n\tif m.closed {\n\tif m.closing {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/7e84c7427d08f9112241d820bfdca2825d0f895a", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": "\tfor i := 0; i < 500; i++ {\n\tfor i := 0; i < 5; i++ {\n\tfor i := 0; i < 500; i++ {\n\tfor i := 0; i < 5; i++ {\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/minio/minio/commit/fd72c21e0e07d9737dde6265f2c1cf44c56dab0d", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t{bucketName, \"\", \"\", \"\", 1000, nil, 500},\n\t\t{bucketName, \"\", \"\", \"\", 1000, nil, 5},\n\t\t{bucketName, \"unsane/\", \"\", \"\", 5000, nil, 500},\n\t\t{bucketName, \"unsane/\", \"\", \"\", 5000, nil, 5},\n\t\t{bucketName, \"/\", \"\", \"/\", 5000, nil, 0},\n\t\t{bucketName, \"/\", \"\", \"/\", 1000, nil, 0},\n\t\t{bucketName, \"unsane/\", \"\", \"\", 1000, nil, 500},\n\t\t{bucketName, \"unsane/\", \"\", \"\", 1000, nil, 5},\n\t\t{bucketName, \"unsane/\", \"\", \"\", 200, nil, 200},\n\t\t{bucketName, \"unsane/\", \"\", \"\", 2, nil, 2},\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/minio/minio/commit/fd72c21e0e07d9737dde6265f2c1cf44c56dab0d", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 9, 6, 7 ] }, { "input": "\tminioAccessID = 20\n\tminioSecretID = 40\n\taccessKeyMinLen = 5\n\taccessKeyMaxLen = 20\n\tsecretKeyMinLen = 8\n\tsecretKeyMaxLen = 40\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/minio/minio/commit/05dc52a206a47abd71aa1d81e5eb3053285f034a", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\talpha := make([]byte, minioAccessID)\n\talpha := make([]byte, accessKeyMaxLen)\n\tminioAccessID = 20\n\tminioSecretID = 40\n\taccessKeyMinLen = 5\n\taccessKeyMaxLen = 20\n\tsecretKeyMinLen = 8\n\tsecretKeyMaxLen = 40\n\tfor i := 0; i < minioAccessID; i++ {\n\tfor i := 0; i < accessKeyMaxLen; i++ {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/05dc52a206a47abd71aa1d81e5eb3053285f034a", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4 ] }, { "input": "\tfor i := 0; i < minioAccessID; i++ {\n\tfor i := 0; i < accessKeyMaxLen; i++ {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/05dc52a206a47abd71aa1d81e5eb3053285f034a", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\trb := make([]byte, minioSecretID)\n\trb := make([]byte, secretKeyMaxLen)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/05dc52a206a47abd71aa1d81e5eb3053285f034a", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\treturn []byte(base64.StdEncoding.EncodeToString(rb))[:minioSecretID], nil\n\treturn []byte(base64.StdEncoding.EncodeToString(rb))[:secretKeyMaxLen], nil\n\trb := make([]byte, minioSecretID)\n\trb := make([]byte, secretKeyMaxLen)\n\tc.Assert(len(secretID), Equals, minioSecretID)\n\tc.Assert(len(accessID), Equals, minioAccessID)\n\tc.Assert(len(secretID), Equals, secretKeyMaxLen)\n\tc.Assert(len(accessID), Equals, accessKeyMaxLen)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/05dc52a206a47abd71aa1d81e5eb3053285f034a", "target_edit_idx": 6, "propagatable_edit_idx": [ 5, 7 ] }, { "input": "\tconsole.Println(colorMagenta(\"\\nEndpoint: \") + colorGreen(fmt.Sprintf(getFormatStr(len(endPointStr), 1), endPointStr)))\n\tconsole.Println(colorMagenta(\"AccessKey: \") + colorWhite(fmt.Sprintf(\"%s \", cred.AccessKeyID)))\n\tconsole.Println(colorMagenta(\"SecretKey: \") + colorWhite(fmt.Sprintf(\"%s \", cred.SecretAccessKey)))\n\tconsole.Println(colorMagenta(\"Region: \") + colorWhite(fmt.Sprintf(getFormatStr(len(region), 3), region)))\n\tconsole.Println(colorBlue(\"\\nEndpoint: \") + colorWhiteBold(fmt.Sprintf(getFormatStr(len(endPointStr), 1), endPointStr)))\n\tconsole.Println(colorBlue(\"AccessKey: \") + colorWhiteBold(fmt.Sprintf(\"%s \", cred.AccessKeyID)))\n\tconsole.Println(colorBlue(\"SecretKey: \") + colorWhiteBold(fmt.Sprintf(\"%s \", cred.SecretAccessKey)))\n\tconsole.Println(colorBlue(\"Region: \") + colorWhiteBold(fmt.Sprintf(getFormatStr(len(region), 3), region)))\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7, "commit_url": "https://github.com/minio/minio/commit/8c84df5e74f2f4ae894392d4b9b2840a8b3ffbb5", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\tconsole.Println(colorMagenta(\"\\nBrowser Access:\"))\n\tconsole.Println(colorGreen(fmt.Sprintf(getFormatStr(len(endPointStr), 3), endPointStr)))\n\tconsole.Println(colorBlue(\"\\nBrowser Access:\"))\n\tconsole.Println(colorWhite(fmt.Sprintf(getFormatStr(len(endPointStr), 3), endPointStr)))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/8c84df5e74f2f4ae894392d4b9b2840a8b3ffbb5", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "\tconsole.Println(colorMagenta(\"\\nCommand-line Access: \") + colorWhite(mcQuickStartGuide))\n\tconsole.Println(colorBlue(\"\\nCommand-line Access: \") + colorWhite(mcQuickStartGuide))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/8c84df5e74f2f4ae894392d4b9b2840a8b3ffbb5", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\t\t\tif err = xl.healFile(volume, path); err != nil {\n\t\t\tif hErr := xl.healFile(volume, path); hErr != nil {\n\t\t\tif err = xl.healFile(volume, path); err != nil {\n\t\t\tif hErr := xl.healFile(volume, path); hErr != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/minio/minio/commit/72748d2073f8877fcf688778534bd1e735fcd394", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\t\t}).Errorf(\"healFile failed with %s\", err)\n\t\t\t\t}).Errorf(\"healFile failed with %s\", hErr)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.06666666666666667, "commit_url": "https://github.com/minio/minio/commit/72748d2073f8877fcf688778534bd1e735fcd394", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": "\ts3MD5, err := makeS3MD5(md5Sums...)\n\ts3MD5, err := completeMultipartMD5(md5Sums...)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/56b7df90e105eaa7246fa40a89d154b37e70b61f", "target_edit_idx": 0, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "func makeS3MD5(md5Strs ...string) (string, error) {\nfunc completeMultipartMD5(md5Strs ...string) (string, error) {\n\ts3MD5, err := makeS3MD5(md5Sums...)\n\ts3MD5, err := completeMultipartMD5(md5Sums...)\n\ts3MD5, err := makeS3MD5(md5Sums...)\n\ts3MD5, err := completeMultipartMD5(md5Sums...)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/56b7df90e105eaa7246fa40a89d154b37e70b61f", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 7 ] }, { "input": "\t\t\t\tretErr = fmt.Errorf(\"error inheriting socket fd %d: %s\", i, err)\n\t\t\t\tretErr = iodine.New(fmt.Errorf(\"error inheriting socket fd %d: %s\", i, err), nil)\n\t\t\t\tretErr = fmt.Errorf(\"error closing inherited socket fd %d: %s\", i, err)\n\t\t\t\tretErr = iodine.New(fmt.Errorf(\"error closing inherited socket fd %d: %s\", i, err), nil)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/minio/minio/commit/1f2e6a40a061e86e3c189675b4416210504cff12", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\tif n.connLimit > 0 {\n\t\tl = rateLimitedListener(l, n.connLimit)\n\t}\n\tn.activeListeners = append(n.activeListeners, l)\n\tn.activeListeners = append(n.activeListeners, rateLimitedListener(l, n.connLimit))\n\tif n.connLimit > 0 {\n\t\tl = rateLimitedListener(l, n.connLimit)\n\t}\n\tn.activeListeners = append(n.activeListeners, l)\n\tn.activeListeners = append(n.activeListeners, rateLimitedListener(l, n.connLimit))\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/1f2e6a40a061e86e3c189675b4416210504cff12", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tk := e.parms.K\n\tm := e.parms.M\n\tk := e.params.K\n\tm := e.params.M\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/minio/minio/commit/b8e9834faa8af03f8e10f62477ab23d11a8e06e2", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5, 6, 7 ] }, { "input": "\tparms *EncoderParams\n\tparams *EncoderParams\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/b8e9834faa8af03f8e10f62477ab23d11a8e06e2", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 5, 6, 7 ] }, { "input": "\tk := C.int(e.parms.K)\n\tm := C.int(e.parms.M)\n\tk := C.int(e.params.K)\n\tm := C.int(e.params.M)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/minio/minio/commit/b8e9834faa8af03f8e10f62477ab23d11a8e06e2", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 6, 7 ] }, { "input": "\tchunkLen := GetEncodedChunkLen(inputLen, e.parms.K)\n\tchunkLen := GetEncodedChunkLen(inputLen, e.params.K)\n\tk := e.parms.K\n\tm := e.parms.M\n\tk := e.params.K\n\tm := e.params.M\n\tparms *EncoderParams\n\tparams *EncoderParams\n\tk := C.int(e.parms.K)\n\tm := C.int(e.parms.M)\n\tk := C.int(e.params.K)\n\tm := C.int(e.params.M)\n\tencodedParityLen := chunkLen * int(e.parms.M)\n\tencodedParityLen := chunkLen * int(e.params.M)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/b8e9834faa8af03f8e10f62477ab23d11a8e06e2", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 5, 7 ] }, { "input": "type Package struct {\ntype goPackage struct {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/34c1e58332319bbf47b7f736269672c08d118fb5", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 1, 7 ] }, { "input": "type usedWalker Package\ntype usedWalker goPackage\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/34c1e58332319bbf47b7f736269672c08d118fb5", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 8, 7 ] }, { "input": "type Report struct {\ntype report struct {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/34c1e58332319bbf47b7f736269672c08d118fb5", "target_edit_idx": 2, "propagatable_edit_idx": [ 10, 3 ] }, { "input": "type Reports []Report\ntype reports []report\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/34c1e58332319bbf47b7f736269672c08d118fb5", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5, 6, 9, 10 ] }, { "input": "func (l Reports) Len() int { return len(l) }\nfunc (l reports) Len() int { return len(l) }\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/34c1e58332319bbf47b7f736269672c08d118fb5", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 3, 5, 6 ] }, { "input": "func (l Reports) Less(i, j int) bool { return l[i].pos < l[j].pos }\nfunc (l reports) Less(i, j int) bool { return l[i].pos < l[j].pos }\n\treports := Reports(nil)\n\treports := reports(nil)\ntype Reports []Report\ntype reports []report\nfunc (l Reports) Len() int { return len(l) }\nfunc (l reports) Len() int { return len(l) }\nfunc (l Reports) Swap(i, j int) { l[i], l[j] = l[j], l[i] }\nfunc (l reports) Swap(i, j int) { l[i], l[j] = l[j], l[i] }\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/34c1e58332319bbf47b7f736269672c08d118fb5", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 3, 4, 6 ] }, { "input": "func (l Reports) Swap(i, j int) { l[i], l[j] = l[j], l[i] }\nfunc (l reports) Swap(i, j int) { l[i], l[j] = l[j], l[i] }\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/34c1e58332319bbf47b7f736269672c08d118fb5", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 3, 4, 5 ] }, { "input": "func (p *Package) Visit(node ast.Node) ast.Visitor {\nfunc (p *goPackage) Visit(node ast.Node) ast.Visitor {\ntype Package struct {\ntype goPackage struct {\ntype usedWalker Package\ntype usedWalker goPackage\n\tp := &Package{\n\tp := &goPackage{\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/34c1e58332319bbf47b7f736269672c08d118fb5", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 8 ] }, { "input": "\tp := &Package{\n\tp := &goPackage{\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/34c1e58332319bbf47b7f736269672c08d118fb5", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 7 ] }, { "input": "\treports := Reports(nil)\n\treports := reports(nil)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/34c1e58332319bbf47b7f736269672c08d118fb5", "target_edit_idx": 9, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": "\t\t\treports = append(reports, Report{node.Pos(), name})\n\t\t\treports = append(reports, report{node.Pos(), name})\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/minio/minio/commit/34c1e58332319bbf47b7f736269672c08d118fb5", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\tf := mockfs.NewFs(ctx, \"test\", \"root\")\n\tfMock, err := mockfs.NewFs(ctx, \"test\", \"root\", nil)\n\trequire.NoError(t, err)\n\tf := fMock.(*mockfs.Fs)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/rclone/rclone/commit/6b670bd43978d7f835794f8e5d4cf6436125917b", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 6, 7, 8, 9, 14 ] }, { "input": "\tf := mockfs.NewFs(ctx, \"potato\", \"\")\n\tf, err := mockfs.NewFs(ctx, \"potato\", \"\", nil)\n\trequire.NoError(t, err)\n\t\t\treturn mockfs.NewFs(ctx, \"mock\", \"/\"), nil\n\t\t\treturn mockfs.NewFs(ctx, \"mock\", \"/\", nil)\n\t\t\treturn mockfs.NewFs(ctx, \"mock\", \"/\"), fs.ErrorIsFile\n\t\t\tfMock, err := mockfs.NewFs(ctx, \"mock\", \"/\", nil)\n\t\t\trequire.NoError(t, err)\n\t\t\treturn fMock, fs.ErrorIsFile\n\tf := mockfs.NewFs(context.Background(), \"mock\", \"/alien\")\n\tf, err := mockfs.NewFs(context.Background(), \"mock\", \"/alien\", nil)\n\trequire.NoError(t, err)\n\tf := mockfs.NewFs(context.Background(), \"mock\", \"/alien\")\n\tf, err := mockfs.NewFs(context.Background(), \"mock\", \"/alien\", nil)\n\trequire.NoError(t, err)\n\tf := mockfs.NewFs(ctx, \"test\", \"root\")\n\tfMock, err := mockfs.NewFs(ctx, \"test\", \"root\", nil)\n\trequire.NoError(t, err)\n\tf := fMock.(*mockfs.Fs)\n\tsrcFs := mockfs.NewFs(ctx, \"sausage\", \"\")\n\tsrcFs, err := mockfs.NewFs(ctx, \"sausage\", \"\", nil)\n\trequire.NoError(t, err)\n\tf := mockfs.NewFs(context.Background(), \"mock\", \"mock\")\n\tf, err := mockfs.NewFs(context.Background(), \"mock\", \"mock\", nil)\n\trequire.NoError(t, err)\n\tf := mockfs.NewFs(ctx, \"mock\", \"/\")\n\tf, err := mockfs.NewFs(ctx, \"mock\", \"/\", nil)\n\trequire.NoError(t, err)\n\tf := mockfs.NewFs(context.Background(), \"test\", \"root\")\n\tfMock, err := mockfs.NewFs(context.Background(), \"test\", \"root\", nil)\n\trequire.NoError(t, err)\n\tf := fMock.(*mockfs.Fs)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/rclone/rclone/commit/6b670bd43978d7f835794f8e5d4cf6436125917b", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 7, 8, 9, 14 ] }, { "input": "\tsrcFs := mockfs.NewFs(ctx, \"sausage\", \"\")\n\tsrcFs, err := mockfs.NewFs(ctx, \"sausage\", \"\", nil)\n\trequire.NoError(t, err)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/rclone/rclone/commit/6b670bd43978d7f835794f8e5d4cf6436125917b", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 8, 9, 14 ] }, { "input": "\tf := mockfs.NewFs(context.Background(), \"mock\", \"mock\")\n\tf, err := mockfs.NewFs(context.Background(), \"mock\", \"mock\", nil)\n\trequire.NoError(t, err)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/rclone/rclone/commit/6b670bd43978d7f835794f8e5d4cf6436125917b", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 9, 14 ] }, { "input": "\tf := mockfs.NewFs(ctx, \"mock\", \"/\")\n\tf, err := mockfs.NewFs(ctx, \"mock\", \"/\", nil)\n\trequire.NoError(t, err)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/rclone/rclone/commit/6b670bd43978d7f835794f8e5d4cf6436125917b", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 14 ] }, { "input": "\t\t\tHelp: \"FTP host to connect to.\",\n\t\t\tHelp: \"FTP host to connect to.\\n\\nE.g. \\\"ftp.example.com\\\".\",\n\t\t\tHelp: \"SSH host to connect to.\",\n\t\t\tHelp: \"SSH host to connect to.\\n\\nE.g. \\\"example.com\\\".\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/rclone/rclone/commit/f589dbc0772448b5554396cd410a863c63c77934", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\tExamples: []fs.OptionExample{{\n\t\t\t\tValue: \"ftp.example.com\",\n\t\t\t\tHelp: \"Connect to ftp.example.com\",\n\t\t\t}},\n\t\t\tExamples: []fs.OptionExample{{\n\t\t\t\tValue: \"example.com\",\n\t\t\t\tHelp: \"Connect to example.com.\",\n\t\t\t}},\n\t\t\tExamples: []fs.OptionExample{{\n\t\t\t\tValue: \"https://example.com\",\n\t\t\t\tHelp: \"Connect to example.com.\",\n\t\t\t}},\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/f589dbc0772448b5554396cd410a863c63c77934", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 11 ] }, { "input": "\t\t\tHelp: \"URL of http host to connect to.\",\n\t\t\tHelp: \"URL of http host to connect to.\\n\\nE.g. \\\"https://example.com\\\", or \\\"https://user:pass@example.com\\\" to use a username and password.\",\n\t\t\tHelp: \"URL of http host to connect to.\",\n\t\t\tHelp: \"URL of http host to connect to.\\n\\nE.g. https://example.com.\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/rclone/rclone/commit/f589dbc0772448b5554396cd410a863c63c77934", "target_edit_idx": 6, "propagatable_edit_idx": [ 10 ] }, { "input": " rclone @ remote:path/to/files C:\\path\\to\\nonexistent\\directory\n rclone @ remote:path/to/files C:\\path\\parent\\mount\n rclone @ remote:path/to/files C:\\path\\to\\nonexistent\\directory\n rclone @ remote:path/to/files C:\\path\\parent\\mount\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/b39fa54ab22e2fa551a6693c90e2d3c90e2d6fd4", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\"github.com/rclone/rclone/fstest/testy\"\n\t\"github.com/rclone/rclone/fstest/testy\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/rclone/rclone/commit/ce065614e29f27b4bbb15c29478d9167077212e1", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\ttesty.SkipUnreliable(t)\n\ttesty.SkipUnreliable(t)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/ce065614e29f27b4bbb15c29478d9167077212e1", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "// reOpen is a wrapper for an object reader which reopens the stream on error\ntype reOpen struct {\n// ReOpen is a wrapper for an object reader which reopens the stream on error\ntype ReOpen struct {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/rclone/rclone/commit/7f15cc95565b0d9e7115a98a07404d05f35a1024", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 5, 6, 7 ] }, { "input": "func newReOpen(ctx context.Context, src fs.Object, hashOption *fs.HashesOption, rangeOption *fs.RangeOption, maxTries int) (rc io.ReadCloser, err error) {\n\th := &reOpen{\nfunc NewReOpen(ctx context.Context, src fs.Object, hashOption *fs.HashesOption, rangeOption *fs.RangeOption, maxTries int) (rc io.ReadCloser, err error) {\n\th := &ReOpen{\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/rclone/rclone/commit/7f15cc95565b0d9e7115a98a07404d05f35a1024", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 9 ] }, { "input": "func (h *reOpen) open() error {\nfunc (h *ReOpen) open() error {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/7f15cc95565b0d9e7115a98a07404d05f35a1024", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 2, 6, 7 ] }, { "input": "func (h *reOpen) Read(p []byte) (n int, err error) {\nfunc (h *ReOpen) Read(p []byte) (n int, err error) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/7f15cc95565b0d9e7115a98a07404d05f35a1024", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 2, 5, 7 ] }, { "input": "func (h *reOpen) Close() error {\nfunc (h *ReOpen) Close() error {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/7f15cc95565b0d9e7115a98a07404d05f35a1024", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 2, 5, 6 ] }, { "input": "var _ io.ReadCloser = (*reOpen)(nil)\nvar _ io.ReadCloser = (*ReOpen)(nil)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/7f15cc95565b0d9e7115a98a07404d05f35a1024", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 5, 6, 7 ] }, { "input": "\t\t\t\treturn newReOpen(context.Background(), src, hashOption, rangeOption, maxRetries)\n\t\t\t\treturn NewReOpen(context.Background(), src, hashOption, rangeOption, maxRetries)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/rclone/rclone/commit/7f15cc95565b0d9e7115a98a07404d05f35a1024", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": "\tif s.Opt.Prefix == \"\" {\n\tif s.Opt.BaseURL == \"\" {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9375, "commit_url": "https://github.com/rclone/rclone/commit/bd61eb89bcc8d818c373e65c6d4dcff7533338a7", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 6, 8, 9, 10, 11 ] }, { "input": "\tif !strings.HasPrefix(Path, s.Opt.Prefix+\"/\") {\n\tif !strings.HasPrefix(Path, s.Opt.BaseURL+\"/\") {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9375, "commit_url": "https://github.com/rclone/rclone/commit/bd61eb89bcc8d818c373e65c6d4dcff7533338a7", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 6, 7, 9, 10, 11 ] }, { "input": "\tPath = Path[len(s.Opt.Prefix):]\n\tPath = Path[len(s.Opt.BaseURL):]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9375, "commit_url": "https://github.com/rclone/rclone/commit/bd61eb89bcc8d818c373e65c6d4dcff7533338a7", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 6, 7, 8, 10, 11 ] }, { "input": "\tmux.HandleFunc(s.Opt.Prefix+\"/\", s.handler)\n\tmux.HandleFunc(s.Opt.BaseURL+\"/\", s.handler)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9375, "commit_url": "https://github.com/rclone/rclone/commit/bd61eb89bcc8d818c373e65c6d4dcff7533338a7", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 6, 7, 8, 9, 11 ] }, { "input": "\t\tPrefix: w.Server.Opt.Prefix,\n\t\tPrefix: w.Server.Opt.BaseURL,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9375, "commit_url": "https://github.com/rclone/rclone/commit/bd61eb89bcc8d818c373e65c6d4dcff7533338a7", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 6, 7, 8, 9, 10 ] }, { "input": "func newPlexConnectorWithToken(f *Fs, plexURL, token string) (*plexConnector, error) {\nfunc newPlexConnectorWithToken(f *Fs, plexURL, token string, insecure bool) (*plexConnector, error) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/rclone/rclone/commit/3c44ef788a1c199dc03f6f2e7994c3732e50c350", "target_edit_idx": 8, "propagatable_edit_idx": [ 2 ] }, { "input": "\t}).Fill(f).Mask(wrappedFs)\n\t\tWrapFs: f.WrapFs,\n\t\tSetWrapper: f.SetWrapper,\n\t}).Fill(f).Mask(wrappedFs).WrapsFs(f, wrappedFs)\n\t}).Fill(f).Mask(wrappedFs)\n\t}).Fill(f).Mask(wrappedFs).WrapsFs(f, wrappedFs)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/rclone/rclone/commit/25b073c767d5dd9bf7e2f2b8265ece58d5799fbd", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\t// create the destination directory if necessary\n\terr := f.dirCache.FindRoot(true)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// create the destination directory if necessary\n\terr = f.dirCache.FindRoot(true)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// create the destination directory if necessary\n\terr := f.dirCache.FindRoot(true)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/rclone/rclone/commit/9b07d32c02fbb52b5ee8add01d49a7709768e805", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 10 ] }, { "input": "\tr.Mkdir(r.fremote)\n\tr.Mkdir(r.fremote)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/rclone/rclone/commit/9b07d32c02fbb52b5ee8add01d49a7709768e805", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "func startStats() chan struct{} {\nfunc StartStats() chan struct{} {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/c24da0b88631a7e28ac970e0240c6106c844f57a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tdefer Stats.DoneTransferring(o.Remote())\n\t\tdefer func() {\n\t\t\tStats.DoneTransferring(o.Remote(), err == nil)\n\t\t}()\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/83ba59749f4fd1b5d0ab558dd7ff603f81d7fec2", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 13 ] }, { "input": "\t\t\tStats.DoneTransferring(src.Remote())\n\t\t\tStats.DoneTransferring(src.Remote(), err == nil)\n\t\t\tStats.DoneTransferring(src.Remote())\n\t\t\tStats.DoneTransferring(src.Remote(), transferredOK)\n\t\tdefer Stats.DoneTransferring(o.Remote())\n\t\tdefer func() {\n\t\t\tStats.DoneTransferring(o.Remote(), err == nil)\n\t\t}()\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/rclone/rclone/commit/83ba59749f4fd1b5d0ab558dd7ff603f81d7fec2", "target_edit_idx": 9, "propagatable_edit_idx": [ 13, 5 ] }, { "input": "\tentry, err := f.db.Metadata(root, true, false, \"\", \"\", metadataLimit)\n\tdirEntry, err := f.db.Metadata(root, true, false, \"\", \"\", metadataLimit)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/5a3b109e25a8ad942eebc15251a67629acd647f7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tfor i := range entry.Contents {\n\t\tentry := &entry.Contents[i]\n\tfor i := range dirEntry.Contents {\n\t\tentry := &dirEntry.Contents[i]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/rclone/rclone/commit/5a3b109e25a8ad942eebc15251a67629acd647f7", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tdstFiles, listErr := readFilesMap(fs, includeAll, dir)\n\t\tfiles, listErr := readFilesMap(fs, includeAll, dir)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/5a3b109e25a8ad942eebc15251a67629acd647f7", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t*pMap = dstFiles\n\t\t\t*pMap = files\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/5a3b109e25a8ad942eebc15251a67629acd647f7", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tClientSecret: fs.Reveal(rcloneClientSecret),\n\t\tClientSecret: fs.Reveal(rcloneEncryptedClientSecret),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/7d4e143deee413c04282998e305d6e002a818202", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 3, 9, 11, 13 ] }, { "input": "\t\t\tName: \"client_id\",\n\t\t\tName: oauthutil.ConfigClientID,\n\t\t\tName: \"client_id\",\n\t\t\tName: oauthutil.ConfigClientID,\n\t\t\tName: \"client_id\",\n\t\t\tName: oauthutil.ConfigClientID,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/0872ec3204a605b4aa6f14cecb0392c80068d8ae", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\t\t\tName: \"client_secret\",\n\t\t\tName: oauthutil.ConfigClientSecret,\n\t\t\tName: \"client_secret\",\n\t\t\tName: oauthutil.ConfigClientSecret,\n\t\t\tName: \"client_secret\",\n\t\t\tName: oauthutil.ConfigClientSecret,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/0872ec3204a605b4aa6f14cecb0392c80068d8ae", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "\told := fs.ConfigFile.MustValue(name, configKey)\n\told := fs.ConfigFile.MustValue(name, ConfigToken)\n\t\tfs.ConfigFile.SetValue(name, configKey, tokenString)\n\t\tfs.ConfigFile.SetValue(name, ConfigToken, tokenString)\n\ttokenString, err := fs.ConfigFile.GetValue(string(name), configKey)\n\ttokenString, err := fs.ConfigFile.GetValue(string(name), ConfigToken)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/0872ec3204a605b4aa6f14cecb0392c80068d8ae", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 7 ] }, { "input": "\t\tfs.ConfigFile.SetValue(name, configKey, tokenString)\n\t\tfs.ConfigFile.SetValue(name, ConfigToken, tokenString)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rclone/rclone/commit/0872ec3204a605b4aa6f14cecb0392c80068d8ae", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "\tmodifiedDate := modTime.Format(time.RFC3339Nano)\n\tmodifiedDate := modTime.Format(RFC3339Out)\n\t\tModifiedDate: modTime.Format(time.RFC3339Nano),\n\t\tModifiedDate: modTime.Format(RFC3339Out),\n\t\tModifiedDate: modTime.Format(time.RFC3339Nano),\n\t\tModifiedDate: modTime.Format(RFC3339Out),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/rclone/rclone/commit/93cb0a47e4801a258ecda7439f015c49b400d4d2", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\tWriteFile(\"potato\", \"------------------------------------------------------------\", t1)\n\tWriteFile(\"potato\", \"------------------------------------------------------------\", t3)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5555555555555556, "commit_url": "https://github.com/rclone/rclone/commit/93cb0a47e4801a258ecda7439f015c49b400d4d2", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10, 11, 12 ] }, { "input": "\t\t{Path: \"potato\", Size: 60, ModTime: t1, Md5sum: \"d6548b156ea68a4e003e786df99eee76\"},\n\t\t{Path: \"potato\", Size: 60, ModTime: t3, Md5sum: \"d6548b156ea68a4e003e786df99eee76\"},\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5555555555555556, "commit_url": "https://github.com/rclone/rclone/commit/93cb0a47e4801a258ecda7439f015c49b400d4d2", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 10, 11, 12 ] }, { "input": "\tWriteFile(\"potato\", \"smaller but same date\", t1)\n\tWriteFile(\"potato\", \"smaller but same date\", t3)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5555555555555556, "commit_url": "https://github.com/rclone/rclone/commit/93cb0a47e4801a258ecda7439f015c49b400d4d2", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9, 11, 12 ] }, { "input": "\t\t{Path: \"potato\", Size: 21, ModTime: t1, Md5sum: \"100defcf18c42a1e0dc42a789b107cd2\"},\n\t\t{Path: \"potato\", Size: 21, ModTime: t3, Md5sum: \"100defcf18c42a1e0dc42a789b107cd2\"},\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5555555555555556, "commit_url": "https://github.com/rclone/rclone/commit/93cb0a47e4801a258ecda7439f015c49b400d4d2", "target_edit_idx": 11, "propagatable_edit_idx": [ 8, 9, 10, 12 ] }, { "input": "\tgeoipList, err := toCidrList(c.IP)\n\tgeoipList, err := toCidrList(c.ExpectIPs)\n\t\tc.IP = advanced.IP\n\t\tc.ExpectIPs = advanced.ExpectIPs\n\t\treturn nil, newError(\"invalid ip rule: \", c.IP).Base(err)\n\t\treturn nil, newError(\"invalid ip rule: \", c.ExpectIPs).Base(err)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/v2ray/v2ray-core/commit/1345185b81203ef1fe1d4972b3c6a90afaac92c4", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 12 ] }, { "input": "\t\treturn nil, newError(\"invalid ip rule: \", c.IP).Base(err)\n\t\treturn nil, newError(\"invalid ip rule: \", c.ExpectIPs).Base(err)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/v2ray/v2ray-core/commit/1345185b81203ef1fe1d4972b3c6a90afaac92c4", "target_edit_idx": 12, "propagatable_edit_idx": [ 10, 11 ] }, { "input": "func MustEnablePulls(ctx *middleware.Context) {\n\tif !ctx.Repo.Repository.CanEnablePulls() {\n\t\tctx.Handle(404, \"Unsupported\", nil)\n\t} else if !ctx.Repo.Repository.EnablePulls {\n\t\tctx.Handle(404, \"MustEnablePulls\", nil)\nfunc MustAllowPulls(ctx *middleware.Context) {\n\tif !ctx.Repo.Repository.AllowsPulls() {\n\t\tctx.Handle(404, \"MustAllowPulls\", nil)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gogs/gogs/commit/a1b28fc33c4a685ffe9a07f67fa6786ec27524bb", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\t\tMustEnablePulls(ctx)\n\t\tMustAllowPulls(ctx)\n\t\tm.Combo(\"/compare/*\", repo.MustEnablePulls).Get(repo.CompareAndPullRequest).\n\t\tm.Combo(\"/compare/*\", repo.MustAllowPulls).Get(repo.CompareAndPullRequest).\n\t\t}, repo.MustEnablePulls)\n\t\t}, repo.MustAllowPulls)\nfunc MustEnablePulls(ctx *middleware.Context) {\n\tif !ctx.Repo.Repository.CanEnablePulls() {\n\t\tctx.Handle(404, \"Unsupported\", nil)\n\t} else if !ctx.Repo.Repository.EnablePulls {\n\t\tctx.Handle(404, \"MustEnablePulls\", nil)\nfunc MustAllowPulls(ctx *middleware.Context) {\n\tif !ctx.Repo.Repository.AllowsPulls() {\n\t\tctx.Handle(404, \"MustAllowPulls\", nil)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gogs/gogs/commit/a1b28fc33c4a685ffe9a07f67fa6786ec27524bb", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "\treqOwner := middleware.RequireOwner()\n\treqTrueOwner := middleware.RequireTrueOwner()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gogs/gogs/commit/36292060d603452deaad03e5e686fae3f7c3f8a8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t}, reqSignIn, middleware.RepoAssignment(true), reqOwner)\n\t}, reqSignIn, middleware.RepoAssignment(true), reqTrueOwner)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gogs/gogs/commit/36292060d603452deaad03e5e686fae3f7c3f8a8", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tlog.Error(\"action.CommitRepoAction(GetRepositoryByName): %d/%s\", userId, repo.LowerName)\n\t\tlog.Error(\"action.CommitRepoAction(GetRepositoryByName): %d/%s\", userId, repoName)\n\t\tlog.Error(\"action.CommitRepoAction(UpdateRepository): %d/%s\", userId, repo.LowerName)\n\t\tlog.Error(\"action.CommitRepoAction(UpdateRepository): %d/%s\", userId, repoName)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/gogs/gogs/commit/8aec5e16c4cb7fb045088b04781ef307558a33c3", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "func newLogService() {\nfunc NewLogService() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gogs/gogs/commit/8aec5e16c4cb7fb045088b04781ef307558a33c3", "target_edit_idx": 7, "propagatable_edit_idx": [ 13 ] }, { "input": "\tnewLogService()\n\tNewLogService()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gogs/gogs/commit/8aec5e16c4cb7fb045088b04781ef307558a33c3", "target_edit_idx": 13, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tdb, err = sql.Open(\"postgres\", fmt.Sprintf(\"postgres://%s:%s@%s/%s?sslmode=%s\",\n\t\t\tsetting.Database.User, setting.Database.Passwd, setting.Database.Host, setting.Database.Name, setting.Database.SSLMode))\n\t\tif setting.Database.Host[0] == '/' {\n\t\t\tdb, err = sql.Open(\"postgres\", fmt.Sprintf(\"postgres://%s:%s@/%s?sslmode=%s&host=%s\",\n\t\t\t\tsetting.Database.User, setting.Database.Passwd, setting.Database.Name, setting.Database.SSLMode, setting.Database.Host))\n\t\t} else {\n\t\t\tdb, err = sql.Open(\"postgres\", fmt.Sprintf(\"postgres://%s:%s@%s/%s?sslmode=%s\",\n\t\t\t\tsetting.Database.User, setting.Database.Passwd, setting.Database.Host, setting.Database.Name, setting.Database.SSLMode))\n\t\t}\n\t\t\tdb, err = sql.Open(\"postgres\", fmt.Sprintf(\"postgres://%s:%s@%s/%s?sslmode=%s\",\n\t\t\t\tsetting.Database.User, setting.Database.Passwd, setting.Database.Host, setting.Database.Name, setting.Database.SSLMode))\n\t\t\tif setting.Database.Host[0] == '/' {\n\t\t\t\tdb, err = sql.Open(\"postgres\", fmt.Sprintf(\"postgres://%s:%s@/%s?sslmode=%s&host=%s\",\n\t\t\t\t\tsetting.Database.User, setting.Database.Passwd, setting.Database.Name, setting.Database.SSLMode, setting.Database.Host))\n\t\t\t} else {\n\t\t\t\tdb, err = sql.Open(\"postgres\", fmt.Sprintf(\"postgres://%s:%s@%s/%s?sslmode=%s\",\n\t\t\t\t\tsetting.Database.User, setting.Database.Passwd, setting.Database.Host, setting.Database.Name, setting.Database.SSLMode))\n\t\t\t}\n\t\tdb, err = sql.Open(\"postgres\", fmt.Sprintf(\"postgres://%s:%s@%s/%s?sslmode=%s\",\n\t\t\tsetting.Database.User, setting.Database.Passwd, setting.Database.Host, setting.Database.Name, setting.Database.SSLMode))\n\t\tif setting.Database.Host[0] == '/' {\n\t\t\tdb, err = sql.Open(\"postgres\", fmt.Sprintf(\"postgres://%s:%s@/%s?sslmode=%s&host=%s\",\n\t\t\t\tsetting.Database.User, setting.Database.Passwd, setting.Database.Name, setting.Database.SSLMode, setting.Database.Host))\n\t\t} else {\n\t\t\tdb, err = sql.Open(\"postgres\", fmt.Sprintf(\"postgres://%s:%s@%s/%s?sslmode=%s\",\n\t\t\t\tsetting.Database.User, setting.Database.Passwd, setting.Database.Host, setting.Database.Name, setting.Database.SSLMode))\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/go-gitea/gitea/commit/085924b1b370310c989fa5e75bb33323746382b0", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\t\tMustEnablePulls(ctx)\n\t\tMustAllowPulls(ctx)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/go-gitea/gitea/commit/a1b28fc33c4a685ffe9a07f67fa6786ec27524bb", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "\t\treturn \"/img/avatar_default.jpg\"\n\t\treturn setting.AppSubUrl + \"/img/avatar_default.jpg\"\n\t\treturn \"/img/avatar_default.jpg\"\n\t\treturn setting.AppSubUrl + \"/img/avatar_default.jpg\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/go-gitea/gitea/commit/bb05ef907b0f19b57d03b035174dbd5fc97af406", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\tvarAddr, ctx, varCfg.Validations, varCfg.DeclRange,\n\t\t\t\tvarAddr, ctx, varCfg.Validations, varCfg.DeclRange, false,\n\t\t\t\tvarAddr, ctx, varCfg.Validations, varCfg.DeclRange,\n\t\t\t\tvarAddr, ctx, varCfg.Validations, varCfg.DeclRange, false,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/terraform/commit/6146cff55e056439c4779ea209101c1ed026484e", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tproviderLockfileDiags := CheckProviderInLockfile(c.main.validating.opts.DependencyLocks, pTy, decl.DeclRange)\n\t\t// We report these diagnostics in a different place\n\t\tif providerLockfileDiags.HasErrors() {\n\t\t\treturn providerSchemas, diags, true\n\t\t// If this phase has a dependency lockfile, check if the provider is in it.\n\t\tdepLocks := c.main.DependencyLocks(phase)\n\t\tif depLocks != nil {\n\t\t\t// Check if the provider is in the lockfile,\n\t\t\t// if it is not we can not read the provider schema\n\t\t\tproviderLockfileDiags := CheckProviderInLockfile(*depLocks, pTy, decl.DeclRange)\n\n\t\t\t// We report these diagnostics in a different place\n\t\t\tif providerLockfileDiags.HasErrors() {\n\t\t\t\tskipFutherValidation = true\n\t\t\t\tcontinue\n\t\t\t}\n\t\tproviderLockfileDiags := CheckProviderInLockfile(c.main.validating.opts.DependencyLocks, pTy, decl.DeclRange)\n\t\t// We report these diagnostics in a different place\n\t\tif providerLockfileDiags.HasErrors() {\n\t\t\tcontinue\n\t\t// If this phase has a dependency lockfile, check if the provider is in it.\n\t\tdepLocks := c.main.DependencyLocks(phase)\n\t\tif depLocks != nil {\n\t\t\tproviderLockfileDiags := CheckProviderInLockfile(*depLocks, pTy, decl.DeclRange)\n\t\t\t// We report these diagnostics in a different place\n\t\t\tif providerLockfileDiags.HasErrors() {\n\t\t\t\tcontinue\n\t\t\t}\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/hashicorp/terraform/commit/fb2f3ca27641d378ff5de8e1f9d3b3955a89d16a", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\t`Resource instances in your current state have moved to new addresses in the latest configuration. Terraform must include those resource instances while planning in order to ensure a correct result, but your -target=... options to not fully cover all of those resource instances.\n\t\t\t\t`Resource instances in your current state have moved to new addresses in the latest configuration. Terraform must include those resource instances while planning in order to ensure a correct result, but your -target=... options do not fully cover all of those resource instances.\n\t\t\t\t`Resource instances in your current state have moved to new addresses in the latest configuration. Terraform must include those resource instances while planning in order to ensure a correct result, but your -target=... options to not fully cover all of those resource instances.\n\t\t\t\t`Resource instances in your current state have moved to new addresses in the latest configuration. Terraform must include those resource instances while planning in order to ensure a correct result, but your -target=... options do not fully cover all of those resource instances.\n\t\t\t\t`Resource instances in your current state have moved to new addresses in the latest configuration. Terraform must include those resource instances while planning in order to ensure a correct result, but your -target=... options to not fully cover all of those resource instances.\n\t\t\t\t`Resource instances in your current state have moved to new addresses in the latest configuration. Terraform must include those resource instances while planning in order to ensure a correct result, but your -target=... options do not fully cover all of those resource instances.\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/hashicorp/terraform/commit/fed6538dece2b0306d52f6c12facb5c4e5485725", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\tp.PlanResourceChangeFn = func(req providers.PlanResourceChangeRequest) providers.PlanResourceChangeResponse {\n\tp.PlanResourceChangeFn = func(req providers.PlanResourceChangeRequest) (resp providers.PlanResourceChangeResponse) {\n\t\t// this is a destroy plan,\n\t\tif req.ProposedNewState.IsNull() {\n\t\t\tresp.PlannedState = req.ProposedNewState\n\t\t\tresp.PlannedPrivate = req.PriorPrivate\n\t\t\treturn resp\n\t\t}\n\n\tp.PlanResourceChangeFn = func(req providers.PlanResourceChangeRequest) providers.PlanResourceChangeResponse {\n\tp.PlanResourceChangeFn = func(req providers.PlanResourceChangeRequest) (resp providers.PlanResourceChangeResponse) {\n\t\t// this is a destroy plan,\n\t\tif req.ProposedNewState.IsNull() {\n\t\t\tresp.PlannedState = req.ProposedNewState\n\t\t\tresp.PlannedPrivate = req.PriorPrivate\n\t\t\treturn resp\n\t\t}\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.18181818181818182, "commit_url": "https://github.com/hashicorp/terraform/commit/96c720517fcc3c1b94e5b0180134316c151fdb93", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\texpectedErr: `Invalid organization value: The \"organization\" attribute value must not be empty.`,\n\t\t\texpectedErr: `Invalid or missing required argument: \"organization\" must be set in the cloud configuration or as an environment variable: TF_ORGANIZATION.`,\n\t\t\texpectedErr: `Invalid organization value: The \"organization\" attribute value must not be empty.`,\n\t\t\texpectedErr: `Invalid or missing required argument: \"organization\" must be set in the cloud configuration or as an environment variable: TF_ORGANIZATION.`,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/b1c22d333e006579cb6317ac9095727bf132a33f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tLineage: \"\",\n\t\tLineage: stateMeta.Lineage,\n\t\tSerial: stateMeta.Serial,\n\t\tLineage: \"\",\n\t\tLineage: stateMeta.Lineage,\n\t\tSerial: stateMeta.Serial,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/terraform/commit/9c80574417f48d34313d7608ec56d48ee51f8bdd", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "// attachDataResourceDependenciesTransformer records all resources transitively referenced\n// through a configuration depends_on.\ntype attachDataResourceDependenciesTransformer struct {\n// attachDataResourceDependsOnTransformer records all resources transitively\n// referenced through a configuration depends_on.\ntype attachDataResourceDependsOnTransformer struct {\n\t\t&attachDataResourceDependenciesTransformer{},\n\t\t&attachDataResourceDependsOnTransformer{},\n\t\t&attachDataResourceDependenciesTransformer{},\n\t\t&attachDataResourceDependsOnTransformer{},\nfunc (t attachDataResourceDependenciesTransformer) Transform(g *Graph) error {\nfunc (t attachDataResourceDependsOnTransformer) Transform(g *Graph) error {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/hashicorp/terraform/commit/3c6b2a8780ad090670f36754cf468817f701b25a", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 10 ] }, { "input": "func (t attachDataResourceDependenciesTransformer) Transform(g *Graph) error {\nfunc (t attachDataResourceDependsOnTransformer) Transform(g *Graph) error {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/terraform/commit/3c6b2a8780ad090670f36754cf468817f701b25a", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 9 ] }, { "input": "\tcmdFlags.BoolVar(&c.ignoreRemoteVersion, \"ignore-remote-version\", false, \"continue even if remote and local Terraform versions differ\")\n\tcmdFlags.BoolVar(&c.ignoreRemoteVersion, \"ignore-remote-version\", false, \"continue even if remote and local Terraform versions are incompatible\")\n\tf.BoolVar(&m.ignoreRemoteVersion, \"ignore-remote-version\", false, \"continue even if remote and local Terraform versions differ\")\n\tf.BoolVar(&m.ignoreRemoteVersion, \"ignore-remote-version\", false, \"continue even if remote and local Terraform versions are incompatible\")\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/hashicorp/terraform/commit/c1ede28a15f67be653d8a6c6896cbe1019f150d4", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " differ. This may result in an unusable workspace, and\n should be used with extreme caution.\n are incompatible. This may result in an unusable\n workspace, and should be used with extreme caution.\n differ. This may result in an unusable workspace, and\n should be used with extreme caution.\n are incompatible. This may result in an unusable\n workspace, and should be used with extreme caution.\n differ. This may result in an unusable workspace, and\n should be used with extreme caution.\n are incompatible. This may result in an unusable\n workspace, and should be used with extreme caution.\n differ. This may result in an unusable workspace, and\n should be used with extreme caution.\n are incompatible. This may result in an unusable\n workspace, and should be used with extreme caution.\n differ. This may result in an unusable workspace, and\n should be used with extreme caution.\n are incompatible. This may result in an unusable\n workspace, and should be used with extreme caution.\n differ. This may result in an unusable workspace, and\n should be used with extreme caution.\n are incompatible. This may result in an unusable\n workspace, and should be used with extreme caution.\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/hashicorp/terraform/commit/c1ede28a15f67be653d8a6c6896cbe1019f150d4", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5, 6, 7 ] }, { "input": "\t\t\tcb(provider, reqs[provider])\n\t\t\tcb(provider, reqs[provider], locked[provider])\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/hashicorp/terraform/commit/2611e08430d8e702afc2f6bc48c1b49b4d50d5e4", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\ti := s.Resource(addr)\n\tif i.EachMode != states.EachList {\n\t\tt.Fatalf(\"expected each mode List, got %s\", i.EachMode)\n\tfor key := range s.Resource(addr).Instances {\n\t\tif _, ok := key.(addrs.IntKey); !ok {\n\t\t\tt.Fatalf(\"expected each mode List, got key %q\", key)\n\t\t}\n\ti = s.Resource(addr)\n\tif i.EachMode != states.NoEach {\n\t\tt.Fatalf(\"expected each mode NoEach, got %s\", i.EachMode)\n\tfor key := range s.Resource(addr).Instances {\n\t\tif key != addrs.NoKey {\n\t\t\tt.Fatalf(\"expected no each mode, found key %q\", key)\n\t\t}\n\ti = s.Resource(addr)\n\tif i.EachMode != states.EachMap {\n\t\tt.Fatalf(\"expected each mode Map, got %s\", i.EachMode)\n\tfor key := range s.Resource(addr).Instances {\n\t\tif _, ok := key.(addrs.StringKey); !ok {\n\t\t\tt.Fatalf(\"expected each mode map, found key %q\", key)\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/2bfaddcf5776343957d08aa84747c685c82d31bc", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "\t\treturn cty.ObjectVal(vals), diags\n\n\t\tif len(vals) > 0 {\n\t\t\tret = cty.MapVal(vals)\n\t\t} else {\n\t\t\tret = cty.MapValEmpty(cty.DynamicPseudoType)\n\t\t}\n\t\treturn cty.ObjectVal(val), diags\n\t\tret = cty.ObjectVal(val)\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/hashicorp/terraform/commit/92837e6296a8b4d2da0665f5a1e8ab35d580778f", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\tmustProviderConfig(`provider[\"registry.terraform.io/-/aws\"]`),\n\t\tmustProviderConfig(`provider[\"registry.terraform.io/hashicorp/aws\"]`),\n\t\tmustProviderConfig(`provider[\"registry.terraform.io/-/aws\"]`),\n\t\tmustProviderConfig(`provider[\"registry.terraform.io/hashicorp/aws\"]`),\n", "class": "clone", "binary_label": 1, "regression_label": 0.058823529411764705, "commit_url": "https://github.com/hashicorp/terraform/commit/e404074bf652d14d5e11b2acb1842b6269f61400", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tProviderResolver: providers.ResolverFixed(\n\t\t\tmap[addrs.Provider]providers.Factory{\n\t\t\t\taddrs.NewLegacyProvider(\"aws\"): testProviderFuncFixed(p),\n\t\t\t},\n\t\t),\n\t\tProviders: map[addrs.Provider]providers.Factory{\n\t\t\taddrs.NewDefaultProvider(\"aws\"): testProviderFuncFixed(p),\n\t\t},\n\t\tProviderResolver: providers.ResolverFixed(\n\t\t\tmap[addrs.Provider]providers.Factory{\n\t\t\t\taddrs.NewLegacyProvider(\"aws\"): testProviderFuncFixed(p),\n\t\t\t},\n\t\t),\n\t\tProviders: map[addrs.Provider]providers.Factory{\n\t\t\taddrs.NewDefaultProvider(\"aws\"): testProviderFuncFixed(p),\n\t\t},\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/e404074bf652d14d5e11b2acb1842b6269f61400", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tif !strings.Contains(stdout, \"Installing registry.terraform.io/hashicorp/template v\") {\n\tif !strings.Contains(stdout, \"Installing hashicorp/template v\") {\n\tif !strings.Contains(stdout, \"Installing registry.terraform.io/hashicorp/null v\") {\n\tif !strings.Contains(stdout, \"Installing hashicorp/null v\") {\n\tif !strings.Contains(stdout, \"Installing registry.terraform.io/hashicorp/template v\") {\n\tif !strings.Contains(stdout, \"Installing hashicorp/template v\") {\n\tif !strings.Contains(stdout, \"Installing registry.terraform.io/hashicorp/null v\") {\n\tif !strings.Contains(stdout, \"Installing hashicorp/null v\") {\n\tif !strings.Contains(stdout, \"Installing registry.terraform.io/hashicorp/template v\") {\n\tif !strings.Contains(stdout, \"Installing hashicorp/template v\") {\n\tif !strings.Contains(stdout, \"Installing registry.terraform.io/hashicorp/null v\") {\n\tif !strings.Contains(stdout, \"Installing hashicorp/null v\") {\n\tif !strings.Contains(stdout, \"- Installing registry.terraform.io/hashicorp/template v\") {\n\tif !strings.Contains(stdout, \"- Installing hashicorp/template v\") {\n\tif strings.Contains(stdout, \"Installing registry.terraform.io/hashicorp/terraform\") {\n\tif strings.Contains(stdout, \"Installing hashicorp/terraform\") {\n\tif !strings.Contains(stdout, \"- Installing registry.terraform.io/hashicorp/null v1.0.0+local\") {\n\tif !strings.Contains(stdout, \"- Installing hashicorp/null v1.0.0+local\") {\n\tif !strings.Contains(stdout, \"Installing registry.terraform.io/hashicorp/template v\") {\n\tif !strings.Contains(stdout, \"Installing hashicorp/template v\") {\n\tif !strings.Contains(stdout, \"Installing registry.terraform.io/hashicorp/null v\") {\n\tif !strings.Contains(stdout, \"Installing hashicorp/null v\") {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/terraform/commit/a6f63c489180218bad2f86b397b929e2e5bd2fe7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 8, 10, 11, 12 ] }, { "input": "\t\treturn path.UnkeyedInstanceShim()\n\t\treturn path\n\t\treturn path.UnkeyedInstanceShim()\n\t\treturn path\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/b1df763541572663df98fc902e08d555cc5ad12a", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "\treturn sp.ModulePath().UnkeyedInstanceShim()\n\treturn sp.ModulePath()\n\treturn sp.ModulePath().UnkeyedInstanceShim()\n\treturn sp.ModulePath()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/b1df763541572663df98fc902e08d555cc5ad12a", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tDependencies: []addrs.Referenceable{},\n\t\tDependencies: []addrs.AbsResource{},\n\t\tDependsOn: []addrs.Referenceable{},\n\t\tDependencies: []addrs.Referenceable{},\n\t\tDependencies: []addrs.AbsResource{},\n\t\tDependsOn: []addrs.Referenceable{},\n\t\tDependencies: []addrs.Referenceable{},\n\t\tDependencies: []addrs.AbsResource{},\n\t\tDependsOn: []addrs.Referenceable{},\n\t\tDependencies: []addrs.Referenceable{},\n\t\tDependencies: []addrs.AbsResource{},\n\t\tDependsOn: []addrs.Referenceable{},\n\tDependencies []addrs.Referenceable\n\tDependencies []addrs.AbsResource\n\t// deprecated\n\tDependsOn []addrs.Referenceable\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/hashicorp/terraform/commit/2c3c011f2099f9063309f2e23d45084a326fd451", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": "\t\t\t\tif _, exists := schemas.Providers[provider].ResourceTypes[addr.Type]; !exists {\n\t\t\t\tschema, _ = schemas.ResourceTypeConfig(\n\t\t\t\t\tprovider,\n\t\t\t\t\taddr.Mode,\n\t\t\t\t\taddr.Type,\n\t\t\t\t)\n\t\t\t\tif schema == nil {\n\t\t\t\tif _, exists := schemas.Providers[provider].ResourceTypes[addr.Type]; !exists {\n\t\t\t\tschema, _ = schemas.ResourceTypeConfig(\n\t\t\t\t\tprovider,\n\t\t\t\t\taddr.Mode,\n\t\t\t\t\taddr.Type,\n\t\t\t\t)\n\t\t\t\tif schema == nil {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/874b3339624b624559a0075549d2bb751038ea84", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\tschema = schemas.Providers[provider].ResourceTypes[addr.Type]\n\t\t\t\tschema = schemas.Providers[provider].DataSources[addr.Type]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/874b3339624b624559a0075549d2bb751038ea84", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "func outputsAsString(state *states.State, modPath addrs.ModuleInstance, schema map[string]*configs.Output, includeHeader bool) string {\nfunc outputsAsString(state *states.State, modPath addrs.ModuleInstance, includeHeader bool) string {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/73abb6e8f4574e5ed2a3f24be924f22786baed22", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\tc.Ui.Output(outputsAsString(state, moduleAddr, nil, false))\n\t\t\tc.Ui.Output(outputsAsString(state, moduleAddr, false))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/73abb6e8f4574e5ed2a3f24be924f22786baed22", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": "\tdataSource.Deprecated = fmt.Sprintf(\n\tdataSource.DeprecationMessage = fmt.Sprintf(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/b7d19e40f8444eb330f8aeb78ca42bdfcdf76d65", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\tDeprecated string\n\tDeprecationMessage string\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/b7d19e40f8444eb330f8aeb78ca42bdfcdf76d65", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": "\tif r.Deprecated != \"\" {\n\t\twarns = append(warns, r.Deprecated)\n\tif r.DeprecationMessage != \"\" {\n\t\twarns = append(warns, r.DeprecationMessage)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/hashicorp/terraform/commit/b7d19e40f8444eb330f8aeb78ca42bdfcdf76d65", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\t\t\t\tDeprecated: \"This resource has been deprecated.\",\n\t\t\t\tDeprecationMessage: \"This resource has been deprecated.\",\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/b7d19e40f8444eb330f8aeb78ca42bdfcdf76d65", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " module.child.provider.aws\n module.child.provider.aws\n module.child.provider.aws\n", "class": "clone", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/hashicorp/terraform/commit/05ef30be2c34799f2d167305f14da8dea972e38f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4 ] }, { "input": "\t\t\t\t\t\t//Reason: moduledeps.ProviderDependencyImplicit,\n\t\t\t\t\t\tReason: moduledeps.ProviderDependencyExplicit,\n\t\t\t\t\t\tReason: moduledeps.ProviderDependencyImplicit,\n\t\t\t\t\t\t\t\t\t\t//Reason: moduledeps.ProviderDependencyInherited,\n\t\t\t\t\t\t\t\t\t\tReason: moduledeps.ProviderDependencyExplicit,\n\t\t\t\t\t\t\t\t\t\tReason: moduledeps.ProviderDependencyExplicit,\n\t\t\t\t\t\t\t\t//Reason: moduledeps.ProviderDependencyInherited,\n\t\t\t\t\t\t\t\tReason: moduledeps.ProviderDependencyExplicit,\n\t\t\t\t\t\t\t\tReason: moduledeps.ProviderDependencyInherited,\n\t\t\t\t\t\t\t\t//Reason: moduledeps.ProviderDependencyImplicit,\n\t\t\t\t\t\t\t\tReason: moduledeps.ProviderDependencyExplicit,\n\t\t\t\t\t\t\t\tReason: moduledeps.ProviderDependencyImplicit,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/terraform/commit/05ef30be2c34799f2d167305f14da8dea972e38f", "target_edit_idx": 5, "propagatable_edit_idx": [ 11, 6, 7 ] }, { "input": "\t\t\t\t\t\t\t\t\t\"foo\": moduledeps.ProviderDependency{\n\t\t\t\t\t\t\t\t\t\"bar\": moduledeps.ProviderDependency{\n\t\t\t\t\t\t\t\t\t\"bar\": moduledeps.ProviderDependency{\n\t\t\t\t\t\t\t\t\t\"foo\": moduledeps.ProviderDependency{\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/hashicorp/terraform/commit/05ef30be2c34799f2d167305f14da8dea972e38f", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\t\tc.Ui.Error(fmt.Sprintf(\"Failed to load root config module: %s\", err))\n\t\t\terr = errwrap.Wrapf(\"Failed to load root config module: {{err}}\", err)\n\t\t\tc.showDiagnostics(err)\n\t\t\tc.Ui.Error(fmt.Sprintf(\"Failed to load root config module: %s\", err))\n\t\t\tc.showDiagnostics(err)\n\t\t\tc.Ui.Error(fmt.Sprintf(\"Failed to load root config module: %s\", err))\n\t\t\terr = errwrap.Wrapf(\"Failed to load root config module: {{err}}\", err)\n\t\t\tc.showDiagnostics(err)\n\t\tc.Ui.Error(fmt.Sprintf(\"Failed to load root config module: %s\", err))\n\t\terr = errwrap.Wrapf(\"Failed to load root config module: {{err}}\", err)\n\t\tc.showDiagnostics(err)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/5cd00a13ec3b026d9f86c6595f6d42c112a9f1d4", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 5, 7 ] }, { "input": "\t\treturn &NodeRefreshableResource{\n\t\treturn &NodeRefreshableResourceInstance{\ntype NodeRefreshableResource struct {\ntype NodeRefreshableResourceInstance struct {\nfunc (n *NodeRefreshableResource) DestroyAddr() *ResourceAddress {\nfunc (n *NodeRefreshableResourceInstance) DestroyAddr() *ResourceAddress {\nfunc (n *NodeRefreshableResource) EvalTree() EvalNode {\nfunc (n *NodeRefreshableResourceInstance) EvalTree() EvalNode {\nfunc (n *NodeRefreshableResource) evalTreeManagedResource() EvalNode {\nfunc (n *NodeRefreshableResourceInstance) evalTreeManagedResource() EvalNode {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/dfb5be241363f6ce21b1e0e71b465560cf1f22c5", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": "type NodeRefreshableResource struct {\ntype NodeRefreshableResourceInstance struct {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/dfb5be241363f6ce21b1e0e71b465560cf1f22c5", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4, 5 ] }, { "input": "func (n *NodeRefreshableResource) evalTreeManagedResource() EvalNode {\nfunc (n *NodeRefreshableResourceInstance) evalTreeManagedResource() EvalNode {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/dfb5be241363f6ce21b1e0e71b465560cf1f22c5", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": "\t\tTimeout: 2 * time.Minute,\n\t\tTimeout: 5 * time.Minute,\n\t\tTimeout: 2 * time.Minute,\n\t\tTimeout: 5 * time.Minute,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/terraform/commit/6b4643fbdcf2349386fd415c0e04ef2cecb1b7ae", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\terr := resource.Retry(1*time.Minute, func() *resource.RetryError {\n\t\t\terr := resource.Retry(5*time.Minute, func() *resource.RetryError {\n\terr = resource.Retry(2*time.Minute, func() *resource.RetryError {\n\terr = resource.Retry(5*time.Minute, func() *resource.RetryError {\n\t\t\terr := resource.Retry(2*time.Minute, func() *resource.RetryError {\n\t\t\terr := resource.Retry(5*time.Minute, func() *resource.RetryError {\n\t\t\terr := resource.Retry(2*time.Minute, func() *resource.RetryError {\n\t\t\terr := resource.Retry(5*time.Minute, func() *resource.RetryError {\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/hashicorp/terraform/commit/6b4643fbdcf2349386fd415c0e04ef2cecb1b7ae", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "\t\t\t\"Unknown 'ReadDataDiff' shadow value: %#v\", raw))\n\t\t\t\"Unknown 'ReadDataDiff' shadow value for %q: %#v\", key, raw))\n\t\t\t\"Unknown 'ReadDataApply' shadow value: %#v\", raw))\n\t\t\t\"Unknown 'ReadDataApply' shadow value for %q: %#v\", key, raw))\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/hashicorp/terraform/commit/c6fd938fb81d3732d16ebb77d21ffd8601998786", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\tConfig: testAccAWSCloudFrontDistributionS3Config,\n\t\t\t\tConfig: testConfig,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/ff6469be8956fc882f28142e4507aa53beb90645", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\ts3_origin_config {}\n\t\ts3_origin_config {}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/terraform/commit/c58892485bdb74aceaa33689b186117532c4ffd5", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\tConfig: testAccAwsEbsVolumeConfigWithIops,\n\t\t\t\tConfig: testAccAwsEbsVolumeConfigWithNoIops,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/7bf404619c0ffaa756f22e58769b1f62327802ed", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "const testAccAwsEbsVolumeConfigWithIops = `\nconst testAccAwsEbsVolumeConfigWithNoIops = `\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/7bf404619c0ffaa756f22e58769b1f62327802ed", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "\tif t.Zoneid == IS_GLOBAL_RESOURCE {\n\t\tsetValueOrUUID(d, \"zone\", t.Zonename, IS_GLOBAL_RESOURCE)\n\tif t.Zoneid == UnlimitedResourceID {\n\t\tsetValueOrUUID(d, \"zone\", t.Zonename, UnlimitedResourceID)\nconst IS_GLOBAL_RESOURCE = \"-1\"\n// CloudStack uses a \"special\" ID of -1 to define an unlimited resource\nconst UnlimitedResourceID = \"-1\"\n\t\tif value == IS_GLOBAL_RESOURCE {\n\t\tif value == UnlimitedResourceID {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/hashicorp/terraform/commit/fc89f576ca2acf6d1d1446da2999542af8a70233", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "const IS_GLOBAL_RESOURCE = \"-1\"\n// CloudStack uses a \"special\" ID of -1 to define an unlimited resource\nconst UnlimitedResourceID = \"-1\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/terraform/commit/fc89f576ca2acf6d1d1446da2999542af8a70233", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "func getAdditionalItems(t reflect.Type) []driver.Item {\nfunc getAdditionalItems(t reflect.Type, defaultRoot string) []driver.Item {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/alist-org/alist/commit/fe940162893235a7dcb32946d4fa0db3207ea384", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6 ] }, { "input": "\t\t\titems = append(items, getAdditionalItems(field.Type)...)\n\t\t\titems = append(items, getAdditionalItems(field.Type, defaultRoot)...)\n\tadditionalItems := getAdditionalItems(tAddition)\n\tadditionalItems := getAdditionalItems(tAddition, config.DefaultRoot)\nfunc getAdditionalItems(t reflect.Type) []driver.Item {\nfunc getAdditionalItems(t reflect.Type, defaultRoot string) []driver.Item {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/alist-org/alist/commit/fe940162893235a7dcb32946d4fa0db3207ea384", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\t\tconf.IndexHtml = strings.Replace(conf.IndexHtml, \"\", customizeHead.Value, 1)\n\t\tconf.IndexHtml = strings.Replace(conf.ManageHtml, \"\", customizeHead.Value, 1)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/alist-org/alist/commit/925f386bed1b929d0e44a9b4c2d10ba6752bb35f", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\tsel, good := p.parseCompoundSelector()\n\tsel, good := p.parseCompoundSelector(opts)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/evanw/esbuild/commit/5859f8c6f713a6366a9d20325b8b3ed63585bb75", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tsel, good := p.parseCompoundSelector()\n\t\tsel, good := p.parseCompoundSelector(opts)\n\tsel, good := p.parseCompoundSelector()\n\tsel, good := p.parseCompoundSelector(opts)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/evanw/esbuild/commit/5859f8c6f713a6366a9d20325b8b3ed63585bb75", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tif p.options.UnsupportedCSSFeatures.Has(compat.Nesting) {\n\t\t\tp.warnNestingUnsupported(r)\n\t\t}\n\t\tp.maybeWarnAboutNesting(r, opts)\n\t\t\t\tif p.options.UnsupportedCSSFeatures.Has(compat.Nesting) {\n\t\t\t\t\tp.warnNestingUnsupported(r)\n\t\t\t\t}\n\t\t\t\tp.maybeWarnAboutNesting(r, opts)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/evanw/esbuild/commit/5859f8c6f713a6366a9d20325b8b3ed63585bb75", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": "\t\t\t\tresultGroups[i] = link(&options, forked, log, b.fs, b.res, files, entryPoints, reachableFiles, dataForSourceMaps)\n\t\t\t\tresultGroups[i] = link(\n\t\t\t\t\t&options, forked, log, b.fs, b.res, files, entryPoints, b.uniqueKeyPrefix, reachableFiles, dataForSourceMaps)\n\t\tresultGroups = [][]graph.OutputFile{link(&options, timer, log, b.fs, b.res, files, b.entryPoints, allReachableFiles, dataForSourceMaps)}\n\t\tresultGroups = [][]graph.OutputFile{link(\n\t\t\t&options, timer, log, b.fs, b.res, files, b.entryPoints, b.uniqueKeyPrefix, allReachableFiles, dataForSourceMaps)}\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/evanw/esbuild/commit/73d50ef60d0c11689c44dd08789c3ddfed6f3c56", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\t\t\t\tAlias: \"*\",\n\t\t\t\t\t\tAliasIsStar: true,\n\t\t\t\t\tAlias: \"*\",\n\t\t\t\t\tAliasIsStar: true,\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/evanw/esbuild/commit/24811f1338ae48a4371e1b94b9e376d11c41925a", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "func newParser(log logging.Log, source logging.Source, options ParseOptions) *parser {\nfunc newParser(log logging.Log, source logging.Source, lexer lexer.Lexer, options ParseOptions) *parser {\n\tp := newParser(log, source, options)\n\tp := newParser(log, source, lexer.NewLexer(log, source), options)\n\tp := newParser(log, source, options)\n\t// Don't create a new lexer using lexer.NewLexer() here since that will\n\t// actually attempt to parse the first token, which might cause a syntax\n\t// error.\n\tp := newParser(log, source, lexer.Lexer{}, options)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/evanw/esbuild/commit/7c5521aa804f81954a63b3e0789c1fe84f45c78f", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\tp := newParser(log, source, options)\n\tp := newParser(log, source, lexer.NewLexer(log, source), options)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/evanw/esbuild/commit/7c5521aa804f81954a63b3e0789c1fe84f45c78f", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "\tp.skipTypeScriptTypeArguments()\n\tp.skipTypeScriptTypeArguments(false /* isInsideJSXElement */)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/evanw/esbuild/commit/09317bae64bad86b21f30bea906fe2e7f2bbb454", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "\t\tp.skipTypeScriptTypeArguments()\n\t\t// Pass a flag to the type argument skipper because we need to call\n\t\t// lexer.NextInsideJSXElement() after we hit the closing \">\". The next\n\t\t// token after the \">\" might be an attribute name with a dash in it\n\t\t// like this: \" data-disabled/>\"\n\t\tp.skipTypeScriptTypeArguments(true /* isInsideJSXElement */)\n\t\t\tp.skipTypeScriptTypeArguments()\n\t\t\tp.skipTypeScriptTypeArguments(false /* isInsideJSXElement */)\n\tp.skipTypeScriptTypeArguments()\n\tp.skipTypeScriptTypeArguments(false /* isInsideJSXElement */)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/evanw/esbuild/commit/09317bae64bad86b21f30bea906fe2e7f2bbb454", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "\tb := (flag.Value.Type() == \"bool\")\n\tb := (len(flag.NoOptDefVal) > 0)\n\tb := (flag.Value.Type() == \"bool\")\n\tb := (len(flag.NoOptDefVal) > 0)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/spf13/cobra/commit/7bf964e5b6deee154b3a038dc83fc7cbaa3cb724", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tcostTime := time.Since(sessVars.StartTime) + sessVars.DurationParse\n\tcostTime := sessVars.GetTotalCostDuration()\n\tcostTime := time.Since(sessVars.StartTime) + sessVars.DurationParse\n\tcostTime := sessVars.GetTotalCostDuration()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/bf50430eee63473b5384327c0e067edb8edc2fde", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tkvRange, err := distsql.TableHandleRangesToKVRanges(h.sctx.GetDistSQLCtx(), []int64{pid}, meta != nil && meta.IsCommonHandle, ranges)\n\t\tkvRange, err := distsql.TableHandleRangesToKVRanges(dctx, []int64{pid}, meta != nil && meta.IsCommonHandle, ranges)\n\t\tkvRange, err := distsql.TableHandleRangesToKVRanges(h.sctx.GetDistSQLCtx(), []int64{pid}, meta != nil && meta.IsCommonHandle, ranges)\n\t\tkvRange, err := distsql.TableHandleRangesToKVRanges(dctx, []int64{pid}, meta != nil && meta.IsCommonHandle, ranges)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/998014ef34d8589cf1ae89191f56cc6f44382a45", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "// MarshalJSON implements json.Marshaler interface.\nfunc (col *Column) MarshalJSON() ([]byte, error) {\n\treturn []byte(fmt.Sprintf(\"%q\", col)), nil\n}\n\n// MarshalJSON implements json.Marshaler interface.\nfunc (c *Constant) MarshalJSON() ([]byte, error) {\n\treturn []byte(fmt.Sprintf(\"%q\", c)), nil\n}\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pingcap/tidb/commit/ebc9620fb5e693422004269453c8af6a8805696d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tpd.WithMaxErrorRetry(3),\n\t\tpd.WithMaxErrorRetry(3),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/fa9f84e51abe6293c8ead8ee222e970fb898cec9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tpdAddrs string,\n\tpdAddrs []string,\n\tpdAddrs string,\n\tpdAddrs []string,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pingcap/tidb/commit/5949fa50a4d5f2711f323068c10884a53de9b0c0", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\tvar concurrency int\n\tif e.ctx.GetSessionVars().InRestrictedSQL {\n\t\t// In restricted SQL, we use the default value of IndexSerialScanConcurrency. it is copied from tidb_sysproc_scan_concurrency.\n\t\tconcurrency = e.ctx.GetSessionVars().IndexSerialScanConcurrency()\n\t} else {\n\t\tconcurrency = e.ctx.GetSessionVars().AnalyzeDistSQLScanConcurrency()\n\t}\n\tconcurrency := e.ctx.GetSessionVars().AnalyzeDistSQLScanConcurrency()\n\tvar concurrency int\n\tif b.ctx.GetSessionVars().InRestrictedSQL {\n\t\t// In restricted SQL, we use the default value of IndexSerialScanConcurrency. it is copied from tidb_sysproc_scan_concurrency.\n\t\tconcurrency = b.ctx.GetSessionVars().IndexSerialScanConcurrency()\n\t} else {\n\t\tconcurrency = b.ctx.GetSessionVars().AnalyzeDistSQLScanConcurrency()\n\t}\n\tconcurrency := b.ctx.GetSessionVars().AnalyzeDistSQLScanConcurrency()\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/66401b5c06c50c2f5f595528a51a989c9a801759", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\tValue: ast.NewValueExpr(16384+1, \"\", \"\"),\n\t\t\t\t\tValue: ast.NewValueExpr(100000+1, \"\", \"\"),\n\t\t\t\t\tValue: ast.NewValueExpr(1024+1, \"\", \"\"),\n\t\t\t\t\tValue: ast.NewValueExpr(100000+1, \"\", \"\"),\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/pingcap/tidb/commit/7b48fecc64aa3981b3bee521d5a7186a51e304cf", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tExpectExec(\"UPDATE `mock-schema`\\\\.engine_v\\\\d+ SET status = 30 WHERE 'all' = \\\\? AND status <= 25\").\n\t\tWithArgs(sqlmock.AnyArg()).\n\t\tExpectExec(\"UPDATE \\\\?\\\\.\\\\? SET status = \\\\? WHERE \\\\? = \\\\? AND status <= \\\\?\").\n\t\tWithArgs(\"`mock-schema`\", checkpoints.CheckpointTableNameEngine, checkpoints.CheckpointStatusLoaded, \"'all'\", sqlmock.AnyArg(), 25).\n\t\tExpectExec(\"UPDATE `mock-schema`\\\\.table_v\\\\d+ SET status = 30 WHERE 'all' = \\\\? AND status <= 25\").\n\t\tWithArgs(sqlmock.AnyArg()).\n\t\tExpectExec(\"UPDATE \\\\?\\\\.\\\\? SET status = \\\\? WHERE \\\\? = \\\\? AND status <= \\\\?\").\n\t\tWithArgs(\"`mock-schema`\", checkpoints.CheckpointTableNameTable, checkpoints.CheckpointStatusLoaded, \"'all'\", sqlmock.AnyArg(), 25).\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/56bf77595c5ac91f0cd7ab522a8e9d3aaaeaedc4", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tExpectExec(\"UPDATE `mock-schema`\\\\.engine_v\\\\d+ SET status = 30 WHERE table_name = \\\\? AND status <= 25\").\n\t\tWithArgs(\"`db1`.`t2`\").\n\t\tExpectExec(\"UPDATE \\\\?\\\\.\\\\? SET status = \\\\? WHERE \\\\? = \\\\? AND status <= \\\\?\").\n\t\tWithArgs(\"`mock-schema`\", checkpoints.CheckpointTableNameEngine, checkpoints.CheckpointStatusLoaded, \"table_name\", \"`db1`.`t2`\", 25).\n\t\tExpectExec(\"UPDATE `mock-schema`\\\\.table_v\\\\d+ SET status = 30 WHERE table_name = \\\\? AND status <= 25\").\n\t\tWithArgs(\"`db1`.`t2`\").\n\t\tExpectExec(\"UPDATE \\\\?\\\\.\\\\? SET status = \\\\? WHERE \\\\? = \\\\? AND status <= \\\\?\").\n\t\tWithArgs(\"`mock-schema`\", checkpoints.CheckpointTableNameTable, checkpoints.CheckpointStatusLoaded, \"table_name\", \"`db1`.`t2`\", 25).\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/56bf77595c5ac91f0cd7ab522a8e9d3aaaeaedc4", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\t\") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin /*T![auto_id_cache] AUTO_ID_CACHE=1 */\"))\n\t\t\t\") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=201 /*T![auto_id_cache] AUTO_ID_CACHE=1 */\"))\n\t\t\t\") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin /*T![auto_id_cache] AUTO_ID_CACHE=1 */\"))\n\t\t\t\") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=212 /*T![auto_id_cache] AUTO_ID_CACHE=1 */\"))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/e0f62ef19e6e49c9f5ea35ef74d42127067ab8f7", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\treturn \"\", errors.New(\"not found instance\")\n\t\treturn nil, errors.New(\"not found instance\")\n\treturn \"\", errors.New(\"not found instance\")\n\treturn serverNodes, nil\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/d901924725ef86ec245121b53817f03048087a3a", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tresultCode: \"0\",\n\t\tresultCode: \"\",\n\t\t\tresultCode: \"0\",\n\t\t\tresultCode: \"\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/pingcap/tidb/commit/36f82bde70ddf8273889f222ca80a356c02a0682", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\ttk.MustExec(\"set session tidb_isolation_read_engines='tiflash';select count(*) from t\")\n\ttk.MustExec(\"set session tidb_isolation_read_engines='tiflash';\")\n\ttk.MustQuery(`select count(*) from t`)\n\ttk.MustExec(`set session tidb_isolation_read_engines=\"tiflash\";select count(*) from test.t`)\n\ttk.MustExec(`set session tidb_isolation_read_engines=\"tiflash\";`)\n\ttk.MustQuery(`select count(*) from test.t`)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/cdb2910210631c428342598a222b58cfacffad35", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\tlru, err := NewLRUPlanCache(3, pickFromBucket)\n\tlru, err := NewLRUPlanCache(3, 0, 0, pickFromBucket)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/pingcap/tidb/commit/f2ee73a50611c44f8df4ca6218aa24332f2c0fcb", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 6, 7, 8, 9, 11 ] }, { "input": "\tlru, err := NewLRUPlanCache(5, pickFromBucket)\n\tlru, err := NewLRUPlanCache(5, 0, 0, pickFromBucket)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/pingcap/tidb/commit/f2ee73a50611c44f8df4ca6218aa24332f2c0fcb", "target_edit_idx": 11, "propagatable_edit_idx": [ 2, 6, 7, 8, 9, 10 ] }, { "input": "\tt.actionMuForHardLimit.actionOnExceed = reArrangeFallback(t.actionMuForHardLimit.actionOnExceed, a)\n\tt.actionMuForHardLimit.actionOnExceed = reArrangeFallback(a, t.actionMuForHardLimit.actionOnExceed)\n\tt.actionMuForSoftLimit.actionOnExceed = reArrangeFallback(t.actionMuForSoftLimit.actionOnExceed, a)\n\tt.actionMuForSoftLimit.actionOnExceed = reArrangeFallback(a, t.actionMuForSoftLimit.actionOnExceed)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/78b32f3cd4b4a411751d8b6870817005b24a285b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\treturn false, errors.Trace(err)\n\t\t\treturn false, err\n\t\t\t\t\treturn false, errors.Trace(err)\n\t\t\t\t\treturn false, err\n\t\t\t\t\treturn false, errors.Trace(err)\n\t\t\t\t\treturn false, err\n", "class": "clone", "binary_label": 1, "regression_label": 0.2222222222222222, "commit_url": "https://github.com/pingcap/tidb/commit/6a53a03fad7ccfc3560fed75a316d758d8a4a2f9", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\t\treturn errors.New(\"MockTiFlash is not accessible\")\n\t\treturn &MockTiFlashError{\"MockTiFlash is not accessible\"}\n\t\treturn errors.New(\"MockTiFlash is not accessible\")\n\t\treturn &MockTiFlashError{\"MockTiFlash is not accessible\"}\n\t\treturn nil, errors.New(\"MockTiFlash is not accessible\")\n\t\treturn nil, &MockTiFlashError{\"MockTiFlash is not accessible\"}\n\t\treturn errors.New(\"MockTiFlash is not accessible\")\n\t\treturn &MockTiFlashError{\"MockTiFlash is not accessible\"}\n\t\treturn errors.New(\"MockTiFlash is not accessible\")\n\t\treturn &MockTiFlashError{\"MockTiFlash is not accessible\"}\n\t\treturn nil, errors.New(\"MockTiFlash is not accessible\")\n\t\treturn nil, &MockTiFlashError{\"MockTiFlash is not accessible\"}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/6a53a03fad7ccfc3560fed75a316d758d8a4a2f9", "target_edit_idx": 6, "propagatable_edit_idx": [ 7, 8, 9, 10, 11 ] }, { "input": "\t\t\t\tconfig.GetGlobalConfig().CheckMb4ValueInUTF8 = false\n\t\t\t\tconfig.GetGlobalConfig().CheckMb4ValueInUTF8.Store(false)\n\tconfig.GetGlobalConfig().CheckMb4ValueInUTF8 = true\n\tconfig.GetGlobalConfig().CheckMb4ValueInUTF8.Store(true)\n\t\t\t\tconfig.GetGlobalConfig().CheckMb4ValueInUTF8 = true\n\t\t\t\tconfig.GetGlobalConfig().CheckMb4ValueInUTF8.Store(true)\n", "class": "clone", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/pingcap/tidb/commit/a0e31aa9875d5a4058271bfad3e406b1cc21da7c", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 6 ] }, { "input": "\trequire.Equal(t, true, config.GetGlobalConfig().CheckMb4ValueInUTF8)\n\trequire.Equal(t, true, config.GetGlobalConfig().CheckMb4ValueInUTF8.Load())\n\trequire.Equal(t, false, config.GetGlobalConfig().CheckMb4ValueInUTF8)\n\trequire.Equal(t, false, config.GetGlobalConfig().CheckMb4ValueInUTF8.Load())\n\trequire.True(t, config.GetGlobalConfig().CheckMb4ValueInUTF8)\n\trequire.True(t, config.GetGlobalConfig().CheckMb4ValueInUTF8.Load())\n\trequire.False(t, config.GetGlobalConfig().CheckMb4ValueInUTF8)\n\trequire.False(t, config.GetGlobalConfig().CheckMb4ValueInUTF8.Load())\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/pingcap/tidb/commit/a0e31aa9875d5a4058271bfad3e406b1cc21da7c", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 13, 14 ] }, { "input": "\t\t\ter.err = variable.ErrIncorrectScope.GenWithStackByArgs(name, \"GLOBAL\")\n\t\t\ter.err = variable.ErrIncorrectScope.GenWithStackByArgs(name, \"SESSION\")\n\t\t\ter.err = variable.ErrIncorrectScope.GenWithStackByArgs(name, \"SESSION\")\n\t\t\ter.err = variable.ErrIncorrectScope.GenWithStackByArgs(name, \"GLOBAL\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/e520e466140a7ef54dca1eb4569b3d3477671dfb", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tif m := t.Meta(); m.TempTableType == model.TempTableGlobal {\n\tif m := t.Meta(); m.TempTableType != model.TempTableNone {\n\tif m := t.Meta(); m.TempTableType == model.TempTableGlobal {\n\tif m := t.Meta(); m.TempTableType != model.TempTableNone {\n\tif m := t.Meta(); m.TempTableType == model.TempTableGlobal {\n\tif m := t.Meta(); m.TempTableType != model.TempTableNone {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/5e75a1c7ee60c43599015007245e4d1189c1f7c2", "target_edit_idx": 12, "propagatable_edit_idx": [ 13, 14 ] }, { "input": "\t\"github.com/pingcap/tidb/util/sli\"\n\t\"github.com/pingcap/tidb/util/sli\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/pingcap/tidb/commit/9505b4bc6924842176d3ffea05912cde2bc4562f", "target_edit_idx": 1, "propagatable_edit_idx": [ 9 ] }, { "input": "\tcase kv.ReplicaRead:\n\t\ts.mu.Lock()\n\t\ts.mu.replicaRead = val.(kv.ReplicaReadType)\n\t\ts.mu.Unlock()\n\tcase kv.ReplicaRead:\n\t\ts.mu.Lock()\n\t\ts.mu.replicaRead = kv.ReplicaReadLeader\n\t\ts.mu.Unlock()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/9527fa38dbc5f11d43bce462dbdab219ff9749e2", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\ttxn.SetOption(kv.EnableAsyncCommit, true)\n\ttxn.SetEnableAsyncCommit(true)\n\ttxn.SetOption(kv.EnableAsyncCommit, false)\n\ttxn.SetEnableAsyncCommit(false)\n\ttxn.SetOption(kv.EnableAsyncCommit, true)\n\ttxn.SetEnableAsyncCommit(true)\n\ttxn.SetOption(kv.EnableAsyncCommit, true)\n\ttxn.SetEnableAsyncCommit(true)\n\ttxn.SetOption(kv.EnableAsyncCommit, true)\n\ttxn.SetEnableAsyncCommit(true)\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/pingcap/tidb/commit/1ae648bd61a64aae18ee63e82c57720983968c61", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 4, 5, 7 ] }, { "input": "\ttxn.SetOption(kv.Enable1PC, true)\n\ttxn.SetEnable1PC(true)\n\ttxn.SetOption(kv.Enable1PC, false)\n\ttxn.SetEnable1PC(false)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/1342f3a054b747c85c9303781cf93d82f899a33f", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t_, _, err := c.checkSchemaValid(ctx, currentTS, c.txn.txnInfoSchema, true)\n\t_, _, err := c.checkSchemaValid(ctx, currentTS, c.txn.schemaVer, true)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/8ff80f12b72072d82344d4738f89fb09ed7311cf", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": "\t// txnInfoSchema is the infoSchema fetched at startTS.\n\ttxnInfoSchema SchemaVer\n\t// schemaVer is the infoSchema fetched at startTS.\n\tschemaVer SchemaVer\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pingcap/tidb/commit/8ff80f12b72072d82344d4738f89fb09ed7311cf", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\t\tbytes, err := tablecodec.EncodeValue(sc, nil, sample.Value)\n\t\tvalBytes, err := tablecodec.EncodeValue(sc, nil, sample.Value)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/3f6dfe91daab7acb178ad24941dfca1745993afd", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tdata = append(data, bytes)\n\t\tdata = append(data, valBytes)\n\t\tbytes, err := tablecodec.EncodeValue(sc, nil, sample.Value)\n\t\tvalBytes, err := tablecodec.EncodeValue(sc, nil, sample.Value)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/3f6dfe91daab7acb178ad24941dfca1745993afd", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "\tfirstPartRanges, secondPartRanges := distsql.SplitRangesBySign(e.ranges, e.keepOrder, e.desc, e.table.Meta() != nil && e.table.Meta().IsCommonHandle)\n\tfirstPartRanges, secondPartRanges := distsql.SplitRangesAcrossInt64Boundary(e.ranges, e.keepOrder, e.desc, e.table.Meta() != nil && e.table.Meta().IsCommonHandle)\n// SplitRangesBySign split the ranges into two parts:\n// 1. signedRanges is less or equal than maxInt64\n// 2. unsignedRanges is greater than maxInt64\n// We do that because the encoding of tikv key takes every key as a int. As a result MaxUInt64 is indeed\n// small than zero. So we must\n// 1. pick the range that straddles the MaxInt64\n// 2. split that range into two parts : smaller than max int64 and greater than it.\n// 3. if the ascent order is required, return signed first, vice versa.\n// 4. if no order is required, is better to return the unsigned one. That's because it's the normal order\n// of tikv scan.\nfunc SplitRangesBySign(ranges []*ranger.Range, keepOrder bool, desc bool, isCommonHandle bool) ([]*ranger.Range, []*ranger.Range) {\n// SplitRangesAcrossInt64Boundary split the ranges into two groups:\n// 1. signedRanges is less or equal than MaxInt64\n// 2. unsignedRanges is greater than MaxInt64\n//\n// We do this because every key of tikv is encoded as an int64. As a result, MaxUInt64 is small than zero when\n// interpreted as an int64 variable.\n//\n// This function does the following:\n// 1. split ranges into two groups as described above.\n// 2. if there's a range that straddles the int64 boundary, split it into two ranges, which results in one smaller and\n// one greater than MaxInt64.\n//\n// if `KeepOrder` is false, we merge the two groups of ranges into one group, to save an rpc call later\n// if `desc` is false, return signed ranges first, vice versa.\nfunc SplitRangesAcrossInt64Boundary(ranges []*ranger.Range, keepOrder bool, desc bool, isCommonHandle bool) ([]*ranger.Range, []*ranger.Range) {\n\tsplitedRanges, _ := distsql.SplitRangesBySign(ts.Ranges, false, false, ts.Table.IsCommonHandle)\n\tsplitedRanges, _ := distsql.SplitRangesAcrossInt64Boundary(ts.Ranges, false, false, ts.Table.IsCommonHandle)\n\tfirstPartRanges, secondPartRanges := distsql.SplitRangesBySign(ranges, true, false, !hasPkHist(e.handleCols))\n\tfirstPartRanges, secondPartRanges := distsql.SplitRangesAcrossInt64Boundary(ranges, true, false, !hasPkHist(e.handleCols))\n\t\tsplitedRanges, _ := distsql.SplitRangesBySign(p.Ranges, false, false, p.Table.IsCommonHandle)\n\t\tsplitedRanges, _ := distsql.SplitRangesAcrossInt64Boundary(p.Ranges, false, false, p.Table.IsCommonHandle)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/3f6dfe91daab7acb178ad24941dfca1745993afd", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 8, 2, 9 ] }, { "input": "\tsplitedRanges, _ := distsql.SplitRangesBySign(ts.Ranges, false, false, ts.Table.IsCommonHandle)\n\tsplitedRanges, _ := distsql.SplitRangesAcrossInt64Boundary(ts.Ranges, false, false, ts.Table.IsCommonHandle)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/3f6dfe91daab7acb178ad24941dfca1745993afd", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 9, 2, 7 ] }, { "input": "\t\tSetBinFlagOrBinStr(argType, bf.tp)\n\t\tSetBinFlagOrBinStr(argType, bf.tp)\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/pingcap/tidb/commit/7229416bae71b3ad732870bdf69fe0c27fbba278", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\tSetBinFlagOrBinStr(args[0].GetType(), bf.tp)\n\tSetBinFlagOrBinStr(args[2].GetType(), bf.tp)\n\taddBinFlag(bf.tp)\n\tSetBinFlagOrBinStr(args[0].GetType(), bf.tp)\n\tSetBinFlagOrBinStr(args[3].GetType(), bf.tp)\n\taddBinFlag(bf.tp)\n\tSetBinFlagOrBinStr(args[0].GetType(), bf.tp)\n\tSetBinFlagOrBinStr(args[2].GetType(), bf.tp)\n\taddBinFlag(bf.tp)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/7229416bae71b3ad732870bdf69fe0c27fbba278", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "\t\t{\"floor(c_bigint_d)\", mysql.TypeNewDecimal, charset.CharsetBin, mysql.BinaryFlag, 20, 0}, // TODO: Flen should be 17\n\t\t{\"floor(c_ubigint_d)\", mysql.TypeNewDecimal, charset.CharsetBin, mysql.BinaryFlag, 20, 0}, // TODO: Flen should be 17\n\t\t{\"floor(c_bigint_d)\", mysql.TypeLonglong, charset.CharsetBin, mysql.BinaryFlag, 20, 0}, // TODO: Flen should be 17\n\t\t{\"floor(c_ubigint_d)\", mysql.TypeLonglong, charset.CharsetBin, mysql.UnsignedFlag | mysql.BinaryFlag, 20, 0}, // TODO: Flen should be 17\n\t\t{\"ceil(c_bigint_d)\", mysql.TypeNewDecimal, charset.CharsetBin, mysql.BinaryFlag, 20, 0}, // TODO: Flen should be 17\n\t\t{\"ceil(c_ubigint_d)\", mysql.TypeNewDecimal, charset.CharsetBin, mysql.BinaryFlag, 20, 0}, // TODO: Flen should be 17\n\t\t{\"ceil(c_bigint_d)\", mysql.TypeLonglong, charset.CharsetBin, mysql.BinaryFlag, 20, 0}, // TODO: Flen should be 17\n\t\t{\"ceil(c_ubigint_d)\", mysql.TypeLonglong, charset.CharsetBin, mysql.UnsignedFlag | mysql.BinaryFlag, 20, 0}, // TODO: Flen should be 17\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/01a39ae67102d5ebf6d5d9424f41001a4764fcb9", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t{\"floor(18446744073709551615)\", mysql.TypeNewDecimal, charset.CharsetBin, mysql.BinaryFlag, 20, 0},\n\t\t{\"floor(18446744073709551615)\", mysql.TypeLonglong, charset.CharsetBin, mysql.UnsignedFlag | mysql.BinaryFlag, 20, 0},\n\t\t{\"ceil(18446744073709551615)\", mysql.TypeNewDecimal, charset.CharsetBin, mysql.BinaryFlag, 20, 0},\n\t\t{\"ceil(18446744073709551615)\", mysql.TypeLonglong, charset.CharsetBin, mysql.UnsignedFlag | mysql.BinaryFlag, 20, 0},\n\t\t{\"ceiling(18446744073709551615)\", mysql.TypeNewDecimal, charset.CharsetBin, mysql.BinaryFlag, 20, 0},\n\t\t{\"ceiling(18446744073709551615)\", mysql.TypeLonglong, charset.CharsetBin, mysql.UnsignedFlag | mysql.BinaryFlag, 20, 0},\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/01a39ae67102d5ebf6d5d9424f41001a4764fcb9", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9 ] }, { "input": "\t\tPromQL: \"sum(increase(tidb_tikvclient_gc_seconds_count{$LABEL_CONDITIONS}[$RANGE_DURATION])) by (instance)\",\n\t\tLabels: []string{\"instance\"},\n\t\tPromQL: \"sum(increase(tidb_tikvclient_gc_seconds_count{$LABEL_CONDITIONS}[$RANGE_DURATION])) by (instance,stage)\",\n\t\tLabels: []string{\"instance\", \"stage\"},\n\t\tPromQL: \"sum(increase(tidb_tikvclient_gc_seconds_sum{$LABEL_CONDITIONS}[$RANGE_DURATION])) by (instance)\",\n\t\tLabels: []string{\"instance\"},\n\t\tPromQL: \"sum(increase(tidb_tikvclient_gc_seconds_sum{$LABEL_CONDITIONS}[$RANGE_DURATION])) by (instance,stage)\",\n\t\tLabels: []string{\"instance\", \"stage\"},\n", "class": "clone", "binary_label": 1, "regression_label": 0.047619047619047616, "commit_url": "https://github.com/pingcap/tidb/commit/38ecab6a7c1dde3c9a2ed2713b3a69d63f662b77", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": "\tterror.Log(err)\n\tif !terror.ErrorEqual(err, types.ErrTruncated) {\n\t\tterror.Log(err)\n\t}\n\tterror.Log(err)\n\tif !terror.ErrorEqual(err, types.ErrTruncated) {\n\t\tterror.Log(err)\n\t}\n\tterror.Log(err)\n\tif !terror.ErrorEqual(err, types.ErrTruncated) {\n\t\tterror.Log(err)\n\t}\n\t\t\tterror.Log(err)\n\t\t\tif !terror.ErrorEqual(err, types.ErrTruncated) {\n\t\t\t\tterror.Log(err)\n\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/pingcap/tidb/commit/ebb55738695d01048f747a43592331e3e2443988", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\tsr.updateCopRuntimeStats(&execdetails.ExecDetails{CalleeAddress: \"callee\"}, 0)\n\tsr.updateCopRuntimeStats(context.Background(), &execdetails.ExecDetails{CalleeAddress: \"callee\"}, 0)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/2c70616c09366590a81d37562e665d15a258fc47", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "func checkAlterTableCharset(tblInfo *model.TableInfo, dbInfo *model.DBInfo, toCharset, toCollate string) (doNothing bool, err error) {\nfunc checkAlterTableCharset(tblInfo *model.TableInfo, dbInfo *model.DBInfo, toCharset, toCollate string, needsOverwriteCols bool) (doNothing bool, err error) {\n\tdoNothing, err := checkAlterTableCharset(tb.Meta(), schema, toCharset, toCollate)\n\tdoNothing, err := checkAlterTableCharset(tb.Meta(), schema, toCharset, toCollate, needsOverwriteCols)\n\t_, err = checkAlterTableCharset(tblInfo, dbInfo, toCharset, toCollate)\n\t_, err = checkAlterTableCharset(tblInfo, dbInfo, toCharset, toCollate, needsOverwriteCols)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/efa2c938bda5d7e750748fa1cb14c94db103ecc2", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4 ] }, { "input": "\t_, err = checkAlterTableCharset(tblInfo, dbInfo, toCharset, toCollate)\n\t_, err = checkAlterTableCharset(tblInfo, dbInfo, toCharset, toCollate, needsOverwriteCols)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/efa2c938bda5d7e750748fa1cb14c94db103ecc2", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "\t\tif buf.IsNull(i) || !decs[i].IsZero() {\n\t\tisNull := buf.IsNull(i)\n\t\tif b.keepNull && isNull {\n\t\t\tresult.SetNull(i, true)\n\t\t\tcontinue\n\t\t}\n\t\tif isNull || !decs[i].IsZero() {\n\t\tif buf.IsNull(i) || decs[i].IsZero() {\n\t\tisNull := buf.IsNull(i)\n\t\tif b.keepNull && isNull {\n\t\t\tresult.SetNull(i, true)\n\t\t\tcontinue\n\t\t}\n\t\tif isNull || decs[i].IsZero() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/a1d627a24eb8872d14d495cfe149e8f04e18f5e7", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tif result.IsNull(i) {\n\t\tisNull := result.IsNull(i)\n\t\tif b.keepNull && isNull {\n\t\t\tcontinue\n\t\t}\n\t\tif isNull {\n\t\tif result.IsNull(i) {\n\t\tisNull := result.IsNull(i)\n\t\tif b.keepNull && isNull {\n\t\t\tcontinue\n\t\t}\n\t\tif isNull {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pingcap/tidb/commit/a1d627a24eb8872d14d495cfe149e8f04e18f5e7", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tif buf.IsNull(i) || bufI64s[i] != 0 {\n\t\tisNull := buf.IsNull(i)\n\t\tif b.keepNull && isNull {\n\t\t\tresult.SetNull(i, true)\n\t\t\tcontinue\n\t\t}\n\t\tif isNull || bufI64s[i] != 0 {\n\t\tif buf.IsNull(i) || f64s[i] == 0 {\n\t\tisNull := buf.IsNull(i)\n\t\tif b.keepNull && isNull {\n\t\t\tresult.SetNull(i, true)\n\t\t\tcontinue\n\t\t}\n\t\tif isNull || f64s[i] == 0 {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/a1d627a24eb8872d14d495cfe149e8f04e18f5e7", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "// See https://dev.mysql.com/doc/refman/5.7/en/case.html\n// See https://dev.mysql.com/doc/refman/5.7/en/control-flow-functions.html#operator_case\n// See https://dev.mysql.com/doc/refman/5.7/en/case.html\n// See https://dev.mysql.com/doc/refman/5.7/en/control-flow-functions.html#operator_case\n// See https://dev.mysql.com/doc/refman/5.7/en/case.html\n// See https://dev.mysql.com/doc/refman/5.7/en/control-flow-functions.html#operator_case\n// See https://dev.mysql.com/doc/refman/5.7/en/case.html\n// See https://dev.mysql.com/doc/refman/5.7/en/control-flow-functions.html#operator_case\n// See https://dev.mysql.com/doc/refman/5.7/en/case.html\n// See https://dev.mysql.com/doc/refman/5.7/en/control-flow-functions.html#operator_case\n// See https://dev.mysql.com/doc/refman/5.7/en/case.html\n// See https://dev.mysql.com/doc/refman/5.7/en/control-flow-functions.html#operator_case\n// See https://dev.mysql.com/doc/refman/5.7/en/case.html\n// See https://dev.mysql.com/doc/refman/5.7/en/control-flow-functions.html#operator_case\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/pingcap/tidb/commit/b18759b8c162230dcb8a853c6c49dd25e5dc0fd8", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8 ] }, { "input": "\t\tmysql.SystemDB, mysql.TiDBTable, bootstrappedVar, bootstrappedVarTrue, bootstrappedVarTrue)\n\t\tmysql.SystemDB, mysql.TiDBTable, bootstrappedVar, varTrue, varTrue)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/c7cda1a0c9d48ebaa503301c4dc689f3b7cc4e32", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t_, dec, _, _, err := codec.DecodeDecimal(colData)\n\t\t_, dec, precision, frac, err := codec.DecodeDecimal(colData)\n\t\t_, dec, _, _, err := codec.DecodeDecimal(colData)\n\t\t_, dec, _, frac, err := codec.DecodeDecimal(colData)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/099782898eb512bf65e24ef48195a131dceb7223", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tcostLimit = cumCost\n\t\t\tcostLimit = implCost\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/8c6234c1a26aebd6dbdce8c274d600b89dc34a6a", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "// ScaleCostLimit implements Implementation interface.\nfunc (impl *TableReaderImpl) ScaleCostLimit(costLimit float64) float64 {\n// GetCostLimit implements Implementation interface.\nfunc (impl *TableReaderImpl) GetCostLimit(costLimit float64, children ...memo.Implementation) float64 {\n// ScaleCostLimit implements Implementation interface.\nfunc (impl *IndexReaderImpl) ScaleCostLimit(costLimit float64) float64 {\n// GetCostLimit implements Implementation interface.\nfunc (impl *IndexReaderImpl) GetCostLimit(costLimit float64, children ...memo.Implementation) float64 {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/8c6234c1a26aebd6dbdce8c274d600b89dc34a6a", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\t\t\tresult.value,\n\t\t\t\tresult.reference,\n\t\t\t\tresult.actual,\n\t\t\t\tresult.expected,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/pingcap/tidb/commit/f9492200a2472ae146df89ceec93a5c6d3db68dc", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\titem: row.GetString(1), // key\n\t\t\tvalue: fmt.Sprintf(\"%d\", row.GetInt64(2)), // count\n\t\t\treference: \"1\",\n\t\t\tseverity: \"P2\",\n\t\t\titem: row.GetString(1), // key\n\t\t\tactual: \"inconsistent\",\n\t\t\texpected: \"consistent\",\n\t\t\tseverity: \"warning\",\n\t\t\titem: row.GetString(0), // type\n\t\t\tvalue: fmt.Sprintf(\"%d\", row.GetInt64(1)), // count\n\t\t\treference: \"1\",\n\t\t\tseverity: \"P1\",\n\t\t\titem: row.GetString(0), // type\n\t\t\tactual: \"inconsistent\",\n\t\t\texpected: \"consistent\",\n\t\t\tseverity: \"critical\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/f9492200a2472ae146df89ceec93a5c6d3db68dc", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\ttk.MustQuery(\"select * from t where a >= 4 and b >= 1 and c = 0\")\n\ttk.MustQuery(\"select * from t where a >= 4 and b >= 1 and c = 0;\")\n\ttk.MustQuery(\"select * from t where a >= 1 and b >= 4 and c = 0\")\n\ttk.MustQuery(\"select * from t where a >= 1 and b >= 4 and c = 0;\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/pingcap/tidb/commit/dddb85ca9236ff6018fe53287845ad0c4adcd229", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\ttk.MustExec(\"create global binding for select * from t using select * from t use index(idx)\")\n\ttk.MustExec(\"create global binding for select * from t using select * from t use index(idx);\")\n\ttk.MustExec(\"create global binding for select * from t using select * from t use index(idx)\")\n\ttk.MustExec(\"create global binding for select * from t using select * from t use index(idx);\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/pingcap/tidb/commit/dddb85ca9236ff6018fe53287845ad0c4adcd229", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tsession.SchemaChangedWithoutRetry = true\n\tatomic.StoreUint32(&session.SchemaChangedWithoutRetry, 1)\n\t\tsession.SchemaChangedWithoutRetry = false\n\t\tatomic.StoreUint32(&session.SchemaChangedWithoutRetry, 0)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/5fb669b68b5778b5e2d6862c66af7cf29634de85", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tfor numCols := 1; numCols <= 10; numCols++ {\n\t\tfor round := 0; round < 64; round++ {\n\tfor numCols := 1; numCols <= 5; numCols++ {\n\t\tfor round := 0; round < 16; round++ {\n\tfor numCols := 1; numCols <= 10; numCols++ {\n\t\tfor round := 0; round < 64; round++ {\n\tfor numCols := 1; numCols <= 5; numCols++ {\n\t\tfor round := 0; round < 16; round++ {\n\tfor numCols := 1; numCols <= 10; numCols++ {\n\t\tfor round := 0; round < 64; round++ {\n\tfor numCols := 1; numCols <= 5; numCols++ {\n\t\tfor round := 0; round < 16; round++ {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pingcap/tidb/commit/abab046991b81661a42c67b77efc48370ad8b17a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "func (s *testEvaluatorSuite) TestImplicitArgs(c *C) {\nfunc (s *testEvaluatorSerialSuites) TestImplicitArgs(c *C) {\nfunc (s *testEvaluatorSuite) TestPushDownSwitcher(c *C) {\nfunc (s *testEvaluatorSerialSuites) TestPushDownSwitcher(c *C) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.003278688524590164, "commit_url": "https://github.com/pingcap/tidb/commit/abab046991b81661a42c67b77efc48370ad8b17a", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tdbt.Assert(lastID, Equals, int64(7))\n\t\tdbt.Assert(lastID, Equals, int64(6))\n\t\tdbt.Assert(lastID, Equals, int64(11))\n\t\tdbt.Assert(lastID, Equals, int64(10))\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/pingcap/tidb/commit/728ed194c0669cb4effe6398de464c3ffbfb6608", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tdecodedVals, err := tablecodec.CutRowNew(rowVal, colID2DecodedPos)\n\tcutVals, err := tablecodec.CutRowNew(rowVal, colID2CutPos)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/0ba4d0b41b0234a8bd1d70282dfd1bb28b9f7a30", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "\tif decodedVals == nil {\n\t\tdecodedVals = make([][]byte, len(colID2DecodedPos))\n\tif cutVals == nil {\n\t\tcutVals = make([][]byte, len(colID2CutPos))\n\tdecodedVals, err := tablecodec.CutRowNew(rowVal, colID2DecodedPos)\n\tcutVals, err := tablecodec.CutRowNew(rowVal, colID2CutPos)\n\t\tif len(decodedVals[decodedPos]) == 0 {\n\t\t\t// This branch only entered for updating and deleting. It won't have one column in multiple positions.\n\t\t\tcolInfo := getColInfoByID(e.tblInfo, id)\n\t\tcutPos := colID2CutPos[col.ID]\n\t\tif len(cutVals[cutPos]) == 0 {\n\t\t\tcolInfo := getColInfoByID(e.tblInfo, col.ID)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/pingcap/tidb/commit/0ba4d0b41b0234a8bd1d70282dfd1bb28b9f7a30", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 5 ] }, { "input": "\t\tif len(decodedVals[decodedPos]) == 0 {\n\t\t\t// This branch only entered for updating and deleting. It won't have one column in multiple positions.\n\t\t\tcolInfo := getColInfoByID(e.tblInfo, id)\n\t\tcutPos := colID2CutPos[col.ID]\n\t\tif len(cutVals[cutPos]) == 0 {\n\t\t\tcolInfo := getColInfoByID(e.tblInfo, col.ID)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/0ba4d0b41b0234a8bd1d70282dfd1bb28b9f7a30", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\tlogutil.Logger(context.Background()).Warn(\"send request is canceled\", zap.String(\"to\", addr))\n\t\treturn nil, errors.Trace(gstatus.Error(gcodes.DeadlineExceeded, \"Canceled or timeout\"))\n\t\tlogutil.Logger(context.Background()).Warn(\"wait response is cancelled\",\n\t\t\tzap.String(\"to\", addr), zap.String(\"cause\", ctx1.Err().Error()))\n\t\treturn nil, errors.Trace(ctx1.Err())\n\t\tlogutil.Logger(context.Background()).Warn(\"send request is timeout\", zap.String(\"to\", addr))\n\t\treturn nil, errors.Trace(gstatus.Error(gcodes.DeadlineExceeded, \"Canceled or timeout\"))\n\t\tlogutil.Logger(context.Background()).Warn(\"send request is cancelled\",\n\t\t\tzap.String(\"to\", addr), zap.String(\"cause\", ctx1.Err().Error()))\n\t\treturn nil, errors.Trace(ctx1.Err())\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pingcap/tidb/commit/8b1694873c1defa0ca97e7b8d496970c88c2a98f", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\tl, er.err = er.newFunction(ast.GE, &v.Type, er.ctxStack[stkLen-3], er.ctxStack[stkLen-2])\n\tl, er.err = er.newFunction(ast.GE, &v.Type, expr, lexp)\n\t\tr, er.err = er.newFunction(ast.LE, &v.Type, er.ctxStack[stkLen-3], er.ctxStack[stkLen-1])\n\t\tr, er.err = er.newFunction(ast.LE, &v.Type, expr, rexp)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/7e8005324cd9835ae3e989f20e9384ddf64a9abb", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\tc.Assert(terror.ErrorEqual(err, executor.ErrPasswordNoMatch), IsTrue)\n\tc.Assert(terror.ErrorEqual(err, executor.ErrCantCreateUserWithGrant), IsTrue)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pingcap/tidb/commit/62d37a8356964aa3c3179d88360e82a4294b1fa7", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "func splitRanges(ranges []*ranger.Range, keepOrder bool) ([]*ranger.Range, []*ranger.Range) {\nfunc splitRanges(ranges []*ranger.Range, keepOrder bool, desc bool) ([]*ranger.Range, []*ranger.Range) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/33015e10a95c7d229d1d17f646ce0133a5dd0adc", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 6 ] }, { "input": "\tfirstPartRanges, secondPartRanges := splitRanges(e.ranges, e.keepOrder)\n\tfirstPartRanges, secondPartRanges := splitRanges(e.ranges, e.keepOrder, e.desc)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/33015e10a95c7d229d1d17f646ce0133a5dd0adc", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "\t\te.handleWarning(err,\n\t\t\tfmt.Sprintf(\"Load Data: insert data:%v failed:%v\", e.row, errors.ErrorStack(err)))\n\t\te.handleWarning(err)\n\te.handleWarning(err, fmt.Sprintf(\"ignore err:%v\", errors.ErrorStack(err)))\n\te.handleWarning(err)\n\t\te.handleWarning(err,\n\t\t\tfmt.Sprintf(\"Load Data: insert data:%v failed:%v\", e.row, errors.ErrorStack(err)))\n\t\te.handleWarning(err)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pingcap/tidb/commit/76a01da3135e7617a4c05fd635bb00e358ebaa61", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 5 ] }, { "input": "\t\te.handleWarning(err,\n\t\t\tfmt.Sprintf(\"Load Data: insert data:%v failed:%v\", e.row, errors.ErrorStack(err)))\n\t\te.handleWarning(err)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pingcap/tidb/commit/76a01da3135e7617a4c05fd635bb00e358ebaa61", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 4 ] }, { "input": "\treturn ret, errors.Trace(err)\n\treturn ret, err\n\treturn dec, errors.Trace(err)\n\treturn dec, err\n", "class": "clone", "binary_label": 1, "regression_label": 0.04, "commit_url": "https://github.com/pingcap/tidb/commit/76a01da3135e7617a4c05fd635bb00e358ebaa61", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\t\treturn errors.Trace(errAccessDenied.GenWithStackByArgs(cc.user, addr, \"YES\"))\n\t\t\treturn errors.Trace(errAccessDenied.GenWithStackByArgs(cc.user, addr, hasPassword))\n\t\treturn errors.Trace(errAccessDenied.GenWithStackByArgs(cc.user, host, \"YES\"))\n\t\treturn errors.Trace(errAccessDenied.GenWithStackByArgs(cc.user, host, hasPassword))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/46bebb4db1bc1e616e03b8e1815808e4c20c5051", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\targs[i].GetType().Flag &= ^mysql.ParseToJSONFlag\n\t\t\tDisableParseJSONFlag4Expr(args[i])\n\targs[0].GetType().Flag &= ^mysql.ParseToJSONFlag\n\tDisableParseJSONFlag4Expr(args[0])\n\t\targs[i].GetType().Flag &= ^mysql.ParseToJSONFlag\n\t\tDisableParseJSONFlag4Expr(args[i])\n\t\targs[i].GetType().Flag &= ^mysql.ParseToJSONFlag\n\t\tDisableParseJSONFlag4Expr(args[i])\n\t\targs[i].GetType().Flag &= ^mysql.ParseToJSONFlag\n\t\tDisableParseJSONFlag4Expr(args[i])\n\t\targs[i].GetType().Flag &= ^mysql.ParseToJSONFlag\n\t\tDisableParseJSONFlag4Expr(args[i])\n\t\targs[i].GetType().Flag &= ^mysql.ParseToJSONFlag\n\t\tDisableParseJSONFlag4Expr(args[i])\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/63e7dacf8d4e59dce05131561d313065cbeda586", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7 ] }, { "input": "\t}.Init(p.ctx, p.stats.ScaleByExpectCnt(prop.ExpectedCnt), prop)\n\t}.Init(p.ctx, p.stats.ScaleByExpectCnt(prop.ExpectedCnt), childProp)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pingcap/tidb/commit/97b569ca4bad527b97d6cc5b4aa48f46926ab42f", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 5 ] }, { "input": "\t}.Init(p.ctx, p.stats.ScaleByExpectCnt(prop.ExpectedCnt), prop)\n\t}.Init(p.ctx, p.stats.ScaleByExpectCnt(prop.ExpectedCnt), childProp)\n\tus := PhysicalUnionScan{Conditions: p.conditions}.Init(p.ctx, p.stats, prop)\n\tchildProp := prop.Clone()\n\tus := PhysicalUnionScan{Conditions: p.conditions}.Init(p.ctx, p.stats, childProp)\n\t}.Init(p.ctx, p.stats.ScaleByExpectCnt(prop.ExpectedCnt), prop)\n\t}.Init(p.ctx, p.stats.ScaleByExpectCnt(prop.ExpectedCnt), childProp)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pingcap/tidb/commit/97b569ca4bad527b97d6cc5b4aa48f46926ab42f", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "func buildFKInfo(fkName model.CIStr, keys []*ast.IndexColName, refer *ast.ReferenceDef) (*model.FKInfo, error) {\nfunc buildFKInfo(fkName model.CIStr, keys []*ast.IndexColName, refer *ast.ReferenceDef, cols []*table.Column) (*model.FKInfo, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/dc8b94b51f09d8199c4cbf86f4fb8bafd06bfabc", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\tfkInfo, err := buildFKInfo(fkName, keys, refer)\n\tfkInfo, err := buildFKInfo(fkName, keys, refer, t.Cols())\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/dc8b94b51f09d8199c4cbf86f4fb8bafd06bfabc", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": "\ta.startTime = time.Now()\n\ta.StartTime = time.Now()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/b7a8f91e0a239b0484da6ac8b7fae7e39e01da89", "target_edit_idx": 2, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "\tcostTime := time.Since(a.startTime)\n\tcostTime := time.Since(a.StartTime)\n\ta.startTime = time.Now()\n\ta.StartTime = time.Now()\n\t\t\tStart: a.startTime,\n\t\t\tStart: a.StartTime,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pingcap/tidb/commit/b7a8f91e0a239b0484da6ac8b7fae7e39e01da89", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 6 ] }, { "input": "\t\t\tStart: a.startTime,\n\t\t\tStart: a.StartTime,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pingcap/tidb/commit/b7a8f91e0a239b0484da6ac8b7fae7e39e01da89", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "\tcolVals, err := tablecodec.CutRowNew(rowVal, colIDs)\n\tdecodedVals, err := tablecodec.CutRowNew(rowVal, colID2DecodedPos)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/a4edb58dd20d89695d131fab997d78732ab2e511", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 6 ] }, { "input": "\tif colVals == nil {\n\t\tcolVals = make([][]byte, len(colIDs))\n\tif decodedVals == nil {\n\t\tdecodedVals = make([][]byte, len(colID2DecodedPos))\n\tcolVals, err := tablecodec.CutRowNew(rowVal, colIDs)\n\tdecodedVals, err := tablecodec.CutRowNew(rowVal, colID2DecodedPos)\n\t\tif len(colVals[offset]) == 0 {\n\t\tif len(decodedVals[decodedPos]) == 0 {\n\t\t\t// This branch only entered for updating and deleting. It won't have one column in multiple positions.\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/pingcap/tidb/commit/a4edb58dd20d89695d131fab997d78732ab2e511", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 6 ] }, { "input": "\t\t\tchk.AppendInt64(offset, e.handle)\n\t\t\tchk.AppendInt64(firstPos, e.handle)\n\t\t\tchk.AppendDatum(offset, &d)\n\t\t\tchk.AppendDatum(firstPos, &d)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/a4edb58dd20d89695d131fab997d78732ab2e511", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tif len(colVals[offset]) == 0 {\n\t\tif len(decodedVals[decodedPos]) == 0 {\n\t\t\t// This branch only entered for updating and deleting. It won't have one column in multiple positions.\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/pingcap/tidb/commit/a4edb58dd20d89695d131fab997d78732ab2e511", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\t\tchk.AppendDatum(offset, &d)\n\t\t\tchk.AppendDatum(firstPos, &d)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/a4edb58dd20d89695d131fab997d78732ab2e511", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tif err = checkPartitionFuncValid(s.Partition.Expr); err != nil {\n\t\tif err = checkPartitionFuncValid(ctx, tbInfo, s.Partition.Expr); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/1fa5669fb48ae0c6cf2d99413d62c7652f872c4e", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "func checkPartitionFuncValid(expr ast.ExprNode) error {\nfunc checkPartitionFuncValid(ctx sessionctx.Context, tblInfo *model.TableInfo, expr ast.ExprNode) error {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/1fa5669fb48ae0c6cf2d99413d62c7652f872c4e", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": "\tstore, err := NewTestTiKVStore(client, pdClient, nil, nil)\n\tstore, err := NewTestTiKVStore(client, pdClient, nil, nil, false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/1e82cb9632346d35b61e416eae0264447cb3a855", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 7 ] }, { "input": "func NewTestTiKVStore(client Client, pdClient pd.Client, clientHijack func(Client) Client, pdClientHijack func(pd.Client) pd.Client) (kv.Storage, error) {\nfunc NewTestTiKVStore(client Client, pdClient pd.Client, clientHijack func(Client) Client, pdClientHijack func(pd.Client) pd.Client, disableTxnLocalLatches bool) (kv.Storage, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/1e82cb9632346d35b61e416eae0264447cb3a855", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4, 7 ] }, { "input": "\t\t\tschemaVer, err = d.runDDLJob(t, job)\n\t\t\tschemaVer, runJobErr = d.runDDLJob(t, job)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.18181818181818182, "commit_url": "https://github.com/pingcap/tidb/commit/bec5f3b0471a4de79952770dd0017d7051db4b4a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\terr = d.updateDDLJob(t, job, err != nil)\n\t\t\terr = d.updateDDLJob(t, job, runJobErr != nil)\n\t\t\tschemaVer, err = d.runDDLJob(t, job)\n\t\t\tschemaVer, runJobErr = d.runDDLJob(t, job)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/pingcap/tidb/commit/bec5f3b0471a4de79952770dd0017d7051db4b4a", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tt.addCost(t.count() * cpuFactor)\n\t\tt.addCost(t.count() * cpuFactor)\n\t}\n\tt.addCost(t.count() * cpuFactor)\n\tif p.hasDistinctFunc() {\n\t\tt.addCost(t.count() * cpuFactor * distinctAggFactor)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pingcap/tidb/commit/d6c04423f6761baaa1f6bb25757173f393679c0f", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\ttask := tasks[0].copy()\n\tif cop, ok := task.(*copTask); ok {\n\tt := tasks[0].copy()\n\tif cop, ok := t.(*copTask); ok {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/pingcap/tidb/commit/d6c04423f6761baaa1f6bb25757173f393679c0f", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 7 ] }, { "input": "\t\ttask = finishCopTask(p.ctx, cop)\n\t\tattachPlan2Task(finalAgg, task)\n\t\ttask.addCost(task.count()*cpuFactor + cardinality*hashAggMemFactor)\n\t\tt = finishCopTask(p.ctx, cop)\n\t\tattachPlan2Task(finalAgg, t)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/pingcap/tidb/commit/d6c04423f6761baaa1f6bb25757173f393679c0f", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 6 ] }, { "input": "\treturn task\n\tt.addCost(t.count()*cpuFactor*hashAggFactor + cardinality*createAggCtxFactor)\n\tif p.hasDistinctFunc() {\n\t\tt.addCost(t.count() * cpuFactor * distinctAggFactor)\n\t}\n\treturn t\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/d6c04423f6761baaa1f6bb25757173f393679c0f", "target_edit_idx": 9, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\t\tCollate: \"utf8\",\n\t\tCollate: \"utf8_bin\",\n\t\tCollate: \"utf8\",\n\t\tCollate: \"utf8_bin\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pingcap/tidb/commit/6d133085bca6533443303d77483c53c9acc6f962", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\"github.com/pingcap/tipb/go-binlog\"\n\tbinlog \"github.com/pingcap/tipb/go-binlog\"\n\t\"github.com/pingcap/tipb/go-binlog\"\n\tbinlog \"github.com/pingcap/tipb/go-binlog\"\n\t\"github.com/pingcap/tipb/go-binlog\"\n\tbinlog \"github.com/pingcap/tipb/go-binlog\"\n\t\"github.com/pingcap/tipb/go-binlog\"\n\tbinlog \"github.com/pingcap/tipb/go-binlog\"\n\t\"github.com/pingcap/tipb/go-binlog\"\n\tbinlog \"github.com/pingcap/tipb/go-binlog\"\n\t\"github.com/pingcap/tipb/go-binlog\"\n\tbinlog \"github.com/pingcap/tipb/go-binlog\"\n\t\"github.com/pingcap/tipb/go-binlog\"\n\tbinlog \"github.com/pingcap/tipb/go-binlog\"\n\t\"github.com/pingcap/tipb/go-binlog\"\n\tbinlog \"github.com/pingcap/tipb/go-binlog\"\n\t\"github.com/pingcap/tipb/go-binlog\"\n\tbinlog \"github.com/pingcap/tipb/go-binlog\"\n\t\"github.com/pingcap/tipb/go-binlog\"\n\tbinlog \"github.com/pingcap/tipb/go-binlog\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/pingcap/tidb/commit/89dd7545797876e3810e9d903d24301f85bb58e7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": "\tlog.Info(\"the schema validator stops\")\n\tlog.Info(\"[domain-ddl] the schema validator stops\")\n\tlog.Info(\"the schema validator restarts\")\n\tlog.Info(\"[domain-ddl] the schema validator restarts\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/935b66f5c5bd81f03933b6bdaa8dfa306ed09b3b", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tlog.Infof(\"the schema validator stopped before updating\")\n\t\tlog.Infof(\"[domain-ddl] the schema validator stopped before updating\")\n\t\tlog.Infof(\"the schema validator stopped before checking\")\n\t\tlog.Infof(\"[domain-ddl] the schema validator stopped before checking\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/935b66f5c5bd81f03933b6bdaa8dfa306ed09b3b", "target_edit_idx": 9, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\t\tbest: \"IndexJoin{TableReader(Table(t))->TableReader(Table(t))}(t1.a,t2.a)->Sort->Projection\",\n\t\t\tbest: \"IndexJoin{IndexReader(Index(t.c_d_e)[[,+inf]])->TableReader(Table(t))}(t1.a,t2.a)->Projection\",\n\t\t\tbest: \"IndexJoin{TableReader(Table(t))->TableReader(Table(t))}(t1.a,t2.a)->Sort->Projection\",\n\t\t\tbest: \"IndexJoin{TableReader(Table(t))->IndexReader(Index(t.c_d_e)[[,+inf]])}(t2.a,t1.a)->Projection\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/pingcap/tidb/commit/253add22990ba1f9a09f80c4813b5a44b29f662e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\taggFunc := aggregation.NewAggFunction(funcName, []expression.Expression{rexpr}, false)\n\tagg := LogicalAggregation{\n\t\tAggFuncs: []aggregation.Aggregation{aggFunc},\n\t}.init(er.ctx)\n\tagg.SetChildren(np)\n\taggCol0 := &expression.Column{\n\tfuncMaxOrMin := aggregation.NewAggFunction(funcName, []expression.Expression{rexpr}, false)\n\n\t// Create a column and append it to the schema of that aggregation.\n\tcolMaxOrMin := &expression.Column{\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pingcap/tidb/commit/fc80a91ddfda3c79239bcb3efc294135e505010b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tRetType: aggFunc.GetType(),\n\t\tRetType: funcMaxOrMin.GetType(),\n\taggFunc := aggregation.NewAggFunction(funcName, []expression.Expression{rexpr}, false)\n\tagg := LogicalAggregation{\n\t\tAggFuncs: []aggregation.Aggregation{aggFunc},\n\t}.init(er.ctx)\n\tagg.SetChildren(np)\n\taggCol0 := &expression.Column{\n\tfuncMaxOrMin := aggregation.NewAggFunction(funcName, []expression.Expression{rexpr}, false)\n\n\t// Create a column and append it to the schema of that aggregation.\n\tcolMaxOrMin := &expression.Column{\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/fc80a91ddfda3c79239bcb3efc294135e505010b", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\tschema := expression.NewSchema(aggCol0)\n\tschema := expression.NewSchema(colMaxOrMin)\n\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/fc80a91ddfda3c79239bcb3efc294135e505010b", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tcond := expression.NewFunctionInternal(er.ctx, cmpFunc, types.NewFieldType(mysql.TypeTiny), lexpr, aggCol0.Clone())\n\tagg.AggFuncs = []aggregation.Aggregation{funcMaxOrMin}\n\n\tcond := expression.NewFunctionInternal(er.ctx, cmpFunc, types.NewFieldType(mysql.TypeTiny), lexpr, colMaxOrMin.Clone())\n\tschema := expression.NewSchema(aggCol0)\n\tschema := expression.NewSchema(colMaxOrMin)\n\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/fc80a91ddfda3c79239bcb3efc294135e505010b", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\tagg.schema.Append(aggColSum)\n\tagg.AggFuncs = append(agg.AggFuncs, funcSum)\n\tagg.schema.Append(colSum)\n\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pingcap/tidb/commit/fc80a91ddfda3c79239bcb3efc294135e505010b", "target_edit_idx": 7, "propagatable_edit_idx": [ 11, 13 ] }, { "input": "\t\taggColCountNull := &expression.Column{\n\t\tfuncCount := aggregation.NewAggFunction(ast.AggFuncCount, []expression.Expression{funcIsNull.Clone()}, false)\n\t\tcolCount := &expression.Column{\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/fc80a91ddfda3c79239bcb3efc294135e505010b", "target_edit_idx": 8, "propagatable_edit_idx": [ 10, 12 ] }, { "input": "\t\tagg.schema.Append(aggColCountNull)\n\t\tagg.AggFuncs = append(agg.AggFuncs, funcCount)\n\t\tagg.schema.Append(colCount)\n\t\taggColCountNull := &expression.Column{\n\t\tfuncCount := aggregation.NewAggFunction(ast.AggFuncCount, []expression.Expression{funcIsNull.Clone()}, false)\n\t\tcolCount := &expression.Column{\n\t\tcheckEmpty := expression.NewFunctionInternal(er.ctx, ast.EQ, types.NewFieldType(mysql.TypeTiny), aggColCountNull.Clone(), expression.Zero)\n\t\tcheckEmpty := expression.NewFunctionInternal(er.ctx, ast.EQ, types.NewFieldType(mysql.TypeTiny), colCount.Clone(), expression.Zero)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/fc80a91ddfda3c79239bcb3efc294135e505010b", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 12 ] }, { "input": "\t\thasNotNull := expression.NewFunctionInternal(er.ctx, ast.EQ, types.NewFieldType(mysql.TypeTiny), aggColSum.Clone(), expression.Zero)\n\t\thasNotNull := expression.NewFunctionInternal(er.ctx, ast.EQ, types.NewFieldType(mysql.TypeTiny), colSum.Clone(), expression.Zero)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/fc80a91ddfda3c79239bcb3efc294135e505010b", "target_edit_idx": 11, "propagatable_edit_idx": [ 13, 7 ] }, { "input": "\t\tcheckEmpty := expression.NewFunctionInternal(er.ctx, ast.EQ, types.NewFieldType(mysql.TypeTiny), aggColCountNull.Clone(), expression.Zero)\n\t\tcheckEmpty := expression.NewFunctionInternal(er.ctx, ast.EQ, types.NewFieldType(mysql.TypeTiny), colCount.Clone(), expression.Zero)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/fc80a91ddfda3c79239bcb3efc294135e505010b", "target_edit_idx": 12, "propagatable_edit_idx": [ 8, 10 ] }, { "input": "\t\thasNull := expression.NewFunctionInternal(er.ctx, ast.NE, types.NewFieldType(mysql.TypeTiny), aggColSum.Clone(), expression.Zero)\n\t\thasNull := expression.NewFunctionInternal(er.ctx, ast.NE, types.NewFieldType(mysql.TypeTiny), colSum.Clone(), expression.Zero)\n\t\thasNotNull := expression.NewFunctionInternal(er.ctx, ast.EQ, types.NewFieldType(mysql.TypeTiny), aggColSum.Clone(), expression.Zero)\n\t\thasNotNull := expression.NewFunctionInternal(er.ctx, ast.EQ, types.NewFieldType(mysql.TypeTiny), colSum.Clone(), expression.Zero)\n\tagg.schema.Append(aggColSum)\n\tagg.AggFuncs = append(agg.AggFuncs, funcSum)\n\tagg.schema.Append(colSum)\n\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/fc80a91ddfda3c79239bcb3efc294135e505010b", "target_edit_idx": 13, "propagatable_edit_idx": [ 11, 7 ] }, { "input": "\tbatchSize int\n\texhausted bool // exhausted means whether all data has been extracted.\n\tmaxBatchSize int\n\tcurBatchSize int\n\texhausted bool // exhausted means whether all data has been extracted.\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/pingcap/tidb/commit/f3cc26e2a15cb0238e543098350b6093899c403d", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tfor i := 0; i < e.batchSize; i++ {\n\t\tfor i := 0; i < e.curBatchSize; i++ {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/f3cc26e2a15cb0238e543098350b6093899c403d", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": "\ttk.MustQuery(\"select /*+ TIDB_INLJ(t, t1) */ * from t join t1 on t.a=t1.a\").Check(testkit.Rows(\"1 1 1 2\", \"1 1 1 3\", \"3 3 3 4\"))\n\ttk.MustQuery(\"select /*+ TIDB_INLJ(t1) */ * from t1 join t on t.a=t1.a and t.a < t1.b\").Check(testkit.Rows(\"1 2 1 1\", \"1 3 1 1\", \"3 4 3 3\"))\n\ttk.MustQuery(\"select /*+ TIDB_INLJ(t, t1) */ * from t join t1 on t.a=t1.a\").Check(testkit.Rows(\"1 1 1 2\", \"1 1 1 3\", \"1 1 1 4\", \"3 3 3 4\"))\n\ttk.MustQuery(\"select /*+ TIDB_INLJ(t1) */ * from t1 join t on t.a=t1.a and t.a < t1.b\").Check(testkit.Rows(\"1 2 1 1\", \"1 3 1 1\", \"1 4 1 1\", \"3 4 3 3\"))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.019801980198019802, "commit_url": "https://github.com/pingcap/tidb/commit/bedd8790a9e1eb3b86ebe8038bb1594ca5b3a1ff", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\ttk.MustQuery(\"select /*+ TIDB_INLJ(t, t1) */ * from t right outer join t1 on t.a=t1.a\").Check(testkit.Rows(\"1 1 1 2\", \"1 1 1 3\", \"3 3 3 4\", \" 4 5\"))\n\ttk.MustQuery(\"select /*+ TIDB_INLJ(t, t1) */ avg(t.b) from t right outer join t1 on t.a=t1.a\").Check(testkit.Rows(\"1.6667\"))\n\ttk.MustQuery(\"select /*+ TIDB_INLJ(t, t1) */ * from t right outer join t1 on t.a=t1.a\").Check(testkit.Rows(\"1 1 1 2\", \"1 1 1 3\", \"1 1 1 4\", \"3 3 3 4\", \" 4 5\"))\n\ttk.MustQuery(\"select /*+ TIDB_INLJ(t, t1) */ avg(t.b) from t right outer join t1 on t.a=t1.a\").Check(testkit.Rows(\"1.5000\"))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.019801980198019802, "commit_url": "https://github.com/pingcap/tidb/commit/bedd8790a9e1eb3b86ebe8038bb1594ca5b3a1ff", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\t_, err := s.Execute(\"ALTER TABLE mysql.user ADD COLUMN `Super_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N' AFTER `Show_db_priv`\")\n\tif terror.ErrorEqual(err, infoschema.ErrColumnExists) {\n\t\treturn\n\t}\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdoReentrantDDL(s, \"ALTER TABLE mysql.user ADD COLUMN `Super_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N' AFTER `Show_db_priv`\", infoschema.ErrColumnExists)\n\t_, err := s.Execute(\"ALTER TABLE mysql.user ADD COLUMN `Process_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N' AFTER `Drop_priv`\")\n\tif terror.ErrorEqual(err, infoschema.ErrColumnExists) {\n\t\treturn\n\t}\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdoReentrantDDL(s, \"ALTER TABLE mysql.user ADD COLUMN `Process_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N' AFTER `Drop_priv`\", infoschema.ErrColumnExists)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/0dfc245aad494afc9a400cd661e2ad3b6bdad8b9", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\tif _, ok := p.children[1].(*DataSource); !ok {\n\tswitch x := p.children[1].(type) {\n\tcase *DataSource:\n\tcase *Selection:\n\t\tif _, ok := x.children[0].(*DataSource); !ok {\n\t\t\treturn nil, nil\n\t\t}\n\tdefault:\n\tif _, ok := p.children[0].(*DataSource); !ok {\n\tswitch x := p.children[0].(type) {\n\tcase *DataSource:\n\tcase *Selection:\n\t\tif _, ok := x.children[0].(*DataSource); !ok {\n\t\t\treturn nil, nil\n\t\t}\n\tdefault:\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pingcap/tidb/commit/a671b3c5e5c36dbb0b697b6d722e541d0ca51130", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "\tif selection.controllerStatus == notController {\n\tif selection == nil {\n\tif selection.controllerStatus == notController {\n\tif selection == nil {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/a671b3c5e5c36dbb0b697b6d722e541d0ca51130", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\tif _, ok := p.children[1].(*DataSource); ok && (p.preferINLJ&preferLeftAsOuter) > 0 {\n\t\t\tif (p.preferINLJ & preferLeftAsOuter) > 0 {\n\t\t\tif _, ok := p.children[0].(*DataSource); ok && (p.preferINLJ&preferRightAsOuter) > 0 {\n\t\t\tif (p.preferINLJ & preferRightAsOuter) > 0 {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/a671b3c5e5c36dbb0b697b6d722e541d0ca51130", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": "\tCollationUTF8 = \"utf8_general_ci\"\n\tCollationUTF8 = \"utf8_bin\"\n\tCollationUTF8MB4 = \"utf8mb4_general_ci\"\n\tCollationUTF8MB4 = \"utf8mb4_bin\"\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/d215257ea9b682c6522498fd4e0a3e9ac6a54970", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\tc.Assert(hookErr, IsNil)\n\tc.Assert(checkOK, IsTrue)\n\thErr := hookErr\n\tok := checkOK\n\tc.Assert(hookErr, IsNil)\n\tc.Assert(checkOK, IsTrue)\n\thErr = hookErr\n\tok = checkOK\n\tc.Assert(hookErr, IsNil)\n\tc.Assert(checkOK, IsTrue)\n\thErr := hookErr\n\tok := checkOK\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/f386df10203f32bba54b01d0412260e1cc240e10", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "\tcountPrimayKey := 0\n\tcountPrimaryKey := 0\n\t\tcountPrimayKey += isPrimary(colDef.Options)\n\t\tif countPrimayKey > 1 {\n\t\t\tv.err = errors.Errorf(\"Multiple primary key defined\")\n\t\tcountPrimaryKey += isPrimary(colDef.Options)\n\t\tif countPrimaryKey > 1 {\n\t\t\tv.err = infoschema.ErrMultiplePriKey\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/b09f97d1f4dee3e89e49a14c3ab0a0b490a866b7", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tcountPrimayKey += isPrimary(colDef.Options)\n\t\tif countPrimayKey > 1 {\n\t\t\tv.err = errors.Errorf(\"Multiple primary key defined\")\n\t\tcountPrimaryKey += isPrimary(colDef.Options)\n\t\tif countPrimaryKey > 1 {\n\t\t\tv.err = infoschema.ErrMultiplePriKey\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pingcap/tidb/commit/b09f97d1f4dee3e89e49a14c3ab0a0b490a866b7", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\td.prepareBgJob(job)\n\terr := kv.RunInNewTxn(store, false, func(txn kv.Transaction) error {\n\t\tt := meta.NewMeta(txn)\n\t\treturn d.prepareBgJob(t, job)\n\t})\n\tc.Check(err, IsNil)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/618a00218d20750b4ea4b3a3621b76df6a89e145", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "\td.prepareBgJob(job)\n\terr := kv.RunInNewTxn(store, false, func(txn kv.Transaction) error {\n\t\tt := meta.NewMeta(txn)\n\t\treturn d.prepareBgJob(t, job)\n\t})\n\tc.Check(err, IsNil)\n\td.prepareBgJob(job)\n\terr := kv.RunInNewTxn(store, false, func(txn kv.Transaction) error {\n\t\tt := meta.NewMeta(txn)\n\t\treturn d.prepareBgJob(t, job)\n\t})\n\tc.Check(err, IsNil)\n\td.prepareBgJob(job)\n\terr := kv.RunInNewTxn(store, false, func(txn kv.Transaction) error {\n\t\tt := meta.NewMeta(txn)\n\t\treturn d.prepareBgJob(t, job)\n\t})\n\tc.Check(err, IsNil)\n\t\tif err = d.prepareBgJob(job); err != nil {\n\t\tif err = d.prepareBgJob(t, job); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/618a00218d20750b4ea4b3a3621b76df6a89e145", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": "\t\tif err = d.prepareBgJob(job); err != nil {\n\t\tif err = d.prepareBgJob(t, job); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/pingcap/tidb/commit/618a00218d20750b4ea4b3a3621b76df6a89e145", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "\tif ctx.Value(&sqlexec.RestrictedSQLExecutorKeyType{}) != nil {\n\t\treturn false\n\t}\n\tif ctx.Value(&sqlexec.RestrictedSQLExecutorKeyType{}) != nil {\n\t\treturn false\n\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/15356cdd88e3ecf9947dbcb0bd379ec8d3a23706", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tProviderMu sync.RWMutex\n\tproviderMu sync.RWMutex\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/226615adc8131fe3eeca71c43d7358d94802d39a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": "\tProviderMu.RLock()\n\tproviderMu.RLock()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/226615adc8131fe3eeca71c43d7358d94802d39a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": "\tProviderMu.RUnlock()\n\tproviderMu.RUnlock()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/226615adc8131fe3eeca71c43d7358d94802d39a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": "\tProviderMu.Lock()\n\tdefer ProviderMu.Unlock()\n\tproviderMu.Lock()\n\tdefer providerMu.Unlock()\n\tProviderMu sync.RWMutex\n\tproviderMu sync.RWMutex\n\tProviderMu.RLock()\n\tproviderMu.RLock()\n\tProviderMu.RUnlock()\n\tproviderMu.RUnlock()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/pingcap/tidb/commit/226615adc8131fe3eeca71c43d7358d94802d39a", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "\tstatusVars := variable.StatusVars\n\tv, ok := statusVars[strings.ToLower(name)]\n\tif !ok {\n\tv := variable.GetStatusVar(name)\n\tif v == nil {\n\tstatusVars := variable.StatusVars\n\tv, ok := statusVars[strings.ToLower(name)]\n\tif !ok {\n\tv := variable.GetStatusVar(name)\n\tif v == nil {\n\tstatusVars := variable.StatusVars\n\tv, ok := statusVars[strings.ToLower(name)]\n\tif !ok {\n\tv := variable.GetStatusVar(name)\n\tif v == nil {\n\tstatusVars := variable.StatusVars\n\tv, ok := statusVars[strings.ToLower(name)]\n\tif !ok {\n\tv := variable.GetStatusVar(name)\n\tif v == nil {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/f35ec29b6c1560e1ddce2fafa342e0955221250c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 6, 7 ] }, { "input": "\tsysvars := variable.SysVars\n\tv, ok := sysvars[strings.ToLower(name)]\n\tif !ok {\n\tv := variable.GetSysVar(name)\n\tif v == nil {\n\tsysvars := variable.SysVars\n\tv, ok := sysvars[strings.ToLower(name)]\n\tif !ok {\n\tv := variable.GetSysVar(name)\n\tif v == nil {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/f35ec29b6c1560e1ddce2fafa342e0955221250c", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "\tkeyBuf, err := c.genIndexKey(indexedValues, h)\n\tkey, err := c.genIndexKey(indexedValues, h)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/b39592c02e8e87337a10ffc66051f17dc8d8b4ff", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": "\t\terr = txn.Set(keyBuf, []byte(\"timestamp?\"))\n\t\terr = txn.Set(key, []byte(\"timestamp?\"))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/b39592c02e8e87337a10ffc66051f17dc8d8b4ff", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": "\t_, err = txn.Get(keyBuf)\n\terr = txn.LockKeys(key)\n\tif err != nil {\n\t\treturn errors.Trace(err)\n\t}\n\t_, err = txn.Get(key)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/b39592c02e8e87337a10ffc66051f17dc8d8b4ff", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8 ] }, { "input": "\t\terr = txn.Set(keyBuf, encodeHandle(h))\n\t\terr = txn.Set(key, encodeHandle(h))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/b39592c02e8e87337a10ffc66051f17dc8d8b4ff", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8 ] }, { "input": "\terr = txn.Delete(keyBuf)\n\terr = txn.Delete(key)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/b39592c02e8e87337a10ffc66051f17dc8d8b4ff", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8 ] }, { "input": "\tkeyBuf, err := c.genIndexKey(indexedValues, 0)\n\tkey, err := c.genIndexKey(indexedValues, 0)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/b39592c02e8e87337a10ffc66051f17dc8d8b4ff", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8 ] }, { "input": "\tit, err := txn.Seek(keyBuf)\n\tit, err := txn.Seek(key)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/b39592c02e8e87337a10ffc66051f17dc8d8b4ff", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8 ] }, { "input": "\tif it.Valid() && it.Key() == string(keyBuf) {\n\tif it.Valid() && it.Key() == string(key) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pingcap/tidb/commit/b39592c02e8e87337a10ffc66051f17dc8d8b4ff", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7 ] }, { "input": "\tcmd.Flags().StringSliceVar(&opts.Editable.Projects.Add, \"add-project\", nil, \"Add the issue to projects by `name`\")\n\tcmd.Flags().StringSliceVar(&opts.Editable.Projects.Remove, \"remove-project\", nil, \"Remove the issue from projects by `name`\")\n\tcmd.Flags().StringSliceVar(&opts.Editable.Projects.Add, \"add-project\", nil, \"Add the issue to projects by `title`\")\n\tcmd.Flags().StringSliceVar(&opts.Editable.Projects.Remove, \"remove-project\", nil, \"Remove the issue from projects by `title`\")\n\tcmd.Flags().StringSliceVar(&opts.Editable.Projects.Add, \"add-project\", nil, \"Add the pull request to projects by `name`\")\n\tcmd.Flags().StringSliceVar(&opts.Editable.Projects.Remove, \"remove-project\", nil, \"Remove the pull request from projects by `name`\")\n\tcmd.Flags().StringSliceVar(&opts.Editable.Projects.Add, \"add-project\", nil, \"Add the pull request to projects by `title`\")\n\tcmd.Flags().StringSliceVar(&opts.Editable.Projects.Remove, \"remove-project\", nil, \"Remove the pull request from projects by `title`\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cli/cli/commit/18d58b8d84bf1998dd3a0c6a292690069cf9d6b8", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\t\t\t\tAdd: []string{\"Cleanup\", \"RoadmapV2\"},\n\t\t\t\t\t\t\tRemove: []string{\"CleanupV2\", \"Roadmap\"},\n\t\t\t\t\t\t\tAdd: []string{\"Cleanup\", \"CleanupV2\"},\n\t\t\t\t\t\t\tRemove: []string{\"Roadmap\", \"RoadmapV2\"},\n\t\t\t\t\t\t\tAdd: []string{\"Cleanup\", \"RoadmapV2\"},\n\t\t\t\t\t\t\tRemove: []string{\"CleanupV2\", \"Roadmap\"},\n\t\t\t\t\t\t\tAdd: []string{\"Cleanup\", \"CleanupV2\"},\n\t\t\t\t\t\t\tRemove: []string{\"Roadmap\", \"RoadmapV2\"},\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/cli/cli/commit/138da0f969bbf73df48e52b37f8cfacad5feb4a9", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\t\tRef: \"trunk\",\n\t\t\t\t\t\tHasUncommitedChanges: true,\n\t\t\t\t\t\tRef: \"trunk\",\n\t\t\t\t\t\tHasUncommittedChanges: true,\n\t\t\t\t\t\tRef: \"trunk\",\n\t\t\t\t\t\tHasUncommitedChanges: true,\n\t\t\t\t\t\tRef: \"trunk\",\n\t\t\t\t\t\tHasUncommittedChanges: true,\n\t\t\t\t\t\tRef: \"trunk\",\n\t\t\t\t\t\tHasUncommitedChanges: false,\n\t\t\t\t\t\tRef: \"trunk\",\n\t\t\t\t\t\tHasUncommittedChanges: false,\n\t\t\t\t\t\tRef: \"trunk\",\n\t\t\t\t\t\tHasUncommitedChanges: false,\n\t\t\t\t\t\tRef: \"trunk\",\n\t\t\t\t\t\tHasUncommittedChanges: false,\n\t\t\t\t\t\t\tRef: \"trunk\",\n\t\t\t\t\t\t\tHasUncommitedChanges: true,\n\t\t\t\t\t\t\tRef: \"trunk\",\n\t\t\t\t\t\t\tHasUncommittedChanges: true,\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/cli/cli/commit/791c7db632fc49e6b98f6b6c1df3d2b4d1a33675", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": "\t\t\t\t\t\tHasUncommitedChanges: true,\n\t\t\t\t\t\tHasUncommittedChanges: true,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/cli/cli/commit/791c7db632fc49e6b98f6b6c1df3d2b4d1a33675", "target_edit_idx": 8, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\tLimitResults: 30,\n\t\t\t\tExcludeDrafts: false,\n\t\t\t\tLimitResults: 30,\n\t\t\t\tExcludeDrafts: false,\n\t\t\t\tExcludePreReleases: false,\n\t\t\t\tLimitResults: 30,\n\t\t\t\tExcludeDrafts: true,\n\t\t\t\tLimitResults: 30,\n\t\t\t\tExcludeDrafts: true,\n\t\t\t\tExcludePreReleases: false,\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tname: \"exclude pre-releases\",\n\t\t\targs: \"--exclude-pre-releases\",\n\t\t\twant: ListOptions{\n\t\t\t\tLimitResults: 30,\n\t\t\t\tExcludeDrafts: false,\n\t\t\t\tExcludePreReleases: true,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cli/cli/commit/57f5bd8cdd5cc9e9861dab13a114736a4d86227e", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\treturn fmt.Errorf(\"connect to Live Share: %w\", err)\n\t\treturn fmt.Errorf(\"connect to codespace: %w\", err)\n\t\treturn fmt.Errorf(\"connecting to Live Share: %w\", err)\n\t\treturn fmt.Errorf(\"connecting to codespace: %w\", err)\n\t\treturn fmt.Errorf(\"error connecting to Live Share: %w\", err)\n\t\treturn fmt.Errorf(\"error connecting to codespace: %w\", err)\n\t\treturn fmt.Errorf(\"error connecting to Live Share: %w\", err)\n\t\treturn fmt.Errorf(\"error connecting to codespace: %w\", err)\n\t\treturn fmt.Errorf(\"error connecting to Live Share: %w\", err)\n\t\treturn fmt.Errorf(\"error connecting to codespace: %w\", err)\n\t\treturn fmt.Errorf(\"error connecting to Live Share: %w\", err)\n\t\treturn fmt.Errorf(\"error connecting to codespace: %w\", err)\n", "class": "clone", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/cli/cli/commit/8296904c26f3baaf60b6829ef529c8292a83087a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": "\tCreateCodespace(ctx context.Context, logger api.Logger, params *api.CreateCodespaceParams) (*api.Codespace, error)\n\tCreateCodespace(ctx context.Context, params *api.CreateCodespaceParams) (*api.Codespace, error)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cli/cli/commit/dc8f6ef183f6c4d7a0f4135376d54724302abb01", "target_edit_idx": 0, "propagatable_edit_idx": [ 12, 5 ] }, { "input": "// \t\t\tCreateCodespaceFunc: func(ctx context.Context, logger api.Logger, params *api.CreateCodespaceParams) (*api.Codespace, error) {\n// \t\t\tCreateCodespaceFunc: func(ctx context.Context, params *api.CreateCodespaceParams) (*api.Codespace, error) {\n\tCreateCodespaceFunc func(ctx context.Context, logger api.Logger, params *api.CreateCodespaceParams) (*api.Codespace, error)\n\tCreateCodespaceFunc func(ctx context.Context, params *api.CreateCodespaceParams) (*api.Codespace, error)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cli/cli/commit/dc8f6ef183f6c4d7a0f4135376d54724302abb01", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "func (mock *apiClientMock) CreateCodespace(ctx context.Context, logger api.Logger, params *api.CreateCodespaceParams) (*api.Codespace, error) {\nfunc (mock *apiClientMock) CreateCodespace(ctx context.Context, params *api.CreateCodespaceParams) (*api.Codespace, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cli/cli/commit/dc8f6ef183f6c4d7a0f4135376d54724302abb01", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 12 ] }, { "input": "\t\tLogger api.Logger\n\tLogger api.Logger\n\t\tLogger api.Logger\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cli/cli/commit/dc8f6ef183f6c4d7a0f4135376d54724302abb01", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 10 ] }, { "input": "\t\tFields: []string{\"number\", \"headRefName\", \"headRepository\", \"headRepositoryOwner\", \"isCrossRepository\"},\n\t\tFields: []string{\"number\", \"headRefName\", \"headRepository\", \"headRepositoryOwner\", \"isCrossRepository\", \"maintainerCanModify\"},\n\tfinder.ExpectFields([]string{\"number\", \"headRefName\", \"headRepository\", \"headRepositoryOwner\", \"isCrossRepository\"})\n\tfinder.ExpectFields([]string{\"number\", \"headRefName\", \"headRepository\", \"headRepositoryOwner\", \"isCrossRepository\", \"maintainerCanModify\"})\n\tfinder.ExpectFields([]string{\"number\", \"headRefName\", \"headRepository\", \"headRepositoryOwner\", \"isCrossRepository\"})\n\tfinder.ExpectFields([]string{\"number\", \"headRefName\", \"headRepository\", \"headRepositoryOwner\", \"isCrossRepository\", \"maintainerCanModify\"})\n\tfinder.ExpectFields([]string{\"number\", \"headRefName\", \"headRepository\", \"headRepositoryOwner\", \"isCrossRepository\"})\n\tfinder.ExpectFields([]string{\"number\", \"headRefName\", \"headRepository\", \"headRepositoryOwner\", \"isCrossRepository\", \"maintainerCanModify\"})\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/cli/cli/commit/053d43f7053e30cc0f21773a2c8ca9b065dc20b1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\treturn fmt.Sprintf(\"gh version %s\\n%s\\n\", version, changelogURL(version))\n\treturn fmt.Sprintf(\"gh version %s%s\\n%s\\n\", version, dateStr, changelogURL(version))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cli/cli/commit/18b19e074da2c2f04af78c59c75d0a168662aed1", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\t\tCurrentBranch: func() (string, error) {\n\t\t\t\t\tBranch: func() (string, error) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cli/cli/commit/b83342856bf246fab67d0acbdb30461f1f340d5d", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": "\teq(t, err.Error(), \"could not compute title or body defaults: could not find any commits between master and feature\")\n\teq(t, err.Error(), \"could not compute title or body defaults: could not find any commits between origin/master and feature\")\n\teq(t, err.Error(), \"could not compute title or body defaults: could not find any commits between master and feature\")\n\teq(t, err.Error(), \"could not compute title or body defaults: could not find any commits between origin/master and feature\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cli/cli/commit/24a332bb1b73a2660963d4d8d7f228b378207a20", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "func onConflictOption(stmt *gorm.Statement, s *schema.Schema, selectColumns map[string]bool, restricted bool, defaultUpdatingColumns []string) (onConflict clause.OnConflict) {\nfunc onConflictOption(stmt *gorm.Statement, s *schema.Schema, defaultUpdatingColumns []string) (onConflict clause.OnConflict) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/go-gorm/gorm/commit/2d5cb997ed4d0e8f53fa1662111ad2cb053caf9c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tonConflict = onConflictOption(db.Statement, rel.FieldSchema, selectColumns, restricted, defaultUpdatingColumns)\n\t\tonConflict = onConflictOption(db.Statement, rel.FieldSchema, defaultUpdatingColumns)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/go-gorm/gorm/commit/2d5cb997ed4d0e8f53fa1662111ad2cb053caf9c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t\t\t\t\t\t\t\tconds = append(conds, clause.Eq{Column: clause.Column{Table: s.Table, Name: field.DBName}, Value: v})\n\t\t\t\t\t\t\t\t\tconds = append(conds, clause.Eq{Column: clause.Column{Table: clause.CurrentTable, Name: field.DBName}, Value: v})\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.058823529411764705, "commit_url": "https://github.com/go-gorm/gorm/commit/3cd81ff646090931556cf5590c41ac5d5746357c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\t\t\t\t\t\t\t\t\tconds = append(conds, clause.Eq{Column: clause.Column{Table: s.Table, Name: field.Name}, Value: v})\n\t\t\t\t\t\t\t\t\tconds = append(conds, clause.Eq{Column: clause.Column{Table: clause.CurrentTable, Name: field.Name}, Value: v})\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.058823529411764705, "commit_url": "https://github.com/go-gorm/gorm/commit/3cd81ff646090931556cf5590c41ac5d5746357c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": "\t\t\t\t\t\t\t\t\t\tconds = append(conds, clause.Eq{Column: clause.Column{Table: s.Table, Name: field.DBName}, Value: v})\n\t\t\t\t\t\t\t\t\t\tconds = append(conds, clause.Eq{Column: clause.Column{Table: clause.CurrentTable, Name: field.DBName}, Value: v})\n\t\t\t\t\t\t\t\t\tconds = append(conds, clause.Eq{Column: clause.Column{Table: s.Table, Name: field.DBName}, Value: v})\n\t\t\t\t\t\t\t\t\tconds = append(conds, clause.Eq{Column: clause.Column{Table: clause.CurrentTable, Name: field.DBName}, Value: v})\n\t\t\t\t\t\t\t\t\tconds = append(conds, clause.Eq{Column: clause.Column{Table: s.Table, Name: field.Name}, Value: v})\n\t\t\t\t\t\t\t\t\tconds = append(conds, clause.Eq{Column: clause.Column{Table: clause.CurrentTable, Name: field.Name}, Value: v})\n\t\t\t\t\t\t\t\t\t\tconds = append(conds, clause.Eq{Column: clause.Column{Table: s.Table, Name: field.Name}, Value: v})\n\t\t\t\t\t\t\t\t\t\tconds = append(conds, clause.Eq{Column: clause.Column{Table: clause.CurrentTable, Name: field.Name}, Value: v})\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.058823529411764705, "commit_url": "https://github.com/go-gorm/gorm/commit/3cd81ff646090931556cf5590c41ac5d5746357c", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\t\t\tTag: removeSettingFromTag(ownField.StructField.Tag, \"column\"),\n\t\t\tTag: removeSettingFromTag(removeSettingFromTag(ownField.StructField.Tag, \"column\"), \"autoincrement\"),\n\t\t\tTag: removeSettingFromTag(relField.StructField.Tag, \"column\"),\n\t\t\tTag: removeSettingFromTag(removeSettingFromTag(relField.StructField.Tag, \"column\"), \"autoincrement\"),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/go-gorm/gorm/commit/2676fa4fb8e3c2b11c6bc72c1fb639c1586f6f3b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tID uuid.UUID `gorm:\"primary_key;type:uuid;default:uuid_generate_v4()\"`\n\tID uuid.UUID `gorm:\"primary_key;type:uuid;default:uuid_generate_v4();autoincrement\"`\n\tID uuid.UUID `gorm:\"primary_key;type:uuid;default:uuid_generate_v4()\"`\n\tID uuid.UUID `gorm:\"primary_key;type:uuid;default:uuid_generate_v4();autoincrement\"`\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/go-gorm/gorm/commit/2676fa4fb8e3c2b11c6bc72c1fb639c1586f6f3b", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\t\tquery := toScope.db\n\t\t\t\t\tquery := toScope.db\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/go-gorm/gorm/commit/0f2ceb5a775714a46bc344976324e3e439f8cdcc", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\t\t\t\t\tquery = query.Where(fmt.Sprintf(\"%v = ?\", scope.Quote(relationship.AssociationForeignDBNames[idx])), field.Field.Interface())\n\t\t\t\t\t\t\ttx = tx.Where(fmt.Sprintf(\"%v = ?\", scope.Quote(relationship.AssociationForeignDBNames[idx])), field.Field.Interface())\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/go-gorm/gorm/commit/0f2ceb5a775714a46bc344976324e3e439f8cdcc", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 9, 5, 7 ] }, { "input": "\t\t\t\t\tscope.Err(query.Find(value).Error)\n\t\t\t\t\tscope.Err(tx.Find(value).Error)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/go-gorm/gorm/commit/0f2ceb5a775714a46bc344976324e3e439f8cdcc", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 9, 4, 7 ] }, { "input": "\t\t\t\t\t\t\tquery = query.Where(fmt.Sprintf(\"%v = ?\", scope.Quote(foreignKey)), field.Field.Interface())\n\t\t\t\t\t\t\ttx = tx.Where(fmt.Sprintf(\"%v = ?\", scope.Quote(foreignKey)), field.Field.Interface())\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/go-gorm/gorm/commit/0f2ceb5a775714a46bc344976324e3e439f8cdcc", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 4, 5 ] }, { "input": "\t\t\t\t\t\tquery = query.Where(fmt.Sprintf(\"%v = ?\", scope.Quote(relationship.PolymorphicDBName)), relationship.PolymorphicValue)\n\t\t\t\t\t\ttx = tx.Where(fmt.Sprintf(\"%v = ?\", scope.Quote(relationship.PolymorphicDBName)), relationship.PolymorphicValue)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/go-gorm/gorm/commit/0f2ceb5a775714a46bc344976324e3e439f8cdcc", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 4, 5, 7 ] }, { "input": "\t\t\t\t\tscope.Err(query.Find(value).Error)\n\t\t\t\t\tscope.Err(tx.Find(value).Error)\n\t\t\t\t\t\tquery = query.Where(fmt.Sprintf(\"%v = ?\", scope.Quote(relationship.PolymorphicDBName)), relationship.PolymorphicValue)\n\t\t\t\t\t\ttx = tx.Where(fmt.Sprintf(\"%v = ?\", scope.Quote(relationship.PolymorphicDBName)), relationship.PolymorphicValue)\n\t\t\t\t\t\t\tquery = query.Where(fmt.Sprintf(\"%v = ?\", scope.Quote(relationship.AssociationForeignDBNames[idx])), field.Field.Interface())\n\t\t\t\t\t\t\ttx = tx.Where(fmt.Sprintf(\"%v = ?\", scope.Quote(relationship.AssociationForeignDBNames[idx])), field.Field.Interface())\n\t\t\t\t\tscope.Err(query.Find(value).Error)\n\t\t\t\t\tscope.Err(tx.Find(value).Error)\n\t\t\t\t\t\t\tquery = query.Where(fmt.Sprintf(\"%v = ?\", scope.Quote(foreignKey)), field.Field.Interface())\n\t\t\t\t\t\t\ttx = tx.Where(fmt.Sprintf(\"%v = ?\", scope.Quote(foreignKey)), field.Field.Interface())\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/go-gorm/gorm/commit/0f2ceb5a775714a46bc344976324e3e439f8cdcc", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 4, 5, 7 ] }, { "input": "var defaultCallback = &Callback{}\nvar DefaultCallback = &Callback{}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9642857142857143, "commit_url": "https://github.com/go-gorm/gorm/commit/2522f03c1fffd3e60fbf742b589f4bfbaf6d5295", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 6 ] }, { "input": "\tdefaultCallback.Create().Register(\"gorm:begin_transaction\", beginTransactionCallback)\n\tdefaultCallback.Create().Register(\"gorm:before_create\", beforeCreateCallback)\n\tdefaultCallback.Create().Register(\"gorm:save_before_associations\", saveBeforeAssociationsCallback)\n\tdefaultCallback.Create().Register(\"gorm:update_time_stamp\", updateTimeStampForCreateCallback)\n\tdefaultCallback.Create().Register(\"gorm:create\", createCallback)\n\tdefaultCallback.Create().Register(\"gorm:force_reload_after_create\", forceReloadAfterCreateCallback)\n\tdefaultCallback.Create().Register(\"gorm:save_after_associations\", saveAfterAssociationsCallback)\n\tdefaultCallback.Create().Register(\"gorm:after_create\", afterCreateCallback)\n\tdefaultCallback.Create().Register(\"gorm:commit_or_rollback_transaction\", commitOrRollbackTransactionCallback)\n\tDefaultCallback.Create().Register(\"gorm:begin_transaction\", beginTransactionCallback)\n\tDefaultCallback.Create().Register(\"gorm:before_create\", beforeCreateCallback)\n\tDefaultCallback.Create().Register(\"gorm:save_before_associations\", saveBeforeAssociationsCallback)\n\tDefaultCallback.Create().Register(\"gorm:update_time_stamp\", updateTimeStampForCreateCallback)\n\tDefaultCallback.Create().Register(\"gorm:create\", createCallback)\n\tDefaultCallback.Create().Register(\"gorm:force_reload_after_create\", forceReloadAfterCreateCallback)\n\tDefaultCallback.Create().Register(\"gorm:save_after_associations\", saveAfterAssociationsCallback)\n\tDefaultCallback.Create().Register(\"gorm:after_create\", afterCreateCallback)\n\tDefaultCallback.Create().Register(\"gorm:commit_or_rollback_transaction\", commitOrRollbackTransactionCallback)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6785714285714286, "commit_url": "https://github.com/go-gorm/gorm/commit/2522f03c1fffd3e60fbf742b589f4bfbaf6d5295", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 6 ] }, { "input": "\tdefaultCallback.Delete().Register(\"gorm:begin_transaction\", beginTransactionCallback)\n\tdefaultCallback.Delete().Register(\"gorm:before_delete\", beforeDeleteCallback)\n\tdefaultCallback.Delete().Register(\"gorm:delete\", deleteCallback)\n\tdefaultCallback.Delete().Register(\"gorm:after_delete\", afterDeleteCallback)\n\tdefaultCallback.Delete().Register(\"gorm:commit_or_rollback_transaction\", commitOrRollbackTransactionCallback)\n\tDefaultCallback.Delete().Register(\"gorm:begin_transaction\", beginTransactionCallback)\n\tDefaultCallback.Delete().Register(\"gorm:before_delete\", beforeDeleteCallback)\n\tDefaultCallback.Delete().Register(\"gorm:delete\", deleteCallback)\n\tDefaultCallback.Delete().Register(\"gorm:after_delete\", afterDeleteCallback)\n\tDefaultCallback.Delete().Register(\"gorm:commit_or_rollback_transaction\", commitOrRollbackTransactionCallback)\nvar defaultCallback = &Callback{}\nvar DefaultCallback = &Callback{}\n\tdefaultCallback.Create().Register(\"gorm:begin_transaction\", beginTransactionCallback)\n\tdefaultCallback.Create().Register(\"gorm:before_create\", beforeCreateCallback)\n\tdefaultCallback.Create().Register(\"gorm:save_before_associations\", saveBeforeAssociationsCallback)\n\tdefaultCallback.Create().Register(\"gorm:update_time_stamp\", updateTimeStampForCreateCallback)\n\tdefaultCallback.Create().Register(\"gorm:create\", createCallback)\n\tdefaultCallback.Create().Register(\"gorm:force_reload_after_create\", forceReloadAfterCreateCallback)\n\tdefaultCallback.Create().Register(\"gorm:save_after_associations\", saveAfterAssociationsCallback)\n\tdefaultCallback.Create().Register(\"gorm:after_create\", afterCreateCallback)\n\tdefaultCallback.Create().Register(\"gorm:commit_or_rollback_transaction\", commitOrRollbackTransactionCallback)\n\tDefaultCallback.Create().Register(\"gorm:begin_transaction\", beginTransactionCallback)\n\tDefaultCallback.Create().Register(\"gorm:before_create\", beforeCreateCallback)\n\tDefaultCallback.Create().Register(\"gorm:save_before_associations\", saveBeforeAssociationsCallback)\n\tDefaultCallback.Create().Register(\"gorm:update_time_stamp\", updateTimeStampForCreateCallback)\n\tDefaultCallback.Create().Register(\"gorm:create\", createCallback)\n\tDefaultCallback.Create().Register(\"gorm:force_reload_after_create\", forceReloadAfterCreateCallback)\n\tDefaultCallback.Create().Register(\"gorm:save_after_associations\", saveAfterAssociationsCallback)\n\tDefaultCallback.Create().Register(\"gorm:after_create\", afterCreateCallback)\n\tDefaultCallback.Create().Register(\"gorm:commit_or_rollback_transaction\", commitOrRollbackTransactionCallback)\n\tdefaultCallback.Query().Register(\"gorm:query\", queryCallback)\n\tdefaultCallback.Query().Register(\"gorm:preload\", preloadCallback)\n\tdefaultCallback.Query().Register(\"gorm:after_query\", afterQueryCallback)\n\tDefaultCallback.Query().Register(\"gorm:query\", queryCallback)\n\tDefaultCallback.Query().Register(\"gorm:preload\", preloadCallback)\n\tDefaultCallback.Query().Register(\"gorm:after_query\", afterQueryCallback)\n\tdefaultCallback.Update().Register(\"gorm:assign_updating_attributes\", assignUpdatingAttributesCallback)\n\tdefaultCallback.Update().Register(\"gorm:begin_transaction\", beginTransactionCallback)\n\tdefaultCallback.Update().Register(\"gorm:before_update\", beforeUpdateCallback)\n\tdefaultCallback.Update().Register(\"gorm:save_before_associations\", saveBeforeAssociationsCallback)\n\tdefaultCallback.Update().Register(\"gorm:update_time_stamp\", updateTimeStampForUpdateCallback)\n\tdefaultCallback.Update().Register(\"gorm:update\", updateCallback)\n\tdefaultCallback.Update().Register(\"gorm:save_after_associations\", saveAfterAssociationsCallback)\n\tdefaultCallback.Update().Register(\"gorm:after_update\", afterUpdateCallback)\n\tdefaultCallback.Update().Register(\"gorm:commit_or_rollback_transaction\", commitOrRollbackTransactionCallback)\n\tDefaultCallback.Update().Register(\"gorm:assign_updating_attributes\", assignUpdatingAttributesCallback)\n\tDefaultCallback.Update().Register(\"gorm:begin_transaction\", beginTransactionCallback)\n\tDefaultCallback.Update().Register(\"gorm:before_update\", beforeUpdateCallback)\n\tDefaultCallback.Update().Register(\"gorm:save_before_associations\", saveBeforeAssociationsCallback)\n\tDefaultCallback.Update().Register(\"gorm:update_time_stamp\", updateTimeStampForUpdateCallback)\n\tDefaultCallback.Update().Register(\"gorm:update\", updateCallback)\n\tDefaultCallback.Update().Register(\"gorm:save_after_associations\", saveAfterAssociationsCallback)\n\tDefaultCallback.Update().Register(\"gorm:after_update\", afterUpdateCallback)\n\tDefaultCallback.Update().Register(\"gorm:commit_or_rollback_transaction\", commitOrRollbackTransactionCallback)\n\t\t\tcallbacks: defaultCallback,\n\t\t\tcallbacks: DefaultCallback,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8214285714285714, "commit_url": "https://github.com/go-gorm/gorm/commit/2522f03c1fffd3e60fbf742b589f4bfbaf6d5295", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 6 ] }, { "input": "\tdefaultCallback.Query().Register(\"gorm:query\", queryCallback)\n\tdefaultCallback.Query().Register(\"gorm:preload\", preloadCallback)\n\tdefaultCallback.Query().Register(\"gorm:after_query\", afterQueryCallback)\n\tDefaultCallback.Query().Register(\"gorm:query\", queryCallback)\n\tDefaultCallback.Query().Register(\"gorm:preload\", preloadCallback)\n\tDefaultCallback.Query().Register(\"gorm:after_query\", afterQueryCallback)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8928571428571429, "commit_url": "https://github.com/go-gorm/gorm/commit/2522f03c1fffd3e60fbf742b589f4bfbaf6d5295", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 6 ] }, { "input": "\tdefaultCallback.Update().Register(\"gorm:assign_updating_attributes\", assignUpdatingAttributesCallback)\n\tdefaultCallback.Update().Register(\"gorm:begin_transaction\", beginTransactionCallback)\n\tdefaultCallback.Update().Register(\"gorm:before_update\", beforeUpdateCallback)\n\tdefaultCallback.Update().Register(\"gorm:save_before_associations\", saveBeforeAssociationsCallback)\n\tdefaultCallback.Update().Register(\"gorm:update_time_stamp\", updateTimeStampForUpdateCallback)\n\tdefaultCallback.Update().Register(\"gorm:update\", updateCallback)\n\tdefaultCallback.Update().Register(\"gorm:save_after_associations\", saveAfterAssociationsCallback)\n\tdefaultCallback.Update().Register(\"gorm:after_update\", afterUpdateCallback)\n\tdefaultCallback.Update().Register(\"gorm:commit_or_rollback_transaction\", commitOrRollbackTransactionCallback)\n\tDefaultCallback.Update().Register(\"gorm:assign_updating_attributes\", assignUpdatingAttributesCallback)\n\tDefaultCallback.Update().Register(\"gorm:begin_transaction\", beginTransactionCallback)\n\tDefaultCallback.Update().Register(\"gorm:before_update\", beforeUpdateCallback)\n\tDefaultCallback.Update().Register(\"gorm:save_before_associations\", saveBeforeAssociationsCallback)\n\tDefaultCallback.Update().Register(\"gorm:update_time_stamp\", updateTimeStampForUpdateCallback)\n\tDefaultCallback.Update().Register(\"gorm:update\", updateCallback)\n\tDefaultCallback.Update().Register(\"gorm:save_after_associations\", saveAfterAssociationsCallback)\n\tDefaultCallback.Update().Register(\"gorm:after_update\", afterUpdateCallback)\n\tDefaultCallback.Update().Register(\"gorm:commit_or_rollback_transaction\", commitOrRollbackTransactionCallback)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6785714285714286, "commit_url": "https://github.com/go-gorm/gorm/commit/2522f03c1fffd3e60fbf742b589f4bfbaf6d5295", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 6 ] }, { "input": "\t\t\tcallbacks: defaultCallback,\n\t\t\tcallbacks: DefaultCallback,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9642857142857143, "commit_url": "https://github.com/go-gorm/gorm/commit/2522f03c1fffd3e60fbf742b589f4bfbaf6d5295", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4 ] }, { "input": "\treturn fmt.Sprintf(\"RETURNING %v.%v\", s.Quote(tableName), key)\n\treturn fmt.Sprintf(\"RETURNING %v.%v\", tableName, key)\n\treturn fmt.Sprintf(\"RETURNING %v.%v\", s.Quote(tableName), key)\n\treturn fmt.Sprintf(\"RETURNING %v.%v\", tableName, key)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/go-gorm/gorm/commit/b46ca62c1895f8ea8911d148809899e918ad6d96", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tDB.Where(\"role = ?\", \"Preload\").Preload(\"BillingAddress\").Preload(\"ShippingAddress\").\n\t\tPreload(\"CreditCard\").Preload(\"Emails\").Find(&user)\n\tpreloadDB.Find(&user)\n\tDB.Where(\"role = ?\", \"Preload\").Preload(\"BillingAddress\").Preload(\"ShippingAddress\").\n\t\tPreload(\"CreditCard\").Preload(\"Emails\").Find(&users)\n\tpreloadDB.Find(&users)\n\tDB.Where(\"role = ?\", \"Preload\").Preload(\"BillingAddress\").Preload(\"ShippingAddress\").\n\t\tPreload(\"CreditCard\").Preload(\"Emails\").Find(&users2)\n\tpreloadDB.Find(&users2)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/go-gorm/gorm/commit/b3b87d9c45675a00bc8f1bf86c0a59e1c2187f64", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\tb.Run(\"bool\", func(b *testing.B) {\n\tb.Run(\"SortFunc\", func(b *testing.B) {\n\tb.Run(\"by\", func(b *testing.B) {\n\tb.Run(\"SortStableFunc\", func(b *testing.B) {\n\t\tcmpFunc := func(a, b *myStruct) int { return a.n - b.n }\n\t\tfor i := 0; i < b.N; i++ {\n\t\t\tb.StopTimer()\n\t\t\tss := makeRandomStructs(N)\n\t\t\tb.StartTimer()\n\t\t\tSortStableFunc(ss, cmpFunc)\n\t\t}\n\t})\n\tb.Run(\"SortBy\", func(b *testing.B) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/istio/istio/commit/2aa05f7341d133cccc8e077963a463d7b6d5fa13", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tcfg.FillConfigFromEnvironment()\n\tif err := cfg.FillConfigFromEnvironment(); err != nil {\n\t\treturn err\n\t}\n\t\t\tcfg.FillConfigFromEnvironment()\n\t\t\tif err := cfg.FillConfigFromEnvironment(); err != nil {\n\t\t\t\thandleErrorWithCode(err, 1)\n\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/istio/istio/commit/d801cb493094edb01f9fcb612ed6471e3cdfb3c3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tproxy.istiodDialOptions = []grpc.DialOption{grpc.WithBlock(), grpc.WithTransportCredentials(insecure.NewCredentials())}\n\t\tproxy.dialOptions = []grpc.DialOption{grpc.WithBlock(), grpc.WithTransportCredentials(insecure.NewCredentials())}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/istio/istio/commit/3279f08dcc5ab94004464b5f18f17cf76ffc6a7a", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 5, 6, 7 ] }, { "input": "\t\tName: util.EnvoyQUICSocketName,\n\t\tName: wellknown.TransportSocketQuic,\n\t\t\tName: util.EnvoyTLSSocketName,\n\t\t\tName: wellknown.TransportSocketTls,\n\t\tName: util.EnvoyTLSSocketName,\n\t\tName: wellknown.TransportSocketTls,\n\t\tName: util.EnvoyRawBufferSocketName,\n\t\tName: wellknown.TransportSocketRawBuffer,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/6b85b0576697e6b52d40ceda113c0e66a4d17fa1", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 5 ] }, { "input": "\tfakeCACli, err := mock.NewMockCAClient(time.Hour)\n\tfakeCACli, err := mock.NewMockCAClient(time.Hour, false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/istio/istio/commit/b2cddb388e7f60b9ed8948dedc24a9a7d1e2493e", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": "\n\tr = envoyfilter.ApplyRouteConfigurationPatches(networking.EnvoyFilter_SIDECAR_INBOUND, node, push, r)\n\tefw := push.EnvoyFilters(node)\n\tr = envoyfilter.ApplyRouteConfigurationPatches(networking.EnvoyFilter_SIDECAR_INBOUND, node, efw, r)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/istio/istio/commit/767767161b3b3350a30a4b7bb6b337857405c0ed", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 5, 6 ] }, { "input": "\t\"istio.io/pkg/log\"\n\tistiolog \"istio.io/pkg/log\"\n\t\"istio.io/pkg/log\"\n\t\"istio.io/pkg/log\"\n\t\"istio.io/pkg/log\"\n\t\"istio.io/pkg/log\"\n\t\"istio.io/pkg/log\"\n\t\"istio.io/pkg/log\"\n\t\"istio.io/pkg/log\"\n\t\"istio.io/pkg/log\"\n\t\"istio.io/pkg/log\"\n\t\"istio.io/pkg/log\"\n\t\"istio.io/pkg/log\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.9166666666666666, "commit_url": "https://github.com/istio/istio/commit/500580b3226979840e9ef4f68da34a734ecd16ca", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": "\t\tc.services.HasSynced)\n\t\tc.serviceInformer.HasSynced)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/istio/istio/commit/a5bcc62b8d6d17a600f241f8330f191a98a89b4a", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 3, 4, 11, 12 ] }, { "input": "\t\tc.services.HasSynced, c.endpoints.HasSynced)\n\t\tc.serviceInformer.HasSynced, c.endpoints.HasSynced)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/istio/istio/commit/a5bcc62b8d6d17a600f241f8330f191a98a89b4a", "target_edit_idx": 11, "propagatable_edit_idx": [ 2, 3, 4, 8, 12 ] }, { "input": "\t\t\t\t\tClientProtocol: \"-\",\n\t\t\t\t\tClientProtocol: \"None\",\n\t\t\t\t\tClientProtocol: \"-\",\n\t\t\t\t\tClientProtocol: \"None\",\n\t\t\t\t\tClientProtocol: \"-\",\n\t\t\t\t\tClientProtocol: \"None\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/istio/istio/commit/50fcc8538a4b120191c0e35b72b92715d281779a", "target_edit_idx": 7, "propagatable_edit_idx": [ 10, 11 ] }, { "input": "\t\t\tdiscoveryType := convertResolution(proxy, service.Resolution)\n\t\t\tdiscoveryType := convertResolution(proxy, service)\n\t\t\tdiscoveryType := convertResolution(proxy, service.Resolution)\n\t\t\tdiscoveryType := convertResolution(proxy, service)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/istio/istio/commit/f6347189c5d8ffe77076d8610fdb0d49c6070431", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t// wait for debounce\n\ttime.Sleep(3 * v2.DebounceAfter)\n\n\t// wait for debounce\n\ttime.Sleep(3 * v2.DebounceAfter)\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/bbdaebb85c53e869fe404a4f74ef8b8305a876e1", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tController: &MockController{},\n\t\tController: &memory.MockController{},\n\t\tController: &MockController{},\n\t\tController: &memory.MockController{},\n\t\tController: &MockController{},\n\t\tController: &memory.MockController{},\n\t\tController: &MockController{},\n\t\tController: &memory.MockController{},\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/istio/istio/commit/405874959a998d5020f6bd3f944bee00dc8020ee", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10, 11 ] }, { "input": "\t\t\t\ttok, err := ioutil.ReadFile(\"./var/run/secrets/tokens/istio-token\")\n\t\t\t\ttok, err := ioutil.ReadFile(JWTPath)\n\t\ttok, err := ioutil.ReadFile(\"./var/run/secrets/tokens/istio-token\")\n\t\ttok, err := ioutil.ReadFile(JWTPath)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/0ce9610db3a13fb178bb7c19dcc6a7953f5cad27", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\tfor _, any := range s.s.Details {\n\tfor _, body := range s.s.Details {\n\t\tany, err := types.MarshalAny(detail)\n\t\tbody, err := types.MarshalAny(detail)\n\t\tp.Details = append(p.Details, any)\n\t\tp.Details = append(p.Details, body)\n\t\tif err := types.UnmarshalAny(any, detail); err != nil {\n\t\tif err := types.UnmarshalAny(body, detail); err != nil {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/6ecc2c196d65474eb50981272cb0ba43be31e125", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4, 6 ] }, { "input": "\t\tif err := types.UnmarshalAny(any, detail); err != nil {\n\t\tif err := types.UnmarshalAny(body, detail); err != nil {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/6ecc2c196d65474eb50981272cb0ba43be31e125", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "\ttime.Sleep(200 * time.Millisecond)\n\ttime.Sleep(10 * time.Millisecond)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/istio/istio/commit/8e6d00b73b87a306950ae7768ecc0a7edd13b430", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": "\t\t\tclientConfig, err := loadKubeConfig(kubeConfig)\n\t\t\tclientConfig, err := LoadKubeConfig(kubeConfig)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/4f92fcb748b428dce22ca6ef543ece50084e2f26", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "\tlog.Infof(\"Number of clusters in the cluster store: %d\", len(c.cs.remoteClusters))\n\tlog.Infof(\"Number of remote clusters: %d\", len(c.cs.remoteClusters))\n\tlog.Infof(\"Number of clusters in the cluster store: %d\", len(c.cs.remoteClusters))\n\tlog.Infof(\"Number of remote clusters: %d\", len(c.cs.remoteClusters))\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/4f92fcb748b428dce22ca6ef543ece50084e2f26", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\tloadKubeConfig = mockLoadKubeConfig\n\tLoadKubeConfig = mockLoadKubeConfig\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/4f92fcb748b428dce22ca6ef543ece50084e2f26", "target_edit_idx": 6, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tclusters = append(clusters, configgen.buildOutboundClusters(env, proxy.Type, push)...)\n\t\tclusters = append(clusters, configgen.buildOutboundClusters(env, push)...)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/8f6b19913714fcc201f352a78811f01e77a44131", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "\tconfiggen.OutboundClustersForSidecars = configgen.buildOutboundClusters(env, model.Sidecar, push)\n\tconfiggen.OutboundClustersForGateways = configgen.buildOutboundClusters(env, model.Router, push)\n\tconfiggen.OutboundClusters = configgen.buildOutboundClusters(env, push)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/8f6b19913714fcc201f352a78811f01e77a44131", "target_edit_idx": 5, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tif scope, ok := scopes[s]; ok {\n\t\tif scope, ok := allScopes[s]; ok {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/istio/istio/commit/82e3d7eee5403de91bc439bff934cc6789e24f61", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10, 11 ] }, { "input": "\tif len(scopes) > 1 {\n\tallScopes := Scopes()\n\tif len(allScopes) > 1 {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/istio/istio/commit/82e3d7eee5403de91bc439bff934cc6789e24f61", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9, 11, 7 ] }, { "input": "\t\tfor name := range scopes {\n\t\tfor name := range allScopes {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/istio/istio/commit/82e3d7eee5403de91bc439bff934cc6789e24f61", "target_edit_idx": 11, "propagatable_edit_idx": [ 8, 9, 10, 7 ] }, { "input": "\t\t\tcluster := buildOutboundCluster(service.Hostname, servicePort, nil)\n\t\t\tcluster := buildOutboundCluster(service.Hostname, servicePort, nil, service.External())\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/358a2c7f8bd0500755d6169ca2e0bf2268eb8ec3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "\t\t\t\t\tcluster := buildOutboundCluster(service.Hostname, servicePort, nil)\n\t\t\t\t\tcluster := buildOutboundCluster(service.Hostname, servicePort, nil, service.External())\n\t\t\tcluster := buildOutboundCluster(service.Hostname, servicePort, nil)\n\t\t\tcluster := buildOutboundCluster(service.Hostname, servicePort, nil, service.External())\n\t\t\tcluster := buildOutboundCluster(service.Hostname, servicePort, nil)\n\t\t\tcluster := buildOutboundCluster(service.Hostname, servicePort, nil, service.External())\n\t\t\t\t\t\tcluster = buildOutboundCluster(service.Hostname, servicePort, nil)\n\t\t\t\t\t\tcluster = buildOutboundCluster(service.Hostname, servicePort, nil,\n\t\t\t\t\t\t\tservice.External())\nfunc buildOutboundCluster(hostname string, port *model.Port, labels model.Labels) *Cluster {\nfunc buildOutboundCluster(hostname string, port *model.Port, labels model.Labels, isExternal bool) *Cluster {\n\t\t\tcluster := buildOutboundCluster(actualDestination, port, dst.Labels)\n\t\t\tcluster := buildOutboundCluster(actualDestination, port, dst.Labels, service.External())\n\t\tcluster := buildOutboundCluster(destination, port, nil)\n\t\tcluster := buildOutboundCluster(destination, port, nil, service.External())\n\t\t\tCluster: buildOutboundCluster(fqdnDest, port, rule.Mirror.Labels).Name,\n\t\t\t//TODO support shadowing between internal and external kubernetes services\n\t\t\t// currently only shadowing between internal kubernetes services is supported\n\t\t\tCluster: buildOutboundCluster(fqdnDest, port, rule.Mirror.Labels, service.External()).Name,\n\t\tcluster := buildOutboundCluster(service.Hostname, port, nil)\n\t\tcluster := buildOutboundCluster(service.Hostname, port, nil, service.External())\n\t\tcluster := buildOutboundCluster(service.Hostname, port, nil)\n\t\tcluster := buildOutboundCluster(service.Hostname, port, nil, service.External())\n\t\t\tcluster := buildOutboundCluster(fqdn, port, labels) // TODO: support Destination.Port\n\t\t\tcluster := buildOutboundCluster(fqdn, port, labels, service.External()) // TODO: support Destination.Port\n\t\treturn &ShadowCluster{Cluster: buildOutboundCluster(fqdn, port, labels).Name}\n\t\t// TODO support shadow cluster for external kubernetes service mirror\n\t\treturn &ShadowCluster{Cluster: buildOutboundCluster(fqdn, port, labels, false).Name}\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/358a2c7f8bd0500755d6169ca2e0bf2268eb8ec3", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "\t\t\tcluster := buildOutboundCluster(actualDestination, port, dst.Labels)\n\t\t\tcluster := buildOutboundCluster(actualDestination, port, dst.Labels, service.External())\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/358a2c7f8bd0500755d6169ca2e0bf2268eb8ec3", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 9, 10, 11, 12, 13, 14 ] }, { "input": "\t\tcluster := buildOutboundCluster(destination, port, nil)\n\t\tcluster := buildOutboundCluster(destination, port, nil, service.External())\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/358a2c7f8bd0500755d6169ca2e0bf2268eb8ec3", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 8, 10, 11, 12, 13, 14 ] }, { "input": "\t\t\tCluster: buildOutboundCluster(fqdnDest, port, rule.Mirror.Labels).Name,\n\t\t\t//TODO support shadowing between internal and external kubernetes services\n\t\t\t// currently only shadowing between internal kubernetes services is supported\n\t\t\tCluster: buildOutboundCluster(fqdnDest, port, rule.Mirror.Labels, service.External()).Name,\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/358a2c7f8bd0500755d6169ca2e0bf2268eb8ec3", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 8, 9, 11, 12, 13, 14 ] }, { "input": "\t\tcluster := buildOutboundCluster(service.Hostname, port, nil)\n\t\tcluster := buildOutboundCluster(service.Hostname, port, nil, service.External())\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/358a2c7f8bd0500755d6169ca2e0bf2268eb8ec3", "target_edit_idx": 12, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 8, 9, 10, 11, 13, 14 ] }, { "input": "\t\t\tcluster := buildOutboundCluster(fqdn, port, labels) // TODO: support Destination.Port\n\t\t\tcluster := buildOutboundCluster(fqdn, port, labels, service.External()) // TODO: support Destination.Port\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/358a2c7f8bd0500755d6169ca2e0bf2268eb8ec3", "target_edit_idx": 13, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 8, 9, 10, 11, 12, 14 ] }, { "input": "\t\treturn &ShadowCluster{Cluster: buildOutboundCluster(fqdn, port, labels).Name}\n\t\t// TODO support shadow cluster for external kubernetes service mirror\n\t\treturn &ShadowCluster{Cluster: buildOutboundCluster(fqdn, port, labels, false).Name}\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/358a2c7f8bd0500755d6169ca2e0bf2268eb8ec3", "target_edit_idx": 14, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 8, 9, 10, 11, 12, 13 ] }, { "input": "func newCacheController(clientset *kubernetes.Clientset, namespace string, refreshDuration time.Duration, env adapter.Env) cacheController {\nfunc newCacheController(clientset *kubernetes.Clientset, refreshDuration time.Duration, env adapter.Env) cacheController {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/09706df45e02bb0c4126950f72b6c9b0d813d837", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\treturn newCacheController(clientset, \"\", refreshDuration, env), nil\n\treturn newCacheController(clientset, refreshDuration, env), nil\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/09706df45e02bb0c4126950f72b6c9b0d813d837", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tuidstr := uid.(string)\n\t\tif len(uidstr) > 0 {\n\t\tuidstr, ok := uid.(string)\n\t\tif ok && len(uidstr) > 0 {\n\t\tuidstr := uid.(string)\n\t\tif len(uidstr) > 0 {\n\t\tuidstr, ok := uid.(string)\n\t\tif ok && len(uidstr) > 0 {\n\t\tuidstr := uid.(string)\n\t\tif len(uidstr) > 0 {\n\t\tuidstr, ok := uid.(string)\n\t\tif ok && len(uidstr) > 0 {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/istio/istio/commit/09706df45e02bb0c4126950f72b6c9b0d813d837", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "func resolveStatsdAddr(statsdAdrr string) (string, error) {\n\tif statsdAdrr == \"\" {\nfunc resolveStatsdAddr(statsdAddr string) (string, error) {\n\tif statsdAddr == \"\" {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/istio/istio/commit/9e34d584d224bafc237aa0c26ca9f361888e0928", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\tcolon := strings.Index(statsdAdrr, \":\")\n\thost := statsdAdrr[:colon]\n\tport := statsdAdrr[colon:]\n\tcolon := strings.Index(statsdAddr, \":\")\n\thost := statsdAddr[:colon]\n\tport := statsdAddr[colon:]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/istio/istio/commit/9e34d584d224bafc237aa0c26ca9f361888e0928", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "func NewSecretController(ca certmanager.CertificateAuthority, core corev1.CoreV1Interface) *SecretController {\nfunc NewSecretController(ca certmanager.CertificateAuthority, core corev1.CoreV1Interface,\n\tnamespace string) *SecretController {\n\n\t\tcontroller := NewSecretController(fakeCa{}, client.CoreV1())\n\t\tcontroller := NewSecretController(fakeCa{}, client.CoreV1(), metav1.NamespaceAll)\n\t\tcontroller := NewSecretController(fakeCa{}, client.CoreV1())\n\t\tcontroller := NewSecretController(fakeCa{}, client.CoreV1(), metav1.NamespaceAll)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/684961c95d4d50766908d0146cc8627cd3ba1b7f", "target_edit_idx": 5, "propagatable_edit_idx": [ 10, 11 ] }, { "input": "\t\t\treturn core.ServiceAccounts(metav1.NamespaceAll).List(options)\n\t\t\treturn core.ServiceAccounts(namespace).List(options)\n\t\t\treturn core.Secrets(metav1.NamespaceAll).List(options)\n\t\t\treturn core.Secrets(namespace).List(options)\n\t\t\treturn core.Secrets(metav1.NamespaceAll).Watch(options)\n\t\t\treturn core.Secrets(namespace).Watch(options)\n\t\t\treturn core.ServiceAccounts(metav1.NamespaceAll).Watch(options)\n\t\t\treturn core.ServiceAccounts(namespace).Watch(options)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/istio/istio/commit/684961c95d4d50766908d0146cc8627cd3ba1b7f", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 7 ] }, { "input": "\t\tcontroller := NewSecretController(fakeCa{}, client.CoreV1())\n\t\tcontroller := NewSecretController(fakeCa{}, client.CoreV1(), metav1.NamespaceAll)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/684961c95d4d50766908d0146cc8627cd3ba1b7f", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 5 ] }, { "input": "\t\t\tquota(rootArgs, printf, fatalf, name, dedup, amount, bestEffort)\n\t\t\tquota(rootArgs, printf, fatalf, name, amount, bestEffort)\nfunc quota(rootArgs *rootArgs, printf, fatalf shared.FormatFn, name string, dedup string, amount int64, bestEffort bool) {\nfunc quota(rootArgs *rootArgs, printf, fatalf shared.FormatFn, name string, amount int64, bestEffort bool) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/8cc13770166530dc8b9a121968fa5ce8e518f324", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "func quota(rootArgs *rootArgs, printf, fatalf shared.FormatFn, name string, dedup string, amount int64, bestEffort bool) {\nfunc quota(rootArgs *rootArgs, printf, fatalf shared.FormatFn, name string, amount int64, bestEffort bool) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/istio/istio/commit/8cc13770166530dc8b9a121968fa5ce8e518f324", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tt.Errorf(\"No root span in context, expected span '%v'; context: %v\", s, ctx)\n\t\tt.Errorf(\"RootSpan(newCtx) = %v; wanted %v; context: %v\", root, ss, ctx)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.34782608695652173, "commit_url": "https://github.com/istio/istio/commit/1a4a389aaea187a6b410419452931a8dbcd6e798", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 10, 7 ] }, { "input": "\t\tt.Errorf(\"Extracting root span from ctx without calling StartRootSpan expected no-op span, actual: %v; ctx: %v\", span, ctx)\n\t\tt.Errorf(\"RootSpan(ctx) = %v; wanted %v; ctx: %v\", span, noopSpan, ctx)\n\t\tt.Errorf(\"Expected disabled tracer to return noop span, actual: %+v\", span)\n\t\tt.Errorf(\"StartRootSpan on disabled tracer returned '%v'; want '%v'\", span, noopSpan)\n\t\tt.Errorf(\"Expected disabled tracer to return noop span, actual: %+v\", span)\n\t\tt.Errorf(\"StartSpanFromContext on disabled tracer returned '%v'; want '%v'\", span, noopSpan)\n\t}\n\n\tctx := context.Background()\n\tif _, nctx := tracer.PropagateSpan(ctx, noopSpan); nctx != ctx {\n\t\tt.Errorf(\"PropagateSpan on disabled tracer returned '%v'; want '%v'\", nctx, ctx)\n\t}\n\n\tif sc := tracer.extractSpanContext(ctx, extractMetadata(ctx)); sc != nil {\n\t\tt.Errorf(\"ExtractSpan on disabled tracer returned '%v'; want nil\", sc)\n\t\tt.Errorf(\"No root span in context, expected span '%v'; context: %v\", s, ctx)\n\t\tt.Errorf(\"RootSpan(newCtx) = %v; wanted %v; context: %v\", root, ss, ctx)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.34782608695652173, "commit_url": "https://github.com/istio/istio/commit/1a4a389aaea187a6b410419452931a8dbcd6e798", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 10, 5 ] }, { "input": "\t\tt.Errorf(\"Expected disabled tracer to return noop span, actual: %+v\", span)\n\t\tt.Errorf(\"StartRootSpan on disabled tracer returned '%v'; want '%v'\", span, noopSpan)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.34782608695652173, "commit_url": "https://github.com/istio/istio/commit/1a4a389aaea187a6b410419452931a8dbcd6e798", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 5, 7 ] }, { "input": "\t\tt.Errorf(\"Expected disabled tracer to return noop span, actual: %+v\", span)\n\t\tt.Errorf(\"StartSpanFromContext on disabled tracer returned '%v'; want '%v'\", span, noopSpan)\n\t}\n\n\tctx := context.Background()\n\tif _, nctx := tracer.PropagateSpan(ctx, noopSpan); nctx != ctx {\n\t\tt.Errorf(\"PropagateSpan on disabled tracer returned '%v'; want '%v'\", nctx, ctx)\n\t}\n\n\tif sc := tracer.extractSpanContext(ctx, extractMetadata(ctx)); sc != nil {\n\t\tt.Errorf(\"ExtractSpan on disabled tracer returned '%v'; want nil\", sc)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.32, "commit_url": "https://github.com/istio/istio/commit/1a4a389aaea187a6b410419452931a8dbcd6e798", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 5, 7 ] }, { "input": "func (s *URLStore) Count() int {\nfunc (s *URLStore) count() int {\n\t\t*key = genKey(s.Count())\n\t\t*key = genKey(s.count())\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/unknwon/the-way-to-go_ZH_CN/commit/994720ab0741238acf9d7b1606a962875935b4f6", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t*key = genKey(s.Count())\n\t\t*key = genKey(s.count())\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/unknwon/the-way-to-go_ZH_CN/commit/994720ab0741238acf9d7b1606a962875935b4f6", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tif err := entity.UpdatePhotoCounts(); err != nil {\n\t\t\tlog.Errorf(\"photos: %s\", err)\n\t\t}\n\t\tlogError(\"photos\", entity.UpdatePhotoCounts())\n\t\tif err := entity.UpdatePhotoCounts(); err != nil {\n\t\t\tlog.Errorf(\"photos: %s\", err)\n\t\t}\n\t\tlogError(\"photos\", entity.UpdatePhotoCounts())\n\t\tif err := entity.UpdatePhotoCounts(); err != nil {\n\t\t\tlog.Errorf(\"photos: %s\", err)\n\t\t}\n\t\tlogError(\"photos\", entity.UpdatePhotoCounts())\n\t\t\tif err := entity.UpdatePhotoCounts(); err != nil {\n\t\t\t\tlog.Errorf(\"photos: %s\", err)\n\t\t\t}\n\t\t\tlogError(\"photos\", entity.UpdatePhotoCounts())\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/photoprism/photoprism/commit/63ba28426e42a32faa37c8ada97c09a1f37da077", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " .click(Selector(\".nav-albums\"))\n .typeText(Selector(\".p-albums-search input\"), \"Christmas\")\n .pressKey(\"enter\");\n .click(Selector(\".nav-albums\"));\n if (t.browser.platform === \"mobile\") {\n await t.navigateTo(\"/albums?q=Christmas\");\n } else { await page.search(\"Christmas\");}\n .click(Selector(\".nav-albums\"))\n .typeText(Selector(\".p-albums-search input\"), \"KanadaVacation\")\n .pressKey(\"enter\");\n .click(Selector(\".nav-albums\"));\n if (t.browser.platform === \"mobile\") {\n await t.navigateTo(\"/albums?q=KanadaVacation\");\n } else { await page.search(\"KanadaVacation\");}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/photoprism/photoprism/commit/ffed466b09da78acf4fbb8471c70370e78685acb", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tColors: IndexedColors{0x9, 0x5, 0x1, 0x2, 0x2, 0x1, 0x1, 0x6, 0x2},\n\t\t\tMainColor: 1,\n\t\t\tColors: IndexedColors{0x9, 0x5, 0x1, 0x2, 0x2, 0x1, 0x0, 0x6, 0x2},\n\t\t\tMainColor: 5,\n\t\t\tColors: IndexedColors{0x2, 0x1, 0x1, 0x9, 0x1, 0x5, 0xb, 0x1, 0x5},\n\t\t\tMainColor: 1,\n\t\t\tColors: IndexedColors{0x2, 0x1, 0x1, 0x9, 0x0, 0x5, 0xb, 0x0, 0x5},\n\t\t\tMainColor: 5,\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/photoprism/photoprism/commit/8c63c345f0b5714efef58c5ac79e23c6f3e2e580", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\treturn errors.New(\"failed to update auth table\")\n\t\t\treturn fmt.Errorf(\"failed to update auth table: %w\", err)\n\t\t\treturn errors.New(\"failed to update auth table\")\n\t\t\treturn fmt.Errorf(\"failed to update auth table: %w\", err)\n\t\t\treturn errors.New(\"failed to update auth table\")\n\t\t\treturn fmt.Errorf(\"failed to update auth table: %w\", err)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/hashicorp/vault/commit/259313648f1586d0e944d909adffc4299bf10e4f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "module('Acceptance | enterprise | sync | destination', function (hooks) {\n// sync is an enterprise feature but since mirage is used the enterprise label has been intentionally omitted from the module name\nmodule('Acceptance | sync | destination', function (hooks) {\nmodule('Acceptance | enterprise | sync | destinations', function (hooks) {\n// sync is an enterprise feature but since mirage is used the enterprise label has been intentionally omitted from the module name\nmodule('Acceptance | sync | destinations', function (hooks) {\nmodule('Acceptance | enterprise | sync | destination', function (hooks) {\n// sync is an enterprise feature but since mirage is used the enterprise label has been intentionally omitted from the module name\nmodule('Acceptance | sync | destination', function (hooks) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/hashicorp/vault/commit/87857e61f547e58d8bfe24b72e4844ba675da1f3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\tschema.ValidateResponse(t, schema.GetResponseSchema(t, b.Route(\"roles/testrole\"), logical.UpdateOperation), resp, true)\n\tschema.ValidateResponse(t, schema.GetResponseSchema(t, b.Route(roleReq.Path), logical.UpdateOperation), resp, true)\n\tschema.ValidateResponse(t, schema.GetResponseSchema(t, b.Route(\"roles/testrole\"), logical.ReadOperation), resp, true)\n\tschema.ValidateResponse(t, schema.GetResponseSchema(t, b.Route(roleReq.Path), logical.ReadOperation), resp, true)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/30d3aa06c0829d27bae890890f2429c0bc3f79c6", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " if (parseInt(find('[data-test-display-year]').innerText) < NEW_DATE.getFullYear()) {\n await click('[data-test-future-year]');\n if (parseInt(find('[data-test-display-year]').innerText) !== customEndDate.getFullYear()) {\n await click('[data-test-previous-year]');\n if (parseInt(find('[data-test-display-year]').innerText) < NEW_DATE.getFullYear()) {\n await click('[data-test-future-year]');\n if (parseInt(find('[data-test-display-year]').innerText) !== UPGRADE_DATE.getFullYear()) {\n await click('[data-test-previous-year]');\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/hashicorp/vault/commit/62a78689d0c11f564a483d8fc140467b072ba7ce", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\"github.com/hashicorp/vault/sdk/helper/compressutil\"\n\t\"github.com/hashicorp/vault/sdk/helper/compressutil\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/hashicorp/vault/commit/8afda000c436973685d521501041e937d55b3b9a", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\ttestPlugin_continueOnError(t, logical.TypeLogical, true, consts.PluginTypeSecrets)\n\t\t\ttestPlugin_continueOnError(t, logical.TypeLogical, true, \"mock-plugin\", consts.PluginTypeSecrets)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/51df8814c9b17808513f2af0d733a18ebc22a702", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": "\t\t\ttestPlugin_continueOnError(t, logical.TypeLogical, false, consts.PluginTypeSecrets)\n\t\t\ttestPlugin_continueOnError(t, logical.TypeLogical, false, \"mock-plugin\", consts.PluginTypeSecrets)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/51df8814c9b17808513f2af0d733a18ebc22a702", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": "\t\t\ttestPlugin_continueOnError(t, logical.TypeCredential, true, consts.PluginTypeCredential)\n\t\t\ttestPlugin_continueOnError(t, logical.TypeCredential, true, \"mock-plugin\", consts.PluginTypeCredential)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/51df8814c9b17808513f2af0d733a18ebc22a702", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 5 ] }, { "input": "\t\t\ttestPlugin_continueOnError(t, logical.TypeCredential, false, consts.PluginTypeCredential)\n\t\t\ttestPlugin_continueOnError(t, logical.TypeCredential, false, \"mock-plugin\", consts.PluginTypeCredential)\n\t\t})\n\n\t\tt.Run(\"sha256_mismatch\", func(t *testing.T) {\n\t\t\ttestPlugin_continueOnError(t, logical.TypeCredential, true, \"oidc\", consts.PluginTypeCredential)\n\t\t})\n\n\t\tt.Run(\"missing_plugin\", func(t *testing.T) {\n\t\t\ttestPlugin_continueOnError(t, logical.TypeCredential, false, \"oidc\", consts.PluginTypeCredential)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/hashicorp/vault/commit/51df8814c9b17808513f2af0d733a18ebc22a702", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": "func testPlugin_continueOnError(t *testing.T, btype logical.BackendType, mismatch bool, pluginType consts.PluginType) {\nfunc testPlugin_continueOnError(t *testing.T, btype logical.BackendType, mismatch bool, mountPoint string, pluginType consts.PluginType) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/51df8814c9b17808513f2af0d733a18ebc22a702", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": "\t\tpgpFingerprint := \"91a6e7f85d05c65630bef18951852d87348ffc4c\"\n\t\tpgpFingerprint := \"c874011f0ab405110d02105534365d9472d7468f\"\n\t\tpgpFingerprints := []string{\"91a6e7f85d05c65630bef18951852d87348ffc4c\"}\n\t\tpgpFingerprints := []string{\"c874011f0ab405110d02105534365d9472d7468f\"}\n\t\t// pgpFingerprints := []string{\"91a6e7f85d05c65630bef18951852d87348ffc4c\"}\n\t\t// pgpFingerprints := []string{\"c874011f0ab405110d02105534365d9472d7468f\"}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/acbb3b9d98de45e0b86061d10905901580f6acf6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\t\"91a6e7f85d05c65630bef18951852d87348ffc4c\",\n\t\t\"c874011f0ab405110d02105534365d9472d7468f\",\n\t\t\"91a6e7f85d05c65630bef18951852d87348ffc4c\",\n\t\t\"c874011f0ab405110d02105534365d9472d7468f\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/acbb3b9d98de45e0b86061d10905901580f6acf6", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tcore.AuditLogger().AuditRequest(r.Context(), input)\n\t\terr = core.AuditLogger().AuditRequest(r.Context(), input)\n\t\tif err != nil {\n\t\t\trespondError(w, status, err)\n\t\t\treturn\n\t\t}\n\t\tcore.AuditLogger().AuditResponse(r.Context(), input)\n\t\terr = core.AuditLogger().AuditResponse(r.Context(), input)\n\t\tif err != nil {\n\t\t\trespondError(w, status, err)\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/a50eac1d44fa6f94c138e97214c4f5365011dbc6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tt.Run(\"1.4.0-rc\", func(t *testing.T) {\n\t\tt.Run(\"post-1.4.0\", func(t *testing.T) {\n\t\tt.Run(\"1.4.0-rc\", func(t *testing.T) {\n\t\tt.Run(\"post-1.4.0\", func(t *testing.T) {\n\t\tt.Run(\"1.4.0-rc\", func(t *testing.T) {\n\t\tt.Run(\"post-1.4.0\", func(t *testing.T) {\n\t\tt.Run(\"1.4.0-rc\", func(t *testing.T) {\n\t\tt.Run(\"post-1.4.0\", func(t *testing.T) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/hashicorp/vault/commit/5aba3b8abaca0f65dd50a125399582d2d00fde4a", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 2, 6 ] }, { "input": "\t\t\t\ttestBackendRenewRevoke(t, \"1.4.0-rc1\")\n\t\t\t\ttestBackendRenewRevoke(t, \"\")\n\t\t\t\ttestBackendRenewRevoke(t, \"1.4.0-rc1\")\n\t\t\t\ttestBackendRenewRevoke(t, \"\")\n\t\t\ttestBackendRenewRevoke14(t, \"1.4.0-rc1\")\n\t\t\ttestBackendRenewRevoke14(t, \"\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/5aba3b8abaca0f65dd50a125399582d2d00fde4a", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 4 ] }, { "input": "\t\tif err := core.UnsealWithStoredKeys(context.Background()); err != nil {\n\t\tif err := core.UnsealWithStoredKeys(ctx); err != nil {\n\t\tif err := core.UnsealWithStoredKeys(context.Background()); err != nil {\n\t\tif err := core.UnsealWithStoredKeys(ctx); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/bc9bbeb21b1f95d1cd6ee4d490e38ec8309c7002", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tif err := adjustCoreForSealMigration(context.Background(), core, coreConfig, shamirSeal, serverConf); err == nil {\n\t\tif err := adjustCoreForSealMigration(ctx, core, coreConfig, shamirSeal, serverConf); err == nil {\n\t\tif err := adjustCoreForSealMigration(context.Background(), core, coreConfig, shamirSeal, serverConf); err != nil {\n\t\tif err := adjustCoreForSealMigration(ctx, core, coreConfig, shamirSeal, serverConf); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/hashicorp/vault/commit/bc9bbeb21b1f95d1cd6ee4d490e38ec8309c7002", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t// storedBarrierKeysPath is the path used for storing HSM-encrypted unseal keys\n\tstoredBarrierKeysPath = \"core/hsm/barrier-unseal-keys\"\n\t// StoredBarrierKeysPath is the path used for storing HSM-encrypted unseal keys\n\tStoredBarrierKeysPath = \"core/hsm/barrier-unseal-keys\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/hashicorp/vault/commit/bc9bbeb21b1f95d1cd6ee4d490e38ec8309c7002", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 12 ] }, { "input": "\t\tKey: storedBarrierKeysPath,\n\t\tKey: StoredBarrierKeysPath,\n\t// storedBarrierKeysPath is the path used for storing HSM-encrypted unseal keys\n\tstoredBarrierKeysPath = \"core/hsm/barrier-unseal-keys\"\n\t// StoredBarrierKeysPath is the path used for storing HSM-encrypted unseal keys\n\tStoredBarrierKeysPath = \"core/hsm/barrier-unseal-keys\"\n\tpe, err := d.core.physical.Get(ctx, storedBarrierKeysPath)\n\tpe, err := d.core.physical.Get(ctx, StoredBarrierKeysPath)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/bc9bbeb21b1f95d1cd6ee4d490e38ec8309c7002", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 12 ] }, { "input": "\t\tlistingVisibility := ListingVisiblityType(lvString)\n\t\tlistingVisibility := ListingVisibilityType(lvString)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/4ab9eef57a71b45bbf922c82dc2a8b899c7679d9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": "func checkListingVisibility(visibility ListingVisiblityType) error {\nfunc checkListingVisibility(visibility ListingVisibilityType) error {\n\t\tlistingVisibility := ListingVisiblityType(lvString)\n\t\tlistingVisibility := ListingVisibilityType(lvString)\n// ListingVisiblityType represents the types for listing visilibity\ntype ListingVisiblityType string\n// ListingVisibilityType represents the types for listing visibility\ntype ListingVisibilityType string\n\tListingVisibilityHidden ListingVisiblityType = \"\"\n\tListingVisibilityHidden ListingVisibilityType = \"\"\n\tListingVisibilityUnauth ListingVisiblityType = \"unauth\"\n\tListingVisibilityUnauth ListingVisibilityType = \"unauth\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/4ab9eef57a71b45bbf922c82dc2a8b899c7679d9", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 5 ] }, { "input": "// ListingVisiblityType represents the types for listing visilibity\ntype ListingVisiblityType string\n// ListingVisibilityType represents the types for listing visibility\ntype ListingVisibilityType string\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/hashicorp/vault/commit/4ab9eef57a71b45bbf922c82dc2a8b899c7679d9", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 4, 5 ] }, { "input": "\tListingVisibilityHidden ListingVisiblityType = \"\"\n\tListingVisibilityHidden ListingVisibilityType = \"\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/4ab9eef57a71b45bbf922c82dc2a8b899c7679d9", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3, 5 ] }, { "input": "\tListingVisibilityUnauth ListingVisiblityType = \"unauth\"\n\tListingVisibilityUnauth ListingVisibilityType = \"unauth\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/4ab9eef57a71b45bbf922c82dc2a8b899c7679d9", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": "\tDefaultLeaseTTL time.Duration `json:\"default_lease_ttl\" structs:\"default_lease_ttl\" mapstructure:\"default_lease_ttl\"` // Override for global default\n\tMaxLeaseTTL time.Duration `json:\"max_lease_ttl\" structs:\"max_lease_ttl\" mapstructure:\"max_lease_ttl\"` // Override for global default\n\tForceNoCache bool `json:\"force_no_cache\" structs:\"force_no_cache\" mapstructure:\"force_no_cache\"` // Override for global default\n\tPluginName string `json:\"plugin_name,omitempty\" structs:\"plugin_name,omitempty\" mapstructure:\"plugin_name\"`\n\tAuditNonHMACRequestKeys []string `json:\"audit_non_hmac_request_keys,omitempty\" structs:\"audit_non_hmac_request_keys\" mapstructure:\"audit_non_hmac_request_keys\"`\n\tAuditNonHMACResponseKeys []string `json:\"audit_non_hmac_response_keys,omitempty\" structs:\"audit_non_hmac_response_keys\" mapstructure:\"audit_non_hmac_response_keys\"`\n\tListingVisibility ListingVisiblityType `json:\"listing_visibility,omitempty\" structs:\"listing_visibility\" mapstructure:\"listing_visibility\"`\n\tPassthroughRequestHeaders []string `json:\"passthrough_request_headers,omitempty\" structs:\"passthrough_request_headers\" mapstructure:\"passthrough_request_headers\"`\n\tDefaultLeaseTTL time.Duration `json:\"default_lease_ttl\" structs:\"default_lease_ttl\" mapstructure:\"default_lease_ttl\"` // Override for global default\n\tMaxLeaseTTL time.Duration `json:\"max_lease_ttl\" structs:\"max_lease_ttl\" mapstructure:\"max_lease_ttl\"` // Override for global default\n\tForceNoCache bool `json:\"force_no_cache\" structs:\"force_no_cache\" mapstructure:\"force_no_cache\"` // Override for global default\n\tPluginName string `json:\"plugin_name,omitempty\" structs:\"plugin_name,omitempty\" mapstructure:\"plugin_name\"`\n\tAuditNonHMACRequestKeys []string `json:\"audit_non_hmac_request_keys,omitempty\" structs:\"audit_non_hmac_request_keys\" mapstructure:\"audit_non_hmac_request_keys\"`\n\tAuditNonHMACResponseKeys []string `json:\"audit_non_hmac_response_keys,omitempty\" structs:\"audit_non_hmac_response_keys\" mapstructure:\"audit_non_hmac_response_keys\"`\n\tListingVisibility ListingVisibilityType `json:\"listing_visibility,omitempty\" structs:\"listing_visibility\" mapstructure:\"listing_visibility\"`\n\tPassthroughRequestHeaders []string `json:\"passthrough_request_headers,omitempty\" structs:\"passthrough_request_headers\" mapstructure:\"passthrough_request_headers\"`\n\tDefaultLeaseTTL string `json:\"default_lease_ttl\" structs:\"default_lease_ttl\" mapstructure:\"default_lease_ttl\"`\n\tMaxLeaseTTL string `json:\"max_lease_ttl\" structs:\"max_lease_ttl\" mapstructure:\"max_lease_ttl\"`\n\tForceNoCache bool `json:\"force_no_cache\" structs:\"force_no_cache\" mapstructure:\"force_no_cache\"`\n\tPluginName string `json:\"plugin_name,omitempty\" structs:\"plugin_name,omitempty\" mapstructure:\"plugin_name\"`\n\tAuditNonHMACRequestKeys []string `json:\"audit_non_hmac_request_keys,omitempty\" structs:\"audit_non_hmac_request_keys\" mapstructure:\"audit_non_hmac_request_keys\"`\n\tAuditNonHMACResponseKeys []string `json:\"audit_non_hmac_response_keys,omitempty\" structs:\"audit_non_hmac_response_keys\" mapstructure:\"audit_non_hmac_response_keys\"`\n\tListingVisibility ListingVisiblityType `json:\"listing_visibility,omitempty\" structs:\"listing_visibility\" mapstructure:\"listing_visibility\"`\n\tPassthroughRequestHeaders []string `json:\"passthrough_request_headers,omitempty\" structs:\"passthrough_request_headers\" mapstructure:\"passthrough_request_headers\"`\n\tDefaultLeaseTTL string `json:\"default_lease_ttl\" structs:\"default_lease_ttl\" mapstructure:\"default_lease_ttl\"`\n\tMaxLeaseTTL string `json:\"max_lease_ttl\" structs:\"max_lease_ttl\" mapstructure:\"max_lease_ttl\"`\n\tForceNoCache bool `json:\"force_no_cache\" structs:\"force_no_cache\" mapstructure:\"force_no_cache\"`\n\tPluginName string `json:\"plugin_name,omitempty\" structs:\"plugin_name,omitempty\" mapstructure:\"plugin_name\"`\n\tAuditNonHMACRequestKeys []string `json:\"audit_non_hmac_request_keys,omitempty\" structs:\"audit_non_hmac_request_keys\" mapstructure:\"audit_non_hmac_request_keys\"`\n\tAuditNonHMACResponseKeys []string `json:\"audit_non_hmac_response_keys,omitempty\" structs:\"audit_non_hmac_response_keys\" mapstructure:\"audit_non_hmac_response_keys\"`\n\tListingVisibility ListingVisibilityType `json:\"listing_visibility,omitempty\" structs:\"listing_visibility\" mapstructure:\"listing_visibility\"`\n\tPassthroughRequestHeaders []string `json:\"passthrough_request_headers,omitempty\" structs:\"passthrough_request_headers\" mapstructure:\"passthrough_request_headers\"`\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/hashicorp/vault/commit/4ab9eef57a71b45bbf922c82dc2a8b899c7679d9", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "func NewPolicyStore(ctx context.Context, baseView *BarrierView, system logical.SystemView, logger log.Logger) *PolicyStore {\nfunc NewPolicyStore(ctx context.Context, core *Core, baseView *BarrierView, system logical.SystemView, logger log.Logger) *PolicyStore {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/2769b9fc8f54d29fa696bbd55385b5716e50b4a0", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "\tc.policyStore = NewPolicyStore(ctx, c.systemBarrierView, sysView, c.logger)\n\tc.policyStore = NewPolicyStore(ctx, c, c.systemBarrierView, sysView, c.logger)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/2769b9fc8f54d29fa696bbd55385b5716e50b4a0", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": "\tp := NewPolicyStore(context.Background(), view, logical.TestSystemView(), logformat.NewVaultLogger(log.LevelTrace))\n\tp := NewPolicyStore(context.Background(), nil, view, logical.TestSystemView(), logformat.NewVaultLogger(log.LevelTrace))\nfunc NewPolicyStore(ctx context.Context, baseView *BarrierView, system logical.SystemView, logger log.Logger) *PolicyStore {\nfunc NewPolicyStore(ctx context.Context, core *Core, baseView *BarrierView, system logical.SystemView, logger log.Logger) *PolicyStore {\n\tc.policyStore = NewPolicyStore(ctx, c.systemBarrierView, sysView, c.logger)\n\tc.policyStore = NewPolicyStore(ctx, c, c.systemBarrierView, sysView, c.logger)\n\tp := NewPolicyStore(context.Background(), view, sysView, logformat.NewVaultLogger(log.LevelTrace))\n\tp := NewPolicyStore(context.Background(), nil, view, sysView, logformat.NewVaultLogger(log.LevelTrace))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/2769b9fc8f54d29fa696bbd55385b5716e50b4a0", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": "\tp := NewPolicyStore(context.Background(), view, sysView, logformat.NewVaultLogger(log.LevelTrace))\n\tp := NewPolicyStore(context.Background(), nil, view, sysView, logformat.NewVaultLogger(log.LevelTrace))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/2769b9fc8f54d29fa696bbd55385b5716e50b4a0", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": "\t\tfmt.Printf(\"Password (will be hidden): \")\n\t\tfmt.Fprintf(os.Stderr, \"Password (will be hidden): \")\n\t\tfmt.Printf(\"Password (will be hidden): \")\n\t\tfmt.Fprintf(os.Stderr, \"Password (will be hidden): \")\n\t\tfmt.Printf(\"Password (will be hidden): \")\n\t\tfmt.Fprintf(os.Stderr, \"Password (will be hidden): \")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/4ddd1f2668381fa55e3c184c4a6818120edd12aa", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 6 ] }, { "input": "\tmountPart := fmt.Sprintf(\"'%s'\", mountType)\n\tmountTypeOutput := fmt.Sprintf(\"'%s'\", mountType)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/82c5118500d7b75dfdf8493726fb8d649594b46c", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\t\tmountPart = fmt.Sprintf(\"plugin '%s'\", pluginName)\n\t\tmountTypeOutput = fmt.Sprintf(\"plugin '%s'\", pluginName)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/82c5118500d7b75dfdf8493726fb8d649594b46c", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\t\tmountPart, path))\n\t\tmountTypeOutput, path))\n\tmountPart := fmt.Sprintf(\"'%s'\", mountType)\n\tmountTypeOutput := fmt.Sprintf(\"'%s'\", mountType)\n\t\tmountPart = fmt.Sprintf(\"plugin '%s'\", pluginName)\n\t\tmountTypeOutput = fmt.Sprintf(\"plugin '%s'\", pluginName)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/82c5118500d7b75dfdf8493726fb8d649594b46c", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\t\tAcceptanceTest: true,\n\t\tPreCheck: func() { testAccPreCheck(t) },\n\t\tBackend: b,\n\t\tPreCheck: func() { testAccPreCheck(t) },\n\t\tBackend: b,\n\t\tAcceptanceTest: true,\n\t\tPreCheck: func() { testAccPreCheck(t) },\n\t\tBackend: b,\n\t\tPreCheck: func() { testAccPreCheck(t) },\n\t\tBackend: b,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/a2a0b44d7952ea4f2a2b662645abe32229f9058f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tif mw.logger.IsTrace() {\n\t\tdefer func(then time.Time) {\n\t\t\tmw.logger.Trace(\"database\", \"operation\", \"CreateUser\", \"status\", \"finished\", \"type\", mw.typeStr, \"err\", err, \"took\", time.Since(then))\n\t\t}(time.Now())\n\tdefer func(then time.Time) {\n\t\tmw.logger.Trace(\"database\", \"operation\", \"CreateUser\", \"status\", \"finished\", \"type\", mw.typeStr, \"err\", err, \"took\", time.Since(then))\n\t}(time.Now())\n\tif mw.logger.IsTrace() {\n\t\tdefer func(then time.Time) {\n\t\t\tmw.logger.Trace(\"database\", \"operation\", \"Close\", \"status\", \"finished\", \"type\", mw.typeStr, \"err\", err, \"took\", time.Since(then))\n\t\t}(time.Now())\n\tdefer func(then time.Time) {\n\t\tmw.logger.Trace(\"database\", \"operation\", \"Close\", \"status\", \"finished\", \"type\", mw.typeStr, \"err\", err, \"took\", time.Since(then))\n\t}(time.Now())\n\tif mw.logger.IsTrace() {\n\t\tdefer func(then time.Time) {\n\t\t\tmw.logger.Trace(\"database\", \"operation\", \"RenewUser\", \"status\", \"finished\", \"type\", mw.typeStr, \"err\", err, \"took\", time.Since(then))\n\t\t}(time.Now())\n\tdefer func(then time.Time) {\n\t\tmw.logger.Trace(\"database\", \"operation\", \"RenewUser\", \"status\", \"finished\", \"type\", mw.typeStr, \"err\", err, \"took\", time.Since(then))\n\t}(time.Now())\n\tif mw.logger.IsTrace() {\n\t\tdefer func(then time.Time) {\n\t\t\tmw.logger.Trace(\"database\", \"operation\", \"RevokeUser\", \"status\", \"finished\", \"type\", mw.typeStr, \"err\", err, \"took\", time.Since(then))\n\t\t}(time.Now())\n\tdefer func(then time.Time) {\n\t\tmw.logger.Trace(\"database\", \"operation\", \"RevokeUser\", \"status\", \"finished\", \"type\", mw.typeStr, \"err\", err, \"took\", time.Since(then))\n\t}(time.Now())\n\tif mw.logger.IsTrace() {\n\t\tdefer func(then time.Time) {\n\t\t\tmw.logger.Trace(\"database\", \"operation\", \"Initialize\", \"status\", \"finished\", \"type\", mw.typeStr, \"verify\", verifyConnection, \"err\", err, \"took\", time.Since(then))\n\t\t}(time.Now())\n\tdefer func(then time.Time) {\n\t\tmw.logger.Trace(\"database\", \"operation\", \"Initialize\", \"status\", \"finished\", \"type\", mw.typeStr, \"verify\", verifyConnection, \"err\", err, \"took\", time.Since(then))\n\t}(time.Now())\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/hashicorp/vault/commit/60753dcf129fe81e891da301e7fa08a73738c371", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 2, 4, 6 ] }, { "input": "\t\tmw.logger.Trace(\"database\", \"operation\", \"CreateUser\", \"status\", \"started\", \"type\", mw.typeStr)\n\t}\n\tmw.logger.Trace(\"database\", \"operation\", \"CreateUser\", \"status\", \"started\", \"type\", mw.typeStr)\n\t\tmw.logger.Trace(\"database\", \"operation\", \"Close\", \"status\", \"started\", \"type\", mw.typeStr)\n\t}\n\tmw.logger.Trace(\"database\", \"operation\", \"Close\", \"status\", \"started\", \"type\", mw.typeStr)\n\t\tmw.logger.Trace(\"database\", \"operation\", \"RenewUser\", \"status\", \"started\", mw.typeStr)\n\t}\n\tmw.logger.Trace(\"database\", \"operation\", \"RenewUser\", \"status\", \"started\", mw.typeStr)\n\t\tmw.logger.Trace(\"database\", \"operation\", \"RevokeUser\", \"status\", \"started\", \"type\", mw.typeStr)\n\t}\n\tmw.logger.Trace(\"database\", \"operation\", \"RevokeUser\", \"status\", \"started\", \"type\", mw.typeStr)\n\t\tmw.logger.Trace(\"database\", \"operation\", \"Initialize\", \"status\", \"started\", \"type\", mw.typeStr)\n\t}\n\tmw.logger.Trace(\"database\", \"operation\", \"Initialize\", \"status\", \"started\", \"type\", mw.typeStr)\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/hashicorp/vault/commit/60753dcf129fe81e891da301e7fa08a73738c371", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 3, 5, 7 ] }, { "input": "type Wrapper interface {\ntype RunnerUtil interface {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/hashicorp/vault/commit/b87f8a13ed1146de9b97fe67d2cd359a6af97a12", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4, 5, 6 ] }, { "input": "type LookWrapper interface {\ntype LookRunnerUtil interface {\nfunc PluginFactory(pluginName string, sys pluginutil.LookWrapper, logger log.Logger) (Database, error) {\nfunc PluginFactory(pluginName string, sys pluginutil.LookRunnerUtil, logger log.Logger) (Database, error) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/hashicorp/vault/commit/b87f8a13ed1146de9b97fe67d2cd359a6af97a12", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "\tWrapper\n\tRunnerUtil\nfunc newPluginClient(sys pluginutil.Wrapper, pluginRunner *pluginutil.PluginRunner) (Database, error) {\nfunc newPluginClient(sys pluginutil.RunnerUtil, pluginRunner *pluginutil.PluginRunner) (Database, error) {\ntype Wrapper interface {\ntype RunnerUtil interface {\nfunc (r *PluginRunner) Run(wrapper Wrapper, pluginMap map[string]plugin.Plugin, hs plugin.HandshakeConfig, env []string) (*plugin.Client, error) {\nfunc (r *PluginRunner) Run(wrapper RunnerUtil, pluginMap map[string]plugin.Plugin, hs plugin.HandshakeConfig, env []string) (*plugin.Client, error) {\nfunc WrapServerConfig(sys Wrapper, certBytes []byte, key *ecdsa.PrivateKey) (string, error) {\nfunc WrapServerConfig(sys RunnerUtil, certBytes []byte, key *ecdsa.PrivateKey) (string, error) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/hashicorp/vault/commit/b87f8a13ed1146de9b97fe67d2cd359a6af97a12", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 5, 6 ] }, { "input": "func (r *PluginRunner) Run(wrapper Wrapper, pluginMap map[string]plugin.Plugin, hs plugin.HandshakeConfig, env []string) (*plugin.Client, error) {\nfunc (r *PluginRunner) Run(wrapper RunnerUtil, pluginMap map[string]plugin.Plugin, hs plugin.HandshakeConfig, env []string) (*plugin.Client, error) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/hashicorp/vault/commit/b87f8a13ed1146de9b97fe67d2cd359a6af97a12", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 4, 6 ] }, { "input": "func WrapServerConfig(sys Wrapper, certBytes []byte, key *ecdsa.PrivateKey) (string, error) {\nfunc WrapServerConfig(sys RunnerUtil, certBytes []byte, key *ecdsa.PrivateKey) (string, error) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/hashicorp/vault/commit/b87f8a13ed1146de9b97fe67d2cd359a6af97a12", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 4, 5 ] }, { "input": "\t\t\t\tstmt, err := db.Prepare(\"SELECT DISTINCT schemaname FROM pg_tables WHERE has_table_privilege($1, 'information_schema.role_column_grants', 'select');\",\n\t\t\t\t\td.Username)\n\t\t\t\tstmt, err := db.Prepare(\"SELECT DISTINCT schemaname FROM pg_tables WHERE has_table_privilege($1, 'information_schema.role_column_grants', 'select');\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/hashicorp/vault/commit/f66cd755831e940dbe7d01395e03467f43e68eec", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\trows, err := stmt.Query()\n\t\t\t\trows, err := stmt.Query(d.Username)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/f66cd755831e940dbe7d01395e03467f43e68eec", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\tstmt, err := db.Prepare(\"SELECT DISTINCT table_schema FROM information_schema.role_column_grants WHERE grantee=$1;\", username)\n\tstmt, err := db.Prepare(\"SELECT DISTINCT table_schema FROM information_schema.role_column_grants WHERE grantee=$1;\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/hashicorp/vault/commit/f66cd755831e940dbe7d01395e03467f43e68eec", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\trows, err := stmt.Query()\n\trows, err := stmt.Query(username)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/f66cd755831e940dbe7d01395e03467f43e68eec", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "\treturn Backend().Setup(conf)\n\treturn Backend(conf).Setup(conf)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/ccf36b81f1cc9471b0a6e93c9ae30466aefb3030", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "func Backend() *backend {\nfunc Backend(conf *logical.BackendConfig) *backend {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/ccf36b81f1cc9471b0a6e93c9ae30466aefb3030", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to revoke entry: %v\", err)\n\tif err != nil || (resp != nil && resp.IsError()) {\n\t\treturn fmt.Errorf(\"failed to revoke entry: resp:%#v err:%s\", resp, err)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0037313432835820895, "commit_url": "https://github.com/hashicorp/vault/commit/41aebe2dbaf3529cef16f8a0fc47c1bba8a21d00", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to renew entry: %v\", err)\n\tif err != nil || (resp != nil && resp.IsError()) {\n\t\treturn nil, fmt.Errorf(\"failed to renew entry: resp:%#v err:%s\", resp, err)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0037313432835820895, "commit_url": "https://github.com/hashicorp/vault/commit/41aebe2dbaf3529cef16f8a0fc47c1bba8a21d00", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tif signingBundle.Certificate.MaxPathLen == 0 {\n\t\t\treturn nil, certutil.UserError{Err: \"signing CA has a max path length of zero\"}\n\t\t}\n\t\t\tcase signingBundle.Certificate.MaxPathLen == 0:\n\t\t\t\treturn nil, certutil.UserError{Err: \"signing CA has a max path length of zero\"}\n\t\t\tcase signingBundle.Certificate.MaxPathLen == 0 &&\n\t\t\t\tsigningBundle.Certificate.MaxPathLenZero:\n\t\t\t\t// The signing function will ensure that we do not issue a CA cert\n\t\t\t\tcreationBundle.MaxPathLength = 0\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/636fad01804909457257e8b5024b8ac596a27aa6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tresp.AddWarning(\"Max path length of the generated certificate is zero\")\n\t\tresp.AddWarning(\"Max path length of the generated certificate is zero. This certificate cannot be used to issue intermediate CA certificates.\")\n\t\tresp.AddWarning(\"Max path length of the signed certificate is zero\")\n\t\tresp.AddWarning(\"Max path length of the signed certificate is zero. This certificate cannot be used to issue intermediate CA certificates.\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/636fad01804909457257e8b5024b8ac596a27aa6", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tparsedBundle, err := signCert(b, role, signingBundle, true, req, data)\n\tuseCSRValues := data.Get(\"use_csr_subject\").(bool)\n\n\tparsedBundle, err := signCert(b, role, signingBundle, true, useCSRValues, req, data)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/a093508ceb36158823417f10bd0607c6a8980387", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tparsedBundle, err = signCert(b, role, signingBundle, false, req, data)\n\t\tparsedBundle, err = signCert(b, role, signingBundle, false, false, req, data)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/hashicorp/vault/commit/a093508ceb36158823417f10bd0607c6a8980387", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\ttestLoginWrite(t, login_data, expectedTTL1.Nanoseconds()),\n\t\t\ttestLoginWrite(t, login_data, expectedTTL1.Nanoseconds(), false),\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/e47b2838a0d9d9f951ef082620fb34a10a3cd361", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\t\t\ttestLoginWrite(t, login_data, expectedTTL2.Nanoseconds()),\n\t\t\ttestLoginWrite(t, login_data, expectedTTL2.Nanoseconds(), false),\n\t\t\ttestConfigWrite(t, config_data3),\n\t\t\ttestLoginWrite(t, login_data, 0, true),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/hashicorp/vault/commit/e47b2838a0d9d9f951ef082620fb34a10a3cd361", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "func testLoginWrite(t *testing.T, d map[string]interface{}, expectedTTL int64) logicaltest.TestStep {\nfunc testLoginWrite(t *testing.T, d map[string]interface{}, expectedTTL int64, expectFail bool) logicaltest.TestStep {\n\t\t\ttestLoginWrite(t, login_data, expectedTTL1.Nanoseconds()),\n\t\t\ttestLoginWrite(t, login_data, expectedTTL1.Nanoseconds(), false),\n\t\t\ttestLoginWrite(t, login_data, expectedTTL2.Nanoseconds()),\n\t\t\ttestLoginWrite(t, login_data, expectedTTL2.Nanoseconds(), false),\n\t\t\ttestConfigWrite(t, config_data3),\n\t\t\ttestLoginWrite(t, login_data, 0, true),\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/e47b2838a0d9d9f951ef082620fb34a10a3cd361", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\tu, err := user.Current()\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"error getting current username: '%s'\", err))\n\ttestUserName := os.Getenv(\"VAULT_SSHTEST_USER\")\n\tif len(testUserName) == 0 {\n\t\tpanic(\"VAULT_SSHTEST_USER must be set to the desired user\")\n\tu, err := user.Current()\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"Error getting current username: '%s'\", err))\n\ttestUserName := os.Getenv(\"VAULT_SSHTEST_USER\")\n\tif len(testUserName) == 0 {\n\t\tpanic(\"VAULT_SSHTEST_USER must be set to the desired user\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/5088eb322c299f9100cf90bb37dc05f3721f3476", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": "\ttestUserName = u.Username\n\ttestAdminUser = u.Username\n\ttestAdminUser = testUserName\n\ttestUserName = u.Username\n\ttestAdminUser = u.Username\n\ttestAdminUser = testUserName\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/5088eb322c299f9100cf90bb37dc05f3721f3476", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": "\tcontext := d.Get(\"context\").(string)\n\n\t// Decode the context if any\n\tcontextRaw := d.Get(\"context\").(string)\n\tvar context []byte\n\tif len(contextRaw) != 0 {\n\t\tvar err error\n\t\tcontext, err = base64.StdEncoding.DecodeString(contextRaw)\n\t\tif err != nil {\n\t\t\treturn logical.ErrorResponse(\"failed to decode context as base64\"), logical.ErrInvalidRequest\n\t\t}\n\t}\n\tcontext := d.Get(\"context\").(string)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/f2c7ba9357366a1a8b8007b90293f1b06367a126", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\tkey, err := p.DeriveKey([]byte(context))\n\tkey, err := p.DeriveKey(context)\n\tkey, err := p.DeriveKey([]byte(context))\n\tkey, err := p.DeriveKey(context)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/f2c7ba9357366a1a8b8007b90293f1b06367a126", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "\treq2.Data[\"increment\"] = 100\n\treq2.Data[\"increment\"] = \"100s\"\n\treq.Data[\"increment\"] = \"3600\"\n\treq.Data[\"increment\"] = \"3600s\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/81df0d6e4971bcbcb2aa74e680248dbf4aca15ad", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tRenew: LeaseExtend(0, 0),\n\t\tRenew: LeaseExtend(0, 0, false),\nfunc LeaseExtend(max, maxSession time.Duration) OperationFunc {\n//\n// maxFromLease controls if the maximum renewal period comes from the existing\n// lease. This means the value of `max` will be replaced with the existing\n// lease duration.\nfunc LeaseExtend(max, maxSession time.Duration, maxFromLease bool) OperationFunc {\n\t\tcallback := LeaseExtend(tc.Max, tc.MaxSession)\n\t\tcallback := LeaseExtend(tc.Max, tc.MaxSession, tc.MaxFromLease)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/daf94d67217466c43c0b02ceda29debdab69204a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 6 ] }, { "input": "func LeaseExtend(max, maxSession time.Duration) OperationFunc {\n//\n// maxFromLease controls if the maximum renewal period comes from the existing\n// lease. This means the value of `max` will be replaced with the existing\n// lease duration.\nfunc LeaseExtend(max, maxSession time.Duration, maxFromLease bool) OperationFunc {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/vault/commit/daf94d67217466c43c0b02ceda29debdab69204a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 6 ] }, { "input": "\t\tcallback := LeaseExtend(tc.Max, tc.MaxSession)\n\t\tcallback := LeaseExtend(tc.Max, tc.MaxSession, tc.MaxFromLease)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/vault/commit/daf94d67217466c43c0b02ceda29debdab69204a", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "\tout, err := req.View.Get(req.Path)\n\tout, err := req.Storage.Get(req.Path)\n\tif err := req.View.Put(entry); err != nil {\n\tif err := req.Storage.Put(entry); err != nil {\n\tif err := req.View.Delete(req.Path); err != nil {\n\tif err := req.Storage.Delete(req.Path); err != nil {\n\tkeys, err := req.View.List(req.Path)\n\tkeys, err := req.Storage.List(req.Path)\n\tout, err := req.View.Get(\"foo\")\n\tout, err := req.Storage.Get(\"foo\")\n\treq2.View = req.View\n\treq2.Storage = req.Storage\n\treq2.View = req.View\n\treq2.Storage = req.Storage\n\treq3.View = req.View\n\treq3.Storage = req.Storage\n\treq2.View = req.View\n\treq2.Storage = req.Storage\n\treq.View = me.view\n\treq.Storage = me.view\n\t\treq.View = nil\n\t\treq.Storage = nil\n\tif req.View == nil {\n\tif req.Storage == nil {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9444444444444444, "commit_url": "https://github.com/hashicorp/vault/commit/5ce1b65e5dd61fa9b5a2c39ef1ab54af2ec30f1a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5, 6, 7, 8, 9, 12, 13, 14 ] }, { "input": "\tif err := req.View.Put(entry); err != nil {\n\tif err := req.Storage.Put(entry); err != nil {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9444444444444444, "commit_url": "https://github.com/hashicorp/vault/commit/5ce1b65e5dd61fa9b5a2c39ef1ab54af2ec30f1a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 5, 6, 7, 8, 9, 12, 13, 14 ] }, { "input": "\tif err := req.View.Delete(req.Path); err != nil {\n\tif err := req.Storage.Delete(req.Path); err != nil {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9444444444444444, "commit_url": "https://github.com/hashicorp/vault/commit/5ce1b65e5dd61fa9b5a2c39ef1ab54af2ec30f1a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 5, 6, 7, 8, 9, 12, 13, 14 ] }, { "input": "\tkeys, err := req.View.List(req.Path)\n\tkeys, err := req.Storage.List(req.Path)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9444444444444444, "commit_url": "https://github.com/hashicorp/vault/commit/5ce1b65e5dd61fa9b5a2c39ef1ab54af2ec30f1a", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 5, 6, 7, 8, 9, 12, 13, 14 ] }, { "input": "\tout, err := req.View.Get(\"foo\")\n\tout, err := req.Storage.Get(\"foo\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9444444444444444, "commit_url": "https://github.com/hashicorp/vault/commit/5ce1b65e5dd61fa9b5a2c39ef1ab54af2ec30f1a", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 6, 7, 8, 9, 12, 13, 14 ] }, { "input": "\treq2.View = req.View\n\treq2.Storage = req.Storage\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/hashicorp/vault/commit/5ce1b65e5dd61fa9b5a2c39ef1ab54af2ec30f1a", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 7, 8, 9, 12, 13, 14 ] }, { "input": "\treq.View = me.view\n\treq.Storage = me.view\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9444444444444444, "commit_url": "https://github.com/hashicorp/vault/commit/5ce1b65e5dd61fa9b5a2c39ef1ab54af2ec30f1a", "target_edit_idx": 12, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 13, 14 ] }, { "input": "\t\treq.View = nil\n\t\treq.Storage = nil\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9444444444444444, "commit_url": "https://github.com/hashicorp/vault/commit/5ce1b65e5dd61fa9b5a2c39ef1ab54af2ec30f1a", "target_edit_idx": 13, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 12, 14 ] }, { "input": "\tif req.View == nil {\n\tif req.Storage == nil {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9444444444444444, "commit_url": "https://github.com/hashicorp/vault/commit/5ce1b65e5dd61fa9b5a2c39ef1ab54af2ec30f1a", "target_edit_idx": 14, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 12, 13 ] }, { "input": "\t\t\tdlqReason.String(),\n\t\t\tfmt.Sprintf(\"%s (%s)\", reason, stoppedRetyingReason),\n\t\tdlqReason.String(),\n\t\tfmt.Sprintf(\"%s (%s)\", reason, stoppedRetyingReason),\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/1f725df2ac73572914f239eeef416c54d13b3cd0", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\tdev.knobs.skipDoctorCheck = true\n\t\t\tdev.knobs.skipCacheCheckDuringBuild = true\n\t\t\tdev.knobs.skipDoctorCheck = true\n\t\t\tdev.knobs.skipCacheCheckDuringBuild = true\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/a6bb603d79ed49bd6c56f0f22cebba3f1591dbe3", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\texisting = append(existing, replicas(roachpb.StoreID(i+1))...)\n\t\t\t\tstoreID := roachpb.StoreID(i + 1)\n\t\t\t\texisting = append(existing, replicas(roachpb.StoreID(i+1))...)\n\t\t\t\tstoreID := roachpb.StoreID(i + 1)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/2025c447a570610e348a025235061bfce49df6f4", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\t\t\tStoreID: roachpb.StoreID(i + 1),\n\t\t\t\t\tStoreID: storeID,\n\t\t\t\t\tStoreID: roachpb.StoreID(i + 1),\n\t\t\t\t\tStoreID: storeID,\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/2025c447a570610e348a025235061bfce49df6f4", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tName: \"pop\",\n\t\tOwner: registry.OwnerSQLFoundations,\n\t\tCluster: r.MakeClusterSpec(1),\n\t\tLeases: registry.MetamorphicLeases,\n\t\tCompatibleClouds: registry.AllExceptAWS,\n\t\tName: \"pop\",\n\t\tOwner: registry.OwnerSQLFoundations,\n\t\tCluster: r.MakeClusterSpec(1),\n\t\tLeases: registry.MetamorphicLeases,\n\t\t// This test requires custom ports but service registration is\n\t\t// currently only supported on GCE.\n\t\tCompatibleClouds: registry.OnlyGCE,\n\t\tName: \"rust-postgres\",\n\t\tOwner: registry.OwnerSQLFoundations,\n\t\tCluster: r.MakeClusterSpec(1, spec.CPU(16)),\n\t\tLeases: registry.MetamorphicLeases,\n\t\tCompatibleClouds: registry.AllExceptAWS,\n\t\tName: \"rust-postgres\",\n\t\tOwner: registry.OwnerSQLFoundations,\n\t\tCluster: r.MakeClusterSpec(1, spec.CPU(16)),\n\t\tLeases: registry.MetamorphicLeases,\n\t\t// This test requires custom ports but service registration is\n\t\t// currently only supported on GCE.\n\t\tCompatibleClouds: registry.OnlyGCE,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/067113056850a1737fad5a4e67e8f3ce01e4b30c", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": "\t\t\t\t\t\t\t\t}, \"test\"), true\n\t\t\t\t\t\t\t\t}, upgrade.RestoreActionNotRequired(\"test\"),\n\t\t\t\t\t\t\t), true\n\t\t\t\t\t\t\t\t}, \"test\"), true\n\t\t\t\t\t\t\t\t}, upgrade.RestoreActionNotRequired(\"test\"),\n\t\t\t\t\t\t\t), true\n\t\t\t\t\t}, \"test\"), true\n\t\t\t\t\t},\n\t\t\t\t\tupgrade.RestoreActionNotRequired(\"test\"),\n\t\t\t\t), true\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/c8af6acdd0aa82baf6f7100cb16d473cc27be857", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\tambientCtx, stopper, st, nil, kvcoord.DistSenderMetrics{})\n\t\tambientCtx, stopper, st, nil, kvcoord.MakeDistSenderMetrics())\n\t\tambientCtx, stopper, st, nil, kvcoord.DistSenderMetrics{})\n\t\tambientCtx, stopper, st, nil, kvcoord.MakeDistSenderMetrics())\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/1df21ee3844ec542ffdb4ef955b514d33adea505", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tRangefeedBudgetFactory: rangeReedBudgetFactory,\n\t\tRangefeedBudgetFactory: rangeFeedBudgetFactory,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/3df5f2c9b1bf280e7918c197725250871b4b3776", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": "\t\tEventHandler: &circuit.EventLogger{Log: func(redact.StringBuilder) {}},\n\t\tEventHandler: &EventLogger{Log: func(redact.StringBuilder) {}},\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/4c946991d523e9583b915fb0e27984a03942cc64", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\t\t\t0 /* chunkSize */, 0 /* limit */)\n\t\t\t\t\t0 /* chunkSize */, 0 /* limit */, 0, /* numSameAggs */\n\t\t\t\t)\n\t\t\t\t\t\t0 /* chunkSize */, 0 /* limit */)\n\t\t\t\t\t\t0 /* chunkSize */, 0 /* limit */, 0, /* numSameAggs */\n\t\t\t\t\t)\n\t\t\t\t\t0 /* chunkSize */, 0 /* limit */)\n\t\t\t\t\t0 /* chunkSize */, 0 /* limit */, 0, /* numSameAggs */\n\t\t\t\t)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d5c435386d5250c2a0afa117b452a8acd593befc", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": "\t\t\t\t\t0 /* distinctProb */, numInputRows, 0 /* chunkSize */, 0 /* limit */)\n\t\t\t\t\t0 /* distinctProb */, numInputRows, 0, /* chunkSize */\n\t\t\t\t\t0 /* limit */, 0, /* numSameAggs */\n\t\t\t\t)\n\t\t\t\t\t0 /* distinctProb */, numInputRows, 0 /* chunkSize */, 0 /* limit */)\n\t\t\t\t\t0 /* distinctProb */, numInputRows, 0, /* chunkSize */\n\t\t\t\t\t0 /* limit */, 0, /* numSameAggs */\n\t\t\t\t)\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d5c435386d5250c2a0afa117b452a8acd593befc", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\tkvcoord.WithMuxRangeFeed(),\n\t\tkvcoord.WithMuxRangeFeed(),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/9530d1adb5ae5c6136455178617c56201deb443b", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "\turl, cleanup := sqlutils.PGUrl(t, s.AdvSQLAddr(), \"copytest\", url.User(username.RootUser))\n\turl, cleanup := sqlutils.PGUrl(t, srv.ApplicationLayer().AdvSQLAddr(), \"copytest\", url.User(username.RootUser))\n\turl, cleanup := sqlutils.PGUrl(t, s.AdvSQLAddr(), \"copytest\", url.User(username.RootUser))\n\turl, cleanup := sqlutils.PGUrl(t, s.ApplicationLayer().AdvSQLAddr(), \"copytest\", url.User(username.RootUser))\n\turl, cleanup := sqlutils.PGUrl(t, s.AdvSQLAddr(), \"copytest\", url.User(username.RootUser))\n\turl, cleanup := sqlutils.PGUrl(t, srv.ApplicationLayer().AdvSQLAddr(), \"copytest\", url.User(username.RootUser))\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/cockroachdb/cockroach/commit/90805ecd0eab74cdc3d76ef4836d478b8ec688a9", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 6 ] }, { "input": "\trequire.NoError(c.T, c.SrcCluster.Server(0).WaitForTenantCapabilities(ctx, c.Args.SrcTenantID, map[tenantcapabilities.ID]string{\n\trequire.NoError(c.T, c.SrcCluster.Server(0).TenantController().WaitForTenantCapabilities(ctx, c.Args.SrcTenantID, map[tenantcapabilities.ID]string{\n\trequire.NoError(c.T, c.DestCluster.Server(server).WaitForTenantCapabilities(ctx, c.Args.DestTenantID, map[tenantcapabilities.ID]string{\n\trequire.NoError(c.T, c.DestCluster.Server(server).TenantController().WaitForTenantCapabilities(ctx, c.Args.DestTenantID, map[tenantcapabilities.ID]string{\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/ac974e519ce694e6c320b1b52386a1f93b706ed1", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tctx, n.mcp.Get(), n.config.txOpts,\n\t\tctx, n.mcp.Get(), pgx.TxOptions{},\n\t\tctx, o.mcp.Get(), o.config.txOpts,\n\t\tctx, o.mcp.Get(), pgx.TxOptions{},\n\t\tctx, p.mcp.Get(), p.config.txOpts,\n\t\tctx, p.mcp.Get(), pgx.TxOptions{},\n\t\tctx, s.mcp.Get(), s.config.txOpts,\n\t\tctx, s.mcp.Get(), pgx.TxOptions{},\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/87dce3fe771b860ce702820a519a6295a50866ed", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "func mkPkKey(t *testing.T, tableID descpb.ID, vals ...int) roachpb.Key {\nfunc mkPkKey(t *testing.T, codec keys.SQLCodec, tableID descpb.ID, vals ...int) roachpb.Key {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/eeaacbd7ef60165d5ff386797e0bea9218b8814c", "target_edit_idx": 8, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\ts, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer s.Stopper().Stop(context.Background())\n\tsrv, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer srv.Stopper().Stop(context.Background())\n\ts := srv.ApplicationLayer()\n\ts, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer s.Stopper().Stop(context.Background())\n\tsrv, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer srv.Stopper().Stop(context.Background())\n\ts := srv.ApplicationLayer()\n\ts, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer s.Stopper().Stop(context.Background())\n\tsrv, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer srv.Stopper().Stop(context.Background())\n\ts := srv.ApplicationLayer()\n\ts, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer s.Stopper().Stop(context.Background())\n\tsrv, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer srv.Stopper().Stop(context.Background())\n\ts := srv.ApplicationLayer()\n\ts, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer s.Stopper().Stop(context.Background())\n\tsrv, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer srv.Stopper().Stop(context.Background())\n\ts := srv.ApplicationLayer()\n\ts, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer s.Stopper().Stop(context.Background())\n\tsrv, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer srv.Stopper().Stop(context.Background())\n\ts := srv.ApplicationLayer()\n\ts, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer s.Stopper().Stop(context.Background())\n\tsrv, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer srv.Stopper().Stop(context.Background())\n\ts := srv.ApplicationLayer()\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/eeaacbd7ef60165d5ff386797e0bea9218b8814c", "target_edit_idx": 10, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 11 ] }, { "input": "\ts, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer s.Stopper().Stop(context.Background())\n\tsrv, db, _ := serverutils.StartServer(t, base.TestServerArgs{})\n\tdefer srv.Stopper().Stop(context.Background())\n\ts := srv.ApplicationLayer()\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/eeaacbd7ef60165d5ff386797e0bea9218b8814c", "target_edit_idx": 11, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 10 ] }, { "input": "// newSpanConfigDecoder instantiates a spanConfigDecoder.\nfunc newSpanConfigDecoder() *spanConfigDecoder {\n// NewSpanConfigDecoder instantiates a SpanConfigDecoder.\nfunc NewSpanConfigDecoder() *SpanConfigDecoder {\ntype spanConfigDecoder struct {\ntype SpanConfigDecoder struct {\n\treturn &spanConfigDecoder{\n\treturn &SpanConfigDecoder{\nfunc (sd *spanConfigDecoder) decode(kv roachpb.KeyValue) (spanconfig.Record, error) {\nfunc (sd *SpanConfigDecoder) decode(kv roachpb.KeyValue) (spanconfig.Record, error) {\nfunc (sd *spanConfigDecoder) translateEvent(\nfunc (sd *SpanConfigDecoder) TranslateEvent(\n\treturn newSpanConfigDecoder().decode\n\treturn NewSpanConfigDecoder().decode\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/48ea63115e92a7eed6c4c42f32811e11a27a4aab", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 10, 11, 12, 14 ] }, { "input": "\treturn newSpanConfigDecoder().decode\n\treturn NewSpanConfigDecoder().decode\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/48ea63115e92a7eed6c4c42f32811e11a27a4aab", "target_edit_idx": 14, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\t\t// Test already runs from a tenant.\n\t\t\tDefaultTestTenant: base.TODOTestTenantDisabled,\n\t\t\tDefaultTestTenant: base.TestDoesNotWorkWithSecondaryTenantsButWeDontKnowWhyYet(106821),\n\t\t\t// Test already runs from a tenant.\n\t\t\tDefaultTestTenant: base.TODOTestTenantDisabled,\n\t\t\tDefaultTestTenant: base.TestDoesNotWorkWithSecondaryTenantsButWeDontKnowWhyYet(106821),\n\t\t\t// Test already runs from a tenant.\n\t\t\tDefaultTestTenant: base.TODOTestTenantDisabled,\n\t\t\tDefaultTestTenant: base.TestDoesNotWorkWithSecondaryTenantsButWeDontKnowWhyYet(106821),\n\t\t\t// Test already runs from a tenant.\n\t\t\tDefaultTestTenant: base.TODOTestTenantDisabled,\n\t\t\tDefaultTestTenant: base.TestDoesNotWorkWithSecondaryTenantsButWeDontKnowWhyYet(106821),\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/cockroachdb/cockroach/commit/68ca3ec7fd7a1f2076536fede653e801532d373f", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 11, 7 ] }, { "input": "\t\tkeys.SystemSQLCodec,\n\t\tts.Codec(),\n\t\tkeys.SystemSQLCodec,\n\t\tts.Codec(),\n\t\tkeys.SystemSQLCodec,\n\t\tts.Codec(),\n\t\tkeys.SystemSQLCodec,\n\t\tts.Codec(),\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/68ca3ec7fd7a1f2076536fede653e801532d373f", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 10, 12 ] }, { "input": "\t\t// Helper to read job progress\n\t\tloadProgress := func() jobspb.Progress {\n\t\t\tjobID := jobFeed.JobID()\n\t\t\tjob, err := jobRegistry.LoadJob(context.Background(), jobID)\n\t\t\trequire.NoError(t, err)\n\t\t\treturn job.Progress()\n\t\t}\n\n\t\tloadProgress := func() jobspb.Progress {\n\t\t\tjobID := jobFeed.JobID()\n\t\t\tjob, err := registry.LoadJob(context.Background(), jobID)\n\t\t\trequire.NoError(t, err)\n\t\t\treturn job.Progress()\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/70c51c0a3f9e069b693fe32549f1067452c1c77c", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\tctx, t, c, conn, 1 /* sf */, c.NewMonitor(ctx), c.All(), false, /* disableMergeQueue */\n\t\t\t\tctx, t, c, conn, 1 /* sf */, c.NewMonitor(ctx), c.All(), false /* disableMergeQueue */, false, /* secure */\n\t\tctx, t, c, conn, 1 /* sf */, c.NewMonitor(ctx), c.All(), disableMergeQueue,\n\t\tctx, t, c, conn, 1 /* sf */, c.NewMonitor(ctx), c.All(), disableMergeQueue, false, /* secure */\n\t\t\tctx, t, c, conn, 1 /* sf */, c.NewMonitor(ctx), c.All(), false, /* disableMergeQueue */\n\t\t\tctx, t, c, conn, 1 /* sf */, c.NewMonitor(ctx), c.All(), false /* disableMergeQueue */, secure,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/53e99929b7d7d1d60b7663cde30e8d71f5c8f486", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 3 ] }, { "input": "\t\t\tWaitingTxn: readerGuard.txn,\n\t\t\tWaitingTxn: readerGuard.txnMeta(),\n\t\t\tWaitingTxn: writerGuard.txn,\n\t\t\tWaitingTxn: writerGuard.txnMeta(),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/48ce82e5911b2f53850466450ca6a87b39b514a1", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\treturn qg.guard.txn, false\n\t\treturn qg.guard.txnMeta(), false\n\treturn qg.guard.txn, false\n\treturn qg.guard.txnMeta(), false\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/48ce82e5911b2f53850466450ca6a87b39b514a1", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "1,0,initial-vOpikzTTWxvMqnkpfEIVXgGyhZNDqvpVqpNnHawruAcIVltgbnIEIGmCDJcnkVkfVmAcutkMvRACFuUBPsZTemTDSfZT\n2,0,initial-qMvoPeRiOBXvdVQxhZUfdmehETKPXyBaVWxzMqwiStIkxfoDFygYxIDyXiaVEarcwMboFhBlCAapvKijKAyjEAhRBNZz`,\n1,0,vOpikzTTWxvMqnkpfEIVXgGyhZNDqvpVqpNnHawruAcIVltgbnIEIGmCDJcnkVkfVmAcutkMvRACFuUBPsZTemTDSfZTLdqDkrhj\n2,0,qMvoPeRiOBXvdVQxhZUfdmehETKPXyBaVWxzMqwiStIkxfoDFygYxIDyXiaVEarcwMboFhBlCAapvKijKAyjEAhRBNZzvGuJkQXu`,\n1,0,initial-vOpikzTTWxvMqnkpfEIVXgGyhZNDqvpVqpNnHawruAcIVltgbnIEIGmCDJcnkVkfVmAcutkMvRACFuUBPsZTemTDSfZT\n2,0,initial-qMvoPeRiOBXvdVQxhZUfdmehETKPXyBaVWxzMqwiStIkxfoDFygYxIDyXiaVEarcwMboFhBlCAapvKijKAyjEAhRBNZz\n1,0,vOpikzTTWxvMqnkpfEIVXgGyhZNDqvpVqpNnHawruAcIVltgbnIEIGmCDJcnkVkfVmAcutkMvRACFuUBPsZTemTDSfZTLdqDkrhj\n2,0,qMvoPeRiOBXvdVQxhZUfdmehETKPXyBaVWxzMqwiStIkxfoDFygYxIDyXiaVEarcwMboFhBlCAapvKijKAyjEAhRBNZzvGuJkQXu\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/90a99043d743f74344f40ed317ecf82801bef7e8", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tset[code] = true\n\t\tset[code] = struct{}{}\n\tset[code] = true\n\tset[code] = struct{}{}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/7f9a6cb023fa976727adad8063d4cd28c729e592", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\trng, _ := randutil.NewTestRand()\n\trng := randutil.NewTestRandWithSeed(17)\n\trng, _ := randutil.NewTestRand()\n\trng := randutil.NewTestRandWithSeed(91)\n\trng, _ := randutil.NewTestRand()\n\trng := randutil.NewTestRandWithSeed(41)\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/cockroachdb/cockroach/commit/ada419810cf861594978bc5e997e1be096a7d35e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " v => Duration(v * 1e9),\n v => Duration(v),\n v => Duration(v * 1e9),\n v => Duration(v),\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/cockroachdb/cockroach/commit/3e7273a87f9864293eafaa0cf939819908d4f8ac", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tif userScopes, err := security.GetCertificateUserScope(makeFakeTLSState(t, \"foo\")); err != nil {\n\t\tstate := makeFakeTLSState(t, \"foo\")\n\t\tcert := state.PeerCertificates[0]\n\t\tif userScopes, err := security.GetCertificateUserScope(cert); err != nil {\n\t\tif userScopes, err := security.GetCertificateUserScope(makeFakeTLSState(t, \"foo;bar\")); err != nil {\n\t\tstate := makeFakeTLSState(t, \"foo;bar\")\n\t\tcert := state.PeerCertificates[0]\n\t\tif userScopes, err := security.GetCertificateUserScope(cert); err != nil {\n\t\tif userScopes, err := security.GetCertificateUserScope(makeFakeTLSState(t, \"foo,dns:bar,dns:blah;CA\")); err != nil {\n\t\tstate := makeFakeTLSState(t, \"foo,dns:bar,dns:blah;CA\")\n\t\tcert := state.PeerCertificates[0]\n\t\tif userScopes, err := security.GetCertificateUserScope(cert); err != nil {\n\t\tif userScopes, err := security.GetCertificateUserScope(makeFakeTLSState(t, \"foo;CA\")); err != nil {\n\t\tstate := makeFakeTLSState(t, \"foo;CA\")\n\t\tcert := state.PeerCertificates[0]\n\t\tif userScopes, err := security.GetCertificateUserScope(cert); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/cockroachdb/cockroach/commit/8621e758470fb1c42dd696ba3e23d9c2edacd52d", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 7 ] }, { "input": "\t// One role added to the non-admin user.\n\t// Role option and global privilege added to the non-admin user.\n\t// Two roles added to the non-admin user.\n\t// Two role options and two global privileges added to the non-admin user.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/2a33966db3b94de3db4afe2d0b724439f46cb371", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": "\texpRoles = []string{\"VIEWACTIVITY\"}\n\tdb.Exec(t, fmt.Sprintf(\"GRANT SYSTEM MODIFYCLUSTERSETTING TO %s\", authenticatedUserNameNoAdmin().Normalized()))\n\texpRoles = []string{\"MODIFYCLUSTERSETTING\", \"VIEWACTIVITY\"}\n\texpRoles = []string{\"VIEWACTIVITYREDACTED\"}\n\tdb.Exec(t, fmt.Sprintf(\"REVOKE SYSTEM MODIFYCLUSTERSETTING FROM %s\", authenticatedUserNameNoAdmin().Normalized()))\n\texpRoles = []string{\"CANCELQUERY\", \"VIEWACTIVITYREDACTED\"}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/2a33966db3b94de3db4afe2d0b724439f46cb371", "target_edit_idx": 6, "propagatable_edit_idx": [ 12 ] }, { "input": "\t\treturn nil, nil, nil, err\n\t\tt.Fatal(err)\n\t\treturn nil, nil, nil, err\n\t\tt.Fatal(err)\n\t\treturn nil, nil, nil, err\n\t\tt.Fatal(err)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b2e5a1172377ea612528a7d0bdd7841228d707c0", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": "\t\t\trequire.False(t, foundRedactedMarker, \"unexpectedly found '%q':\\n%s\",\n\t\t\t\tstring(server.TraceRedactedMarker), trace)\n\t\t\trequire.False(t, foundRedactedMarker, \"unexpectedly found '%q':\\n%s\",\n\t\t\t\tstring(server.TraceRedactedMarker), trace)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/f89261dd76554360960fbb91788d9a541ae80ec3", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tbld := execbuilder.New(f, &opc.optimizer, mem, &opc.catalog, mem.RootExpr(), evalCtx, allowAutoCommit)\n\t\tbld = execbuilder.New(f, &opc.optimizer, mem, &opc.catalog, mem.RootExpr(), evalCtx, allowAutoCommit)\n\t\tbld := execbuilder.New(\n\t\t\texplainFactory, &opc.optimizer, mem, &opc.catalog, mem.RootExpr(), evalCtx, allowAutoCommit,\n\t\t)\n\t\tbld = execbuilder.New(explainFactory, &opc.optimizer, mem, &opc.catalog, mem.RootExpr(), evalCtx, allowAutoCommit)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/e0ff12c1c1d03e9688a51e8e00183be221fdc0b0", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tisDDL = bld.IsDDL\n\t\tcontainsFullTableScan = bld.ContainsFullTableScan\n\t\tcontainsFullIndexScan = bld.ContainsFullIndexScan\n\t\tcontainsLargeFullTableScan = bld.ContainsLargeFullTableScan\n\t\tcontainsLargeFullIndexScan = bld.ContainsLargeFullIndexScan\n\t\tcontainsMutation = bld.ContainsMutation\n\t\tplanTop.instrumentation.maxFullScanRows = bld.MaxFullScanRows\n\t\tplanTop.instrumentation.totalScanRows = bld.TotalScanRows\n\t\tplanTop.instrumentation.nanosSinceStatsCollected = bld.NanosSinceStatsCollected\n\t\tplanTop.instrumentation.joinTypeCounts = bld.JoinTypeCounts\n\t\tplanTop.instrumentation.joinAlgorithmCounts = bld.JoinAlgorithmCounts\n\t\tisDDL = bld.IsDDL\n\t\tcontainsFullTableScan = bld.ContainsFullTableScan\n\t\tcontainsFullIndexScan = bld.ContainsFullIndexScan\n\t\tcontainsLargeFullTableScan = bld.ContainsLargeFullTableScan\n\t\tcontainsLargeFullIndexScan = bld.ContainsLargeFullIndexScan\n\t\tcontainsMutation = bld.ContainsMutation\n\t\tplanTop.instrumentation.maxFullScanRows = bld.MaxFullScanRows\n\t\tplanTop.instrumentation.totalScanRows = bld.TotalScanRows\n\t\tplanTop.instrumentation.nanosSinceStatsCollected = bld.NanosSinceStatsCollected\n\t\tplanTop.instrumentation.joinTypeCounts = bld.JoinTypeCounts\n\t\tplanTop.instrumentation.joinAlgorithmCounts = bld.JoinAlgorithmCounts\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/e0ff12c1c1d03e9688a51e8e00183be221fdc0b0", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\tif containsFullTableScan {\n\tif bld.ContainsFullTableScan {\n\tif containsLargeFullTableScan {\n\tif bld.ContainsLargeFullTableScan {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/e0ff12c1c1d03e9688a51e8e00183be221fdc0b0", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": "\tif containsFullIndexScan {\n\tif bld.ContainsFullIndexScan {\n\tif containsLargeFullIndexScan {\n\tif bld.ContainsLargeFullIndexScan {\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/cockroachdb/cockroach/commit/e0ff12c1c1d03e9688a51e8e00183be221fdc0b0", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": "\t\tserverMetrics.OutliersMetrics,\n\t\toutliersRegistry,\n\t\tserverMetrics.OutliersMetrics,\n\t\toutliersRegistry,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/604e52672576692278ed37a83c3f7dea1295fd83", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\toutliers.NewMetrics(),\n\t\toutliers.New(st, outliers.NewMetrics()),\n\t\t\toutliers.NewMetrics(),\n\t\t\toutliers.New(st, outliers.NewMetrics()),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/604e52672576692278ed37a83c3f7dea1295fd83", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\treturn nil, \"\", false\n\t\treturn nil, false\n\t\treturn nil, \"\", false\n\t\treturn nil, false\n\t\treturn nil, \"\", false\n\t\treturn nil, false\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/926d1b8848663c09a2e88511c12ccb5f33db721c", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 6 ] }, { "input": "\tdbVal, _, hasVal := c.conn.GetServerValue(\n\tdbVal, hasVal := c.conn.GetServerValue(\n\tdbVal, _, hasVal := c.conn.GetServerValue(\n\tdbVal, hasVal := c.conn.GetServerValue(\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/926d1b8848663c09a2e88511c12ccb5f33db721c", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\tif spec.Core.JoinReader.LookupColumns != nil || !spec.Core.JoinReader.LookupExpr.Empty() {\n\t\tif !spec.Core.JoinReader.IsIndexJoin() {\n\t\t\tif core.JoinReader.LookupColumns != nil || !core.JoinReader.LookupExpr.Empty() {\n\t\t\tif !core.JoinReader.IsIndexJoin() {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/a97333dfdb2ece5bc05086af9bf8543ed115e94e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tstreamID1: {receiver: RowInboundStreamHandler{consumer}, waitGroup: wg},\n\t\tstreamID1: {receiver: RowInboundStreamHandler{consumer}, onFinish: wg.Done},\n\t\t\t\t\tstreamID: {receiver: RowInboundStreamHandler{consumer}, waitGroup: wg},\n\t\t\t\t\tstreamID: {receiver: RowInboundStreamHandler{consumer}, onFinish: wg.Done},\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/26ef4ec5ff16a3deb2907480f912d495b52c256c", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\treceiver: RowInboundStreamHandler{rc},\n\t\t\twaitGroup: &wg,\n\t\t\treceiver: RowInboundStreamHandler{rc},\n\t\t\tonFinish: wg.Done,\n\t\t\treceiver: RowInboundStreamHandler{rc},\n\t\t\twaitGroup: &wg,\n\t\t\treceiver: RowInboundStreamHandler{rc},\n\t\t\tonFinish: wg.Done,\n\t\t\treceiver: RowInboundStreamHandler{left},\n\t\t\twaitGroup: &wgLeft,\n\t\t\treceiver: RowInboundStreamHandler{left},\n\t\t\tonFinish: wgLeft.Done,\n\t\t\treceiver: RowInboundStreamHandler{right},\n\t\t\twaitGroup: &wgRight,\n\t\t\treceiver: RowInboundStreamHandler{right},\n\t\t\tonFinish: wgRight.Done,\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/cockroachdb/cockroach/commit/26ef4ec5ff16a3deb2907480f912d495b52c256c", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11, 12 ] }, { "input": "\t\t\terr := connManager.ServeWith(ctx, stopper, pgL, func(conn net.Conn) {\n\t\t\terr := connManager.ServeWith(ctx, stopper, pgL, func(ctx context.Context, conn net.Conn) {\n\t\t\t\terr := connManager.ServeWith(ctx, stopper, unixLn, func(conn net.Conn) {\n\t\t\t\terr := connManager.ServeWith(ctx, stopper, unixLn, func(ctx context.Context, conn net.Conn) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/94ec242303660016179e8b3b2fe678a5acc7bc2d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\treturn fmt.Errorf(\"waiting for %v, got %v\", protectedts.ErrNotExists, err)\n\t\treturn errors.NewAssertionErrorWithWrappedErrf(err, \"waiting for ErrNotExists\")\n\t\treturn fmt.Errorf(\"waiting for %v, got %v\", protectedts.ErrNotExists, err)\n\t\treturn errors.NewAssertionErrorWithWrappedErrf(err, \"waiting for ErrNotExists\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/bf60012c117befc03b79e70274f4c8b9daa2d024", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\treturn func(ctx context.Context, f string) bool {\n\treturn func(ctx context.Context, f string) (bool, func()) {\n\treturn func(ctx context.Context, f string) bool {\n\treturn func(ctx context.Context, f string) (bool, func()) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/a42d5c993db17f7722c1ee22c81c474e7fbfc92d", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\treturn strings.Contains(err.Error(), contains)\n\t\treturn strings.Contains(err.Error(), contains), nil\n\t\treturn strings.Contains(err.Error(), contains)\n\t\treturn strings.Contains(err.Error(), contains), nil\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/a42d5c993db17f7722c1ee22c81c474e7fbfc92d", "target_edit_idx": 10, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\t\t\t\t\tLeaseAcquireResultBlockEvent: func(leaseBlockType AcquireBlockType) {\n\t\t\t\t\t\tLeaseAcquireResultBlockEvent: func(leaseBlockType AcquireBlockType, _ descpb.ID) {\n\tLeaseAcquireResultBlockEvent func(leaseBlockType AcquireBlockType)\n\tLeaseAcquireResultBlockEvent func(leaseBlockType AcquireBlockType, id descpb.ID)\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/cockroachdb/cockroach/commit/11b2c96b360c5518b49c98b2813ef9ead6c8e9ef", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\tLeaseAcquireResultBlockEvent: func(_ lease.AcquireBlockType) {\n\t\t\t\t\tatomic.AddInt32(&testAcquisitionBlockCount, 1)\n\t\t\t\tLeaseAcquireResultBlockEvent: func(_ lease.AcquireBlockType, id descpb.ID) {\n\t\t\t\t\tif id > keys.MaxReservedDescID {\n\t\t\t\t\t\tatomic.AddInt32(&testAcquisitionBlockCount, 1)\n\t\t\t\t\t}\n\t\t\t\tLeaseAcquireResultBlockEvent: func(_ lease.AcquireBlockType) {\n\t\t\t\t\tatomic.AddInt32(&testAcquisitionBlockCount, 1)\n\t\t\t\tLeaseAcquireResultBlockEvent: func(_ lease.AcquireBlockType, id descpb.ID) {\n\t\t\t\t\tif id > keys.MaxReservedDescID {\n\t\t\t\t\t\tatomic.AddInt32(&testAcquisitionBlockCount, 1)\n\t\t\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/11b2c96b360c5518b49c98b2813ef9ead6c8e9ef", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tHelp: \"Number of RPCs sent\",\n\t\tHelp: \"Number of replica-addressed RPCs sent\",\n\t\tHelp: \"Number of local RPCs sent\",\n\t\tHelp: \"Number of replica-addressed RPCs sent through the local-server optimization\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d8a217bd76074682a10c3250945630531c9619d6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tName: \"requests.slow.latch\",\n\t\tHelp: \"Number of requests that have been stuck for a long time acquiring latches\",\n\t\tName: \"requests.slow.latch\",\n\t\tHelp: `Number of requests that have been stuck for a long time acquiring latches.\n\nLatches moderate access to the KV keyspace for the purpose of evaluating and\nreplicating commands. A slow latch acquisition attempt is often caused by\nanother request holding and not releasing its latches in a timely manner. This\nin turn can either be caused by a long delay in evaluation (for example, under\nsevere system overload) or by delays at the replication layer.\n\nThis gauge registering a nonzero value usually indicates a serious problem and\nshould be investigated.\n`,\n\t\tName: \"requests.slow.lease\",\n\t\tHelp: \"Number of requests that have been stuck for a long time acquiring a lease\",\n\t\tName: \"requests.slow.lease\",\n\t\tHelp: `Number of requests that have been stuck for a long time acquiring a lease.\n\nThis gauge registering a nonzero value usually indicates range or replica\nunavailability, and should be investigated. In the common case, we also\nexpect to see 'requests.slow.raft' to register a nonzero value, indicating\nthat the lease requests are not getting a timely response from the replication\nlayer.\n`,\n\t\tName: \"requests.slow.raft\",\n\t\tHelp: \"Number of requests that have been stuck for a long time in raft\",\n\t\tName: \"requests.slow.raft\",\n\t\tHelp: `Number of requests that have been stuck for a long time in the replication layer.\n\nAn (evaluated) request has to pass through the replication layer, notably the\nquota pool and raft. If it fails to do so within a highly permissive duration,\nthe gauge is incremented (and decremented again once the request is either\napplied or returns an error).\n\nA nonzero value indicates range or replica unavailability, and should be investigated.\n`,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d8a217bd76074682a10c3250945630531c9619d6", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": "\t\t\t\tif err := c.StopE(ctx, target, withWorkerAction()); err != nil {\n\t\t\t\tif err := c.StopE(ctx, target, option.WithWorkerAction()); err != nil {\n\t\t\t\tif err := c.StartE(ctx, target, withWorkerAction()); err != nil {\n\t\t\t\tif err := c.StartE(ctx, target, option.WithWorkerAction()); err != nil {\n\t\t\t\tif err := c.StartE(tCtx, target, withWorkerAction()); err != nil {\n\t\t\t\tif err := c.StartE(tCtx, target, option.WithWorkerAction()); err != nil {\n\t\t\tif err := c.StartE(ctx, target, withWorkerAction()); err != nil {\n\t\t\tif err := c.StartE(ctx, target, option.WithWorkerAction()); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/07d44f3495978f27a1bd67b7d1ec5f849cb6e0f4", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "\t\tif _, ok := o.(workerAction); ok {\n\t\tif _, ok := o.(option.WorkerAction); ok {\n\t\tif _, ok := o.(workerAction); ok {\n\t\tif _, ok := o.(option.WorkerAction); ok {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/07d44f3495978f27a1bd67b7d1ec5f849cb6e0f4", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t_ = c.RunE(ctx, node, fmt.Sprintf(\"mkdir -p %s\", resultsDirPath))\n\t\tif err := c.RunE(ctx, node, fmt.Sprintf(\"mkdir -p %s\", resultsDirPath)); err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\t_ = c.RunE(ctx, node, fmt.Sprintf(\"mkdir -p %s\", resultsDir))\n\t\tif err := c.RunE(ctx, node, fmt.Sprintf(\"mkdir -p %s\", resultsDir)); err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\t_ = c.RunE(ctx, node, fmt.Sprintf(\"mkdir -p %s\", resultsDir))\n\t\tif err := c.RunE(ctx, node, fmt.Sprintf(\"mkdir -p %s\", resultsDir)); err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/597809a0cf314f1f5c3653fd78bdc7353fca6927", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4 ] }, { "input": "\tdetails := job.Details().(jobspb.CreateStatsDetails)\n\n\tdetails := job.Details().(jobspb.CreateStatsDetails)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/2dfe189402add6f35f2cf0429be90fa777fc9289", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\t\tAttrs: roachpb.Attributes{},\n\t\t\t\tMaxSize: 512 << 20,\n\t\t\t\tUseFileRegistry: true,\n\t\t\t\tExtraOptions: encOptionsBytes,\n\t\t\t\tAttrs: roachpb.Attributes{},\n\t\t\t\tMaxSize: 512 << 20,\n\t\t\t\tUseFileRegistry: true,\n\t\t\t\tEncryptionOptions: encOptionsBytes,\n\t\t\t\tAttrs: roachpb.Attributes{},\n\t\t\t\tMaxSize: 512 << 20,\n\t\t\t\tUseFileRegistry: true,\n\t\t\t\tExtraOptions: encOptionsBytes,\n\t\t\t\tAttrs: roachpb.Attributes{},\n\t\t\t\tMaxSize: 512 << 20,\n\t\t\t\tUseFileRegistry: true,\n\t\t\t\tEncryptionOptions: encOptionsBytes,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/7c86f08d69cae61f6a3f11c77e8519f9240810c9", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tif strings.HasPrefix(stat.Key.Query, \"INSERT INTO t.test VALUES\") {\n\t\tif stat.Key.Query == \"INSERT INTO _ VALUES ($1)\" {\n\t\tif strings.HasPrefix(stat.Key.Query, \"INSERT INTO t.test VALUES\") {\n\t\tif stat.Key.Query == \"INSERT INTO _ VALUES (_)\" {\n\t\tif strings.HasPrefix(stat.Key.Query, \"INSERT INTO t.test VALUES\") {\n\t\tif stat.Key.Query == \"INSERT INTO _ VALUES (_)\" {\n\t\tif strings.HasPrefix(stat.Key.Query, \"INSERT INTO t.test VALUES\") {\n\t\tif stat.Key.Query == \"INSERT INTO _ VALUES (_)\" {\n\t\tif strings.HasPrefix(stat.Key.Query, \"INSERT INTO t.test VALUES\") {\n\t\tif stat.Key.Query == \"INSERT INTO _ VALUES (_)\" {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/71d314926b450fab9415264b1d085221045384a1", "target_edit_idx": 1, "propagatable_edit_idx": [ 11, 9, 3, 5 ] }, { "input": "// ConsultsTimestampCache returns whether the request must consult\n// the timestamp cache to determine whether a mutation is safe at\n// a proposed timestamp or needs to move to a higher timestamp to\n// avoid re-writing history.\nfunc ConsultsTimestampCache(args Request) bool {\n\treturn (args.flags() & consultsTSCache) != 0\n}\n\n// ConsultsTimestampCache returns whether the request must consult\n// the timestamp cache to determine whether a mutation is safe at\n// a proposed timestamp or needs to move to a higher timestamp to\n// avoid re-writing history.\nfunc (ba *BatchRequest) ConsultsTimestampCache() bool {\n\treturn ba.hasFlag(consultsTSCache)\n}\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b9560575dc804e10c1e27a99f28dfede0079e5c5", "target_edit_idx": 4, "propagatable_edit_idx": [ 11 ] }, { "input": "\treturn isWrite | isTxn | isLocking | isIntentWrite | consultsTSCache | canBackpressure\n\treturn isWrite | isTxn | isLocking | isIntentWrite | canBackpressure\n\treturn isRead | isWrite | isTxn | isLocking | isIntentWrite | consultsTSCache | canBackpressure\n\treturn isRead | isWrite | isTxn | isLocking | isIntentWrite | canBackpressure\n\treturn isWrite | isTxn | isLocking | isIntentWrite | consultsTSCache | canBackpressure\n\treturn isWrite | isTxn | isLocking | isIntentWrite | canBackpressure\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b9560575dc804e10c1e27a99f28dfede0079e5c5", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 9 ] }, { "input": "\treturn isRead | isWrite | isTxn | isLocking | isIntentWrite | consultsTSCache | updatesTSCache | updatesTSCacheOnErr | canBackpressure\n\treturn isRead | isWrite | isTxn | isLocking | isIntentWrite | updatesTSCache | updatesTSCacheOnErr | canBackpressure\n\treturn isRead | isWrite | isTxn | isLocking | isIntentWrite | consultsTSCache | updatesTSCache | updatesTSCacheOnErr | canBackpressure\n\treturn isRead | isWrite | isTxn | isLocking | isIntentWrite | updatesTSCache | updatesTSCacheOnErr | canBackpressure\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b9560575dc804e10c1e27a99f28dfede0079e5c5", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\tskip.WithIssue(t, 58955, \"flaky test\")\n\tskip.WithIssue(t, 58955, \"flaky test\")\n\tskip.WithIssue(t, 58955, \"flaky test\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/05efcbd5eab35d291e1e196f46c5092e24d0cfd3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\tfor _, toCheck := range ht.probeScratch.toCheck[:nToCheck] {\n\ttoCheckSlice := ht.probeScratch.toCheck\n\t_ = toCheckSlice[nToCheck-1]\n\tfor toCheckPos := uint64(0); toCheckPos < nToCheck && nDiffers < nToCheck; toCheckPos++ {\n\t\t//gcassert:bce\n\t\ttoCheck := toCheckSlice[toCheckPos]\n\tfor _, toCheck := range ht.probeScratch.toCheck[:nToCheck] {\n\ttoCheckSlice := ht.probeScratch.toCheck\n\t_ = toCheckSlice[nToCheck-1]\n\tfor toCheckPos := uint64(0); toCheckPos < nToCheck && nDiffers < nToCheck; toCheckPos++ {\n\t\t//gcassert:bce\n\t\ttoCheck := toCheckSlice[toCheckPos]\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/caf0d5d5441aa84c9743e5e741f9b3c3410c2a87", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\t\tht.probeScratch.toCheck[nDiffers] = toCheck\n\t\t\t//gcassert:bce\n\t\t\ttoCheckSlice[nDiffers] = toCheck\n\t\t\t\tht.probeScratch.toCheck[nDiffers] = toCheck\n\t\t\t\t//gcassert:bce\n\t\t\t\ttoCheckSlice[nDiffers] = toCheck\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/caf0d5d5441aa84c9743e5e741f9b3c3410c2a87", "target_edit_idx": 9, "propagatable_edit_idx": [ 12 ] }, { "input": "\t\tOwner: OwnerAppDev,\n\t\tOwner: OwnerSQLExperience,\n\t\tOwner: OwnerAppDev,\n\t\tOwner: OwnerSQLExperience,\n\t\tOwner: OwnerAppDev,\n\t\tOwner: OwnerSQLExperience,\n\t\tOwner: OwnerAppDev,\n\t\tOwner: OwnerSQLExperience,\n\t\tOwner: OwnerAppDev,\n\t\tOwner: OwnerSQLExperience,\n\t\tOwner: OwnerAppDev,\n\t\tOwner: OwnerSQLExperience,\n\t\tOwner: OwnerAppDev,\n\t\tOwner: OwnerSQLExperience,\n\t\tOwner: OwnerAppDev,\n\t\tOwner: OwnerSQLExperience,\n\t\tOwner: OwnerAppDev,\n\t\tOwner: OwnerSQLExperience,\n\t\tOwner: OwnerAppDev,\n\t\tOwner: OwnerSQLExperience,\n\t\tOwner: OwnerAppDev,\n\t\tOwner: OwnerSQLExperience,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/3564f5ecfbf830f1f5d8e218ae3fbdcfb39d5ad7", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 12 ] }, { "input": "\t\tOwner: OwnerAppDev,\n\t\tOwner: OwnerSQLExperience,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/3564f5ecfbf830f1f5d8e218ae3fbdcfb39d5ad7", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 12 ] }, { "input": "\t\treturn planMaybePhysical{physPlan: &physicalPlanTop{PhysicalPlan: physPlan}}, nil\n\t\treturn makePlanMaybePhysical(physPlan, nil /* planNodesToClose */), nil\n\treturn planMaybePhysical{physPlan: &physicalPlanTop{PhysicalPlan: &p}}, err\n\treturn makePlanMaybePhysical(&p, nil /* planNodesToClose */), err\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/608e7db3d6db6b4f64f9923876dcccea72dc2810", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\treturn planMaybePhysical{physPlan: &physicalPlanTop{\n\t\tPhysicalPlan: physPlan,\n\t\tplanNodesToClose: planNodesToClose,\n\t}}, nil\n\treturn makePlanMaybePhysical(physPlan, planNodesToClose), nil\n\t\t\t\treturn planMaybePhysical{physPlan: &physicalPlanTop{\n\t\t\t\t\tPhysicalPlan: physPlan,\n\t\t\t\t\tplanNodesToClose: []planNode{d},\n\t\t\t\t}}, nil\n\t\t\t\treturn makePlanMaybePhysical(physPlan, []planNode{d}), nil\n\treturn planMaybePhysical{\n\t\tphysPlan: &physicalPlanTop{\n\t\t\tPhysicalPlan: physPlan,\n\t\t\tplanNodesToClose: []planNode{explainNode},\n\t\t},\n\t}, nil\n\treturn makePlanMaybePhysical(physPlan, []planNode{explainNode}), nil\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/608e7db3d6db6b4f64f9923876dcccea72dc2810", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\tctx.WriteString(\" TO \")\n\tctx.WriteString(\"TO \")\n\tctx.WriteString(\" FROM \")\n\tctx.WriteString(\"FROM \")\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/1e90ace4d3dc6b9dfadf87eb9bf52e5d90d2d204", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\titems = append(items, node.Targets.docRow(p))\n\tif node.DescriptorCoverage == RequestedDescriptors {\n\t\titems = append(items, node.Targets.docRow(p))\n\t}\n\titems = append(items, node.Targets.docRow(p))\n\tif node.DescriptorCoverage == RequestedDescriptors {\n\t\titems = append(items, node.Targets.docRow(p))\n\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/cockroachdb/cockroach/commit/1e90ace4d3dc6b9dfadf87eb9bf52e5d90d2d204", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\targ1 := execgen.UNSAFEGET(col1, i)\n\t\t\targ1 := _L_UNSAFEGET(col1, i)\n\t\t\targ1 := execgen.UNSAFEGET(col1, i)\n\t\t\targ1 := _L_UNSAFEGET(col1, i)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/9572e5ff0ef833b1ac2a36f4a7e9ac13d1dcb52c", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\t\t_FIND_ANY_NOT_NULL(a, nulls, i, true)\n\t\t\t\t\t\t_FIND_ANY_NOT_NULL(a, groups, nulls, i, true)\n\t\t\t\t\t\t_FIND_ANY_NOT_NULL(a, nulls, i, true)\n\t\t\t\t\t\t_FIND_ANY_NOT_NULL(a, groups, nulls, i, true)\n\t\t\t\t\t\t_FIND_ANY_NOT_NULL(a, nulls, i, false)\n\t\t\t\t\t\t_FIND_ANY_NOT_NULL(a, groups, nulls, i, false)\n\t\t\t\t\t\t_FIND_ANY_NOT_NULL(a, nulls, i, false)\n\t\t\t\t\t\t_FIND_ANY_NOT_NULL(a, groups, nulls, i, false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/cockroachdb/cockroach/commit/0cc6e3312a6cbdc4420b12d2d6942fd9629bcd1b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 6 ] }, { "input": "\t\t\t\t\tcol = execgen.SLICE(col, 0, inputLen)\n\t\t\t\t\t// {{if eq \"_AGGKIND\" \"Ordered\"}}\n\t\t\t\t\t_ = groups[inputLen-1]\n\t\t\t\t\t// {{end}}\n\t\t\t\t\tcol = execgen.SLICE(col, 0, inputLen)\n\t\t\t\t\t// {{if eq \"_AGGKIND\" \"Ordered\"}}\n\t\t\t\t\t_ = groups[inputLen-1]\n\t\t\t\t\t// {{end}}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/0cc6e3312a6cbdc4420b12d2d6942fd9629bcd1b", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\t\t\t_FIND_ANY_NOT_NULL(a, nulls, i, true)\n\t\t\t\t\t\t_FIND_ANY_NOT_NULL(a, groups, nulls, i, true)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/cockroachdb/cockroach/commit/0cc6e3312a6cbdc4420b12d2d6942fd9629bcd1b", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 6 ] }, { "input": "\t\t\t\t\t\t_FIND_ANY_NOT_NULL(a, nulls, i, false)\n\t\t\t\t\t\t_FIND_ANY_NOT_NULL(a, groups, nulls, i, false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/cockroachdb/cockroach/commit/0cc6e3312a6cbdc4420b12d2d6942fd9629bcd1b", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 6 ] }, { "input": "\t\t\tif err := CanCreateTxnRecord(cArgs.EvalCtx, reply.Txn); err != nil {\n\t\t\tif err := CanCreateTxnRecord(ctx, cArgs.EvalCtx, reply.Txn); err != nil {\n\t\tif err := CanCreateTxnRecord(cArgs.EvalCtx, &txn); err != nil {\n\t\tif err := CanCreateTxnRecord(ctx, cArgs.EvalCtx, &txn); err != nil {\nfunc CanCreateTxnRecord(rec EvalContext, txn *roachpb.Transaction) error {\nfunc CanCreateTxnRecord(ctx context.Context, rec EvalContext, txn *roachpb.Transaction) error {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/156ca1cca6175783d5edeba886964091cb7ee975", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\tif err := CanCreateTxnRecord(cArgs.EvalCtx, &txn); err != nil {\n\t\tif err := CanCreateTxnRecord(ctx, cArgs.EvalCtx, &txn); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/156ca1cca6175783d5edeba886964091cb7ee975", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "\t\tif *d.numRepeatFailures < maxNoProgressReads && d.rnd.Int()%2 == 0 {\n\t\t// The maximum number of injected errors should always be less than the maximum retry attempts in delayedRetry.\n\t\tif *d.numRepeatFailures < maxDelayedRetryAttempts-1 && d.rnd.Int()%2 == 0 {\n\tif *c.numRepeatFailures < maxNoProgressReads && c.rnd.Int()%2 == 0 {\n\t// The maximum number of injected errors should always be less than the maximum retry attempts in delayedRetry.\n\tif *c.numRepeatFailures < maxDelayedRetryAttempts-1 && c.rnd.Int()%2 == 0 {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/8192df75cf776eadb00a6174ebd9ea430abe0819", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tjobRegistry: jobRegistry,\n\t\tcircularJobRegistry: jobRegistry,\n\t\tjobRegistry: &jobs.Registry{},\n\t\tcircularJobRegistry: &jobs.Registry{},\n", "class": "clone", "binary_label": 1, "regression_label": 0.2222222222222222, "commit_url": "https://github.com/cockroachdb/cockroach/commit/72cd586130d2f3e3bd4ea6e46068c7809c5e8b1f", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\t\treturn nil, errors.New(\"fake external storage\")\n\t\t\t\treturn nil, errors.New(\"external storage is not available to tenants\")\n\t\t\t\treturn nil, errors.New(\"fake external uri storage\")\n\t\t\t\treturn nil, errors.New(\"external uri storage is not available to tenants\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/72cd586130d2f3e3bd4ea6e46068c7809c5e8b1f", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "// ObjectDescriptor provides table information for results from a name lookup.\ntype ObjectDescriptor interface {\n// Descriptor provides table information for results from a name lookup.\ntype Descriptor interface {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/873fe5ea5f648288e51bfc5e06c29c90dbbe1990", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9 ] }, { "input": "\tDesc() ObjectDescriptor\n\tDesc() Descriptor\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/cockroachdb/cockroach/commit/873fe5ea5f648288e51bfc5e06c29c90dbbe1990", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9 ] }, { "input": "\tDesc() ObjectDescriptor\n\tDesc() Descriptor\n\tGetObjectDesc(ctx context.Context, txn *kv.Txn, settings *cluster.Settings, codec keys.SQLCodec, db, schema, object string, flags tree.ObjectLookupFlags) (ObjectDescriptor, error)\n\tGetObjectDesc(ctx context.Context, txn *kv.Txn, settings *cluster.Settings, codec keys.SQLCodec, db, schema, object string, flags tree.ObjectLookupFlags) (Descriptor, error)\n) (catalog.ObjectDescriptor, error) {\n) (catalog.Descriptor, error) {\n) (catalog.ObjectDescriptor, error) {\n) (catalog.Descriptor, error) {\n// ObjectDescriptor provides table information for results from a name lookup.\ntype ObjectDescriptor interface {\n// Descriptor provides table information for results from a name lookup.\ntype Descriptor interface {\n\tDesc() ObjectDescriptor\n\tDesc() Descriptor\n) (catalog.ObjectDescriptor, error) {\n) (catalog.Descriptor, error) {\n\tobj := descI.(catalog.ObjectDescriptor)\n\tobj := descI.(catalog.Descriptor)\nfunc (v virtualSchemaEntry) Desc() catalog.ObjectDescriptor {\nfunc (v virtualSchemaEntry) Desc() catalog.Descriptor {\nfunc (e virtualDefEntry) Desc() catalog.ObjectDescriptor {\nfunc (e virtualDefEntry) Desc() catalog.Descriptor {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/cockroachdb/cockroach/commit/873fe5ea5f648288e51bfc5e06c29c90dbbe1990", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8, 9 ] }, { "input": "\tex.state.mu.txn = kv.NewTxnWithSteppingEnabled(ctx, ex.transitionCtx.db, ex.transitionCtx.nodeID)\n\tex.state.mu.txn = kv.NewTxnWithSteppingEnabled(ctx, ex.transitionCtx.db, ex.transitionCtx.nodeIDOrZero)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/946c276ba1019d07ec90376eee509ea1f64c95da", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tts.mu.txn = kv.NewTxnWithSteppingEnabled(ts.Ctx, tranCtx.db, tranCtx.nodeID)\n\t\tts.mu.txn = kv.NewTxnWithSteppingEnabled(ts.Ctx, tranCtx.db, tranCtx.nodeIDOrZero)\n\tex.state.mu.txn = kv.NewTxnWithSteppingEnabled(ctx, ex.transitionCtx.db, ex.transitionCtx.nodeID)\n\tex.state.mu.txn = kv.NewTxnWithSteppingEnabled(ctx, ex.transitionCtx.db, ex.transitionCtx.nodeIDOrZero)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/946c276ba1019d07ec90376eee509ea1f64c95da", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\tAgg: execinfrapb.AggregatorSpec_MIN,\n\t\t\tAgg: \"MIN\",\n\t\t\tAgg: execinfrapb.AggregatorSpec_MAX,\n\t\t\tAgg: \"MAX\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/42714bbf7a51a90372397dab8fbaf1714ab12fdd", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tif err := SetAbortSpan(ctx, evalCtx, batch, ms, txn.TxnMeta, args.Poison); err != nil {\n\t\tif err := UpdateAbortSpan(ctx, evalCtx, batch, ms, txn.TxnMeta, args.Poison); err != nil {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/663eff0bedf50db55f5d752ef6016bb2f1b6a559", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": "\t\tif err := SetAbortSpan(ctx, cArgs.EvalCtx, batch, ms, args.IntentTxn, args.Poison); err != nil {\n\t\tif err := UpdateAbortSpan(ctx, cArgs.EvalCtx, batch, ms, args.IntentTxn, args.Poison); err != nil {\n\t\tif err := SetAbortSpan(ctx, evalCtx, batch, ms, txn.TxnMeta, args.Poison); err != nil {\n\t\tif err := UpdateAbortSpan(ctx, evalCtx, batch, ms, txn.TxnMeta, args.Poison); err != nil {\n\t\tif err := SetAbortSpan(ctx, cArgs.EvalCtx, batch, ms, args.IntentTxn, args.Poison); err != nil {\n\t\tif err := UpdateAbortSpan(ctx, cArgs.EvalCtx, batch, ms, args.IntentTxn, args.Poison); err != nil {\n// SetAbortSpan clears any AbortSpan entry if poison is false.\n// Otherwise, if poison is true, creates an entry for this transaction\n// in the AbortSpan to prevent future reads or writes from\n// spuriously succeeding on this range.\nfunc SetAbortSpan(\n// UpdateAbortSpan clears any AbortSpan entry if poison is false. Otherwise, if\n// poison is true, it creates an entry for this transaction in the AbortSpan to\n// prevent future reads or writes from spuriously succeeding on this range.\nfunc UpdateAbortSpan(\n\t\treturn SetAbortSpan(ctx, rec, b, nil /* ms */, prevTxn.TxnMeta, true /* poison */)\n\t\treturn UpdateAbortSpan(ctx, rec, b, nil /* ms */, prevTxn.TxnMeta, true /* poison */)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/663eff0bedf50db55f5d752ef6016bb2f1b6a559", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 5 ] }, { "input": "\t\tif err := SetAbortSpan(ctx, cArgs.EvalCtx, batch, ms, args.IntentTxn, args.Poison); err != nil {\n\t\tif err := UpdateAbortSpan(ctx, cArgs.EvalCtx, batch, ms, args.IntentTxn, args.Poison); err != nil {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/663eff0bedf50db55f5d752ef6016bb2f1b6a559", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 5 ] }, { "input": "// SetAbortSpan clears any AbortSpan entry if poison is false.\n// Otherwise, if poison is true, creates an entry for this transaction\n// in the AbortSpan to prevent future reads or writes from\n// spuriously succeeding on this range.\nfunc SetAbortSpan(\n// UpdateAbortSpan clears any AbortSpan entry if poison is false. Otherwise, if\n// poison is true, it creates an entry for this transaction in the AbortSpan to\n// prevent future reads or writes from spuriously succeeding on this range.\nfunc UpdateAbortSpan(\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/cockroachdb/cockroach/commit/663eff0bedf50db55f5d752ef6016bb2f1b6a559", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 5 ] }, { "input": "\t\t\t\tcleanupFunc, pErr := ir.ProcessWriteIntentError(testCtx, roachpb.NewError(wiErr), nil, h, roachpb.PUSH_ABORT)\n\t\t\t\tcleanupFunc, pErr := ir.ProcessWriteIntentError(testCtx, roachpb.NewError(wiErr), h, roachpb.PUSH_ABORT)\n\t\t\t\t\tcleanupFunc, pErr := ir.ProcessWriteIntentError(ctx, roachpb.NewError(wiErr), nil, h, roachpb.PUSH_ABORT)\n\t\t\t\t\tcleanupFunc, pErr := ir.ProcessWriteIntentError(ctx, roachpb.NewError(wiErr), h, roachpb.PUSH_ABORT)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b99e669f75f1eca502fc2eadba43b0a04f978f2d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\t\tcleanupFunc, pErr := ir.ProcessWriteIntentError(ctx, roachpb.NewError(wiErr), nil, h, roachpb.PUSH_ABORT)\n\t\t\t\t\tcleanupFunc, pErr := ir.ProcessWriteIntentError(ctx, roachpb.NewError(wiErr), h, roachpb.PUSH_ABORT)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b99e669f75f1eca502fc2eadba43b0a04f978f2d", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\treturn r, r.init(desc, store.Clock(), replicaID)\n\treturn r, r.init(desc, replicaID)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/2a5066c0ea6e1fffe7c7b952c32011ff14dc3700", "target_edit_idx": 0, "propagatable_edit_idx": [ 11 ] }, { "input": "\tif err := r.init(desc, store.Clock(), 0); err != nil {\n\tif err := r.init(desc, 0); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/2a5066c0ea6e1fffe7c7b952c32011ff14dc3700", "target_edit_idx": 11, "propagatable_edit_idx": [ 0 ] }, { "input": "\tif keysPerRow := table.desc.KeysPerRow(table.index.ID); keysPerRow > rf.maxKeysPerRow {\n\tkeysPerRow, err := table.desc.KeysPerRow(table.index.ID)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif keysPerRow > rf.maxKeysPerRow {\n\t\tif keysPerRow := table.desc.KeysPerRow(table.index.ID); keysPerRow > rf.maxKeysPerRow {\n\t\tkeysPerRow, err := table.desc.KeysPerRow(table.index.ID)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif keysPerRow > rf.maxKeysPerRow {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/f2362c005a2960a913b32bf82c04b2e37d012e06", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tRaftStatus: *raftStatus,\n\t\tLogSize: raftLogSize,\n\t\tMaxLogSize: targetSize,\n\t\tLogSizeTrusted: logSizeTrusted,\n\t\tFirstIndex: firstIndex,\n\t\tLastIndex: lastIndex,\n\t\tPendingPreemptiveSnapshotIndex: pendingSnapshotIndex,\n\t\tRaftStatus: *raftStatus,\n\t\tLogSize: raftLogSize,\n\t\tMaxLogSize: targetSize,\n\t\tLogSizeTrusted: logSizeTrusted,\n\t\tFirstIndex: firstIndex,\n\t\tLastIndex: lastIndex,\n\t\tPendingSnapshotIndex: pendingSnapshotIndex,\n\t\t\t\tRaftStatus: status,\n\t\t\t\tLogSize: c.raftLogSize,\n\t\t\t\tMaxLogSize: targetSize,\n\t\t\t\tLogSizeTrusted: true,\n\t\t\t\tFirstIndex: c.firstIndex,\n\t\t\t\tLastIndex: c.lastIndex,\n\t\t\t\tPendingPreemptiveSnapshotIndex: c.pendingSnapshot,\n\t\t\t\tRaftStatus: status,\n\t\t\t\tLogSize: c.raftLogSize,\n\t\t\t\tMaxLogSize: targetSize,\n\t\t\t\tLogSizeTrusted: true,\n\t\t\t\tFirstIndex: c.firstIndex,\n\t\t\t\tLastIndex: c.lastIndex,\n\t\t\t\tPendingSnapshotIndex: c.pendingSnapshot,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/7e0f98bb48f94003351849a9031e895302855294", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\tif td.Input.PendingPreemptiveSnapshotIndex != 0 && td.Input.PendingPreemptiveSnapshotIndex < index {\n\tif td.Input.PendingSnapshotIndex != 0 && td.Input.PendingSnapshotIndex < index {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/cockroachdb/cockroach/commit/7e0f98bb48f94003351849a9031e895302855294", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tif input.PendingPreemptiveSnapshotIndex > 0 {\n\t\tdecision.ProtectIndex(input.PendingPreemptiveSnapshotIndex, truncatableIndexChosenViaPendingSnap)\n\tif input.PendingSnapshotIndex > 0 {\n\t\tdecision.ProtectIndex(input.PendingSnapshotIndex, truncatableIndexChosenViaPendingSnap)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/cockroachdb/cockroach/commit/7e0f98bb48f94003351849a9031e895302855294", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\tsst, err := engine.MakeRocksDBSstFileWriter()\n\tif err != nil {\n\t\treturn err\n\t}\n\tsst := engine.MakeSSTWriter()\n\t\t\tsst, err := engine.MakeRocksDBSstFileWriter()\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tsst := engine.MakeSSTWriter()\n\t\tsst, err := engine.MakeRocksDBSstFileWriter()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tsst := engine.MakeSSTWriter()\n\tunreplicatedSST, err := engine.MakeRocksDBSstFileWriter()\n\tif err != nil {\n\t\treturn err\n\t}\n\tunreplicatedSST := engine.MakeSSTWriter()\n\t\tsubsumedReplSST, err := engine.MakeRocksDBSstFileWriter()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tsubsumedReplSST := engine.MakeSSTWriter()\n\t\t\tsubsumedReplSST, err := engine.MakeRocksDBSstFileWriter()\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tsubsumedReplSST := engine.MakeSSTWriter()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/8dfafbdd0c9efdc6a556207d8e233e1187338488", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 5, 6, 7 ] }, { "input": "const maxSettings = 256\n// MaxSettings is the maximum number of settings that the system supports.\n// Exported for tests.\nconst MaxSettings = 256\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/cockroachdb/cockroach/commit/33855fea70359c18d357e8e1455cd5022faf5113", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "\t\tonChange [maxSettings][]func()\n\t\tonChange [MaxSettings][]func()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/33855fea70359c18d357e8e1455cd5022faf5113", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4 ] }, { "input": "\tintVals [maxSettings]int64\n\tgenericVals [maxSettings]atomic.Value\n\tintVals [MaxSettings]int64\n\tgenericVals [MaxSettings]atomic.Value\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/cockroachdb/cockroach/commit/33855fea70359c18d357e8e1455cd5022faf5113", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": "\tif slotIdx > maxSettings {\n\t\tpanic(fmt.Sprintf(\"too many settings; increase maxSettings\"))\n\tif slotIdx > MaxSettings {\n\t\tpanic(fmt.Sprintf(\"too many settings; increase MaxSettings\"))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/33855fea70359c18d357e8e1455cd5022faf5113", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": "\t\trunTests(t, []tuples{tc.tuples}, tc.expected, orderedVerifier, []int{0, 1},\n\t\trunTestsWithTyps(t, []tuples{tc.tuples}, []coltypes.T{coltypes.Int64}, tc.expected, orderedVerifier, []int{0, 1},\n\t\trunTests(t, []tuples{tc.tuples}, tc.expected, orderedVerifier, []int{0, 1},\n\t\trunTestsWithTyps(t, []tuples{tc.tuples}, []coltypes.T{coltypes.Int64}, tc.expected, orderedVerifier, []int{0, 1},\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/6022e4123e3670422ec4e19bdd29288d79a50b62", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\trequire.EqualError(t, err, `cannot transfer lease to replica of type LEARNER`)\n\trequire.EqualError(t, err, `replica of type LEARNER cannot hold lease`)\n\trequire.EqualError(t, err, `cannot transfer lease to replica of type LEARNER`)\n\n\tconst exp = `cannot replace lease repl=(n0,s0):? seq=0 start=0.000000000,0 exp= ` +\n\t\t`with repl=(n0,s0):? seq=0 start=0.000000000,0 exp=: ` +\n\t\t`replica of type LEARNER cannot hold lease`\n\trequire.EqualError(t, err, exp)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/9376c8ab79e87ffcc0129ccde1cd0172c6f3950d", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tmetaCommandTestsTable := []struct {\n\tclientSideCommandTestsTable := []struct {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/f5bc459384bfdc87db9e69f9568e18153a0a9c74", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\tfor _, tt := range metaCommandTestsTable {\n\tfor _, tt := range clientSideCommandTestsTable {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/f5bc459384bfdc87db9e69f9568e18153a0a9c74", "target_edit_idx": 6, "propagatable_edit_idx": [ 4 ] }, { "input": "\tif fn.def.Class == tree.WindowClass && s.schema.vectorizable {\n\tif fn.def.Class == tree.WindowClass && s.schema.disableWindowFuncs {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.10526315789473684, "commit_url": "https://github.com/cockroachdb/cockroach/commit/096ba75003435daa8998ebc5a63e83c0f96e7326", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tif fn.def.Class == tree.WindowClass || (!s.schema.vectorizable && !ctx.noWindow && s.d6() == 1 && fn.def.Class == tree.AggregateClass) {\n\tif fn.def.Class == tree.WindowClass || (!s.schema.disableWindowFuncs && !ctx.noWindow && s.d6() == 1 && fn.def.Class == tree.AggregateClass) {\n\tif fn.def.Class == tree.WindowClass && s.schema.vectorizable {\n\tif fn.def.Class == tree.WindowClass && s.schema.disableWindowFuncs {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.10526315789473684, "commit_url": "https://github.com/cockroachdb/cockroach/commit/096ba75003435daa8998ebc5a63e83c0f96e7326", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\tlogPath := filepath.Join(f.artifactsDir, \"cluster-create\", name+\".log\")\n\tlogPath := filepath.Join(f.artifactsDir, runnerLogsDir, \"cluster-create\", name+\".log\")\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/81f1c6ae1f83c065c54ce91c85f87da09e9aa990", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\tlogPath := filepath.Join(artifactsDir, \"cluster-create\", existingClusterName+\".log\")\n\t\t\tlogPath := filepath.Join(artifactsDir, runnerLogsDir, \"cluster-create\", existingClusterName+\".log\")\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/81f1c6ae1f83c065c54ce91c85f87da09e9aa990", "target_edit_idx": 7, "propagatable_edit_idx": [ 0 ] }, { "input": "// ReadVersionFromEngineOrDefault reads the persisted cluster version from the\n// engine, falling back to v1.0 if no version is specified on the engine.\nfunc ReadVersionFromEngineOrDefault(\n// ReadVersionFromEngineOrZero reads the persisted cluster version from the\n// engine, falling back to the zero value.\nfunc ReadVersionFromEngineOrZero(\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/2dcbf5922f7b98c245b1a048db395d26d894a85f", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "\t\tcv, err := ReadVersionFromEngineOrDefault(ctx, eng)\n\t\tcv, err := ReadVersionFromEngineOrZero(ctx, eng)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/2dcbf5922f7b98c245b1a048db395d26d894a85f", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "// Licensed as a CockroachDB Enterprise file under the Cockroach Community\n// License (the \"License\"); you may not use this file except in compliance with\n// the License. You may obtain a copy of the License at\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// Licensed as a CockroachDB Enterprise file under the Cockroach Community\n// License (the \"License\"); you may not use this file except in compliance with\n// the License. You may obtain a copy of the License at\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// Licensed as a CockroachDB Enterprise file under the Cockroach Community\n// License (the \"License\"); you may not use this file except in compliance with\n// the License. You may obtain a copy of the License at\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/71f5288396c4c8813d7879d49d7fd50d55428317", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "// https://github.com/cockroachdb/cockroach/blob/master/licenses/CCL.txt\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n// implied. See the License for the specific language governing\n// permissions and limitations under the License.\n// https://github.com/cockroachdb/cockroach/blob/master/licenses/CCL.txt\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n// implied. See the License for the specific language governing\n// permissions and limitations under the License.\n// https://github.com/cockroachdb/cockroach/blob/master/licenses/CCL.txt\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n// implied. See the License for the specific language governing\n// permissions and limitations under the License.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/71f5288396c4c8813d7879d49d7fd50d55428317", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "\t\t\terr = fmt.Errorf(\"Code formatting failed with Go parse error\\n%s:%s\", out, err)\n\t\t\terr = fmt.Errorf(\"code formatting failed with Go parse error\\n%s:%s\", out, err)\n\t\t\terr = fmt.Errorf(\"Code formatting failed with Go parse error\\n%s:%s\", out, err)\n\t\t\terr = fmt.Errorf(\"code formatting failed with Go parse error\\n%s:%s\", out, err)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/a0f646c4812aa60f8482eaf5e9fd836b3bec89cc", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tif dataSize <= 0 {\n\t\tt.Errorf(\"expected dataSize to be >0 got : %d\", dataSize)\n\t}\n\tif dataSize <= 0 {\n\t\tt.Errorf(\"expected dataSize to be >0 got : %d\", dataSize)\n\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/5c6824fe515b06c8314f029d18c36a88709da9ad", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tds, err := oc.dataSourceForDesc(ctx, desc, &oc.tn)\n\tds, err := oc.dataSourceForDesc(ctx, flags, desc, &oc.tn)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/7d3171b8ff532b0379fbff741937d980ae5cf7c2", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\treturn oc.dataSourceForDesc(ctx, desc, &name)\n\treturn oc.dataSourceForDesc(ctx, cat.Flags{}, desc, &name)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/7d3171b8ff532b0379fbff741937d980ae5cf7c2", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\tctx context.Context, desc *sqlbase.ImmutableTableDescriptor, name *cat.DataSourceName,\n\tctx context.Context,\n\tflags cat.Flags,\n\tdesc *sqlbase.ImmutableTableDescriptor,\n\tname *cat.DataSourceName,\n\tctx context.Context, desc *sqlbase.ImmutableTableDescriptor, name *cat.DataSourceName,\n\tctx context.Context,\n\tflags cat.Flags,\n\tdesc *sqlbase.ImmutableTableDescriptor,\n\tname *cat.DataSourceName,\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/7d3171b8ff532b0379fbff741937d980ae5cf7c2", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\t\tmessage += \"80\"\n\t\t\t\tmessage += \"81\"\n\t\t\t\tmessage += \"83\"\n\t\t\t\tmessage += \"84\"\n\t\t\t\tmessage += \"86\"\n\t\t\t\tmessage += \"87\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/cockroachdb/cockroach/commit/0514943b758a250ff9d8e9051cda85ecabb08b6b", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\t\tcontext.TODO(), []engine.Engine{e}, cluster.TestingClusterVersion,\n\t\tkv.MakeTxnMetrics(metric.TestSampleInterval),\n\t\tctx, []engine.Engine{e}, cluster.TestingClusterVersion,\n\t\tcontext.TODO(), []engine.Engine{e},\n\t\tcluster.TestingClusterVersion, kv.MakeTxnMetrics(metric.TestSampleInterval),\n\t\tctx, []engine.Engine{e}, cluster.TestingClusterVersion,\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/cockroachdb/cockroach/commit/a1e9facc0f1b7d6f0ba264eac5c82f120ae722dd", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tkv.MakeTxnMetrics(metric.TestSampleInterval),\n\t\t\tkv.MakeTxnMetrics(metric.TestSampleInterval),\n\t\tkv.MakeTxnMetrics(metric.TestSampleInterval),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/a1e9facc0f1b7d6f0ba264eac5c82f120ae722dd", "target_edit_idx": 5, "propagatable_edit_idx": [ 13, 6 ] }, { "input": "\targs := startArgs(\"--sequential\", \"--env=COCKROACH_SCAN_MAX_IDLE_TIME=5ms\")\n\targs := startArgs(\"--env=COCKROACH_SCAN_MAX_IDLE_TIME=5ms\")\n\targs := startArgs(\"--sequential\", \"--env=COCKROACH_SCAN_MAX_IDLE_TIME=5ms\")\n\targs := startArgs(\"--env=COCKROACH_SCAN_MAX_IDLE_TIME=5ms\")\n\targs := startArgs(\"--sequential\", \"--env=COCKROACH_SCAN_MAX_IDLE_TIME=5ms\")\n\targs := startArgs(\"--env=COCKROACH_SCAN_MAX_IDLE_TIME=5ms\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2608695652173913, "commit_url": "https://github.com/cockroachdb/cockroach/commit/305ff6dfdd39ebc7b176bac8ede19347db600dad", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "\tc.Start(ctx, t, c.Range(1, 3), startArgs(\"--sequential\"))\n\tc.Start(ctx, t, c.Range(1, 3))\n\t\tc.Start(ctx, t, c.All(), startArgs(\"--sequential\"))\n\t\tc.Start(ctx, t, c.All())\n\t\t\tc.Start(ctx, t, startArgs(\"--sequential\"))\n\t\t\tc.Start(ctx, t)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.018691588785046728, "commit_url": "https://github.com/cockroachdb/cockroach/commit/305ff6dfdd39ebc7b176bac8ede19347db600dad", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 6 ] }, { "input": "\targs := startArgs(\"--sequential\", \"--env=COCKROACH_SCAN_MAX_IDLE_TIME=5ms\")\n\targs := startArgs(\"--env=COCKROACH_SCAN_MAX_IDLE_TIME=5ms\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.22727272727272727, "commit_url": "https://github.com/cockroachdb/cockroach/commit/305ff6dfdd39ebc7b176bac8ede19347db600dad", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 5 ] }, { "input": "\t\tc.Start(ctx, t, c.All(), startArgs(\"--sequential\"))\n\t\tc.Start(ctx, t, c.All())\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.018691588785046728, "commit_url": "https://github.com/cockroachdb/cockroach/commit/305ff6dfdd39ebc7b176bac8ede19347db600dad", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 6 ] }, { "input": "\t\t\tc.Start(ctx, t, startArgs(\"--sequential\"))\n\t\t\tc.Start(ctx, t)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.018691588785046728, "commit_url": "https://github.com/cockroachdb/cockroach/commit/305ff6dfdd39ebc7b176bac8ede19347db600dad", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\t\terr := importFixtureTable(ctx, sqlDB, gen.Meta().Name, table, paths, output)\n\t\t\tconst directIngestion = false\n\t\t\terr := importFixtureTable(ctx, sqlDB, gen.Meta().Name, table, paths, directIngestion, output)\n\t\t\terr := importFixtureTable(ctx, sqlDB, dbName, table, paths, `` /* output */)\n\t\t\terr := importFixtureTable(ctx, sqlDB, dbName, table, paths, directIngestion, `` /* output */)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/3737b68fddc80de7a1fbbcefbdf37470ad82de20", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\terr := importFixtureTable(ctx, sqlDB, dbName, table, paths, `` /* output */)\n\t\t\terr := importFixtureTable(ctx, sqlDB, dbName, table, paths, directIngestion, `` /* output */)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/3737b68fddc80de7a1fbbcefbdf37470ad82de20", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": "\terr := defaultP.post(ctx, title, packageName, testName, message, authorEmail)\n\terr := defaultP.post(ctx, title, packageName, testName, message, authorEmail, extraLabels)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/cockroachdb/cockroach/commit/778c4bdfa3cb54cc8b0776cac072ee52652e3351", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\treturn defaultP.post(ctx, title, packageName, testName, message, \"tobias.schottdorf@gmail.com\")\n\treturn defaultP.post(ctx, title, packageName, testName, message, \"tobias.schottdorf@gmail.com\", extraLabels)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/cockroachdb/cockroach/commit/778c4bdfa3cb54cc8b0776cac072ee52652e3351", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tevaluateBatch(ctx, storagebase.CmdIDKey(\"\"), r.store.Engine(), rec, nil, ba)\n\t\tevaluateBatch(ctx, storagebase.CmdIDKey(\"\"), r.store.Engine(), rec, nil, ba, true /* readOnly */)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/8a2fa152da9bc52077a7fefd511ea182f67c9ab4", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 6 ] }, { "input": "\tbr, result, pErr = evaluateBatch(ctx, storagebase.CmdIDKey(\"\"), readOnly, rec, nil, ba)\n\tbr, result, pErr = evaluateBatch(ctx, storagebase.CmdIDKey(\"\"), readOnly, rec, nil, ba, true /* readOnly */)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/8a2fa152da9bc52077a7fefd511ea182f67c9ab4", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 6 ] }, { "input": "\t\tbr, res, pErr = evaluateBatch(ctx, idKey, batch, rec, ms, ba)\n\t\tbr, res, pErr = evaluateBatch(ctx, idKey, batch, rec, ms, ba, false /* readOnly */)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/8a2fa152da9bc52077a7fefd511ea182f67c9ab4", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\tmaxMsgSize uint64\n\t// maxNextEntsSize is the maximum number aggregate byte size of the messages\n\t// returned from calls to nextEnts.\n\tmaxNextEntsSize uint64\nfunc newLogWithSize(storage Storage, logger Logger, maxMsgSize uint64) *raftLog {\nfunc newLogWithSize(storage Storage, logger Logger, maxNextEntsSize uint64) *raftLog {\n\t\tents, err := l.slice(off, l.committed+1, l.maxMsgSize)\n\t\tents, err := l.slice(off, l.committed+1, l.maxNextEntsSize)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/f5f8e6ce67a70079e218f1e511ed88463fc30ff2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\tents, err := l.slice(off, l.committed+1, l.maxMsgSize)\n\t\tents, err := l.slice(off, l.committed+1, l.maxNextEntsSize)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/f5f8e6ce67a70079e218f1e511ed88463fc30ff2", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "\tcfg.MaxSizePerMsg = 2048\n\tcfg.MaxCommittedSizePerReady = 2048\n\traftlog := newLogWithSize(c.Storage, c.Logger, c.MaxSizePerMsg)\n\traftlog := newLogWithSize(c.Storage, c.Logger, c.MaxCommittedSizePerReady)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/cockroachdb/cockroach/commit/f5f8e6ce67a70079e218f1e511ed88463fc30ff2", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\tos.Exit(r.Run(args))\n\t\t\tos.Exit(r.Run(args, parallelism))\n\t\t\tos.Exit(r.Run(args))\n\t\t\tos.Exit(r.Run(args, parallelism))\n\t\t\tos.Exit(r.Run(nil /* filter */))\n\t\t\tos.Exit(r.Run(nil /* filter */, parallelism))\n\t\t\tcode := r.Run(c.filters)\n\t\t\tcode := r.Run(c.filters, defaultParallelism)\n\tr.Run([]string{\"status\"})\n\tr.Run([]string{\"status\"}, defaultParallelism)\n\tr.Run([]string{\"status\"})\n\tr.Run([]string{\"status\"}, defaultParallelism)\n\tr.Run([]string{\"timeout\"})\n\tr.Run([]string{\"timeout\"}, defaultParallelism)\n\tr.Run([]string{\".\"})\n\tr.Run([]string{\".\"}, defaultParallelism)\n\tr.Run([]string{\"expired\"})\n\tr.Run([]string{\"expired\"}, defaultParallelism)\n\t\t\tr.Run(nil)\n\t\t\tr.Run(nil /* filter */, defaultParallelism)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d7adc12a40dd331c0fa5e48faff57c8d71a3d34a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": "\t\t\tos.Exit(r.Run(args))\n\t\t\tos.Exit(r.Run(args, parallelism))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d7adc12a40dd331c0fa5e48faff57c8d71a3d34a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": "\t\t\tos.Exit(r.Run(nil /* filter */))\n\t\t\tos.Exit(r.Run(nil /* filter */, parallelism))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d7adc12a40dd331c0fa5e48faff57c8d71a3d34a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": "\t\t\tcode := r.Run(c.filters)\n\t\t\tcode := r.Run(c.filters, defaultParallelism)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d7adc12a40dd331c0fa5e48faff57c8d71a3d34a", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 6, 7, 8, 9, 10, 11 ] }, { "input": "\tr.Run([]string{\"status\"})\n\tr.Run([]string{\"status\"}, defaultParallelism)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d7adc12a40dd331c0fa5e48faff57c8d71a3d34a", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 5, 7, 8, 9, 10, 11 ] }, { "input": "\tr.Run([]string{\"timeout\"})\n\tr.Run([]string{\"timeout\"}, defaultParallelism)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d7adc12a40dd331c0fa5e48faff57c8d71a3d34a", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 5, 6, 7, 9, 10, 11 ] }, { "input": "\tr.Run([]string{\"expired\"})\n\tr.Run([]string{\"expired\"}, defaultParallelism)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d7adc12a40dd331c0fa5e48faff57c8d71a3d34a", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 2, 5, 6, 7, 8, 9, 11 ] }, { "input": "\t\t\tr.Run(nil)\n\t\t\tr.Run(nil /* filter */, defaultParallelism)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d7adc12a40dd331c0fa5e48faff57c8d71a3d34a", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 1, 2, 5, 6, 7, 8, 9, 10 ] }, { "input": "\t\"github.com/cockroachdb/cockroach/pkg/util/log\"\n\t\"github.com/cockroachdb/cockroach/pkg/util/log\"\n\t\"github.com/cockroachdb/cockroach/pkg/util/tracing\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.04, "commit_url": "https://github.com/cockroachdb/cockroach/commit/53ced2b4ad8a0f20229f48ea65fdb416b320afbf", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\ts := newRaftScheduler(log.AmbientContext{Tracer: tracing.NewTracer()}, nil, p, 1)\n\ts := newRaftScheduler(nil, p, 1)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/53ced2b4ad8a0f20229f48ea65fdb416b320afbf", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "\ts.scheduler = newRaftScheduler(s.cfg.AmbientCtx, s.metrics, s, storeSchedulerConcurrency)\n\ts.scheduler = newRaftScheduler(s.metrics, s, storeSchedulerConcurrency)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/53ced2b4ad8a0f20229f48ea65fdb416b320afbf", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\tevalCtx *tree.EvalContext\n\tflowCtx *distsqlrun.FlowCtx\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/57b6aab483b78781bb4c87c8ac7d722433d0c607", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\ttID, err := insertTransaction(tx, config, rng, c.identifier)\n\t\t\tif err != nil {\n\t\t\tif err := updateBalance(tx, config, c); err != nil {\n\t\t\ttID, err := insertTransaction(tx, config, rng, c.identifier)\n\t\t\tif err != nil {\n\t\t\tif err := updateBalance(tx, config, c); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/7921388206506d4c96267165bf5c875d0799dd5c", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tif err := updateBalance(tx, config, c); err != nil {\n\t\t\tif err := getSession(tx, config, rng); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\ttID, err := insertTransaction(tx, config, rng, c.identifier)\n\t\t\tif err != nil {\n\t\t\tif err := updateBalance(tx, config, c); err != nil {\n\t\t\ttID, err := insertTransaction(tx, config, rng, c.identifier)\n\t\t\tif err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/7921388206506d4c96267165bf5c875d0799dd5c", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\t//\n\t// TODO(vivek): check if the cache can be used.\n\tp.runWithOptions(resolveFlags{skipCache: true}, func() {\n\t\ttableDesc, err = ResolveExistingObject(ctx, p, tn, true /*required*/, requireTableDesc)\n\t})\n\ttableDesc, err := p.ResolveUncachedTableDescriptor(\n\t\tctx, tn, true /*required*/, requireTableDesc)\n\t//\n\t// TODO(vivek): check if the cache can be used.\n\tp.runWithOptions(resolveFlags{skipCache: true}, func() {\n\t\tdesc, err = ResolveExistingObject(ctx, p, tn, true /*required*/, anyDescType)\n\t})\n\tdesc, err := p.ResolveUncachedTableDescriptor(ctx, tn, true /*required*/, anyDescType)\n\t//\n\t// TODO(vivek): check if the cache can be used.\n\tp.runWithOptions(resolveFlags{skipCache: true}, func() {\n\t\tdesc, err = ResolveExistingObject(ctx, p, tn, true /*required*/, requireTableDesc)\n\t})\n\tdesc, err := p.ResolveUncachedTableDescriptor(ctx, tn, true /*required*/, requireTableDesc)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/48919a4873e7b3ee69022fe10dfad524ddef29ee", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "\tvar desc *TableDescriptor\n\tvar desc *TableDescriptor\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/cockroachdb/cockroach/commit/48919a4873e7b3ee69022fe10dfad524ddef29ee", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "\tvar dbDesc *DatabaseDescriptor\n\tp.runWithOptions(resolveFlags{skipCache: true}, func() {\n\t\tdbDesc, err = ResolveTargetObject(ctx, p, name)\n\t})\n\tdbDesc, err := p.ResolveUncachedDatabase(ctx, name)\n\tvar dbDesc *DatabaseDescriptor\n\tvar err error\n\tp.runWithOptions(resolveFlags{skipCache: true}, func() {\n\t\tdbDesc, err = ResolveTargetObject(ctx, p, seqName)\n\t})\n\tdbDesc, err := p.ResolveUncachedDatabase(ctx, seqName)\n\tvar dbDesc *DatabaseDescriptor\n\tp.runWithOptions(resolveFlags{skipCache: true}, func() {\n\t\tdbDesc, err = ResolveTargetObject(ctx, p, tn)\n\t})\n\tdbDesc, err := p.ResolveUncachedDatabase(ctx, tn)\n\tvar dbDesc *DatabaseDescriptor\n\tp.runWithOptions(resolveFlags{skipCache: true}, func() {\n\t\tdbDesc, err = ResolveTargetObject(ctx, p, name)\n\t})\n\tdbDesc, err := p.ResolveUncachedDatabase(ctx, name)\n\tvar targetDbDesc *DatabaseDescriptor\n\tp.runWithOptions(resolveFlags{skipCache: true}, func() {\n\t\ttargetDbDesc, err = ResolveTargetObject(ctx, p, newTn)\n\t})\n\ttargetDbDesc, err := p.ResolveUncachedDatabase(ctx, newTn)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/ae5854ff18863904e8bff547e70dd8e409c8642a", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 1, 2, 4 ] }, { "input": "\tINet = &TIPAddr{Name: \"INET\"}\n\tINet = &TIPAddr{}\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/cockroachdb/cockroach/commit/bbf7fdb6c4a629689b8e8a468298d36e6017775e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "type TIPAddr struct {\n\tName string\n}\ntype TIPAddr struct{}\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/cockroachdb/cockroach/commit/bbf7fdb6c4a629689b8e8a468298d36e6017775e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\tmemMonitor := newMemMonitor(ctx, flowCtx.EvalCtx.Mon, \"aggregator-mem\")\n\tmemMonitor := newMonitor(ctx, flowCtx.EvalCtx.Mon, \"aggregator-mem\")\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/1348f92de32ecd92a0cf3a073128cdcf13f2888d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": "\tmemMonitor := newMemMonitor(ctx, flowCtx.EvalCtx.Mon, \"distinct-mem\")\n\tmemMonitor := newMonitor(ctx, flowCtx.EvalCtx.Mon, \"distinct-mem\")\n\tmemMonitor := newMemMonitor(ctx, flowCtx.EvalCtx.Mon, \"aggregator-mem\")\n\tmemMonitor := newMonitor(ctx, flowCtx.EvalCtx.Mon, \"aggregator-mem\")\nfunc newMemMonitor(ctx context.Context, parent *mon.BytesMonitor, name string) *mon.BytesMonitor {\nfunc newMonitor(ctx context.Context, parent *mon.BytesMonitor, name string) *mon.BytesMonitor {\n\t\tmemMonitor = newMemMonitor(ctx, flowCtx.EvalCtx.Mon, \"sortall\")\n\t\tmemMonitor = newMonitor(ctx, flowCtx.EvalCtx.Mon, \"sortall\")\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/1348f92de32ecd92a0cf3a073128cdcf13f2888d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4 ] }, { "input": "func newMemMonitor(ctx context.Context, parent *mon.BytesMonitor, name string) *mon.BytesMonitor {\nfunc newMonitor(ctx context.Context, parent *mon.BytesMonitor, name string) *mon.BytesMonitor {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/1348f92de32ecd92a0cf3a073128cdcf13f2888d", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": "\t\tmemMonitor = newMemMonitor(ctx, flowCtx.EvalCtx.Mon, \"sortall\")\n\t\tmemMonitor = newMonitor(ctx, flowCtx.EvalCtx.Mon, \"sortall\")\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/1348f92de32ecd92a0cf3a073128cdcf13f2888d", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\tif c.Cfg.NumNodes > 1 {\n\tif !c.Cfg.NoWait {\n\tif c.Cfg.NumNodes > 1 {\n\tif c.Cfg.NumNodes > 1 || !c.Cfg.NoWait {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/22bc8801f4eb795bd5079ee6a386e55eab938549", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\t\td := makeDiskRowContainer(ctx, &diskMonitor, types, ordering, tempEngine)\n\t\t\t\t\td := makeDiskRowContainer(&diskMonitor, types, ordering, tempEngine)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/cockroachdb/cockroach/commit/6d1b0c405aa1def5d06d6a1d984e86e4ece25578", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "\th.diskRowContainer = makeDiskRowContainer(ctx, h.diskMonitor, storedTypes, ordering, h.engine)\n\th.diskRowContainer = makeDiskRowContainer(h.diskMonitor, storedTypes, ordering, h.engine)\n\t\t\t\t\td := makeDiskRowContainer(ctx, &diskMonitor, types, ordering, tempEngine)\n\t\t\t\t\td := makeDiskRowContainer(&diskMonitor, types, ordering, tempEngine)\n\t\t\t\td := makeDiskRowContainer(ctx, &diskMonitor, types, ordering, tempEngine)\n\t\t\t\td := makeDiskRowContainer(&diskMonitor, types, ordering, tempEngine)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/cockroachdb/cockroach/commit/6d1b0c405aa1def5d06d6a1d984e86e4ece25578", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\tfillRange(t, store, repl.RangeID, tableBoundary, maxBytes)\n\t\tfillRange(t, store, repl.RangeID, tableBoundary, maxBytes, false /* singleKey */)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/98c569465ddab817ca128bb14f73199789ada44b", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\tfillRange(t, store, repl.RangeID, splitKey.AsRawKey(), 2*maxBytes+1)\n\t\t\tsingleKey := tc.splitImpossible\n\t\t\tfillRange(t, store, repl.RangeID, splitKey.AsRawKey(), 2*maxBytes+1, singleKey)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/98c569465ddab817ca128bb14f73199789ada44b", "target_edit_idx": 8, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\tif _, err := db.ExecContext(ctx, buf.String()); err != nil {\n\t\t\t\tif _, err := db.Exec(buf.String()); err != nil {\n\t\t\t\tif _, err := db.ExecContext(ctx, buf.String()); err != nil {\n\t\t\t\tif _, err := db.Exec(buf.String()); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/63943cb71f4a2caaa453d24551dd71ac5f95d05a", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " .call(this.chart);\n .call(chart);\n .call(this.chart);\n .call(chart);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/38c6f0747a0552e7cdfba21603682c15d9651791", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\treturn errors.Wrap(mm.resource.NewBudgetExceededError(x, mm.limit), mm.name)\n\t\treturn errors.Wrap(\n\t\t\tmm.resource.NewBudgetExceededError(x, mm.mu.curAllocated, mm.limit), mm.name,\n\t\t)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/457797dea2704c6afce4ca188bb211c40584b2b5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\treturn errors.Wrap(mm.resource.NewBudgetExceededError(minExtra, mm.reserved.used), mm.name)\n\t\treturn errors.Wrap(mm.resource.NewBudgetExceededError(\n\t\t\tminExtra, mm.mu.curAllocated, mm.reserved.used), mm.name,\n\t\t)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/457797dea2704c6afce4ca188bb211c40584b2b5", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\tNewBudgetExceededError(requestedBytes int64, budgetBytes int64) error\n\tNewBudgetExceededError(requestedBytes int64, reservedBytes int64, budgetBytes int64) error\nfunc (m memoryResource) NewBudgetExceededError(requestedBytes int64, budgetBytes int64) error {\nfunc (m memoryResource) NewBudgetExceededError(\n\trequestedBytes int64, reservedBytes int64, budgetBytes int64,\n) error {\nfunc (d diskResource) NewBudgetExceededError(requestedBytes int64, budgetBytes int64) error {\nfunc (d diskResource) NewBudgetExceededError(\n\trequestedBytes int64, reservedBytes int64, budgetBytes int64,\n) error {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/457797dea2704c6afce4ca188bb211c40584b2b5", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 6 ] }, { "input": "\t\t\"memory budget exceeded: %d bytes requested, %d bytes in budget\",\n\t\t\"memory budget exceeded: %d bytes requested, %d currently allocated, %d bytes in budget\",\n\t\t\"disk budget exceeded: %d bytes requested, %d bytes in budget\",\n\t\t\"disk budget exceeded: %d bytes requested, %d currently allocated, %d bytes in budget\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/457797dea2704c6afce4ca188bb211c40584b2b5", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\tkey, err = DecodeKeyVals(types[:length], vals[:length], colDirs[:length], key)\n\t\t\tkey, err = DecodeKeyVals(vals[:length], colDirs[:length], key)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/a584f26dbbb99f8fb55bdbe219f549825c433394", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": "\tkey, err = DecodeKeyVals(types, vals, colDirs, key)\n\tkey, err = DecodeKeyVals(vals, colDirs, key)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/a584f26dbbb99f8fb55bdbe219f549825c433394", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5, 6 ] }, { "input": "func DecodeKeyVals(\n\ttypes []ColumnType, vals []EncDatum, directions []encoding.Direction, key []byte,\n) ([]byte, error) {\nfunc DecodeKeyVals(vals []EncDatum, directions []encoding.Direction, key []byte) ([]byte, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/a584f26dbbb99f8fb55bdbe219f549825c433394", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5, 6 ] }, { "input": "\t\tkey, err = DecodeKeyVals(indexTypes, values, dirs, key)\n\t\tkey, err = DecodeKeyVals(values, dirs, key)\n\t\t\tkey, err = DecodeKeyVals(types[:length], vals[:length], colDirs[:length], key)\n\t\t\tkey, err = DecodeKeyVals(vals[:length], colDirs[:length], key)\n\tkey, err = DecodeKeyVals(types, vals, colDirs, key)\n\tkey, err = DecodeKeyVals(vals, colDirs, key)\nfunc DecodeKeyVals(\n\ttypes []ColumnType, vals []EncDatum, directions []encoding.Direction, key []byte,\n) ([]byte, error) {\nfunc DecodeKeyVals(vals []EncDatum, directions []encoding.Direction, key []byte) ([]byte, error) {\n\t_, err = DecodeKeyVals(extraTypes, extraValues, dirs, extraKey)\n\t_, err = DecodeKeyVals(extraValues, dirs, extraKey)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/a584f26dbbb99f8fb55bdbe219f549825c433394", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 6 ] }, { "input": "\t_, err = DecodeKeyVals(extraTypes, extraValues, dirs, extraKey)\n\t_, err = DecodeKeyVals(extraValues, dirs, extraKey)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/a584f26dbbb99f8fb55bdbe219f549825c433394", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": "\ttableDesc, err := makeCSVTableDescriptor(ctx, createTable, parentID, defaultCSVTableID, walltime)\n\ttableDesc, err := makeSimpleTableDescriptor(ctx, createTable, parentID, defaultCSVTableID, walltime)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/910c914a66aa7f315cd2a9ae057d67ec4d3add33", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4, 5, 6 ] }, { "input": "func makeCSVTableDescriptor(\n// makeSimpleTableDescriptor creates a TableDescriptor from a CreateTable parse\n// node without the full machinery. Many parts of the syntax are unsupported\n// (see the implementation and TestMakeSimpleTableDescriptorErrors for details),\n// but this is enough for our csv IMPORT and for some unit tests.\nfunc makeSimpleTableDescriptor(\n\ttableDesc, err := makeCSVTableDescriptor(ctx, createTable, parentID, defaultCSVTableID, walltime)\n\ttableDesc, err := makeSimpleTableDescriptor(ctx, createTable, parentID, defaultCSVTableID, walltime)\n\t\ttableDesc, err := makeCSVTableDescriptor(ctx, create, parentID, defaultCSVTableID, walltime)\n\t\ttableDesc, err := makeSimpleTableDescriptor(ctx, create, parentID, defaultCSVTableID, walltime)\n\t\t\t_, err = makeCSVTableDescriptor(ctx, create, defaultCSVParentID, defaultCSVTableID, 0)\n\t\t\t_, err = makeSimpleTableDescriptor(ctx, create, defaultCSVParentID, defaultCSVTableID, 0)\n\ttableDesc, err := makeCSVTableDescriptor(ctx, create, sqlbase.ID(100), sqlbase.ID(100), 1)\n\ttableDesc, err := makeSimpleTableDescriptor(ctx, create, sqlbase.ID(100), sqlbase.ID(100), 1)\n\t\t// TODO(dan): makeCSVTableDescriptor happens to be exactly the code we\n\t\t// want. Rename it to something more general.\n\t\tt.parsed.tableDesc, err = makeCSVTableDescriptor(\n\t\tt.parsed.tableDesc, err = makeSimpleTableDescriptor(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/910c914a66aa7f315cd2a9ae057d67ec4d3add33", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 4, 5, 6 ] }, { "input": "\ttableDesc, err := makeCSVTableDescriptor(ctx, create, sqlbase.ID(100), sqlbase.ID(100), 1)\n\ttableDesc, err := makeSimpleTableDescriptor(ctx, create, sqlbase.ID(100), sqlbase.ID(100), 1)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/910c914a66aa7f315cd2a9ae057d67ec4d3add33", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 4, 6 ] }, { "input": "\t\t// TODO(dan): makeCSVTableDescriptor happens to be exactly the code we\n\t\t// want. Rename it to something more general.\n\t\tt.parsed.tableDesc, err = makeCSVTableDescriptor(\n\t\tt.parsed.tableDesc, err = makeSimpleTableDescriptor(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/910c914a66aa7f315cd2a9ae057d67ec4d3add33", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 4, 5 ] }, { "input": "\t\t\tif err := job.Paused(ctx); !testutils.IsError(\n\t\t\t\terr, `schema change jobs do not support PAUSE`,\n\t\t\t) {\n\t\t\t\tt.Fatalf(\"expected 'schema change jobs do not support PAUSE' error, but got %s\", err)\n\t\t\tpauseErr := fmt.Sprintf(\"%s jobs do not support PAUSE\", tc.name)\n\t\t\tif err := job.Paused(ctx); !testutils.IsError(err, pauseErr) {\n\t\t\t\tt.Fatalf(\"expected '%s' error, but got %s\", pauseErr, err)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.027777777777777776, "commit_url": "https://github.com/cockroachdb/cockroach/commit/065195270a73d9e9456c7f72e50ec8141dc44b89", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tif err := job.Canceled(ctx); !testutils.IsError(\n\t\t\t\terr, `schema change jobs do not support CANCEL`,\n\t\t\t) {\n\t\t\t\tt.Fatalf(\"expected 'schema change jobs do not support CANCEL' error, but got %s\", err)\n\t\t\tcancelErr := fmt.Sprintf(\"%s jobs do not support CANCEL\", tc.name)\n\t\t\tif err := job.Canceled(ctx); !testutils.IsError(err, cancelErr) {\n\t\t\t\tt.Fatalf(\"expected '%s' error, but got %s\", cancelErr, err)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.027777777777777776, "commit_url": "https://github.com/cockroachdb/cockroach/commit/065195270a73d9e9456c7f72e50ec8141dc44b89", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t`IMPORT TABLE t (a int primary key, b string, index (b), index (a, b)) CSV DATA (%s) WITH temp = $1, comma = '|', comment = '#', nullif=''`,\n\t\t\t`IMPORT TABLE t (a int primary key, b string, index (b), index (a, b)) CSV DATA (%s) WITH temp = $1, delimiter = '|', comment = '#', nullif=''`,\n\t\t\t`IMPORT TABLE t (a int primary key, b string, index (b), index (a, b)) CSV DATA (%s) WITH temp = $1, distributed, comma = '|', comment = '#', nullif=''`,\n\t\t\t`IMPORT TABLE t (a int primary key, b string, index (b), index (a, b)) CSV DATA (%s) WITH temp = $1, distributed, delimiter = '|', comment = '#', nullif=''`,\n\t\t\t`IMPORT TABLE t (a int primary key, b string, index (b), index (a, b)) CSV DATA (%s) WITH temp = $1, distributed, comma = '|', comment = '#', nullif='', transform_only`,\n\t\t\t`IMPORT TABLE t (a int primary key, b string, index (b), index (a, b)) CSV DATA (%s) WITH temp = $1, distributed, delimiter = '|', comment = '#', nullif='', transform_only`,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/0b8681c0ceb4a1371fe68b0dc7f36feaeb78805d", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\t\tcase s.nonEmptySnapshotApplySem <- struct{}{}:\n\t\tcase s.snapshotApplySem <- struct{}{}:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b6a4a8d992a048bce7a6e837127473545cc3ec57", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t<-s.nonEmptySnapshotApplySem\n\t\t\t<-s.snapshotApplySem\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b6a4a8d992a048bce7a6e837127473545cc3ec57", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tcase sem <- struct{}{}:\n\t\tcase s.snapshotApplySem <- struct{}{}:\n\t\tcase sem <- struct{}{}:\n\t\tcase s.snapshotApplySem <- struct{}{}:\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b6a4a8d992a048bce7a6e837127473545cc3ec57", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "// RegisterPositiveDurationSetting defines a new setting with type duration.\nfunc RegisterPositiveDurationSetting(\n// RegisterNonNegativeDurationSetting defines a new setting with type duration.\nfunc RegisterNonNegativeDurationSetting(\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/af8f53dcebef6c895a98987dc7041766c6e6556b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": "\t\tif _, err := DecodeKeyVals(&alloc, vals, dirs, key); err != nil {\n\t\tif _, err := DecodeKeyVals(vals, dirs, key); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/449968a62f9daf3a9500f827e1d4815be959a542", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": "\t\t\tvalueBytes, err = DecodeKeyVals(&rf.alloc, rf.extraVals, nil, valueBytes)\n\t\t\tvalueBytes, err = DecodeKeyVals(rf.extraVals, nil, valueBytes)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/449968a62f9daf3a9500f827e1d4815be959a542", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6 ] }, { "input": "\t\t\tkey, err = DecodeKeyVals(a, vals[:length], colDirs[:length], key)\n\t\t\tkey, err = DecodeKeyVals(vals[:length], colDirs[:length], key)\n\t\tif _, err := DecodeKeyVals(&alloc, vals, dirs, key); err != nil {\n\t\tif _, err := DecodeKeyVals(vals, dirs, key); err != nil {\n\t\t\tvalueBytes, err = DecodeKeyVals(&rf.alloc, rf.extraVals, nil, valueBytes)\n\t\t\tvalueBytes, err = DecodeKeyVals(rf.extraVals, nil, valueBytes)\n\tkey, err = DecodeKeyVals(a, vals, colDirs, key)\n\tkey, err = DecodeKeyVals(vals, colDirs, key)\nfunc DecodeKeyVals(\n\ta *DatumAlloc, vals []EncDatum, directions []encoding.Direction, key []byte,\n) ([]byte, error) {\nfunc DecodeKeyVals(vals []EncDatum, directions []encoding.Direction, key []byte) ([]byte, error) {\n\t\tkey, err = DecodeKeyVals(a, values, dirs, key)\n\t\tkey, err = DecodeKeyVals(values, dirs, key)\n\t_, err = DecodeKeyVals(a, extraValues, dirs, extraKey)\n\t_, err = DecodeKeyVals(extraValues, dirs, extraKey)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/449968a62f9daf3a9500f827e1d4815be959a542", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6 ] }, { "input": "func DecodeKeyVals(\n\ta *DatumAlloc, vals []EncDatum, directions []encoding.Direction, key []byte,\n) ([]byte, error) {\nfunc DecodeKeyVals(vals []EncDatum, directions []encoding.Direction, key []byte) ([]byte, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/449968a62f9daf3a9500f827e1d4815be959a542", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6 ] }, { "input": "\t\tkey, err = DecodeKeyVals(a, values, dirs, key)\n\t\tkey, err = DecodeKeyVals(values, dirs, key)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/449968a62f9daf3a9500f827e1d4815be959a542", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6 ] }, { "input": "\t_, err = DecodeKeyVals(a, extraValues, dirs, extraKey)\n\t_, err = DecodeKeyVals(extraValues, dirs, extraKey)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/449968a62f9daf3a9500f827e1d4815be959a542", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5 ] }, { "input": "\tf, err := os.OpenFile(filepath.Join(dir, backupDesc.Files[1].Path), os.O_WRONLY, 0)\n\tf, err := os.OpenFile(filepath.Join(rawDir, backupDesc.Files[1].Path), os.O_WRONLY, 0)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/57e55cdae64b47a8532fb867547ce001f8f225bf", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "\tif err := filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {\n\tif err := filepath.Walk(rawDir, func(path string, info os.FileInfo, err error) error {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/57e55cdae64b47a8532fb867547ce001f8f225bf", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\t\tr.handleEvalResult(ctx, repDesc, proposal.Local,\n\t\t\tproposal.command.ReplicatedEvalResult)\n\t\tr.handleEvalResult(ctx, proposal.Local, proposal.command.ReplicatedEvalResult)\n\t\tr.handleEvalResult(ctx, raftCmd.OriginReplica, lResult, raftCmd.ReplicatedEvalResult)\n\t\tr.handleEvalResult(ctx, lResult, raftCmd.ReplicatedEvalResult)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/17dd69a14e0cf867b6d3e6d4347227c5500e7970", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tr.handleEvalResult(ctx, raftCmd.OriginReplica, lResult, raftCmd.ReplicatedEvalResult)\n\t\tr.handleEvalResult(ctx, lResult, raftCmd.ReplicatedEvalResult)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/17dd69a14e0cf867b6d3e6d4347227c5500e7970", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": "\tmetaRaftWorkingDurationNanos = metric.Metadata{Name: \"raft.process.workingnanos\",\n\tmetaRaftWorkingDurationNanos = metric.Metadata{\n\t\tName: \"raft.process.workingnanos\",\n\tmetaRaftTickingDurationNanos = metric.Metadata{Name: \"raft.process.tickingnanos\",\n\tmetaRaftTickingDurationNanos = metric.Metadata{\n\t\tName: \"raft.process.tickingnanos\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/e38434ff71d93c47bdbe22c65e1c82873045c0cc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tif p.asOf {\n\tif p.avoidCachedDescriptors {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b3609ecba95c398af8f7ca87efb1f793cd3a53f3", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7 ] }, { "input": "\t\tsession.planner.asOf = true\n\t\tsession.planner.avoidCachedDescriptors = true\n\tif p.asOf {\n\tif p.avoidCachedDescriptors {\n\t\t\tsession.planner.asOf = false\n\t\t\tsession.planner.avoidCachedDescriptors = false\n\t\t\t\t\tplanMaker.asOf = true\n\t\t\t\t\tplanMaker.avoidCachedDescriptors = true\n\t\t\t\t\t\tplanMaker.asOf = false\n\t\t\t\t\t\tplanMaker.avoidCachedDescriptors = false\n\t// If set, this is an AS OF SYSTEM TIME query. This flag is used in layers\n\t// below the executor to modify the behavior of the SELECT. For example the\n\t// table descriptor is not leased, only fetched at the correct time.\n\tasOf bool\n\t// If set, table descriptors will only be fetched at the time of the\n\t// transaction, not leased. This is used for things like AS OF SYSTEM TIME\n\t// queries and building query plans for views when they're created.\n\t// It's used in layers below the executor to modify the behavior of SELECT.\n\tavoidCachedDescriptors bool\n\tif parsed.From.AsOf.Expr != nil && !s.planner.asOf {\n\tif parsed.From.AsOf.Expr != nil && !s.planner.avoidCachedDescriptors {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b3609ecba95c398af8f7ca87efb1f793cd3a53f3", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 5, 6, 7 ] }, { "input": "\t\t\tsession.planner.asOf = false\n\t\t\tsession.planner.avoidCachedDescriptors = false\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b3609ecba95c398af8f7ca87efb1f793cd3a53f3", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 5, 6, 7 ] }, { "input": "\t\t\t\t\tplanMaker.asOf = true\n\t\t\t\t\tplanMaker.avoidCachedDescriptors = true\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b3609ecba95c398af8f7ca87efb1f793cd3a53f3", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5, 6, 7 ] }, { "input": "\t\t\t\t\t\tplanMaker.asOf = false\n\t\t\t\t\t\tplanMaker.avoidCachedDescriptors = false\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b3609ecba95c398af8f7ca87efb1f793cd3a53f3", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 4, 6, 7 ] }, { "input": "\t// If set, this is an AS OF SYSTEM TIME query. This flag is used in layers\n\t// below the executor to modify the behavior of the SELECT. For example the\n\t// table descriptor is not leased, only fetched at the correct time.\n\tasOf bool\n\t// If set, table descriptors will only be fetched at the time of the\n\t// transaction, not leased. This is used for things like AS OF SYSTEM TIME\n\t// queries and building query plans for views when they're created.\n\t// It's used in layers below the executor to modify the behavior of SELECT.\n\tavoidCachedDescriptors bool\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b3609ecba95c398af8f7ca87efb1f793cd3a53f3", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 7 ] }, { "input": "\tif parsed.From.AsOf.Expr != nil && !s.planner.asOf {\n\tif parsed.From.AsOf.Expr != nil && !s.planner.avoidCachedDescriptors {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/b3609ecba95c398af8f7ca87efb1f793cd3a53f3", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": "\t\t\trng, err := NewReplica(&desc, s, 0)\n\t\t\trep, err := NewReplica(&desc, s, 0)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/c7101060b932d91d0ba793c329d4886070bc2a39", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\tif err = s.addReplicaInternalLocked(rng); err != nil {\n\t\t\tif err = s.addReplicaInternalLocked(rep); err != nil {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/c7101060b932d91d0ba793c329d4886070bc2a39", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": "\tif s.hasOverlappingKeyRangeLocked(rng.Desc()) {\n\t\treturn errors.Errorf(\"%s: cannot addReplicaInternalLocked; range %s has overlapping range\", s, rng)\n\tif exRange := s.getOverlappingKeyRangeLocked(rng.Desc()); exRange != nil {\n\t\treturn errors.Errorf(\"%s: cannot addReplicaInternalLocked; range %s has overlapping range %s\", s, rng, exRange.Desc())\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/cockroachdb/cockroach/commit/4638eaa1d65d08a379b12b3e83ab17b8c127b96b", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tif s.hasOverlappingKeyRangeLocked(rng.Desc()) {\n\t\treturn errors.Errorf(\"%s: cannot processRangeDescriptorUpdate; range %s has overlapping range\", s, rng)\n\tif exRange := s.getOverlappingKeyRangeLocked(rng.Desc()); exRange != nil {\n\t\treturn errors.Errorf(\"%s: cannot processRangeDescriptorUpdate; range %s has overlapping range %s\", s, rng, exRange.Desc())\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/cockroachdb/cockroach/commit/4638eaa1d65d08a379b12b3e83ab17b8c127b96b", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\tfor _, q := range request.Queries {\n\t\tdatapoints, sources, err := s.db.Query(q, Resolution10s, request.StartNanos, request.EndNanos)\n\tfor _, query := range request.Queries {\n\t\tdatapoints, sources, err := s.db.Query(query, Resolution10s, request.StartNanos, request.EndNanos)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/cockroachdb/cockroach/commit/61b76829abab916be0c384800e12d0b7867f8f5f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tQuery: q,\n\t\t\tQuery: query,\n\tfor _, q := range request.Queries {\n\t\tdatapoints, sources, err := s.db.Query(q, Resolution10s, request.StartNanos, request.EndNanos)\n\tfor _, query := range request.Queries {\n\t\tdatapoints, sources, err := s.db.Query(query, Resolution10s, request.StartNanos, request.EndNanos)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/61b76829abab916be0c384800e12d0b7867f8f5f", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t\t\t\tName: \"test.metric\",\n\t\t\t\t\tSources: []string{\"source1\", \"source2\"},\n\t\t\t\t\tDownsampler: tspb.TimeSeriesQueryAggregator_AVG.Enum(),\n\t\t\t\t\tSourceAggregator: tspb.TimeSeriesQueryAggregator_SUM.Enum(),\n\t\t\t\t\tDerivative: tspb.TimeSeriesQueryDerivative_NONE.Enum(),\n\t\t\t\t\tName: \"test.metric\",\n\t\t\t\t\tSources: []string{\"source1\", \"source2\"},\n\t\t\t\t\tName: \"other.metric\",\n\t\t\t\t\tSources: []string{\"\"},\n\t\t\t\t\tDownsampler: tspb.TimeSeriesQueryAggregator_AVG.Enum(),\n\t\t\t\t\tSourceAggregator: tspb.TimeSeriesQueryAggregator_SUM.Enum(),\n\t\t\t\t\tDerivative: tspb.TimeSeriesQueryDerivative_NONE.Enum(),\n\t\t\t\t\tName: \"other.metric\",\n\t\t\t\t\tSources: []string{\"\"},\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/61b76829abab916be0c384800e12d0b7867f8f5f", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\texpected: \"[NodeID: 5] [ReqID: 123] test\",\n\t\t\texpected: \"[NodeID=5,ReqID=123] test\",\n\t\t\texpected: \"[NodeID: 5] [ReqID: 123] [aborted] test\",\n\t\t\texpected: \"[NodeID=5,ReqID=123,aborted] test\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d4239255bb4df1d36ad12d17197c112005d8a421", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\tcmd, err := rng.prepareRaftCommandLocked(context.Background(), makeIDKey(), *replica, ba)\n\t\t\tif err != nil {\n\t\t\t\tt.Fatal(err)\n\t\t\t}\n\t\t\tcmd := rng.prepareRaftCommandLocked(context.Background(), makeIDKey(), *replica, ba)\n\t\t\tcmd, err := tc.rng.prepareRaftCommandLocked(ctx, makeIDKey(), *replica, ba)\n\t\t\tif err != nil {\n\t\t\t\tt.Fatal(err)\n\t\t\t}\n\t\t\tcmd := tc.rng.prepareRaftCommandLocked(ctx, makeIDKey(), *replica, ba)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/75c2534aa879c78d41cc7edabb69a6ff7dc35907", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\tfor addr, o := range r.mu.offsets {\n\tfor addr, offset := range r.mu.offsets {\n\t\tif o.measuredAt().Before(r.mu.lastMonitoredAt) {\n\t\tif offset.measuredAt().Before(r.mu.lastMonitoredAt) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/770d1cfa83d38966239d540bf8cabf5fe7adb586", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tif o.measuredAt().Before(r.mu.lastMonitoredAt) {\n\t\tif offset.measuredAt().Before(r.mu.lastMonitoredAt) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/770d1cfa83d38966239d540bf8cabf5fe7adb586", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\toffset: time.Duration(o.Offset-o.Uncertainty)*time.Nanosecond - maxOffset,\n\t\t\toffset: time.Duration(offset.Offset-offset.Uncertainty) * time.Nanosecond,\n\t\t\toffset: time.Duration(o.Offset+o.Uncertainty)*time.Nanosecond + maxOffset,\n\t\t\toffset: time.Duration(offset.Offset+offset.Uncertainty) * time.Nanosecond,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/770d1cfa83d38966239d540bf8cabf5fe7adb586", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\texpectedInterval := clusterOffsetInterval{lowerbound: -11, upperbound: 13}\n\texpectedInterval := clusterOffsetInterval{lowerbound: -1, upperbound: 3}\n\texpectedInterval := clusterOffsetInterval{lowerbound: -270, upperbound: 510}\n\texpectedInterval := clusterOffsetInterval{lowerbound: -170, upperbound: 410}\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/770d1cfa83d38966239d540bf8cabf5fe7adb586", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "// not present, use default port 26257. If host is not present, host will be\n// equal to the hostname (or \"127.0.0.1\" as a fallback).\nfunc EnsureHostPort(addr string) string {\n// not present, use default port 26257(cockroach) or 15432(postgres). If host is\n// not present, host will be equal to the hostname (or \"127.0.0.1\" as a fallback).\nfunc EnsureHostPort(addr string, defaultPort string) string {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/1dce1198db1cbe7e9a2f3247fec2fd0f7fcca7da", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\thost, oldPort, err := net.SplitHostPort(EnsureHostPort(oldAddrStr))\n\t\thost, oldPort, err := net.SplitHostPort(EnsureHostPort(oldAddrStr, CockroachPort))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/1dce1198db1cbe7e9a2f3247fec2fd0f7fcca7da", "target_edit_idx": 9, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\t\ttrace.Event(fmt.Sprintf(\"reply error: %T\", tErr))\n\t\t\t\ttrace.Event(fmt.Sprintf(\"reply error: %T\", tErr))\n\t\t\t\t\ttrace.Event(fmt.Sprintf(\"reply error: %T\", tErr))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/a295896b2d5eeb4b52c566fb312db4ea29bb92b2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\treturn typeCheckBooleanExprs(expr.Left, expr.Right)\n\treturn typeCheckBooleanExprs(\"AND\", expr.Left, expr.Right)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/c9eaa3cb7af1aeca5e2671b605cc3e89960e1d87", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\treturn typeCheckBooleanExprs(expr.Expr)\n\treturn typeCheckBooleanExprs(\"NOT\", expr.Expr)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/c9eaa3cb7af1aeca5e2671b605cc3e89960e1d87", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": "\treturn typeCheckBooleanExprs(expr.Left, expr.Right)\n\treturn typeCheckBooleanExprs(\"OR\", expr.Left, expr.Right)\n\treturn typeCheckBooleanExprs(expr.Left, expr.Right)\n\treturn typeCheckBooleanExprs(\"AND\", expr.Left, expr.Right)\n\treturn typeCheckBooleanExprs(expr.Expr)\n\treturn typeCheckBooleanExprs(\"NOT\", expr.Expr)\nfunc typeCheckBooleanExprs(exprs ...Expr) (Datum, error) {\nfunc typeCheckBooleanExprs(op string, exprs ...Expr) (Datum, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/c9eaa3cb7af1aeca5e2671b605cc3e89960e1d87", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "func typeCheckBooleanExprs(exprs ...Expr) (Datum, error) {\nfunc typeCheckBooleanExprs(op string, exprs ...Expr) (Datum, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/c9eaa3cb7af1aeca5e2671b605cc3e89960e1d87", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "\t\t\t\top.ch <- s.removeGroup(op.groupID)\n\t\t\t\top.ch <- s.removeGroup(op.groupID, op.replicaID)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/987322578ae8bd8d5c2d3e12e91aa1c1a1b9d867", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\tif err := s.removeGroup(req.GroupID); err != nil {\n\t\t\tif err := s.removeGroup(req.GroupID, g.replicaID); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/987322578ae8bd8d5c2d3e12e91aa1c1a1b9d867", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tif err := s.multiraft.RemoveGroup(newDesc.RangeID); err != nil {\n\t\tif err := s.multiraft.RemoveGroup(newDesc.RangeID, 0); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/cockroachdb/cockroach/commit/987322578ae8bd8d5c2d3e12e91aa1c1a1b9d867", "target_edit_idx": 10, "propagatable_edit_idx": [ 13 ] }, { "input": "\tif err := s.multiraft.RemoveGroup(rangeID); err != nil {\n\tif err := s.multiraft.RemoveGroup(rangeID, replicaID); err != nil {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/cockroachdb/cockroach/commit/987322578ae8bd8d5c2d3e12e91aa1c1a1b9d867", "target_edit_idx": 13, "propagatable_edit_idx": [ 10 ] }, { "input": "// Txn is the transaction which will be retried.\n// Txn is the transaction which will be retried. Both arguments are copied.\n// Transactions.\n// Txn is the transaction which will be retried.\n// Txn is the transaction which will be retried (a copy is taken).\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/33847965154ab51318f9cad8fc76123131fc4ec7", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t// Copying avoids a race (#2537): the txn in the args may be re-used\n\t\t\t// for retries, but the one in the reply can end up in a goroutine.\n\t\t\tpusherTxn := gogoproto.Clone(args.PusherTxn).(*proto.Transaction)\n\t\t\treturn reply, proto.NewTransactionStatusError(pusherTxn,\n\t\t\treturn reply, proto.NewTransactionStatusError(args.PusherTxn,\n\t\t// Copying avoids a race (#2537): the txn in the args may be re-used\n\t\t// for retries, but the one in the reply can end up in a goroutine.\n\t\tpusherTxn := gogoproto.Clone(args.PusherTxn).(*proto.Transaction)\n\t\terr := proto.NewTransactionPushError(pusherTxn, reply.PusheeTxn)\n\t\terr := proto.NewTransactionPushError(args.PusherTxn, reply.PusheeTxn)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/33847965154ab51318f9cad8fc76123131fc4ec7", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\t\tcase <-time.After(500 * time.Millisecond):\n\t\t\t\tt.Fatalf(\"test %d: waited 500ms for cmd3 of key2\", i)\n\t\t\tcase <-time.After(tooLong):\n\t\t\t\tt.Fatalf(\"test %d: waited %s for cmd3 of key2\", i, tooLong)\n\t\t\tcase <-time.After(500 * time.Millisecond):\n\t\t\t\tt.Fatalf(\"test %d: waited 500ms for cmd2 of key1\", i)\n\t\t\tcase <-time.After(tooLong):\n\t\t\t\tt.Fatalf(\"test %d: waited %s for cmd2 of key1\", i, tooLong)\n\t\tcase <-time.After(500 * time.Millisecond):\n\t\t\tt.Fatalf(\"test %d: waited 500ms for cmd2 of key1\", i)\n\t\tcase <-time.After(tooLong):\n\t\t\tt.Fatalf(\"test %d: waited %s for cmd2 of key1\", i, tooLong)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.012269938650306749, "commit_url": "https://github.com/cockroachdb/cockroach/commit/f524b5a0b7e4b57a78a127e5f4f1b5aa5864599e", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10 ] }, { "input": "\t\t\tcase <-time.After(500 * time.Millisecond):\n\t\t\t\tt.Fatalf(\"test %d: waited 500ms for cmd2 of key1\", i)\n\t\t\tcase <-time.After(tooLong):\n\t\t\t\tt.Fatalf(\"test %d: waited %s for cmd2 of key1\", i, tooLong)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.012269938650306749, "commit_url": "https://github.com/cockroachdb/cockroach/commit/f524b5a0b7e4b57a78a127e5f4f1b5aa5864599e", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 10 ] }, { "input": "\t\t\tkey := structured.MakeColumnKey(cols[i].ID, primaryIndexKey)\n\t\t\tif log.V(2) {\n\t\t\t\tlog.Infof(\"CPut %q -> %v\", key, val)\n\t\t\t}\n\t\t\tv, err := prepareVal(cols[i], val)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\tif v != nil {\n\t\t\tif primitive != nil {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/601315cc398b2e97abbbddc332675ad1a4ebec45", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 5, 6 ] }, { "input": "\t\t\t\tb.CPut(key, v, nil)\n\n\t\t\t\tkey := structured.MakeColumnKey(col.ID, primaryIndexKey)\n\t\t\t\tif log.V(2) {\n\t\t\t\t\tlog.Infof(\"CPut %q -> %v\", key, primitive)\n\t\t\t\t}\n\n\t\t\t\tb.CPut(key, primitive, nil)\n\t\t\tkey := structured.MakeColumnKey(cols[i].ID, primaryIndexKey)\n\t\t\tif log.V(2) {\n\t\t\t\tlog.Infof(\"CPut %q -> %v\", key, val)\n\t\t\t}\n\t\t\tv, err := prepareVal(cols[i], val)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\tif v != nil {\n\t\t\tif primitive != nil {\n\t\t\tif v != nil {\n\n\t\t\tkey := structured.MakeColumnKey(col.ID, primaryIndexKey)\n\t\t\tif primitive != nil {\n\t\t\t\tb.Put(key, v)\n\t\t\t\tif log.V(2) {\n\t\t\t\t\tlog.Infof(\"Put %q -> %v\", key, val)\n\t\t\t\t}\n\n\t\t\t\tb.Put(key, primitive)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/601315cc398b2e97abbbddc332675ad1a4ebec45", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 5, 6 ] }, { "input": "\trngKey, cachedDesc := rmc.getCachedRangeDescriptorLocked(descKey)\n\trngKey, cachedDesc := rmc.getCachedRangeDescriptorLocked(descKey, false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d8665211a584aa466f22d47dc7b1886a375d7053", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\treturn rmc.getCachedRangeDescriptorLocked(key)\n\treturn rmc.getCachedRangeDescriptorLocked(key, false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/d8665211a584aa466f22d47dc7b1886a375d7053", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "// RegisterHandlers registers admin handlers with the supplied\n// registerHandlers registers admin handlers with the supplied\n// RegisterHandlers registers admin handlers with the supplied\n// registerHandlers registers admin handlers with the supplied\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/2813c31e28d183a18a9f872515441bf057f60d69", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\tpreRng := createRange(tc.store, 2, proto.Key(\"a\"), proto.Key(\"b\"))\n\tpreRng := createRange(tc.store, 2, proto.KeyMin, proto.Key(\"b\"))\n\tpostRng := createRange(tc.store, 3, proto.Key(\"c\"), proto.Key(\"d\"))\n\tpostRng := createRange(tc.store, 3, proto.Key(\"c\"), proto.KeyMax)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cockroachdb/cockroach/commit/ddd7d9c7cec6993b0a0dd795ffeea0946c3eb9b3", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\tfor i := 0; iter.Valid(); iter.Next() {\n\ti := 0\n\tfor ; iter.Valid(); iter.Next() {\n\t\tfor i := 0; iter.Valid(); iter.Next() {\n\t\ti = 0\n\t\tfor ; iter.Valid(); iter.Next() {\n\t\t\tk1, ts1, _ := engine.MVCCDecodeKey(iter.Key())\n\t\t\tif bytes.HasPrefix(k1, engine.KeyConfigAccountingPrefix) ||\n\t\t\t\tbytes.HasPrefix(k1, engine.KeyConfigPermissionPrefix) ||\n\t\t\t\tbytes.HasPrefix(k1, engine.KeyConfigZonePrefix) {\n\t\t\t\t// Some data is written into the system prefix by Store.BootstrapRange,\n\t\t\t\t// but it is not in our expected key list so skip it.\n\t\t\t\t// TODO(bdarnell): validate this data instead of skipping it.\n\t\t\t\tcontinue\n\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/ddd7d9c7cec6993b0a0dd795ffeea0946c3eb9b3", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\t\t{Term: 1, Index: 2},\n\t\t\t\t{Term: 2, Index: 2},\n\t\t\t\t{Term: 1, Index: 2},\n\t\t\t\t{Term: 2, Index: 2},\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cockroachdb/cockroach/commit/6407558dd75d8096f42425ec02fa221c813a8330", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tn := StartNode(0, nil, 0, 0)\n\tn := StartNode(0, nil, 0, 0, nil)\nfunc StartNode(id int64, peers []int64, election, heartbeat int) Node {\n// It also wraps ConfChanges in entry and puts them at the head of the log.\nfunc StartNode(id int64, peers []int64, election, heartbeat int, ccs []pb.ConfChange) Node {\n\tn := StartNode(1, []int64{1}, 0, 0)\n\tn := StartNode(1, []int64{1}, 0, 0, []raftpb.ConfChange{cc})\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/ccd6a0de1151dfa37d29fef10452ac5abca9650e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 6 ] }, { "input": "func StartNode(id int64, peers []int64, election, heartbeat int) Node {\n// It also wraps ConfChanges in entry and puts them at the head of the log.\nfunc StartNode(id int64, peers []int64, election, heartbeat int, ccs []pb.ConfChange) Node {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cockroachdb/cockroach/commit/ccd6a0de1151dfa37d29fef10452ac5abca9650e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 6 ] }, { "input": "\tif d.Network == \"builtin\" {\n\tif network.IsBuiltin(d.Network) {\n\tif d.Network == \"builtin\" {\n\tif network.IsBuiltin(d.Network) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/minikube/commit/0b7c0810c98af6a6610591a3dee68d9990198576", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\tcase \"builtin\":\n\tcase \"builtin\", \"user\":\n\tcase \"builtin\":\n\tcase \"builtin\", \"user\":\n\tcase \"builtin\":\n\tcase \"builtin\", \"user\":\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kubernetes/minikube/commit/0b7c0810c98af6a6610591a3dee68d9990198576", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "func ExitIfFatal(err error) {\nfunc ExitIfFatal(err error, force bool) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/kubernetes/minikube/commit/83d4219fee47e0798ee9712cc85e77093aa8de68", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tExitIfFatal(err)\n\t\tExitIfFatal(err, false)\nfunc ExitIfFatal(err error) {\nfunc ExitIfFatal(err error, force bool) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/kubernetes/minikube/commit/83d4219fee47e0798ee9712cc85e77093aa8de68", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\treturn apiServerHealthz(hostname, port)\n\t\treturn nonFreezerServerStatus(cr, hostname, port)\n\t\treturn apiServerHealthz(hostname, port)\n\t\treturn nonFreezerServerStatus(cr, hostname, port)\n\t\treturn apiServerHealthz(hostname, port)\n\t\treturn nonFreezerServerStatus(cr, hostname, port)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kubernetes/minikube/commit/521a507d938ab7e03813e566ca23a07e1662e229", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\tif setupFailed {\n\tif !setupSucceeded {\n\tif setupFailed {\n\tif !setupSucceeded {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/minikube/commit/5c0177aff6e00e226e8206ccb0bca133ca4b2b1d", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "StartLimitBurst=3\nStartLimitIntervalSec=60\nStartLimitBurst=3\nStartLimitIntervalSec=60\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/minikube/commit/6d40ab38c76b2caeda7275a1591c70274ec0115d", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\tmRunner, preExists, mAPI, host, err := node.Provision(&cc, &n, true)\n\tmRunner, preExists, mAPI, host, err := node.Provision(&cc, &n, true, viper.GetBool(deleteOnFailure))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/kubernetes/minikube/commit/84eea2f487c559bd602c866a875ab6234a7ec15b", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 6 ] }, { "input": "\t\t\t\t\terr := node.Add(starter.Cfg, n)\n\t\t\t\t\terr := node.Add(starter.Cfg, n, viper.GetBool(deleteOnFailure))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1875, "commit_url": "https://github.com/kubernetes/minikube/commit/84eea2f487c559bd602c866a875ab6234a7ec15b", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 5 ] }, { "input": "\t\t\tr, p, m, h, err := node.Provision(&cc, &n, n.ControlPlane)\n\t\t\tr, p, m, h, err := node.Provision(&cc, &n, n.ControlPlane, false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/kubernetes/minikube/commit/84eea2f487c559bd602c866a875ab6234a7ec15b", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\tr, p, m, h, err := Provision(cc, &n, false)\n\tr, p, m, h, err := Provision(cc, &n, false, delOnFail)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/kubernetes/minikube/commit/84eea2f487c559bd602c866a875ab6234a7ec15b", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "func Provision(cc *config.ClusterConfig, n *config.Node, apiServer bool) (command.Runner, bool, libmachine.API, *host.Host, error) {\nfunc Provision(cc *config.ClusterConfig, n *config.Node, apiServer bool, delOnFail bool) (command.Runner, bool, libmachine.API, *host.Host, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/kubernetes/minikube/commit/84eea2f487c559bd602c866a875ab6234a7ec15b", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": "\treturn startMachine(cc, n)\n\treturn startMachine(cc, n, delOnFail)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/minikube/commit/84eea2f487c559bd602c866a875ab6234a7ec15b", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "func startMachine(cfg *config.ClusterConfig, node *config.Node) (runner command.Runner, preExists bool, machineAPI libmachine.API, host *host.Host, err error) {\nfunc startMachine(cfg *config.ClusterConfig, node *config.Node, delOnFail bool) (runner command.Runner, preExists bool, machineAPI libmachine.API, host *host.Host, err error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/minikube/commit/84eea2f487c559bd602c866a875ab6234a7ec15b", "target_edit_idx": 11, "propagatable_edit_idx": [ 10 ] }, { "input": "\thost, preExists, err = startHost(m, cfg, node)\n\thost, preExists, err = startHost(m, cfg, node, delOnFail)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/minikube/commit/84eea2f487c559bd602c866a875ab6234a7ec15b", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": "func startHost(api libmachine.API, cc *config.ClusterConfig, n *config.Node) (*host.Host, bool, error) {\nfunc startHost(api libmachine.API, cc *config.ClusterConfig, n *config.Node, delOnFail bool) (*host.Host, bool, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/minikube/commit/84eea2f487c559bd602c866a875ab6234a7ec15b", "target_edit_idx": 13, "propagatable_edit_idx": [ 12 ] }, { "input": "\tbaseImage := viper.GetString(\"base-image\")\n\tbaseImage := viper.GetString(\"base-image\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/minikube/commit/ddd3c72f9df579a15a825318b474297d88fa7e2b", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\"github.com/spf13/viper\"\n\t\"github.com/spf13/viper\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/kubernetes/minikube/commit/ddd3c72f9df579a15a825318b474297d88fa7e2b", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\"k8s.io/minikube/pkg/minikube/driver\"\n\t\"k8s.io/minikube/pkg/minikube/driver\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/kubernetes/minikube/commit/6ff82c6246d2a7578df1fbe9425869e8fffae002", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\tc := exec.Command(\"sudo\", \"systemctl\", \"stop\", \"docker\", \"docker.socket\")\n\tc := exec.Command(\"sudo\", \"systemctl\", \"stop\", \"-f\", \"docker\", \"docker.socket\")\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kubernetes/minikube/commit/e437e1c44090fc1141b2d28677a19f6e92ce7cda", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "\tvar kcmd strings.Builder\n\tkcmd.WriteString(\"journalctl -u kubelet\")\n\tvar kubelet strings.Builder\n\tkubelet.WriteString(\"journalctl -u kubelet\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/kubernetes/minikube/commit/0422b9c567168ed161157df835d7b10eaa314e7c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tkcmd.WriteString(fmt.Sprintf(\" -n %d\", o.Lines))\n\t\tkubelet.WriteString(fmt.Sprintf(\" -n %d\", o.Lines))\n\tvar kcmd strings.Builder\n\tkcmd.WriteString(\"journalctl -u kubelet\")\n\tvar kubelet strings.Builder\n\tkubelet.WriteString(\"journalctl -u kubelet\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/minikube/commit/0422b9c567168ed161157df835d7b10eaa314e7c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "func (r *CRIO) Version() string {\nfunc (r *CRIO) Version() (string, error) {\nfunc (r *Rkt) Version() string {\nfunc (r *Rkt) Version() (string, error) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/minikube/commit/112a66c21ac5f9abbb138d77248854246f4daf54", "target_edit_idx": 5, "propagatable_edit_idx": [ 12 ] }, { "input": "\treturn strings.Replace(line, \"crio version \", \"\", 1)\n\treturn strings.Replace(line, \"crio version \", \"\", 1), nil\n\treturn strings.Replace(line, \"rkt Version: \", \"\", 1)\n\treturn strings.Replace(line, \"rkt Version: \", \"\", 1), nil\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/minikube/commit/112a66c21ac5f9abbb138d77248854246f4daf54", "target_edit_idx": 7, "propagatable_edit_idx": [ 14 ] }, { "input": "// TeeWithPrefix logs new lines from a reader. Designed to be run in the background.\nfunc TeeWithPrefix(prefix string, r io.Reader, w io.Writer, logger func(format string, args ...interface{})) error {\n// TeePrefix copies bytes from a reader to writer, logging each new line.\nfunc TeePrefix(prefix string, r io.Reader, w io.Writer, logger func(format string, args ...interface{})) error {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kubernetes/minikube/commit/7f7587d96cf685bc88953daddf5c1a3063897958", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 12, 13 ] }, { "input": "\tmountCmd, err := GetMountCommand(ip, path, port)\n\tmountCmd, err := GetMountCommand(ip, path, port, uid, gid)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/minikube/commit/c5becb36073b1d982fce832147af737ae5184b22", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "func GetMountCommand(ip net.IP, path string, port string) (string, error) {\nfunc GetMountCommand(ip net.IP, path, port string, uid, gid int) (string, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/minikube/commit/c5becb36073b1d982fce832147af737ae5184b22", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\turl, err := getServiceURLWithClient(client, ip, svc.Namespace, svc.Name, t)\n\t\turls, err := getServiceURLsWithClient(client, ip, svc.Namespace, svc.Name, t)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/minikube/commit/c057dede1fea2b0e03782dcc82ca1390ceb58c41", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\tserviceURLs = append(serviceURLs, ServiceURL{Namespace: svc.Namespace, Name: svc.Name, URL: url})\n\t\tserviceURLs = append(serviceURLs, ServiceURL{Namespace: svc.Namespace, Name: svc.Name, URLs: urls})\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kubernetes/minikube/commit/c057dede1fea2b0e03782dcc82ca1390ceb58c41", "target_edit_idx": 9, "propagatable_edit_idx": [ 7 ] }, { "input": "\tAttributes map[string]interface{}\n\tAttributes map[string]string\n\tGetAttributes() map[string]interface{}\n\tGetAttributes() map[string]string\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/v2fly/v2ray-core/commit/5a497890e60dfa7723a1f0714f7ef3bd9c993768", "target_edit_idx": 4, "propagatable_edit_idx": [ 10 ] }, { "input": "\tgeoipList, err := toCidrList(c.IP)\n\tgeoipList, err := toCidrList(c.ExpectIPs)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/v2fly/v2ray-core/commit/1345185b81203ef1fe1d4972b3c6a90afaac92c4", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 12 ] }, { "input": "\tnowSec := time.Now().UTC().Unix()\n\tnowSec := time.Now().Unix()\n\tnowSec := time.Now().UTC().Unix()\n\tnowSec := time.Now().Unix()\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/v2fly/v2ray-core/commit/fdb41bbd50444b702940b117efee5216a4f4756a", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tdropTime *syncx.AtomicDuration\n\t\toverloadTime *syncx.AtomicDuration\n\t\tdropTime: syncx.NewAtomicDuration(),\n\t\toverloadTime: syncx.NewAtomicDuration(),\n\t\tdropTime: syncx.NewAtomicDuration(),\n\t\toverloadTime: syncx.NewAtomicDuration(),\n\t\tdropTime: syncx.NewAtomicDuration(),\n\t\toverloadTime: syncx.NewAtomicDuration(),\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/zeromicro/go-zero/commit/4b9066eda664bde0f7283ce2b75ad035448d77db", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 2, 10 ] }, { "input": "\t\t\tcli.EXPECT().Watch(gomock.Any(), \"any/\", gomock.Any()).Return(ch)\n\t\t\tcli.EXPECT().Watch(gomock.Any(), \"any/\", gomock.Any()).Return(ch).AnyTimes()\n\tcli.EXPECT().Watch(gomock.Any(), \"any/\", gomock.Any()).Return(ch)\n\tcli.EXPECT().Watch(gomock.Any(), \"any/\", gomock.Any()).Return(ch).AnyTimes()\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zeromicro/go-zero/commit/74ee16376109911ee641cf6138c11bc10f6457fa", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": "\tctx context.Context\n\tctx context.Context\n\tsvcCtx *svc.ServiceContext\n\tctx context.Context\n\tctx context.Context\n\tsvcCtx *svc.ServiceContext\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/zeromicro/go-zero/commit/36174ba5cc45992d4e9698f79180225b1b93e983", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\tLevel: hclog.Debug,\n\t\t\tLevel: testutil.TestLogLevel,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.047619047619047616, "commit_url": "https://github.com/hashicorp/consul/commit/b05884511095f8ff25b6f5cf227375473a67f1bf", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 9, 4, 5 ] }, { "input": "\t\tLevel: hclog.Debug,\n\t\tLevel: testutil.TestLogLevel,\n\t\tLevel: hclog.Debug,\n\t\tLevel: testutil.TestLogLevel,\n\t\tLevel: hclog.Debug,\n\t\tLevel: testutil.TestLogLevel,\n\t\t\t\tLevel: hclog.Debug,\n\t\t\t\tLevel: testutil.TestLogLevel,\n\t\t\tLevel: hclog.Debug,\n\t\t\tLevel: testutil.TestLogLevel,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.047619047619047616, "commit_url": "https://github.com/hashicorp/consul/commit/b05884511095f8ff25b6f5cf227375473a67f1bf", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 4, 5, 7 ] }, { "input": "\t\tLocalBindPort: freeport.Port(t),\n\t\tLocalBindPort: freeport.GetOne(t),\n\t\t\t\t\t\t&net.TCPAddr{IP: net.ParseIP(\"127.0.0.1\"), Port: freeport.Port(t)},\n\t\t\t\t\t\t&net.TCPAddr{IP: net.ParseIP(\"127.0.0.1\"), Port: freeport.GetOne(t)},\n\tport := freeport.Port(t)\n\tport := freeport.GetOne(t)\n\t\tAddress: raft.ServerAddress(fmt.Sprintf(\"127.0.0.1:%d\", freeport.Port(t))),\n\t\tAddress: raft.ServerAddress(fmt.Sprintf(\"127.0.0.1:%d\", freeport.GetOne(t))),\n\t\tfuture := s1.raft.AddVoter(arg.ID, raft.ServerAddress(fmt.Sprintf(\"127.0.0.1:%d\", freeport.Port(t))), 0, 0)\n\t\tfuture := s1.raft.AddVoter(arg.ID, raft.ServerAddress(fmt.Sprintf(\"127.0.0.1:%d\", freeport.GetOne(t))), 0, 0)\n\tport := freeport.Port(t)\n\tport := freeport.GetOne(t)\n\tgwAddr := ipaddr.FormatAddressPort(\"127.0.0.1\", freeport.Port(t))\n\tgwAddr := ipaddr.FormatAddressPort(\"127.0.0.1\", freeport.GetOne(t))\n\tgwAddr := ipaddr.FormatAddressPort(\"127.0.0.1\", freeport.Port(t))\n\tgwAddr := ipaddr.FormatAddressPort(\"127.0.0.1\", freeport.GetOne(t))\n\tport := freeport.Port(t)\n\tport := freeport.GetOne(t)\n\t\tAddr: fmt.Sprintf(\"127.0.0.1:%d\", freeport.Port(t)),\n\t\tAddr: fmt.Sprintf(\"127.0.0.1:%d\", freeport.GetOne(t)),\nfunc Port(t TestingT) int {\nfunc GetOne(t TestingT) int {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/hashicorp/consul/commit/4185045a7f92677c9b8c2bd163b5e4deb368f153", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 13 ] }, { "input": "\t\tAddr: fmt.Sprintf(\"127.0.0.1:%d\", freeport.Port(t)),\n\t\tAddr: fmt.Sprintf(\"127.0.0.1:%d\", freeport.GetOne(t)),\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/hashicorp/consul/commit/4185045a7f92677c9b8c2bd163b5e4deb368f153", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 13 ] }, { "input": "\t\"github.com/hashicorp/memberlist\"\n\t\"github.com/hashicorp/memberlist\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/hashicorp/consul/commit/6713afdff30c188542d7e2eb1f8984eefdc201a5", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\tresult, err := e.materializer.getFromView(ctx, info.MinIndex)\n\tresult, err := materializer.getFromView(ctx, info.MinIndex)\n\t\t\tresult, err := e.materializer.getFromView(ctx, index)\n\t\t\tresult, err := materializer.getFromView(ctx, index)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/consul/commit/23e1cd6f93cadef214caeb9319b9c2fa19d444d8", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\treturn key, e, nil\n\t\treturn key, e.materializer, nil\n\treturn key, e, nil\n\treturn key, e.materializer, nil\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/consul/commit/23e1cd6f93cadef214caeb9319b9c2fa19d444d8", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": "\tif _, err := tx.DeleteAll(tableGatewayServices, \"gateway\", sn); err != nil {\n\tif _, err := tx.DeleteAll(tableGatewayServices, indexGateway, sn); err != nil {\n\t\tif _, err := tx.DeleteAll(tableGatewayServices, \"gateway\", sn); err != nil {\n\t\tif _, err := tx.DeleteAll(tableGatewayServices, indexGateway, sn); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/consul/commit/11b4de719c50f1c7329c72169cbb31d9bc7d46e6", "target_edit_idx": 1, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\treturn nil, fmt.Errorf(\"unknown topic %d\", req.Topic)\n\t\treturn nil, fmt.Errorf(\"unknown topic %v\", req.Topic)\n\t\treturn nil, fmt.Errorf(\"unknown topic %d\", req.Topic)\n\t\treturn nil, fmt.Errorf(\"unknown topic %v\", req.Topic)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/hashicorp/consul/commit/fc1c2ae412b273b868c311fb785ebd4e030f4c72", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\ttimeout time.Duration,\n\ttimeout time.Duration,\n\ttimeout time.Duration,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/consul/commit/1fbc1d4777d26ba944e7755234db942fad276ff5", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 6 ] }, { "input": "\t\t\t\tCheckID: types.CheckID(\"check_1\"),\n\t\t\t\tTTL: 20 * time.Second,\n\t\t\t\t// explicitly not setting the check id to let it be auto-generated\n\t\t\t\t// we want to ensure that we\n\t\t\t\tTTL: 20 * time.Second,\n\t\t\t\tCheckID: types.CheckID(\"check_1\"),\n\t\t\t\tTTL: 20 * time.Second,\n\t\t\t\tTTL: 20 * time.Second,\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/hashicorp/consul/commit/8f1f15a8279f7d17178bada70d57cce42b3efffe", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tcommand, err := defaultProxyCommand()\n\t\tcommand, err := defaultProxyCommand(a.config)\nfunc defaultProxyCommand() ([]string, error) {\nfunc defaultProxyCommand(agentCfg *config.RuntimeConfig) ([]string, error) {\n\tdefaultCommand, err := defaultProxyCommand()\n\tdefaultCommand, err := defaultProxyCommand(nil)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/consul/commit/280f14d64ca25bb6441919fe7c3aa07003357e6b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "func defaultProxyCommand() ([]string, error) {\nfunc defaultProxyCommand(agentCfg *config.RuntimeConfig) ([]string, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hashicorp/consul/commit/280f14d64ca25bb6441919fe7c3aa07003357e6b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\t\targs.Intention.CreatedAt = time.Now()\n\t\targs.Intention.CreatedAt = time.Now().UTC()\n\targs.Intention.UpdatedAt = time.Now()\n\targs.Intention.UpdatedAt = time.Now().UTC()\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/consul/commit/80d068aaa46ad21fac793df1b754b8ce5a04091b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tif err := plan.Run(a.HTTPAddr(), nil); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr()); err != nil {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/hashicorp/consul/commit/1fbe828c35bd97f69ad11eadd23e403d8bda0cdb", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8, 9, 10, 13 ] }, { "input": "\t\tif err := plan.Run(a.HTTPAddr(), nil); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr()); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr(), nil); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr()); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr(), nil); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr()); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr(), nil); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr()); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr(), nil); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr()); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr(), nil); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr()); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr(), nil); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr()); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr(), nil); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr()); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr(), nil); err != nil {\n\t\tif err := plan.Run(a.HTTPAddr()); err != nil {\n\t\terrCh <- plan.Run(\"127.0.0.1:8500\", nil)\n\t\terrCh <- plan.Run(\"127.0.0.1:8500\")\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/hashicorp/consul/commit/1fbe828c35bd97f69ad11eadd23e403d8bda0cdb", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5, 6, 7, 8, 9, 10, 13 ] }, { "input": "\t\terrCh <- plan.Run(\"127.0.0.1:8500\", nil)\n\t\terrCh <- plan.Run(\"127.0.0.1:8500\")\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/hashicorp/consul/commit/1fbe828c35bd97f69ad11eadd23e403d8bda0cdb", "target_edit_idx": 13, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": "\t\t\tin: `{\"serf_lan_bind\":\"unix:///var/foo/bar\"}`,\n\t\t\tc: &Config{SerfLanBindAddr: \"unix:///var/foo/bar\"},\n\t\t\tin: `{\"serf_lan_bind\":\"unix:///var/foo/bar\"}`,\n\t\t\tc: &Config{SerfLanBindAddr: \"unix:///var/foo/bar\"},\n\t\t\tparseTemplateErr: errors.New(\"Failed to parse Serf LAN address: unix:///var/foo/bar\"),\n\t\t\tin: `{\"serf_wan_bind\":\"unix:///var/foo/bar\"}`,\n\t\t\tc: &Config{SerfWanBindAddr: \"unix:///var/foo/bar\"},\n\t\t\tin: `{\"serf_wan_bind\":\"unix:///var/foo/bar\"}`,\n\t\t\tc: &Config{SerfWanBindAddr: \"unix:///var/foo/bar\"},\n\t\t\tparseTemplateErr: errors.New(\"Failed to parse Serf WAN address: unix:///var/foo/bar\"),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hashicorp/consul/commit/4cec55e8dbf42562a6e0d20297989fb6e51c4f4a", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tnewHomeCmd(),\n\t\tnewHomeCmd(out),\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/helm/helm/commit/985dbae2aceabc6415de1d49bec31d6b64c15f1a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "func newHomeCmd() *cobra.Command {\nfunc newHomeCmd(out io.Writer) *cobra.Command {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/helm/helm/commit/985dbae2aceabc6415de1d49bec31d6b64c15f1a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\tif err := s.env.Releases.Create(updatedRelease); err != nil {\n\t\treturn nil, err\n\tif !req.DryRun {\n\t\tif err := s.env.Releases.Create(updatedRelease); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\tif err := s.env.Releases.Create(targetRelease); err != nil {\n\t\treturn nil, err\n\tif !req.DryRun {\n\t\tif err := s.env.Releases.Create(targetRelease); err != nil {\n\t\t\treturn nil, err\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/helm/helm/commit/3f1101cdfb62e61a6170f1073271f294e72aa54c", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\tf, err := os.Open(\"./testdata/guestbook-all-in-one.yaml\")\n\tinput, err := os.Open(\"./testdata/guestbook-all-in-one.yaml\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/helm/helm/commit/08d9b85f9954b65e011044e57a9ad96049159c4b", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\tdefer f.Close()\n\tdefer input.Close()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/helm/helm/commit/08d9b85f9954b65e011044e57a9ad96049159c4b", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "\tif ns != \"\" {\n\t\targs = append([]string{\"--namespace=\" + ns}, args...)\n\t}\n\n\tif ns != \"\" {\n\t\targs = append([]string{\"--namespace=\" + ns}, args...)\n\t}\n\tif ns != \"\" {\n\t\targs = append([]string{\"--namespace=\" + ns}, args...)\n\t}\n\n\tif ns != \"\" {\n\t\targs = append([]string{\"--namespace=\" + ns}, args...)\n\t}\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/helm/helm/commit/73bfdf949eba3ecb79c8b9a0066ae2336acd1222", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 11, 5 ] }, { "input": "\tCreate([]byte, string) ([]byte, error)\n\tCreate(stdin []byte) ([]byte, error)\nfunc (r RealRunner) Create(stdin []byte, ns string) ([]byte, error) {\nfunc (r RealRunner) Create(stdin []byte) ([]byte, error) {\nfunc (r PrintRunner) Create(stdin []byte, ns string) ([]byte, error) {\nfunc (r PrintRunner) Create(stdin []byte) ([]byte, error) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/helm/helm/commit/73bfdf949eba3ecb79c8b9a0066ae2336acd1222", "target_edit_idx": 12, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\te := render.Fields{\"default\", \"nginx\", \"1/1\", \"0\", \"Running\", \"10\", \"10\", \"10\", \"14\", \"0\", \"5\", \"172.17.0.6\", \"minikube\", \"BE\"}\n\te := render.Fields{\"default\", \"nginx\", \"1/1\", \"0\", \"Running\", \"10\", \"10\", \"10\", \"14\", render.NAValue, \"5\", \"172.17.0.6\", \"minikube\", \"BE\"}\n\te := render.Fields{\"default\", \"nginx\", \"1/1\", \"0\", \"Init:0/1\", \"10\", \"10\", \"10\", \"14\", \"0\", \"5\", \"172.17.0.6\", \"minikube\", \"BE\"}\n\te := render.Fields{\"default\", \"nginx\", \"1/1\", \"0\", \"Init:0/1\", \"10\", \"10\", \"10\", \"14\", render.NAValue, \"5\", \"172.17.0.6\", \"minikube\", \"BE\"}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/derailed/k9s/commit/0c425f2edf0f40a87eb50b94e71d8cf9aa4b8ba9", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tsaveCursorPosition(b)\n\tsaveCursorPosition(b)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/charmbracelet/bubbletea/commit/00f7f5be930ce4a3b20a3f90c4863e4c68c36086", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\trestoreCursorPosition(b)\n\trestoreCursorPosition(b)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/charmbracelet/bubbletea/commit/00f7f5be930ce4a3b20a3f90c4863e4c68c36086", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "func newWatchdogReadCloser(rc io.ReadCloser, chunkSize int, kick func(), close func()) *watchdogReadCloser {\nfunc newWatchdogReadCloser(rc io.ReadCloser, chunkSize int, kick func(), close func(), isTimeout func(err error) bool) *watchdogReadCloser {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/restic/restic/commit/6bf3d4859fd935aff1a1ba10bf5375a02cede2ad", "target_edit_idx": 8, "propagatable_edit_idx": [ 13, 6, 7 ] }, { "input": "\twd := newWatchdogReadCloser(io.NopCloser(bytes.NewReader(data)), 1, kick, onClose)\n\twd := newWatchdogReadCloser(io.NopCloser(bytes.NewReader(data)), 1, kick, onClose, isTimeout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/restic/restic/commit/6bf3d4859fd935aff1a1ba10bf5375a02cede2ad", "target_edit_idx": 13, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": "\t\"github.com/restic/restic/internal/index\"\n\t\"github.com/restic/restic/internal/index\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/restic/restic/commit/77873f5a9d1335965ba8bea39beb297ce639a971", "target_edit_idx": 0, "propagatable_edit_idx": [ 9 ] }, { "input": "type findBlobSet interface {\ntype FindBlobSet interface {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/77873f5a9d1335965ba8bea39beb297ce639a971", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": "func FindUsedBlobs(ctx context.Context, repo Loader, treeIDs IDs, blobs findBlobSet, p *progress.Counter) error {\nfunc FindUsedBlobs(ctx context.Context, repo Loader, treeIDs IDs, blobs FindBlobSet, p *progress.Counter) error {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/77873f5a9d1335965ba8bea39beb297ce639a971", "target_edit_idx": 14, "propagatable_edit_idx": [ 13 ] }, { "input": "\tpacker *Packer\n\tpacker *packer\n\tpacker *Packer\n\tpacker *packer\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/restic/restic/commit/04ad9f0c0c5f28d47d9c921a5219d820ef1af364", "target_edit_idx": 2, "propagatable_edit_idx": [ 12 ] }, { "input": "func (r *packerManager) newPacker() (packer *Packer, err error) {\nfunc (r *packerManager) newPacker() (pck *packer, err error) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/04ad9f0c0c5f28d47d9c921a5219d820ef1af364", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3, 5, 6, 7, 8, 9, 10, 14 ] }, { "input": "\tpacker = &Packer{\n\tpck = &packer{\n// Packer holds a pack.Packer together with a hash writer.\ntype Packer struct {\n// packer holds a pack.packer together with a hash writer.\ntype packer struct {\n\tqueueFn func(ctx context.Context, t restic.BlobType, p *Packer) error\n\tqueueFn func(ctx context.Context, t restic.BlobType, p *packer) error\nfunc newPackerManager(key *crypto.Key, tpe restic.BlobType, packSize uint, queueFn func(ctx context.Context, t restic.BlobType, p *Packer) error) *packerManager {\nfunc newPackerManager(key *crypto.Key, tpe restic.BlobType, packSize uint, queueFn func(ctx context.Context, t restic.BlobType, p *packer) error) *packerManager {\nfunc (r *packerManager) newPacker() (packer *Packer, err error) {\nfunc (r *packerManager) newPacker() (pck *packer, err error) {\n\treturn packer, nil\n\treturn pck, nil\nfunc (r *Repository) savePacker(ctx context.Context, t restic.BlobType, p *Packer) error {\nfunc (r *Repository) savePacker(ctx context.Context, t restic.BlobType, p *packer) error {\n\tpm := newPackerManager(crypto.NewRandomKey(), restic.DataBlob, DefaultPackSize, func(ctx context.Context, tp restic.BlobType, p *Packer) error {\n\tpm := newPackerManager(crypto.NewRandomKey(), restic.DataBlob, DefaultPackSize, func(ctx context.Context, tp restic.BlobType, p *packer) error {\n\tpm := newPackerManager(crypto.NewRandomKey(), restic.DataBlob, sizeLimit, func(ctx context.Context, tp restic.BlobType, p *Packer) error {\n\tpm := newPackerManager(crypto.NewRandomKey(), restic.DataBlob, sizeLimit, func(ctx context.Context, tp restic.BlobType, p *packer) error {\n\t\tpm := newPackerManager(crypto.NewRandomKey(), restic.DataBlob, DefaultPackSize, func(ctx context.Context, t restic.BlobType, p *Packer) error {\n\t\tpm := newPackerManager(crypto.NewRandomKey(), restic.DataBlob, DefaultPackSize, func(ctx context.Context, t restic.BlobType, p *packer) error {\nfunc (pu *packerUploader) QueuePacker(ctx context.Context, t restic.BlobType, p *Packer) (err error) {\nfunc (pu *packerUploader) QueuePacker(ctx context.Context, t restic.BlobType, p *packer) (err error) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/04ad9f0c0c5f28d47d9c921a5219d820ef1af364", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 3, 4, 6, 7, 8, 9, 10, 14 ] }, { "input": "\treturn packer, nil\n\treturn pck, nil\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/04ad9f0c0c5f28d47d9c921a5219d820ef1af364", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "// SavePacker implements saving a pack in the repository.\ntype SavePacker interface {\n\tsavePacker(ctx context.Context, t restic.BlobType, p *Packer) error\n// savePacker implements saving a pack in the repository.\ntype savePacker interface {\n\tsavePacker(ctx context.Context, t restic.BlobType, p *packer) error\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/restic/restic/commit/04ad9f0c0c5f28d47d9c921a5219d820ef1af364", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": "func newPackerUploader(ctx context.Context, wg *errgroup.Group, repo SavePacker, connections uint) *packerUploader {\nfunc newPackerUploader(ctx context.Context, wg *errgroup.Group, repo savePacker, connections uint) *packerUploader {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/04ad9f0c0c5f28d47d9c921a5219d820ef1af364", "target_edit_idx": 13, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\t\tchecker.TestCheckRepo(t, repo)\n\t\t\tchecker.TestCheckRepo(t, repo, false)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/restic/restic/commit/7ba5e95a82adc59c91c5cf5bc6970cc04cd456d5", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 9 ] }, { "input": "\t\treturn nil, fuse.ENOENT\n\t\treturn nil, syscall.ENOENT\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/restic/restic/commit/c832a492ac6c95e22e745499b3a0f4f02ef7062d", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 4, 6 ] }, { "input": "\treturn nil, fuse.ENOENT\n\treturn nil, syscall.ENOENT\n\t\treturn nil, fuse.ENOENT\n\t\treturn nil, syscall.ENOENT\n\t\treturn nil, fuse.ENOENT\n\t\treturn nil, syscall.ENOENT\n\t\treturn nil, fuse.ENOENT\n\t\treturn nil, syscall.ENOENT\n\t\treturn nil, fuse.ENOENT\n\t\treturn nil, syscall.ENOENT\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/restic/restic/commit/c832a492ac6c95e22e745499b3a0f4f02ef7062d", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 4, 5 ] }, { "input": "\t\"github.com/restic/restic/internal/test\"\n\trtest \"github.com/restic/restic/internal/test\"\n\trtest \"github.com/restic/restic/internal/test\"\n\t\"github.com/restic/restic/internal/test\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.17647058823529413, "commit_url": "https://github.com/restic/restic/commit/e01baeabba114b83b405384143cfb6f661d045e3", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 2, 10 ] }, { "input": "// LoadAndDecrypt loads and decrypts the file with the given type and ID, using\n// LoadUnpacked loads and decrypts the file with the given type and ID, using\n\t// LoadAndDecrypt loads and decrypts the file with the given type and ID,\n\t// LoadUnpacked loads and decrypts the file with the given type and ID,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/restic/restic/commit/6877e7edbb4783a3915884440b05c1adfdeb2730", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\"golang.org/x/net/context\"\n\t\"golang.org/x/net/context\"\n\t\"golang.org/x/net/context\"\n\n\t\"golang.org/x/net/context\"\n\t\"golang.org/x/net/context\"\n\n\t\"golang.org/x/net/context\"\n\t\"golang.org/x/net/context\"\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/9ffb698c8da59bf5b3bb3c9fbb1bb51d2245972c", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 7, 9, 11, 13 ] }, { "input": "\t\treturn runList(globalOptions, args)\n\t\treturn runList(cmd, globalOptions, args)\nfunc runList(opts GlobalOptions, args []string) error {\nfunc runList(cmd *cobra.Command, opts GlobalOptions, args []string) error {\n\trtest.OK(t, runList(opts, []string{tpe}))\n\trtest.OK(t, runList(cmdList, opts, []string{tpe}))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/8d9d218d1c99cde504a6aabd47adcd5ab0b87354", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "func runList(opts GlobalOptions, args []string) error {\nfunc runList(cmd *cobra.Command, opts GlobalOptions, args []string) error {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/8d9d218d1c99cde504a6aabd47adcd5ab0b87354", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\tp.V(\"start scan\")\n\tp.V(\"start scan on %v\", targets)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.047619047619047616, "commit_url": "https://github.com/restic/restic/commit/d0974c155dedcb2b534e51a9d888ce6d563a0adc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tp.V(\"start backup\")\n\tp.V(\"start backup on %v\", targets)\n\tp.V(\"start scan\")\n\tp.V(\"start scan on %v\", targets)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.047619047619047616, "commit_url": "https://github.com/restic/restic/commit/d0974c155dedcb2b534e51a9d888ce6d563a0adc", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tb.V(\"scan finished in %.3fs\", time.Since(b.start).Seconds())\n\t\tb.V(\"scan finished in %.3fs: %v files, %s\",\n\t\t\ttime.Since(b.start).Seconds(),\n\t\t\ts.Files, formatBytes(s.Bytes),\n\t\t)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/restic/restic/commit/d0974c155dedcb2b534e51a9d888ce6d563a0adc", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tb.V(\"processed %s in %s\", formatBytes(b.totalBytes), formatDuration(time.Since(b.start)))\n\tb.V(\"\\n\")\n\tb.V(\"Files: %5d new, %5d changed, %5d unmodified\\n\", b.summary.Files.New, b.summary.Files.Changed, b.summary.Files.Unchanged)\n\tb.V(\"Dirs: %5d new, %5d changed, %5d unmodified\\n\", b.summary.Dirs.New, b.summary.Dirs.Changed, b.summary.Dirs.Unchanged)\n\tb.VV(\"Data Blobs: %5d new\\n\", b.summary.ItemStats.DataBlobs)\n\tb.VV(\"Tree Blobs: %5d new\\n\", b.summary.ItemStats.TreeBlobs)\n\tb.V(\"Added: %-5s\\n\", formatBytes(b.summary.ItemStats.DataSize+b.summary.ItemStats.TreeSize))\n\tb.V(\"\\n\")\n\tb.P(\"\\n\")\n\tb.P(\"Files: %5d new, %5d changed, %5d unmodified\\n\", b.summary.Files.New, b.summary.Files.Changed, b.summary.Files.Unchanged)\n\tb.P(\"Dirs: %5d new, %5d changed, %5d unmodified\\n\", b.summary.Dirs.New, b.summary.Dirs.Changed, b.summary.Dirs.Unchanged)\n\tb.V(\"Data Blobs: %5d new\\n\", b.summary.ItemStats.DataBlobs)\n\tb.V(\"Tree Blobs: %5d new\\n\", b.summary.ItemStats.TreeBlobs)\n\tb.P(\"Added: %-5s\\n\", formatBytes(b.summary.ItemStats.DataSize+b.summary.ItemStats.TreeSize))\n\tb.P(\"\\n\")\n\tb.P(\"processed %v files, %v in %s\",\n\t\tb.summary.Files.New+b.summary.Files.Changed+b.summary.Files.Unchanged,\n\t\tformatBytes(b.totalBytes),\n\t\tformatDuration(time.Since(b.start)),\n\t)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/restic/restic/commit/d0974c155dedcb2b534e51a9d888ce6d563a0adc", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\tidx, err := index.New(ctx, repo, bar)\n\tidx, err := index.New(ctx, repo, restic.NewIDSet(), bar)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/restic/restic/commit/6f24d038f80865be269b3e37eb8a98477904b527", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\treturn rebuildIndex(ctx, repo)\n\treturn rebuildIndex(ctx, repo, restic.NewIDSet())\nfunc rebuildIndex(ctx context.Context, repo restic.Repository) error {\nfunc rebuildIndex(ctx context.Context, repo restic.Repository, ignorePacks restic.IDSet) error {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/6f24d038f80865be269b3e37eb8a98477904b527", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "func rebuildIndex(ctx context.Context, repo restic.Repository) error {\nfunc rebuildIndex(ctx context.Context, repo restic.Repository, ignorePacks restic.IDSet) error {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/6f24d038f80865be269b3e37eb8a98477904b527", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\tidx, err := index.New(ctx, repo, bar)\n\tidx, err := index.New(ctx, repo, ignorePacks, bar)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/restic/restic/commit/6f24d038f80865be269b3e37eb8a98477904b527", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tfmt.Printf(\"\\x1b[2K[%s] %d directories, %d files, %s\\r\", formatDuration(d), s.Dirs, s.Files, formatBytes(s.Bytes))\n\t\tfmt.Printf(\"%s[%s] %d directories, %d files, %s\\r\", ClearLine(), formatDuration(d), s.Dirs, s.Files, formatBytes(s.Bytes))\n\t\tfmt.Printf(\"\\x1b[2Kscanned %d directories, %d files in %s\\n\", s.Dirs, s.Files, formatDuration(d))\n\t\tfmt.Printf(\"%sscanned %d directories, %d files in %s\\n\", ClearLine(), s.Dirs, s.Files, formatDuration(d))\n\t\tfmt.Printf(\"\\x1b[2K%s%s\\r\", status1, status2)\n\t\tfmt.Printf(\"%s%s%s\\r\", ClearLine(), status1, status2)\n\t\tfmt.Printf(\"\\x1b[2K%s\\r\", status1)\n\t\tfmt.Printf(\"%s%s\\r\", ClearLine(), status1)\n\t\tfmt.Printf(\"\\x1b[2K%s\\r\", status)\n\t\tfmt.Printf(\"%s%s\\r\", ClearLine(), status)\n\t\tfmt.Printf(\"\\x1b[2K%s\\r\", status)\n\t\tfmt.Printf(\"%s%s\\r\", ClearLine(), status)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.23809523809523808, "commit_url": "https://github.com/restic/restic/commit/08eb5b42eb8d82a64054cc1df75d84ca6cc6a3a1", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 6, 7 ] }, { "input": "\t\tfmt.Printf(\"\\x1b[2Kscanned %d directories, %d files in %s\\n\", s.Dirs, s.Files, formatDuration(d))\n\t\tfmt.Printf(\"%sscanned %d directories, %d files in %s\\n\", ClearLine(), s.Dirs, s.Files, formatDuration(d))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.23809523809523808, "commit_url": "https://github.com/restic/restic/commit/08eb5b42eb8d82a64054cc1df75d84ca6cc6a3a1", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 6, 7 ] }, { "input": "\t\tfmt.Printf(\"\\x1b[2K%s%s\\r\", status1, status2)\n\t\tfmt.Printf(\"%s%s%s\\r\", ClearLine(), status1, status2)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.23809523809523808, "commit_url": "https://github.com/restic/restic/commit/08eb5b42eb8d82a64054cc1df75d84ca6cc6a3a1", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 6, 7 ] }, { "input": "\t\tfmt.Printf(\"\\x1b[2K%s\\r\", status1)\n\t\tfmt.Printf(\"%s%s\\r\", ClearLine(), status1)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.23809523809523808, "commit_url": "https://github.com/restic/restic/commit/08eb5b42eb8d82a64054cc1df75d84ca6cc6a3a1", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 6, 7 ] }, { "input": "\t\tfmt.Printf(\"\\x1b[2K%s\\r\", status)\n\t\tfmt.Printf(\"%s%s\\r\", ClearLine(), status)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.23809523809523808, "commit_url": "https://github.com/restic/restic/commit/08eb5b42eb8d82a64054cc1df75d84ca6cc6a3a1", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 3, 4, 7 ] }, { "input": "\t\tsn := TestCreateSnapshot(t, repo, findTestTime.Add(time.Duration(i)*time.Second), findTestDepth)\n\t\tsn := TestCreateSnapshot(t, repo, findTestTime.Add(time.Duration(i)*time.Second), findTestDepth, 0)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/1058a91b39fdbf901fd0187b209d63c2c0c63754", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": "func createFilledRepo(t testing.TB, snapshots int) (*repository.Repository, func()) {\nfunc createFilledRepo(t testing.TB, snapshots int, dup float32) (*repository.Repository, func()) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/1058a91b39fdbf901fd0187b209d63c2c0c63754", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "\trepo, cleanup := createFilledRepo(t, 3)\n\trepo, cleanup := createFilledRepo(t, 3, 0)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/1058a91b39fdbf901fd0187b209d63c2c0c63754", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": "\trepo, cleanup := createFilledRepo(b, 3)\n\trepo, cleanup := createFilledRepo(b, 3, 0)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/1058a91b39fdbf901fd0187b209d63c2c0c63754", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": "// with the parameter depth.\nfunc TestCreateSnapshot(t testing.TB, repo *repository.Repository, at time.Time, depth int) *Snapshot {\n// with the parameter depth. The parameter duplication is a probability that\n// the same blob will saved again.\nfunc TestCreateSnapshot(t testing.TB, repo *repository.Repository, at time.Time, depth int, duplication float32) *Snapshot {\n\t\tsn := TestCreateSnapshot(t, repo, findTestTime.Add(time.Duration(i)*time.Second), findTestDepth)\n\t\tsn := TestCreateSnapshot(t, repo, findTestTime.Add(time.Duration(i)*time.Second), findTestDepth, 0)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/restic/restic/commit/1058a91b39fdbf901fd0187b209d63c2c0c63754", "target_edit_idx": 8, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tcmdRestoreExcludes(t, global, filepath.Join(env.base, \"restore0\"), snapshotID, []string{\"*.ext\"})\n\t\tcmdRestoreIncludes(t, global, filepath.Join(env.base, \"restore0\"), snapshotID, []string{\"*.ext\"})\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/restic/restic/commit/1da89253cffcf13993c75bc6b6ed3e8c0abbb544", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tcmdRestoreExcludes(t, global, filepath.Join(env.base, \"restore1\"), snapshotID, []string{\"*\"})\n\t\tcmdRestoreIncludes(t, global, filepath.Join(env.base, \"restore1\"), snapshotID, []string{\"*\"})\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/restic/restic/commit/1da89253cffcf13993c75bc6b6ed3e8c0abbb544", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": "func AddCookie(ctx context.Context, cookie *http.Cookie) {\nfunc AddCookie(ctx context.Context, cookie *http.Cookie, reclaim bool) {\n\tAddCookie(ctx, c)\n\n\tif purge {\n\t\t// delete request's cookie also, which is temporary available.\n\t\tctx.Request().Header.Set(\"Cookie\", \"\")\n\t}\n\tAddCookie(ctx, c, purge)\n\tAddCookie(ctx, cookie)\n\tAddCookie(ctx, cookie, s.config.AllowReclaim)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kataras/iris/commit/859a62bf01b2c8d0ecd1b10ed0fcbbd5e82f52b4", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\tAddCookie(ctx, cookie)\n\tAddCookie(ctx, cookie, s.config.AllowReclaim)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kataras/iris/commit/859a62bf01b2c8d0ecd1b10ed0fcbbd5e82f52b4", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\tif config.marshallRequest {\n\t\tmarshalRes, marshallErr := types.MarshalRequest(requestBytes, &r.Header)\n\t\terr = marshallErr\n\tif config.marshalRequest {\n\t\tmarshalRes, marshalErr := types.MarshalRequest(requestBytes, &r.Header)\n\t\terr = marshalErr\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openfaas/faas/commit/93bdfba4b2c1b1d1a89e79cd1c170737d7571c85", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\tmarshallRequest bool\n\tmarshalRequest bool\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openfaas/faas/commit/93bdfba4b2c1b1d1a89e79cd1c170737d7571c85", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tmemoryMsgChan: make(chan *Message, ctx.nsqd.getOpts().MemQueueSize),\n\t\tmemoryMsgChan: nil,\n\t\tmemoryMsgChan: make(chan *Message, ctx.nsqd.getOpts().MemQueueSize),\n\t\tmemoryMsgChan: nil,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nsqio/nsq/commit/b3b29b7eff414893bab2b48b590e1b9f847736a6", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\titem := &pqueue.Item{Value: value, Priority: -absTs}\n\titem := &pqueue.Item{Value: value, Priority: absTs}\n\titem := &pqueue.Item{Value: msg, Priority: -absTs}\n\titem := &pqueue.Item{Value: msg, Priority: absTs}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/nsqio/nsq/commit/fc924b5d4f05ebb2ad1c7c7c325c99b9021ef9d4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tBeginSearch()\n\tBeginSearch(searchStr)\nfunc BeginSearch() {\nfunc BeginSearch(searchStr string) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zyedidia/micro/commit/127ebc15b9fc8682b103f1a6b89dd1f38e3f3bc6", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": "func BeginSearch() {\nfunc BeginSearch(searchStr string) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zyedidia/micro/commit/127ebc15b9fc8682b103f1a6b89dd1f38e3f3bc6", "target_edit_idx": 8, "propagatable_edit_idx": [ 2 ] }, { "input": "\tv.cursor.ResetSelection()\n\tif v.cursor.HasSelection() {\n\t\tv.cursor.SetLoc(v.cursor.curSelection[0])\n\t\tv.cursor.ResetSelection()\n\t}\n\tv.cursor.ResetSelection()\n\tif v.cursor.HasSelection() {\n\t\tv.cursor.SetLoc(v.cursor.curSelection[1])\n\t\tv.cursor.ResetSelection()\n\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/zyedidia/micro/commit/539d4b116726441f735ed9bede6219f56b542733", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tvisible50 := lo.visible[lo.searchVisible(lo.visible, 50)].item\n\tvisible50, _ := lo.searchVisible(lo.visible, 50)\n\tvisible5 := lo.visible[lo.searchVisible(lo.visible, 5)].item\n\tvisible5, _ := lo.searchVisible(lo.visible, 5)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/ec83bd165c83422445972994e4564ef4ce445d2c", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\tfor _, item := range l.visible {\n\t\t\tl.setupListItem(item.item, item.id, l.list.focused && l.list.currentFocus == item.id)\n\t\tfor _, vis := range l.visible {\n\t\t\tl.setupListItem(vis.item, vis.id, l.list.focused && l.list.currentFocus == vis.id)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/fyne-io/fyne/commit/39fdeb3daf1cd0a7ffb15ab1be70bb1517e4e986", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "func (c *coreContext) DisableVertexAttribArray(attribute Attribute) {\n\tgl.DisableVertexAttribArray(uint32(attribute))\n}\n\nfunc (c *esContext) DisableVertexAttribArray(attribute Attribute) {\n\tgl.DisableVertexAttribArray(uint32(attribute))\n}\n\nfunc (c *xjsContext) DisableVertexAttribArray(attribute Attribute) {\n\tgl.DisableVertexAttribArray(gl.Attrib(attribute))\n}\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/fyne-io/fyne/commit/db0e485fa3bab34f4e794a545258c3cec9eec5a5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\tif t.dragCol != noCellMatch {\n\tif col != noCellMatch {\n\tif t.dragRow != noCellMatch {\n\tif row != noCellMatch {\n", "class": "clone", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/fyne-io/fyne/commit/11092795d42c5f0fc274e0adc00d069253c0445c", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\n\trelativeLetter := char - 'a'\n\tif relativeLetter <= 'z' {\n\tif char >= 'a' && char <= 'z' {\n\n\trelativeLetter := char - 'a'\n\tif relativeLetter <= 'z' {\n\tif char >= 'a' && char <= 'z' {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/b171a6375f26b3236a0daa811f106b0193caacd6", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\treturn fyne.KeyName('A' + relativeLetter)\n\t\treturn fyne.KeyName('A' + char - 'a')\n\t\treturn fyne.KeyName('A' + relativeLetter)\n\t\treturn fyne.KeyName('A' + char - 'a')\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/b171a6375f26b3236a0daa811f106b0193caacd6", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\tcsources, free := gl.Strs(source)\n\tcsources, free := gl.Strs(source + \"\\x00\")\n\tcsources, free := gl.Strs(source)\n\tcsources, free := gl.Strs(source + \"\\x00\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/fyne-io/fyne/commit/4d7ccc434bcf16c00a1a52594fc5b7946e38230c", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\tp.program = p.createProgram(\"simple_es\", true)\n\tp.lineProgram = p.createProgram(\"line_es\", true)\n\tp.program = p.createProgram(\"simple_es\")\n\tp.lineProgram = p.createProgram(\"line_es\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/fyne-io/fyne/commit/4d7ccc434bcf16c00a1a52594fc5b7946e38230c", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4, 5 ] }, { "input": "\tp.program = p.createProgram(\"simple_es\", false)\n\tp.lineProgram = p.createProgram(\"line_es\", false)\n\tp.program = p.createProgram(\"simple_es\")\n\tp.lineProgram = p.createProgram(\"line_es\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/fyne-io/fyne/commit/4d7ccc434bcf16c00a1a52594fc5b7946e38230c", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 5 ] }, { "input": "func (p *painter) glCapture(width, height int32, pixels *[]uint8) {\n\tp.ctx.ReadBuffer(front)\n\tp.logError()\n\tp.ctx.ReadPixels(0, 0, int(width), int(height), colorFormatRGBA, unsignedByte, *pixels)\n\tp.logError()\n}\n\nfunc (p *painter) glCapture(width, height int32, pixels *[]uint8) {\n\tp.ctx.ReadBuffer(front)\n\tp.logError()\n\tp.ctx.ReadPixels(0, 0, int(width), int(height), colorFormatRGBA, unsignedByte, *pixels)\n\tp.logError()\n}\n\nfunc (p *painter) glCapture(width, height int32, pixels *[]uint8) {\n\tp.ctx.ReadBuffer(front)\n\tp.logError()\n\tp.ctx.ReadPixels(0, 0, int(width), int(height), colorFormatRGBA, unsignedByte, *pixels)\n\tp.logError()\n}\n\nfunc (p *painter) glCapture(width, height int32, pixels *[]uint8) {\n\tp.ctx.ReadBuffer(front)\n\tp.logError()\n\tp.ctx.ReadPixels(0, 0, int(width), int(height), colorFormatRGBA, unsignedByte, *pixels)\n\tp.logError()\n}\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/79bbe83b59f4896e924171693587753083d8c268", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\tp.glFreeBuffer(vbo)\n\tp.freeBuffer(vbo)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/63b5727b74f0e18407773a901a0e3cb4e2c8e3ed", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "func (p *painter) glScissorOpen(x, y, w, h int32) {\n\tp.ctx.Scissor(x, y, w, h)\n\tp.ctx.Enable(scissorTest)\n\tp.logError()\n}\n\nfunc (p *painter) glScissorOpen(x, y, w, h int32) {\n\tp.ctx.Scissor(x, y, w, h)\n\tp.ctx.Enable(scissorTest)\n\tp.logError()\n}\n\nfunc (p *painter) glScissorOpen(x, y, w, h int32) {\n\tp.ctx.Scissor(x, y, w, h)\n\tp.ctx.Enable(scissorTest)\n\tp.logError()\n}\n\nfunc (p *painter) glScissorOpen(x, y, w, h int32) {\n\tp.ctx.Scissor(x, y, w, h)\n\tp.ctx.Enable(scissorTest)\n\tp.logError()\n}\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/8d7f535568c268e85a45fc54ce030c17bcd8b006", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\treturn p.context.Context().(gl.Context)\n\treturn p.contextProvider.Context().(gl.Context)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/fyne-io/fyne/commit/68dd2a37ee66c07ce4ecaab8c4923c4a27df4114", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\tp := &glPainter{canvas: c, context: ctx}\n\tp := &glPainter{canvas: c, contextProvider: ctx}\n\tp.context.RunWithContext(func() {\n\tp.contextProvider.RunWithContext(func() {\n\treturn p.context.Context().(gl.Context)\n\treturn p.contextProvider.Context().(gl.Context)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/fyne-io/fyne/commit/68dd2a37ee66c07ce4ecaab8c4923c4a27df4114", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "\tnumSuspendedChanges int\n\tchangedDuringSaving bool\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/267f052d37813c857ece2ba6ebb85b8f312f8e7b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tchanges := p.numSuspendedChanges\n\t\tp.numSuspendedChanges = 0\n\t\tchangedDuringSaving := p.changedDuringSaving\n\t\tp.changedDuringSaving = false\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/fyne-io/fyne/commit/267f052d37813c857ece2ba6ebb85b8f312f8e7b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t\t\"Home\": theme.HomeIcon(),\n\t\t\"Home\": theme.HomeIcon(),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/1dcae84cfd4a13dd4806a15247d69aab851acebf", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tw.setFieldsAndRefresh(func() {\n\t\tif !w.disabled {\n\t\t\treturn\n\t\t}\n\tif !w.Disabled() {\n\t\treturn\n\t}\n\tw.setFieldsAndRefresh(func() {\n\t\tif w.disabled {\n\t\t\treturn\n\t\t}\n\tif w.Disabled() {\n\t\treturn\n\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/2e2e2429fdc5ae527f67892407b3d7640a3c1f80", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\tfor i := oldLen-1; i >= newLen; i-- {\n\t\tfor i := oldLen - 1; i >= newLen; i-- {\n\t\tfor i := oldLen-1; i >= newLen; i-- {\n\t\tfor i := oldLen - 1; i >= newLen; i-- {\n\t\tfor i := oldLen-1; i >= newLen; i-- {\n\t\tfor i := oldLen - 1; i >= newLen; i-- {\n\t\tfor i := oldLen-1; i >= newLen; i-- {\n\t\tfor i := oldLen - 1; i >= newLen; i-- {\n\t\tfor i := oldLen-1; i >= newLen; i-- {\n\t\tfor i := oldLen - 1; i >= newLen; i-- {\n\t\tfor i := oldLen-1; i >= newLen; i-- {\n\t\tfor i := oldLen - 1; i >= newLen; i-- {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/fyne-io/fyne/commit/f2170de2535e2213c27dbbd35250e03391daf582", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": "\t\tp.SetValue(data.Get())\n\t\tp.Value = data.Get()\n\t\tif cache.IsRendered(p) {\n\t\t\tp.Refresh()\n\t\t}\n\t\ts.SetValue(data.Get())\n\t\ts.Value = data.Get()\n\t\tif cache.IsRendered(s) { // don't invalidate values set after constructor like Step\n\t\t\ts.Refresh()\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/fyne-io/fyne/commit/b6238ef9bc8a17df7c0c46c108bc0c318e9035ea", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "\tfn := NewNotifyFunction(func(DataItem) {\n\tfn := NewDataItemListener(func(DataItem) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/fyne-io/fyne/commit/51a1faae846af29f27720862f67d7cdf4adfed28", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6 ] }, { "input": "\tfn := NewNotifyFunction(func(DataItem) {\n\tfn := NewDataItemListener(func(DataItem) {\n// NewNotifyFunction is a helper function that creates a new listener type from a simple callback function.\nfunc NewNotifyFunction(fn func(DataItem)) DataItemListener {\n// NewDataItemListener is a helper function that creates a new listener type from a simple callback function.\nfunc NewDataItemListener(fn func(DataItem)) DataItemListener {\n\tfn := NewNotifyFunction(func(DataItem) {\n\tfn := NewDataItemListener(func(DataItem) {\n\tfn := NewNotifyFunction(func(DataItem) {\n\tfn := NewDataItemListener(func(DataItem) {\n\tdata.AddListener(binding.NewNotifyFunction(func(binding.DataItem) {\n\tdata.AddListener(binding.NewDataItemListener(func(binding.DataItem) {\n\tdata.AddListener(binding.NewNotifyFunction(func(d binding.DataItem) {\n\tdata.AddListener(binding.NewDataItemListener(func(d binding.DataItem) {\n\tdata.AddListener(binding.NewNotifyFunction(func(binding.DataItem) {\n\tdata.AddListener(binding.NewDataItemListener(func(binding.DataItem) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/fyne-io/fyne/commit/51a1faae846af29f27720862f67d7cdf4adfed28", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6 ] }, { "input": "\tdata.AddListener(binding.NewNotifyFunction(func(binding.DataItem) {\n\tdata.AddListener(binding.NewDataItemListener(func(binding.DataItem) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/fyne-io/fyne/commit/51a1faae846af29f27720862f67d7cdf4adfed28", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6 ] }, { "input": "\tdata.AddListener(binding.NewNotifyFunction(func(d binding.DataItem) {\n\tdata.AddListener(binding.NewDataItemListener(func(d binding.DataItem) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/fyne-io/fyne/commit/51a1faae846af29f27720862f67d7cdf4adfed28", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6 ] }, { "input": "\tassert.True(t, min.Width > theme.Padding()*2)\n\tassert.Less(t, theme.Padding()*2, minA.Width)\n\tassert.True(t, min.Width > theme.Padding()*2)\n\tassert.Less(t, theme.Padding()*2, minA.Width)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/f898378bd9fc13082d0d32f6f27487807999b0d4", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "\tassert.True(t, hyperlink.MinSize().Width > min.Width)\n\tminB := hyperlink.MinSize()\n\tassert.Less(t, minA.Width, minB.Width)\n\n\thyperlink.Text = \".\"\n\tminC := hyperlink.MinSize()\n\tassert.Greater(t, minB.Width, minC.Width)\n\tassert.True(t, label.MinSize().Width > min.Width)\n\tminB := label.MinSize()\n\tassert.Less(t, minA.Width, minB.Width)\n\n\tlabel.Text = \".\"\n\tminC := label.MinSize()\n\tassert.Greater(t, minB.Width, minC.Width)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/f898378bd9fc13082d0d32f6f27487807999b0d4", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": "\ttexture := textures[obj]\n\tif texture != 0 {\n\t\ttex := uint32(texture)\n\t\tgl.DeleteTextures(1, &tex)\n\t\tlogError()\n\t\tdelete(textures, obj)\n\ttexture, ok := textures[obj]\n\tif !ok {\n\t\treturn\n\ttexture := textures[obj]\n\tif texture != 0 {\n\t\ttex := uint32(texture)\n\t\tgl.DeleteTextures(1, &tex)\n\t\tlogError()\n\t\tdelete(textures, obj)\n\ttexture, ok := textures[obj]\n\tif !ok {\n\t\treturn\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/15dd658e6eaac9c9564be2c9590e7d7a132a148d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tfile, err = os.Open(filepath.Clean(path))\n\t\tfile, err = os.Open(path) // #nosec\n\tfile, err := os.Open(filepath.Clean(path))\n\tfile, err := os.Open(path) // #nosec\n\tfile, err := os.Open(filepath.Clean(path))\n\tfile, err := os.Open(path) // #nosec\n\t\tfile, err = os.Open(filepath.Clean(path))\n\t\tfile, err = os.Open(path) // #nosec\n\tfile, err := os.Open(filepath.Clean(path))\n\tfile, err := os.Open(path) // #nosec\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/48dd5f07d3b141e97701331a003e8360e47de98b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": "\t\t\tPointEvent: fyne.PointEvent{Position: fyne.NewPos(5, 5)},\n\t\t\tPointEvent: fyne.PointEvent{Position: fyne.NewPos(5, 5), AbsolutePosition: fyne.NewPos(9, 9)},\n\t\t\tPointEvent: fyne.PointEvent{Position: fyne.NewPos(15, 5)},\n\t\t\tPointEvent: fyne.PointEvent{Position: fyne.NewPos(15, 5), AbsolutePosition: fyne.NewPos(19, 9)},\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/fyne-io/fyne/commit/f8401cbcc8fee00e05ba50876534b770cb8e809b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "func goAndroidBuild(pkg *build.Package, androidArchs []string, iconPath string) (map[string]bool, error) {\nfunc goAndroidBuild(pkg *build.Package, bundleID string, androidArchs []string, iconPath string) (map[string]bool, error) {\n\t\tnmpkgs, err = goAndroidBuild(pkg, targetArchs, cmd.IconPath)\n\t\tnmpkgs, err = goAndroidBuild(pkg, buildBundleID, targetArchs, cmd.IconPath)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/fyne-io/fyne/commit/3c25819fde02b4964d313a338689431b9274e6b4", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "\tcanvas.Refresh(parent)\n\tRefresh(parent)\n\tcanvas.Refresh(parent)\n\tRefresh(parent)\n\tcanvas.Refresh(parent)\n\tRefresh(parent)\n\tcanvas.Refresh(parent)\n\tRefresh(parent)\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/fyne-io/fyne/commit/2c5ba1e5a711bc959b50d4769f7dceafc595a89e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "\t\t\t\tassert.Equal(t, tt.wantIconSize, br.icon.Size())\n\t\t\t\tassert.Equal(t, tt.wantIconPos, br.icon.Position())\n\t\t\t\tassert.Equal(t, tt.wantIconSize, br.icon.Size(), \"icon size\")\n\t\t\t\tassert.Equal(t, tt.wantIconPos, br.icon.Position(), \"icon position\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.034482758620689655, "commit_url": "https://github.com/fyne-io/fyne/commit/461cd8bb991e2a93cf016fda05f3b5a191c37ec9", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 12 ] }, { "input": "\t\t\tassert.Equal(t, tt.wantTextSize, br.label.Size())\n\t\t\tassert.Equal(t, tt.wantTextPos, br.label.Position())\n\t\t\tassert.Equal(t, tt.wantTextSize, br.label.Size(), \"label size\")\n\t\t\tassert.Equal(t, tt.wantTextPos, br.label.Position(), \"label position\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.034482758620689655, "commit_url": "https://github.com/fyne-io/fyne/commit/461cd8bb991e2a93cf016fda05f3b5a191c37ec9", "target_edit_idx": 12, "propagatable_edit_idx": [ 9, 11 ] }, { "input": "\t\toffset = co.Position().Add(pos)\n\t\toffset = co.Position().Add(pos)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/268ff7a28579fe0b4e313497694946a74fb54486", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\t\tl = widget.TabLocationRight\n\t\t\tl = widget.TabLocationTrailing\n\tTabLocationRight\n\tTabLocationTrailing\n\tcase TabLocationLeft, TabLocationRight:\n\tcase TabLocationLeading, TabLocationTrailing:\n\tcase TabLocationLeft, TabLocationRight:\n\tcase TabLocationLeading, TabLocationTrailing:\n\tcase TabLocationRight:\n\tcase TabLocationTrailing:\n\ttabs.SetTabLocation(TabLocationRight)\n\ttabs.SetTabLocation(TabLocationTrailing)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/8f6dd52ccbe6e5c99b0174e22f79b84965462176", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5, 7, 9 ] }, { "input": "\tTabLocationLeft\n\tTabLocationLeading\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/8f6dd52ccbe6e5c99b0174e22f79b84965462176", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4, 5, 6, 8 ] }, { "input": "\tTabLocationRight\n\tTabLocationTrailing\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/8f6dd52ccbe6e5c99b0174e22f79b84965462176", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5, 7, 9 ] }, { "input": "\tcase TabLocationLeft, TabLocationRight:\n\tcase TabLocationLeading, TabLocationTrailing:\n\t\t\tl = widget.TabLocationLeft\n\t\tcase widget.TabLocationLeft:\n\t\t\tl = widget.TabLocationLeading\n\t\tcase widget.TabLocationLeading:\n\t\t\tl = widget.TabLocationRight\n\t\t\tl = widget.TabLocationTrailing\n\tTabLocationLeft\n\tTabLocationLeading\n\tTabLocationRight\n\tTabLocationTrailing\n\tcase TabLocationLeft, TabLocationRight:\n\tcase TabLocationLeading, TabLocationTrailing:\n\tcase TabLocationLeft:\n\tcase TabLocationLeading:\n\tcase TabLocationRight:\n\tcase TabLocationTrailing:\n\ttabs.SetTabLocation(TabLocationLeft)\n\ttabs.SetTabLocation(TabLocationLeading)\n\ttabs.SetTabLocation(TabLocationRight)\n\ttabs.SetTabLocation(TabLocationTrailing)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/8f6dd52ccbe6e5c99b0174e22f79b84965462176", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9 ] }, { "input": "\tcase TabLocationLeft, TabLocationRight:\n\tcase TabLocationLeading, TabLocationTrailing:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/8f6dd52ccbe6e5c99b0174e22f79b84965462176", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8, 9 ] }, { "input": "\tcase TabLocationLeft:\n\tcase TabLocationLeading:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/8f6dd52ccbe6e5c99b0174e22f79b84965462176", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 4, 5, 8 ] }, { "input": "\ttabs.SetTabLocation(TabLocationLeft)\n\ttabs.SetTabLocation(TabLocationLeading)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/8f6dd52ccbe6e5c99b0174e22f79b84965462176", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 2, 4, 5, 6 ] }, { "input": "\ttabs.SetTabLocation(TabLocationRight)\n\ttabs.SetTabLocation(TabLocationTrailing)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/8f6dd52ccbe6e5c99b0174e22f79b84965462176", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 3, 4, 5, 7 ] }, { "input": "\twidth := scaleInt(c, circle.Size().Width+vectorPad*2)\n\theight := scaleInt(c, circle.Size().Height+vectorPad*2)\n\tstroke := circle.StrokeWidth * c.scale\n\twidth := textureScaleInt(c, circle.Size().Width+vectorPad*2)\n\theight := textureScaleInt(c, circle.Size().Height+vectorPad*2)\n\tstroke := circle.StrokeWidth * c.scale * c.texScale\n\t\trasterx.AddCircle(float64(width/2), float64(height/2), float64(scaleInt(c, radius)), filler)\n\t\trasterx.AddCircle(float64(width/2), float64(height/2), float64(textureScaleInt(c, radius)), filler)\n\trasterx.AddCircle(float64(width/2), float64(height/2), float64(scaleInt(c, radius)), dasher)\n\trasterx.AddCircle(float64(width/2), float64(height/2), float64(textureScaleInt(c, radius)), dasher)\n\twidth := scaleInt(c, line.Size().Width+vectorPad*2)\n\theight := scaleInt(c, line.Size().Height+vectorPad*2)\n\tstroke := line.StrokeWidth * c.scale\n\twidth := textureScaleInt(c, line.Size().Width+vectorPad*2)\n\theight := textureScaleInt(c, line.Size().Height+vectorPad*2)\n\tstroke := line.StrokeWidth * c.scale * c.texScale\n\tp1x, p1y := scaleInt(c, line.Position1.X-line.Position().X+vectorPad), scaleInt(c, line.Position1.Y-line.Position().Y+vectorPad)\n\tp2x, p2y := scaleInt(c, line.Position2.X-line.Position().X+vectorPad), scaleInt(c, line.Position2.Y-line.Position().Y+vectorPad)\n\tp1x, p1y := textureScaleInt(c, line.Position1.X-line.Position().X+vectorPad), textureScaleInt(c, line.Position1.Y-line.Position().Y+vectorPad)\n\tp2x, p2y := textureScaleInt(c, line.Position2.X-line.Position().X+vectorPad), textureScaleInt(c, line.Position2.Y-line.Position().Y+vectorPad)\n\twidth := scaleInt(c, bounds.Width)\n\theight := scaleInt(c, bounds.Height)\n\twidth := textureScaleInt(c, bounds.Width)\n\theight := textureScaleInt(c, bounds.Height)\n\twidth := scaleInt(c, img.Size().Width)\n\theight := scaleInt(c, img.Size().Height)\n\twidth := textureScaleInt(c, img.Size().Width)\n\theight := textureScaleInt(c, img.Size().Height)\n\twidth := scaleInt(c, rast.Size().Width)\n\theight := scaleInt(c, rast.Size().Height)\n\twidth := textureScaleInt(c, rast.Size().Width)\n\theight := textureScaleInt(c, rast.Size().Height)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/fyne-io/fyne/commit/b2cf72155447151e7d87e0acaf004a35e57c967f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 9, 10 ] }, { "input": "\t\trasterx.AddCircle(float64(width/2), float64(height/2), float64(scaleInt(c, radius)), filler)\n\t\trasterx.AddCircle(float64(width/2), float64(height/2), float64(textureScaleInt(c, radius)), filler)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5357142857142857, "commit_url": "https://github.com/fyne-io/fyne/commit/b2cf72155447151e7d87e0acaf004a35e57c967f", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5, 6, 7, 9, 10 ] }, { "input": "\trasterx.AddCircle(float64(width/2), float64(height/2), float64(scaleInt(c, radius)), dasher)\n\trasterx.AddCircle(float64(width/2), float64(height/2), float64(textureScaleInt(c, radius)), dasher)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5357142857142857, "commit_url": "https://github.com/fyne-io/fyne/commit/b2cf72155447151e7d87e0acaf004a35e57c967f", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5, 6, 7, 9, 10 ] }, { "input": "\tp1x, p1y := scaleInt(c, line.Position1.X-line.Position().X+vectorPad), scaleInt(c, line.Position1.Y-line.Position().Y+vectorPad)\n\tp2x, p2y := scaleInt(c, line.Position2.X-line.Position().X+vectorPad), scaleInt(c, line.Position2.Y-line.Position().Y+vectorPad)\n\tp1x, p1y := textureScaleInt(c, line.Position1.X-line.Position().X+vectorPad), textureScaleInt(c, line.Position1.Y-line.Position().Y+vectorPad)\n\tp2x, p2y := textureScaleInt(c, line.Position2.X-line.Position().X+vectorPad), textureScaleInt(c, line.Position2.Y-line.Position().Y+vectorPad)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/fyne-io/fyne/commit/b2cf72155447151e7d87e0acaf004a35e57c967f", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 4, 5, 7, 9, 10 ] }, { "input": "\twidth := scaleInt(c, bounds.Width)\n\theight := scaleInt(c, bounds.Height)\n\twidth := textureScaleInt(c, bounds.Width)\n\theight := textureScaleInt(c, bounds.Height)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/fyne-io/fyne/commit/b2cf72155447151e7d87e0acaf004a35e57c967f", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 9, 10 ] }, { "input": "\twidth := scaleInt(c, img.Size().Width)\n\theight := scaleInt(c, img.Size().Height)\n\twidth := textureScaleInt(c, img.Size().Width)\n\theight := textureScaleInt(c, img.Size().Height)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/fyne-io/fyne/commit/b2cf72155447151e7d87e0acaf004a35e57c967f", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 10 ] }, { "input": "\twidth := scaleInt(c, rast.Size().Width)\n\theight := scaleInt(c, rast.Size().Height)\n\twidth := textureScaleInt(c, rast.Size().Width)\n\theight := textureScaleInt(c, rast.Size().Height)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/fyne-io/fyne/commit/b2cf72155447151e7d87e0acaf004a35e57c967f", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 9 ] }, { "input": "func NewScroller(content fyne.CanvasObject) *ScrollContainer {\nfunc NewScrollContainer(content fyne.CanvasObject) *ScrollContainer {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/aa98945d7b182ba100ef5cb44966a496a8d578b0", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4, 5, 6, 7, 8 ] }, { "input": "\tscroll := NewScroller(rect)\n\tscroll := NewScrollContainer(rect)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/aa98945d7b182ba100ef5cb44966a496a8d578b0", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 5, 6, 7, 8 ] }, { "input": "\tscroll := NewScroller(rect)\n\tscroll := NewScrollContainer(rect)\n\tscroll := widget.NewScroller(logo)\n\tscroll := widget.NewScrollContainer(logo)\nfunc NewScroller(content fyne.CanvasObject) *ScrollContainer {\nfunc NewScrollContainer(content fyne.CanvasObject) *ScrollContainer {\n\tscroll := NewScroller(rect)\n\tscroll := NewScrollContainer(rect)\n\tscroll := NewScroller(rect)\n\tscroll := NewScrollContainer(rect)\n\tscroll := NewScroller(rect)\n\tscroll := NewScrollContainer(rect)\n\tscroll := NewScroller(rect)\n\tscroll := NewScrollContainer(rect)\n\tscroll := NewScroller(rect)\n\tscroll := NewScrollContainer(rect)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/aa98945d7b182ba100ef5cb44966a496a8d578b0", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3, 5, 6, 7, 8 ] }, { "input": "\t\tminSize = minSize.Add(fyne.NewSize(0, b.top.MinSize().Height+theme.Padding()))\n\t\tminWidth := fyne.Max(minSize.Width, b.top.MinSize().Width)\n\t\tminSize = fyne.NewSize(minWidth, minSize.Height+b.top.MinSize().Height+theme.Padding())\n\t\tminSize = minSize.Add(fyne.NewSize(0, b.bottom.MinSize().Height+theme.Padding()))\n\t\tminWidth := fyne.Max(minSize.Width, b.bottom.MinSize().Width)\n\t\tminSize = fyne.NewSize(minWidth, minSize.Height+b.bottom.MinSize().Height+theme.Padding())\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/193d9cc1cb6c18889087f4e40695c562347174fd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tminSize = minSize.Add(fyne.NewSize(b.left.MinSize().Width+theme.Padding(), 0))\n\t\tminHeight := fyne.Max(minSize.Height, b.left.MinSize().Height)\n\t\tminSize = fyne.NewSize(minSize.Width+b.left.MinSize().Width+theme.Padding(), minHeight)\n\t\tminSize = minSize.Add(fyne.NewSize(b.right.MinSize().Width+theme.Padding(), 0))\n\t\tminHeight := fyne.Max(minSize.Height, b.right.MinSize().Height)\n\t\tminSize = fyne.NewSize(minSize.Width+b.right.MinSize().Width+theme.Padding(), minHeight)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/193d9cc1cb6c18889087f4e40695c562347174fd", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\tapp := &eflApp{\n\tnewApp := &eflApp{\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/aee37f5b5354566655031b31ca576a91878397fd", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": "\treturn app\n\treturn newApp\n\tapp := &eflApp{\n\tnewApp := &eflApp{\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/fyne-io/fyne/commit/aee37f5b5354566655031b31ca576a91878397fd", "target_edit_idx": 9, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\toutput, err := outputConstructor(params)\n\t\tout, err := outputConstructor(params)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/k6/commit/1455a62e6e728ceb965cb574dab3ec41b5271d8e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tresult = append(result, output)\n\n\t\tif thresholdOut, ok := out.(output.WithThresholds); ok {\n\t\t\tthresholdOut.SetThresholds(test.derivedConfig.Thresholds)\n\t\t}\n\n\t\tif builtinMetricOut, ok := out.(output.WithBuiltinMetrics); ok {\n\t\t\tbuiltinMetricOut.SetBuiltinMetrics(test.builtInMetrics)\n\t\t}\n\n\t\tresult = append(result, out)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/k6/commit/1455a62e6e728ceb965cb574dab3ec41b5271d8e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\trunCmd.Flags().AddFlagSet(runCmdFlagSet(globalState))\n\trunCmd.Flags().AddFlagSet(runCmdFlagSet())\nfunc runCmdFlagSet(globalState *globalState) *pflag.FlagSet {\nfunc runCmdFlagSet() *pflag.FlagSet {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/k6/commit/37ade417f22c740edaf15473569ea0517614e95e", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "func runCmdFlagSet(globalState *globalState) *pflag.FlagSet {\nfunc runCmdFlagSet() *pflag.FlagSet {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/k6/commit/37ade417f22c740edaf15473569ea0517614e95e", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\")\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\", 1*time.Second)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.7, "commit_url": "https://github.com/grafana/k6/commit/183db8907b8821a82d1c27b20349331f6bc0dd7d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 9 ] }, { "input": "\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\")\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\", 1*time.Second)\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\")\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\", 1*time.Second)\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\")\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\", 1*time.Second)\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\")\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\", 1*time.Second)\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\")\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\", 1*time.Second)\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\")\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\", 1*time.Second)\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\")\n\tclient := NewClient(testutils.NewLogger(t), \"token\", server.URL, \"1.0\", 1*time.Second)\nfunc NewClient(logger logrus.FieldLogger, token, host, version string) *Client {\nfunc NewClient(logger logrus.FieldLogger, token, host, version string, timeout time.Duration) *Client {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.7, "commit_url": "https://github.com/grafana/k6/commit/183db8907b8821a82d1c27b20349331f6bc0dd7d", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 9 ] }, { "input": "func NewClient(logger logrus.FieldLogger, token, host, version string) *Client {\nfunc NewClient(logger logrus.FieldLogger, token, host, version string, timeout time.Duration) *Client {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.7, "commit_url": "https://github.com/grafana/k6/commit/183db8907b8821a82d1c27b20349331f6bc0dd7d", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6 ] }, { "input": "\t\tTagBlocklist: stats.TagSet{},\n\t\tTagBlocklist: (stats.TagVU | stats.TagIter | stats.TagURL).Map(),\n\t\tTagBlacklist: stats.TagSet{},\n\t\tTagBlacklist: (stats.TagVU | stats.TagIter | stats.TagURL).Map(),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/k6/commit/db50dd0c41c15841d7b9201599d83f9bfd8a6800", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\texports.options = { iterations: 1, vus: 1, vusMax: 1 };\n\t\t\texports.options = { iterations: 1, vus: 1 };\n\t\t\texports.options = { iterations: 1, vus: 1, vusMax: 1 };\n\t\t\texports.options = { iterations: 1, vus: 1 };\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/k6/commit/df918f1637fa6bbef3be0ab4ec18cfea669fb609", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\tPlannedVUs: uint64(prevScaledVUs),\n\t\t\t\tPlannedVUs: uint64(et.ScaleInt64(stageEndVUs)),\n\t\t\tPlannedVUs: uint64(prevScaledVUs),\n\t\t\tPlannedVUs: uint64(et.ScaleInt64(stageEndVUs)),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/k6/commit/721a47e6072ccfec05774c1f867a7b286a8968f2", "target_edit_idx": 4, "propagatable_edit_idx": [ 12 ] }, { "input": "\t\t\tsteps = append(steps, lib.ExecutionStep{\n\t\t\taddStep(lib.ExecutionStep{\n\t\tsteps = append(steps, lib.ExecutionStep{\n\n\t\taddStep(lib.ExecutionStep{\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/k6/commit/721a47e6072ccfec05774c1f867a7b286a8968f2", "target_edit_idx": 7, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\t{TimeOffset: 2 * time.Second, PlannedVUs: 2},\n\t\t{TimeOffset: 18 * time.Second, PlannedVUs: 1},\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grafana/k6/commit/721a47e6072ccfec05774c1f867a7b286a8968f2", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": "\t\t\t\tif (res.cookies.key[0].value != \"value\") { throw new Error(\"wrong cookie value: \" + res.cookies.key[0]); }\n\t\t\t\tif (res.cookies.key[0] != \"value\") { throw new Error(\"wrong cookie value: \" + res.cookies.key[0]); }\n\t\t\t\tif (res.cookies.key[0].value != \"value\") { throw new Error(\"wrong cookie value: \" + res.cookies.key[0]); }\n\t\t\t\tif (res.cookies.key[0] != \"value\") { throw new Error(\"wrong cookie value: \" + res.cookies.key[0]); }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/k6/commit/47973258b67e090a9554af7852b29e097e4786f0", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\tif (res.cookies.key[0].value != \"value\") {\n\t\t\t\tif (res.cookies.key[0] != \"value\") {\n\t\t\t\tif (res.cookies.key[0].value != \"value\") {\n\t\t\t\tif (res.cookies.key[0] != \"value\") {\n\t\t\t\tif (res.cookies.key[0].value != \"value\") {\n\t\t\t\tif (res.cookies.key[0] != \"value\") {\n\t\t\t\tif (res.cookies.key[0].value != \"value\") {\n\t\t\t\tif (res.cookies.key[0] != \"value\") {\n\t\t\t\tif (res.cookies.key[0].value != \"value\") {\n\t\t\t\tif (res.cookies.key[0] != \"value\") {\n\t\t\t\tif (res.cookies.key[0].value != \"value\") {\n\t\t\t\tif (res.cookies.key[0] != \"value\") {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/k6/commit/47973258b67e090a9554af7852b29e097e4786f0", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7, 8, 9, 10 ] }, { "input": "\tlastID := s.conf.UnitID()\n\tunits := s.loadUnits(lastID)\n\tunits, _ := s.loadUnits()\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/AdguardTeam/AdGuardHome/commit/ec5c5e8109c1607b7b71334d6ddf71124ef39d80", "target_edit_idx": 12, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\ts.dnsFilter = dnsfilter.New()\n\t\ts.dnsFilter = dnsfilter.New(nil)\n\t\td: dnsfilter.New(),\n\t\td: dnsfilter.New(nil),\n\tdnsFilter := dnsfilter.New()\n\tdnsFilter := dnsfilter.New(&new.Config) // sets safebrowsing, safesearch and parental\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/AdguardTeam/AdGuardHome/commit/e26837d9e87223a477fd8beb3151d98eeb52c5cd", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4 ] }, { "input": "\tdnsFilter := dnsfilter.New()\n\tdnsFilter := dnsfilter.New(&new.Config) // sets safebrowsing, safesearch and parental\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/AdguardTeam/AdGuardHome/commit/e26837d9e87223a477fd8beb3151d98eeb52c5cd", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\tfilters := []dnsforward.Filter{}\n\tfilters := []dnsfilter.Filter{}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/AdguardTeam/AdGuardHome/commit/87c54ebd4c51dae349e8630448ac0a6ad6210efd", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5, 10, 11 ] }, { "input": "\tfilters = append(filters, dnsforward.Filter{\n\tfilters = append(filters, dnsfilter.Filter{\n\t\t{Filter: dnsforward.Filter{ID: 1}, Enabled: true, URL: \"https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt\", Name: \"AdGuard Simplified Domain Names filter\"},\n\t\t{Filter: dnsforward.Filter{ID: 2}, Enabled: false, URL: \"https://adaway.org/hosts.txt\", Name: \"AdAway\"},\n\t\t{Filter: dnsforward.Filter{ID: 3}, Enabled: false, URL: \"https://hosts-file.net/ad_servers.txt\", Name: \"hpHosts - Ad and Tracking servers only\"},\n\t\t{Filter: dnsforward.Filter{ID: 4}, Enabled: false, URL: \"http://www.malwaredomainlist.com/hostslist/hosts.txt\", Name: \"MalwareDomainList.com Hosts List\"},\n\t\t{Filter: dnsfilter.Filter{ID: 1}, Enabled: true, URL: \"https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt\", Name: \"AdGuard Simplified Domain Names filter\"},\n\t\t{Filter: dnsfilter.Filter{ID: 2}, Enabled: false, URL: \"https://adaway.org/hosts.txt\", Name: \"AdAway\"},\n\t\t{Filter: dnsfilter.Filter{ID: 3}, Enabled: false, URL: \"https://hosts-file.net/ad_servers.txt\", Name: \"hpHosts - Ad and Tracking servers only\"},\n\t\t{Filter: dnsfilter.Filter{ID: 4}, Enabled: false, URL: \"http://www.malwaredomainlist.com/hostslist/hosts.txt\", Name: \"MalwareDomainList.com Hosts List\"},\n\tfilters := []dnsforward.Filter{}\n\tfilters := []dnsfilter.Filter{}\n\t\tfilters = append(filters, dnsforward.Filter{\n\t\tfilters = append(filters, dnsfilter.Filter{\n\tdnsforward.Filter `yaml:\",inline\"`\n\tdnsfilter.Filter `yaml:\",inline\"`\n\t\tFilter: dnsforward.Filter{\n\t\tFilter: dnsfilter.Filter{\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/AdguardTeam/AdGuardHome/commit/87c54ebd4c51dae349e8630448ac0a6ad6210efd", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5, 10, 11 ] }, { "input": "\t\tFilter: dnsforward.Filter{\n\t\tFilter: dnsfilter.Filter{\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/AdguardTeam/AdGuardHome/commit/87c54ebd4c51dae349e8630448ac0a6ad6210efd", "target_edit_idx": 11, "propagatable_edit_idx": [ 1, 3, 4, 5, 10 ] }, { "input": "\tgo periodicQueryLogRotate(queryLogRotationPeriod)\n\tgo periodicQueryLogRotate()\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/AdguardTeam/AdGuardHome/commit/a15f21ca1cd0acabf77a4e9750dd77b2b870a6f4", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "func periodicQueryLogRotate(t time.Duration) {\n\tfor range time.Tick(t) {\nfunc periodicQueryLogRotate() {\n\tfor range time.Tick(queryLogRotationPeriod) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/AdguardTeam/AdGuardHome/commit/a15f21ca1cd0acabf77a4e9750dd77b2b870a6f4", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tlogRequest(rrw.Msg, result, time.Since(start))\n\t\tlogRequest(rrw.Msg, result, time.Since(start), ip)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/AdguardTeam/AdGuardHome/commit/379e14c28b18c0632e42760aca94aa7b72b05885", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "func logRequest(r *dns.Msg, result dnsfilter.Result, elapsed time.Duration) {\nfunc logRequest(r *dns.Msg, result dnsfilter.Result, elapsed time.Duration, ip string) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/AdguardTeam/AdGuardHome/commit/379e14c28b18c0632e42760aca94aa7b72b05885", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": "\tgo autoUpdate(s, ctl)\n\tgo autoUpdate(s, ctl, opts.authtoken)\nfunc autoUpdate(s *State, ctl *ui.Controller) {\nfunc autoUpdate(s *State, ctl *ui.Controller, token string) {\nfunc autoUpdate(s *State, ctl *ui.Controller) {\n\tupdate := func() bool {\nfunc autoUpdate(s *State, ctl *ui.Controller, token string) {\n\tupdate := func() (updateSuccessful bool) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/inconshreveable/ngrok/commit/aa4543b8244d0e965f3f60f0593ee8d5b144de9a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "func autoUpdate(s *State, ctl *ui.Controller) {\nfunc autoUpdate(s *State, ctl *ui.Controller, token string) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/inconshreveable/ngrok/commit/aa4543b8244d0e965f3f60f0593ee8d5b144de9a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "func preventEnvAndRegistryOverrides(browserFolder, userDataFolder *uint16) {\nfunc preventEnvAndRegistryOverrides(browserFolder, userDataFolder *uint16, additionalBrowserArgs string) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/wailsapp/wails/commit/ebc653a58419dd9874273a29d4d60fd0513712ed", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": "\tdefer log.Finish()\n\tdefer log.Finish()\n", "class": "clone", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/grafana/loki/commit/93aaf29e681053a1d23dcf855cfe92af8415260d", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\"github.com/opentracing/opentracing-go\"\n\t\"github.com/opentracing/opentracing-go\"\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/grafana/loki/commit/5a643c711547e0d5bfc5b109e8b5650d195b152a", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": "\tspan, ctx := opentracing.StartSpanFromContext(ctx, \"queryHandler\")\n\tdefer span.Finish()\n\tspan, ctx := opentracing.StartSpanFromContext(ctx, \"query_size_limits\")\n\tdefer span.Finish()\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/grafana/loki/commit/5a643c711547e0d5bfc5b109e8b5650d195b152a", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\tpipeline = i.pipelineWrapper.Wrap(ctx, pipeline, expr.String(), userID, shards)\n\t\tpipeline = i.pipelineWrapper.Wrap(ctx, pipeline, req.Plan.String(), userID, shards)\n\t\tpipeline = s.pipelineWrapper.Wrap(ctx, pipeline, expr.String(), userID, shards)\n\t\tpipeline = s.pipelineWrapper.Wrap(ctx, pipeline, req.Plan.String(), userID, shards)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/loki/commit/fed7566ba9026ceff97d4d9d53047e77734b3714", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\textractor = i.extractorWrapper.Wrap(ctx, extractor, expr.String(), userID, shards)\n\t\textractor = i.extractorWrapper.Wrap(ctx, extractor, req.Plan.String(), userID, shards)\n\t\textractor = s.extractorWrapper.Wrap(ctx, extractor, expr.String(), userID, shards)\n\t\textractor = s.extractorWrapper.Wrap(ctx, extractor, req.Plan.String(), userID, shards)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/loki/commit/fed7566ba9026ceff97d4d9d53047e77734b3714", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\tDuplicate([]KeyedStream)\n\tDuplicate(tenant string, streams []KeyedStream)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/loki/commit/d2f43787b6b28916672011674e62e96598aea24b", "target_edit_idx": 6, "propagatable_edit_idx": [ 2 ] }, { "input": "\tmgr := NewHeadManager(log.NewNopLogger(), dir, nil, noopTSDBManager{})\n\tmgr := NewHeadManager(log.NewNopLogger(), dir, nil, newNoopTSDBManager(dir))\n\tmgr := NewHeadManager(log.NewNopLogger(), dir, nil, noopTSDBManager{})\n\tmgr := NewHeadManager(log.NewNopLogger(), dir, nil, newNoopTSDBManager(dir))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/loki/commit/3c334001cd864bef53fb468805765779a2222171", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "\tmetrics *metrics\n\t\tmetrics: metrics,\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/grafana/loki/commit/06e309bae6433036a76775125bd72b16003fba7d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\tidxSet, err := NewIndexSet(tableName, userID, filepath.Join(cachePath, tableName, userID), baseIndexSet,\n\t\tboltDBIndexClient, util_log.Logger, newMetrics(nil))\n\tidxSet, err := NewIndexSet(tableName, userID, filepath.Join(cachePath, tableName, userID), baseIndexSet, boltDBIndexClient, util_log.Logger)\n\t\tuserIndexSet, err := NewIndexSet(name, userID, filepath.Join(cacheLocation, userID),\n\t\t\ttable.baseUserIndexSet, boltDBIndexClient, loggerWithUserID(table.logger, userID), metrics)\n\t\tuserIndexSet, err := NewIndexSet(name, userID, filepath.Join(cacheLocation, userID), table.baseUserIndexSet, boltDBIndexClient, loggerWithUserID(table.logger, userID))\n\tcommonIndexSet, err := NewIndexSet(name, \"\", cacheLocation, table.baseCommonIndexSet,\n\t\tboltDBIndexClient, table.logger, metrics)\n\tcommonIndexSet, err := NewIndexSet(name, \"\", cacheLocation, table.baseCommonIndexSet, boltDBIndexClient, table.logger)\n\tindexSet, err = NewIndexSet(t.name, id, filepath.Join(t.cacheLocation, id), baseIndexSet, t.boltDBIndexClient,\n\t\tloggerWithUserID(t.logger, id), t.metrics)\n\tindexSet, err = NewIndexSet(t.name, id, filepath.Join(t.cacheLocation, id), baseIndexSet, t.boltDBIndexClient, loggerWithUserID(t.logger, id))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/grafana/loki/commit/06e309bae6433036a76775125bd72b16003fba7d", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": "\t\tuserIndexSet, err := NewIndexSet(name, userID, filepath.Join(cacheLocation, userID),\n\t\t\ttable.baseUserIndexSet, boltDBIndexClient, loggerWithUserID(table.logger, userID), metrics)\n\t\tuserIndexSet, err := NewIndexSet(name, userID, filepath.Join(cacheLocation, userID), table.baseUserIndexSet, boltDBIndexClient, loggerWithUserID(table.logger, userID))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/grafana/loki/commit/06e309bae6433036a76775125bd72b16003fba7d", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6, 7 ] }, { "input": "\tcommonIndexSet, err := NewIndexSet(name, \"\", cacheLocation, table.baseCommonIndexSet,\n\t\tboltDBIndexClient, table.logger, metrics)\n\tcommonIndexSet, err := NewIndexSet(name, \"\", cacheLocation, table.baseCommonIndexSet, boltDBIndexClient, table.logger)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/grafana/loki/commit/06e309bae6433036a76775125bd72b16003fba7d", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5, 7 ] }, { "input": "\tindexSet, err = NewIndexSet(t.name, id, filepath.Join(t.cacheLocation, id), baseIndexSet, t.boltDBIndexClient,\n\t\tloggerWithUserID(t.logger, id), t.metrics)\n\tindexSet, err = NewIndexSet(t.name, id, filepath.Join(t.cacheLocation, id), baseIndexSet, t.boltDBIndexClient, loggerWithUserID(t.logger, id))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/grafana/loki/commit/06e309bae6433036a76775125bd72b16003fba7d", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": "\t\t{\"Scaling control plane by 1\", nodeRolesControlPlane, s.client},\n\t\t{\"Scaling etcd by 1\", nodeRolesEtcd, s.client},\n\t\t{\"Scaling etcd and control plane by 1\", nodeRolesEtcdControlPlane, s.client},\n\t\t{\"Scaling worker by 1\", nodeRolesWorker, s.client},\n\t\t{\"Scaling worker by 2\", nodeRolesTwoWorkers, s.client},\n\t\t{\"Scaling custom RKE1 control plane by 1\", nodeRolesControlPlane, s.client},\n\t\t{\"Scaling custom RKE1 etcd by 1\", nodeRolesEtcd, s.client},\n\t\t{\"Scaling custom RKE1 etcd and control plane by 1\", nodeRolesEtcdControlPlane, s.client},\n\t\t{\"Scaling custom RKE1 worker by 1\", nodeRolesWorker, s.client},\n\t\t{\"Scaling custom RKE1 worker by 2\", nodeRolesTwoWorkers, s.client},\n\t\t{\"Scaling control plane by 1\", nodeRolesControlPlane, s.client},\n\t\t{\"Scaling etcd by 1\", nodeRolesEtcd, s.client},\n\t\t{\"Scaling etcd and control plane by 1\", nodeRolesEtcdControlPlane, s.client},\n\t\t{\"Scaling worker by 1\", nodeRolesWorker, s.client},\n\t\t{\"Scaling worker by 2\", nodeRolesTwoWorkers, s.client},\n\t\t{\"control plane by 1\", nodeRolesControlPlane, s.client},\n\t\t{\"etcd by 1\", nodeRolesEtcd, s.client},\n\t\t{\"etcd and control plane by 1\", nodeRolesEtcdControlPlane, s.client},\n\t\t{\"worker by 1\", nodeRolesWorker, s.client},\n\t\t{\"worker by 2\", nodeRolesTwoWorkers, s.client},\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/rancher/rancher/commit/68a801304168cff7c239391c212eca3f12c1d0b4", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t{\"Scaling control plane by 1\", nodeRolesControlPlane, s.client},\n\t\t{\"Scaling etcd node by 1\", nodeRolesEtcd, s.client},\n\t\t{\"Scaling worker by 1\", nodeRolesWorker, s.client},\n\t\t{\"Scaling worker node machine by 2\", nodeRolesTwoWorkers, s.client},\n\t\t{\"Scaling RKE1 control plane by 1\", nodeRolesControlPlane, s.client},\n\t\t{\"Scaling RKE1 etcd node by 1\", nodeRolesEtcd, s.client},\n\t\t{\"Scaling RKE1 worker by 1\", nodeRolesWorker, s.client},\n\t\t{\"Scaling RKE1 worker node machine by 2\", nodeRolesTwoWorkers, s.client},\n\t\t{\"Scaling control plane by 1\", nodeRolesControlPlane, s.client},\n\t\t{\"Scaling etcd by 1\", nodeRolesEtcd, s.client},\n\t\t{\"Scaling worker by 1\", nodeRolesWorker, s.client},\n\t\t{\"Scaling worker by 2\", nodeRolesTwoWorkers, s.client},\n\t\t{\"control plane by 1\", nodeRolesControlPlane, s.client},\n\t\t{\"etcd by 1\", nodeRolesEtcd, s.client},\n\t\t{\"worker by 1\", nodeRolesWorker, s.client},\n\t\t{\"worker by 2\", nodeRolesTwoWorkers, s.client},\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/rancher/rancher/commit/68a801304168cff7c239391c212eca3f12c1d0b4", "target_edit_idx": 6, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\tvalidateCRDDescription(crd.T(), crd.client, crd.clusterV1, crd.clusterID)\n\t\tvalidateCRDDescription(crd.T(), crd.client, crd.clusterV1, localCluster)\n\t\tvalidateRoleCreation(crd.T(), crd.client, crd.clusterV1, crd.clusterID)\n\t\tvalidateRoleCreation(crd.T(), crd.client, crd.clusterV1, localCluster)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/rancher/rancher/commit/d1f5749ab63904e30053055c9f666412cb06a6f1", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "\tscalingv2beta2 \"k8s.io/api/autoscaling/v2beta2\"\n\tscalingv2 \"k8s.io/api/autoscaling/v2\"\n\tscalingv2beta2 \"k8s.io/api/autoscaling/v2beta2\"\n\tscalingv2 \"k8s.io/api/autoscaling/v2\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/rancher/rancher/commit/3361d5c40cc9e171f215b06a5d7599a6f9308667", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\treturn false, nil\n\t\t\treturn false, false, nil\n\t\treturn false, nil\n\t\treturn false, false, nil\n\t}\n\n\tif webhookReceiverEnabled, ok := app.Spec.Answers[deployer.WebhookReceiverEnable]; ok && webhookReceiverEnabled == \"true\" {\n\t\treturn true, true, nil\n", "class": "clone", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/rancher/rancher/commit/cdb9453c7a7234829df3fc7a22dbbe66b381030f", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tv3.ClusterConditionUpgraded.Message(cluster, masterPlanMessage)\n\t\treturn h.clusterClient.Update(cluster)\n\t\treturn h.enqueueOrUpdate(cluster, masterPlanMessage)\n\t\tv3.ClusterConditionUpgraded.Message(cluster, workerPlanMessage)\n\t\treturn h.clusterClient.Update(cluster)\n\t\treturn h.enqueueOrUpdate(cluster, workerPlanMessage)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/rancher/rancher/commit/567758f784d426b02433246d0aec783f760a7b63", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tModifyResponse: replaceSetCookies,\n\t\tModifyResponse: setModifiedHeaders,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rancher/rancher/commit/df3870bb931cfad58f881f95368bd029ab7ab561", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4, 6 ] }, { "input": "func replaceSetCookies(res *http.Response) error {\nfunc setModifiedHeaders(res *http.Response) error {\n\t// replace set cookies\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rancher/rancher/commit/df3870bb931cfad58f881f95368bd029ab7ab561", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4, 6 ] }, { "input": "\treplaceSetCookies(DummyRequest)\n\tsetModifiedHeaders(DummyRequest)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/rancher/rancher/commit/df3870bb931cfad58f881f95368bd029ab7ab561", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 6 ] }, { "input": "\t\tctx, cancel := ic.Merge(ctx, s.ctx)\n\t\tctx, cancel := ic.Merge(ctx, s.baseCtx)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/go-kratos/kratos/commit/0184d217cf519b639fe64f575cb9afb57b88f2c2", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\tif m, ok := v.(proto.Message); ok {\n\t\treturn MarshalOptions.Marshal(m)\n\t}\n\tif m, ok := v.(proto.Message); ok {\n\t\treturn UnmarshalOptions.Unmarshal(data, m)\n\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/go-kratos/kratos/commit/28009889bbccfc2da31a384e1216ae1ae10c2315", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\treturn Fail(t, fmt.Sprintf(\"func %#v should panic with value:\\t%#v\\n\\tPanic value:\\t%#v\", f, expected, panicValue), msgAndArgs...)\n\t\treturn Fail(t, fmt.Sprintf(\"func %#v should panic with value:\\t%#v\\n\\tPanic value:\\t%#v\\n\\tPanic stack:\\t%s\", f, expected, panicValue, panickedStack), msgAndArgs...)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.007936507936507936, "commit_url": "https://github.com/stretchr/testify/commit/85f2b59c4459e5bf57488796be8c3667cb8246d6", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\tif funcDidPanic, panicValue := didPanic(f); funcDidPanic {\n\t\treturn Fail(t, fmt.Sprintf(\"func %#v should not panic\\n\\tPanic value:\\t%v\", f, panicValue), msgAndArgs...)\n\tif funcDidPanic, panicValue, panickedStack := didPanic(f); funcDidPanic {\n\t\treturn Fail(t, fmt.Sprintf(\"func %#v should not panic\\n\\tPanic value:\\t%v\\n\\tPanic stack:\\t%s\", f, panicValue, panickedStack), msgAndArgs...)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.007936507936507936, "commit_url": "https://github.com/stretchr/testify/commit/85f2b59c4459e5bf57488796be8c3667cb8246d6", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": "\tif funcDidPanic, _ := didPanic(func() {\n\tif funcDidPanic, _, _ := didPanic(func() {\n\tif funcDidPanic, _ := didPanic(func() {\n\tif funcDidPanic, _, _ := didPanic(func() {\n\tif funcDidPanic, _ := didPanic(func() {\n\tif funcDidPanic, _, _ := didPanic(func() {\n\tif funcDidPanic, _ := didPanic(func() {\n\tif funcDidPanic, _, _ := didPanic(func() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/stretchr/testify/commit/85f2b59c4459e5bf57488796be8c3667cb8246d6", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11, 12 ] }, { "input": "\tcheckHeadersFunc := func(statusCode int, headers http.Header) bool {\n\torigURL := req.URL\n\tcheckHeadersFunc := func(req *http.Request, statusCode int, headers http.Header) bool {\n\t\tif req.URL != origURL {\n\t\t\trequest.URL = req.URL\n\t\t\trequest.Headers = &req.Header\n\t\t}\ntype checkHeadersFunc func(statusCode int, header http.Header) bool\ntype checkHeadersFunc func(req *http.Request, statusCode int, header http.Header) bool\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gocolly/colly/commit/bc1e233d2e7556715d39f954468b89b4bcf5ec0d", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\te := NewHTMLElementFromSelectionNode(resp, s, n)\n\t\t\t\te := NewHTMLElementFromSelectionNode(resp, s, n, i)\n\t\t\t\ti += 1\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/gocolly/colly/commit/d4e95b5c993860fb489e048ff2d9ebf4a54328f7", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 6 ] }, { "input": "func NewHTMLElementFromSelectionNode(resp *Response, s *goquery.Selection, n *html.Node) *HTMLElement {\nfunc NewHTMLElementFromSelectionNode(resp *Response, s *goquery.Selection, n *html.Node, idx int) *HTMLElement {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/gocolly/colly/commit/d4e95b5c993860fb489e048ff2d9ebf4a54328f7", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 5, 6 ] }, { "input": "\t\t\tcallback(i, NewHTMLElementFromSelectionNode(h.Response, s, n))\n\t\t\tcallback(i, NewHTMLElementFromSelectionNode(h.Response, s, n, i))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/gocolly/colly/commit/d4e95b5c993860fb489e048ff2d9ebf4a54328f7", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 6 ] }, { "input": "\t\t\tif callback(i, NewHTMLElementFromSelectionNode(h.Response, s, n)) {\n\t\t\tif callback(i, NewHTMLElementFromSelectionNode(h.Response, s, n, i)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/gocolly/colly/commit/d4e95b5c993860fb489e048ff2d9ebf4a54328f7", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": "\tCmdRunner.Use(cmdHelp)\n\tCmdRunner.Use(cmdHelp, \"--help\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.04, "commit_url": "https://github.com/mislav/hub/commit/c83a4488fbd5efa2feba554568d29ccc6335e301", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\tCmdRunner.Use(cmdVersion)\n\tCmdRunner.Use(cmdVersion, \"--version\")\n\tCmdRunner.Use(cmdHelp)\n\tCmdRunner.Use(cmdHelp, \"--help\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.04, "commit_url": "https://github.com/mislav/hub/commit/c83a4488fbd5efa2feba554568d29ccc6335e301", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": "\treg := regexp.MustCompile(\"^git://github.com/jingweno/.+\\\\.git$\")\n\treg := regexp.MustCompile(\"^git@github\\\\.com:jingweno/.+\\\\.git$\")\n\treg = regexp.MustCompile(\"^git://github.com/.+/.+\\\\.git$\")\n\treg = regexp.MustCompile(\"^git@github\\\\.com:jingweno/.+\\\\.git$\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mislav/hub/commit/f1bc18970c7043d804d6eec7b2e033e5cd61a9ec", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tfmt.Fprintf(out, \"%sat %s:%d\\n\", s, formatPath(stack[i].File), stack[i].Line)\n\t\tfmt.Fprintf(out, \"%sat %s\\n\", s, fileLine(stack[i].File, stack[i].Line))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.006134969325153374, "commit_url": "https://github.com/go-delve/delve/commit/9405996b5dfc8a6771b59794f5ca34e1316213b3", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": "\t\t\tfmt.Fprintf(out, \"%s%#016x in %s\\n\", deferHeader, d.DeferredLoc.PC, d.DeferredLoc.Function.Name())\n\t\t\tfmt.Fprintf(out, \"%s%#016x in %s%s%s\\n\", deferHeader, d.DeferredLoc.PC, stc.FunctionColor, d.DeferredLoc.Function.Name(), stc.NormalColor)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.006134969325153374, "commit_url": "https://github.com/go-delve/delve/commit/9405996b5dfc8a6771b59794f5ca34e1316213b3", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 7 ] }, { "input": "\t\t\tfmt.Fprintf(out, \"%sdeferred by %s at %s:%d\\n\", s2, d.DeferLoc.Function.Name(), formatPath(d.DeferLoc.File), d.DeferLoc.Line)\n\t\t\tfmt.Fprintf(out, \"%sdeferred by %s at %s\\n\", s2, d.DeferLoc.Function.Name(), fileLine(d.DeferLoc.File, d.DeferLoc.Line))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.006134969325153374, "commit_url": "https://github.com/go-delve/delve/commit/9405996b5dfc8a6771b59794f5ca34e1316213b3", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "\t\t_, err := _SuspendThread(thread.os.hThread)\n\t\tif err != nil {\n\t\t\treturn err\n\t\tif !thread.os.dbgUiRemoteBreakIn {\n\t\t\t_, err := _SuspendThread(thread.os.hThread)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t_, err = _SuspendThread(t.os.hThread)\n\t\tif err != nil {\n\t\t\treturn err\n\t\tif !t.os.dbgUiRemoteBreakIn {\n\t\t\t_, err = _SuspendThread(t.os.hThread)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t_, err := _SuspendThread(thread.os.hThread)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\tif !thread.os.dbgUiRemoteBreakIn {\n\t\t\t_, err := _SuspendThread(thread.os.hThread)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/go-delve/delve/commit/0ae77bd6c5c7bffe5ae85447c790ea7d920fb593", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "\t\t\t_, err = dbp.addThread(debugInfo.Thread, int(debugEvent.ThreadId), false, flags&waitSuspendNewThreads != 0)\n\t\t\t_, err = dbp.addThread(debugInfo.Thread, int(debugEvent.ThreadId), false,\n\t\t\t\tflags&waitSuspendNewThreads != 0, debugInfo.StartAddress == dbgUiRemoteBreakin.Addr())\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/go-delve/delve/commit/0ae77bd6c5c7bffe5ae85447c790ea7d920fb593", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "\tCurrent Location\n\tCurrentLoc Location\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/go-delve/delve/commit/d4d4021a419bc8ec6c5fef20d4d89919f45e8a60", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 10, 13 ] }, { "input": "\t\t\treturn g.Current\n\t\t\treturn g.CurrentLoc\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/go-delve/delve/commit/d4d4021a419bc8ec6c5fef20d4d89919f45e8a60", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 4, 10, 13 ] }, { "input": "\t\tprocessArgs = append([]string{\"./\" + debugname}, flag.Args()...)\n\t\tprocessArgs = append([]string{\"./\" + debugname}, flag.Args()[1:]...)\n\t\tprocessArgs = append([]string{debugname}, flag.Args()...)\n\t\tprocessArgs = append([]string{debugname}, flag.Args()[1:]...)\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/go-delve/delve/commit/4814636780e47bcbe20e3e1adec54da4e39b4aad", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tlog.Warn(\"Increase --timeout value\")\n\t\t\tlog.Warn(\"Provide a higher timeout value, see https://aquasecurity.github.io/trivy/latest/docs/configuration/\")\n\t\t\tlog.Warn(\"Increase --timeout value\")\n\t\t\tlog.Warn(\"Provide a higher timeout value, see https://aquasecurity.github.io/trivy/latest/docs/configuration/\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/aquasecurity/trivy/commit/38e2fbf7f9a26a293b0c7e65f29932bca7b34871", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\t\t\tPackageVersion: \"2.30\",\n\t\t\t\t\t\tPackageVersion: \"2.30-93.el8\",\n\t\t\t\t\t\tPackageVersion: \"2.2.53\",\n\t\t\t\t\t\tPackageVersion: \"1:2.2.53-1.el8\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/aquasecurity/trivy/commit/4d78747c40ec1c8930408fdca0b255a0b19c1bc1", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tTimeout: c.Timeout,\n\t\tTimeout: c.Timeout,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/aquasecurity/trivy/commit/7726963e868d490cc2cffac7425c31f9bc0a42ec", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\tpublic void feed() {\n\tpublic void getFed() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/iluwatar/java-design-patterns/commit/ee0f5f709ff7b581ccc6ecc9db18796443897661", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 5 ] }, { "input": "\tpublic void giveDrink() {\n\tpublic void getDrink() {\n\tpublic void giveDrink() {\n\tpublic void getDrink() {\n\t\tr.giveDrink();\n\t\tr.getDrink();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/iluwatar/java-design-patterns/commit/ee0f5f709ff7b581ccc6ecc9db18796443897661", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 6 ] }, { "input": "\t\tr.giveDrink();\n\t\tr.getDrink();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/iluwatar/java-design-patterns/commit/ee0f5f709ff7b581ccc6ecc9db18796443897661", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\tproducesMediaTypes.addAll(getProducesFromProducable(annotationAttributes));\n\t\tproducesMediaTypes.addAll(getProducesFromProducible(annotationAttributes));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/570522d876927acb87c8c3bf30d4b742a70641d9", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " * Copyright 2012-2023 the original author or authors.\n * Copyright 2012-2024 the original author or authors.\n * Copyright 2012-2023 the original author or authors.\n * Copyright 2012-2024 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/2572c6d3cd3f35939e520ddbd9258b7d936b6482", "target_edit_idx": 0, "propagatable_edit_idx": [ 12 ] }, { "input": " * Copyright 2012-2019 the original author or authors.\n * Copyright 2012-2024 the original author or authors.\n * Copyright 2012-2021 the original author or authors.\n * Copyright 2012-2024 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/spring-projects/spring-boot/commit/2e906c472036d3ba92bd2474356319d985be9b73", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tthen(builder).should().authentication(\"myclass\", params);\n\t\tthen(builder).should().authentication(\"myclass\", authParamString);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/4c0a19e8c0ef2256e2f7eb00291440f23a1b8852", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": "import java.util.HashSet;\nimport java.util.Set;\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/spring-projects/spring-boot/commit/6dff3c5978158f5ddae67b3b92200a90b3b188b7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tPemSslStoreDetails details = asStoreDetails(properties, alias);\n\t\t\tPemSslStoreDetails details = asStoreDetails(properties);\n\tprivate static PemSslStoreDetails asStoreDetails(PemSslBundleProperties.Store properties, String alias) {\n\t\treturn new PemSslStoreDetails(properties.getType(), alias, null, properties.getCertificate(),\n\t\t\t\tproperties.getPrivateKey(), properties.getPrivateKeyPassword());\n\tprivate static PemSslStoreDetails asStoreDetails(PemSslBundleProperties.Store properties) {\n\t\treturn new PemSslStoreDetails(properties.getType(), properties.getCertificate(), properties.getPrivateKey(),\n\t\t\t\tproperties.getPrivateKeyPassword());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/30a7426e8633316021483d85d885cec345955906", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tString path = location.substring(0, index);\n\t\tString locationPath = location.substring(0, index);\n\t\tif (isWindows() && locationPath.startsWith(\"/\")) {\n\t\t\tlocationPath = locationPath.substring(1, locationPath.length());\n\t\t}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/4161eb1853211bc488b449897ba46ef02c6bd0fe", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "import io.opentelemetry.semconv.resource.attributes.ResourceAttributes;\nimport io.opentelemetry.semconv.resource.attributes.ResourceAttributes;\nimport io.opentelemetry.semconv.resource.attributes.ResourceAttributes;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/4ebee17cb185eaa50583361ffb8c6801f207a399", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 3 ] }, { "input": "\t\t\t.merge(Resource.create(Attributes.of(ResourceAttributes.SERVICE_NAME, applicationName)))\n\t\t\t.merge(Resource.create(Attributes\n\t\t\t\t.of(io.opentelemetry.semconv.resource.attributes.ResourceAttributes.SERVICE_NAME, applicationName)))\n\t\t\t\t\t.merge(Resource.create(Attributes.of(ResourceAttributes.SERVICE_NAME, \"application\")))\n\t\t\t\t\t.merge(Resource.create(\n\t\t\t\t\t\t\tAttributes.of(io.opentelemetry.semconv.resource.attributes.ResourceAttributes.SERVICE_NAME,\n\t\t\t\t\t\t\t\t\t\"application\")))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/4ebee17cb185eaa50583361ffb8c6801f207a399", "target_edit_idx": 2, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\t\tassertThat(resource.getAttributes().asMap())\n\t\t\t\t.contains(entry(ResourceAttributes.SERVICE_NAME, \"my-application\"));\n\t\t\tassertThat(resource.getAttributes().asMap()).contains(entry(\n\t\t\t\t\tio.opentelemetry.semconv.resource.attributes.ResourceAttributes.SERVICE_NAME, \"my-application\"));\n\t\t\tassertThat(resource.getAttributes().asMap())\n\t\t\t\t.contains(entry(ResourceAttributes.SERVICE_NAME, \"application\"));\n\t\t\tassertThat(resource.getAttributes().asMap()).contains(\n\t\t\t\t\tentry(io.opentelemetry.semconv.resource.attributes.ResourceAttributes.SERVICE_NAME, \"application\"));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/4ebee17cb185eaa50583361ffb8c6801f207a399", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " * Copyright 2012-2022 the original author or authors.\n * Copyright 2012-2023 the original author or authors.\n * Copyright 2012-2022 the original author or authors.\n * Copyright 2012-2023 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/b5cebed12045121f77b4d44575d8031eadcfbe26", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\treturn String.format(\"\\t- %s: defined in %s%n\", beanName, definition.getResourceDescription());\n\t\treturn String.format(\"\\t- %s: defined in %s%n\", beanName, getResourceDescription(definition));\n\t}\n\n\tprivate String getResourceDescription(BeanDefinition definition) {\n\t\tString resourceDescription = definition.getResourceDescription();\n\t\treturn (resourceDescription != null) ? resourceDescription : \"unknown location\";\n\t\t\t\t\tdefinition.getResourceDescription());\n\t\t\t\t\tgetResourceDescription(definition));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/b5cebed12045121f77b4d44575d8031eadcfbe26", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "@ImportRuntimeHints(WebFluxEndpointHandlerMappingRuntimeHints.class)\n@ImportRuntimeHints({ WebFluxEndpointHandlerMappingRuntimeHints.class,\n\t\tAbstractWebFluxEndpointHandlerMappingRuntimeHints.class })\n@ImportRuntimeHints(WebMvcEndpointHandlerMappingRuntimeHints.class)\n@ImportRuntimeHints({ WebMvcEndpointHandlerMappingRuntimeHints.class,\n\t\tAbstractWebMvcEndpointHandlerMappingRuntimeHints.class })\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/4e131bd627bdbaee8516b05b6d585f7be0521237", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " * Copyright 2012-2020 the original author or authors.\n * Copyright 2012-2022 the original author or authors.\n * Copyright 2012-2020 the original author or authors.\n * Copyright 2012-2022 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/22d187a38c640e61fa2d3dfd03e52c73fe499f8e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " * Copyright 2012-2019 the original author or authors.\n * Copyright 2012-2022 the original author or authors.\n * Copyright 2012-2021 the original author or authors.\n * Copyright 2012-2022 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/b88f062f0499fafe487b6e98e3cc9ff9bbbba1a2", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\t\t\"spring.data.cassandra.connection.init-query-timeout=10s\",\n\t\t\t\t\t\"spring.data.cassandra.request.timeout=10s\")\n\t\t\t\t\t\"spring.data.cassandra.connection.init-query-timeout=20s\",\n\t\t\t\t\t\"spring.data.cassandra.request.timeout=20s\")\n\t\t\"spring.data.cassandra.connection.init-query-timeout=10s\", \"spring.data.cassandra.request.timeout=10s\" })\n\t\t\"spring.data.cassandra.connection.init-query-timeout=20s\", \"spring.data.cassandra.request.timeout=20s\" })\n\t\t\t\t\"spring.data.cassandra.connection.init-query-timeout=10s\",\n\t\t\t\t\"spring.data.cassandra.request.timeout=10s\" })\n\t\t\t\t\"spring.data.cassandra.connection.init-query-timeout=20s\",\n\t\t\t\t\"spring.data.cassandra.request.timeout=20s\" })\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/spring-projects/spring-boot/commit/bbdef2b0266bcf70a714c58b2733674b29b01e5c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " * Copyright 2012-2019 the original author or authors.\n * Copyright 2012-2021 the original author or authors.\n * Copyright 2012-2019 the original author or authors.\n * Copyright 2012-2021 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/9b77151caa214c9ba92ac2769dde913d8d93e88d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tprivate final AtomicBoolean fail = new AtomicBoolean(false);\n\tprivate final AtomicBoolean fail = new AtomicBoolean();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/c5088a3bd3c626449e96807a85e971f49cfc6e47", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\tprivate final AtomicBoolean shutdownHookAdded = new AtomicBoolean(false);\n\tprivate final AtomicBoolean shutdownHookAdded = new AtomicBoolean();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/spring-projects/spring-boot/commit/c5088a3bd3c626449e96807a85e971f49cfc6e47", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "\t\t\treturn extracted(\"get\", type);\n\t\t\treturn extracted(\"get\", type, false);\n\t\t\treturn extracted(\"set\", type);\n\t\t\treturn extracted(\"set\", type, true);\n\t\tprivate Method extracted(String prefix, Class type) {\n\t\tprivate Method extracted(String prefix, Class type, boolean hasParameter) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/d0e2823c49db54c60deda2776c5daa0e489f2629", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "\t\tprivate Method extracted(String prefix, Class type) {\n\t\tprivate Method extracted(String prefix, Class type, boolean hasParameter) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/d0e2823c49db54c60deda2776c5daa0e489f2629", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "\t\tConnectionFactory derived = ConnectionFactoryBuilder.derivefrom(connectionFactory).username(\"admin\")\n\t\tConnectionFactory derived = ConnectionFactoryBuilder.derivedFrom(connectionFactory).username(\"admin\")\n\t\tConnectionFactory derived = ConnectionFactoryBuilder.derivefrom(pool).username(\"admin\").password(\"secret\")\n\t\tConnectionFactory derived = ConnectionFactoryBuilder.derivedFrom(pool).username(\"admin\").password(\"secret\")\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/spring-projects/spring-boot/commit/b7ac1e6cd7bf50a5e25fa38c88dc98c4f7db7755", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\t\t.getByName(SpringBootPlugin.PRODUCTION_RUNTIME_CLASSPATH_NAME);\n\t\t\t\t.getByName(SpringBootPlugin.PRODUCTION_RUNTIME_CLASSPATH_CONFIGURATION_NAME);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/49c30854afa6762022e7a661ee9606bdb20ae5c7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": " * Copyright 2012-2020 the original author or authors.\n * Copyright 2012-2021 the original author or authors.\n * Copyright 2012-2020 the original author or authors.\n * Copyright 2012-2021 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/26f143b8d3451da8879b17ae11ac9f483494f2bc", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tprivate final Duration duration;\n\t\tprivate final Duration forDuration;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/26f143b8d3451da8879b17ae11ac9f483494f2bc", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": "import org.junit.jupiter.api.BeforeEach;\nimport org.junit.jupiter.api.BeforeEach;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/spring-projects/spring-boot/commit/24102656f26dddb8dec10f318efdd7ef73770cd8", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tConfiguration configuration = initializeConfiguration();\n\t\treturn ((PatternLayout) configuration.getAppender(\"File\").getLayout()).getConversionPattern();\n\t\tprepareConfiguration();\n\t\treturn ((PatternLayout) this.configuration.getAppender(\"File\").getLayout()).getConversionPattern();\n\t\tConfiguration configuration = initializeConfiguration();\n\t\treturn ((PatternLayout) configuration.getAppender(\"Console\").getLayout()).getConversionPattern();\n\t\tprepareConfiguration();\n\t\treturn ((PatternLayout) this.configuration.getAppender(\"Console\").getLayout()).getConversionPattern();\n\t}\n\n\tprotected void prepareConfiguration() {\n\t\tthis.configuration = initializeConfiguration();\n\t\tthis.configuration.start();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/24102656f26dddb8dec10f318efdd7ef73770cd8", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "import org.springframework.data.neo4j.core.transaction.ReactiveNeo4jTransactionManager;\nimport org.springframework.data.neo4j.core.transaction.ReactiveNeo4jTransactionManager;\nimport org.springframework.data.neo4j.core.ReactiveNeo4jTemplate;\nimport org.springframework.data.neo4j.core.transaction.ReactiveNeo4jTransactionManager;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/spring-projects/spring-boot/commit/d4ba55f8d687b4e1e851d171e28ff501fbc240f1", "target_edit_idx": 2, "propagatable_edit_idx": [ 11, 7 ] }, { "input": " * Copyright 2012-2019 the original author or authors.\n * Copyright 2012-2020 the original author or authors.\n * Copyright 2012-2019 the original author or authors.\n * Copyright 2012-2020 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/185f644877662dca7354cdceac2eecc359a86b02", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tfactory.setServerProcessors(processors.orderedStream().collect(Collectors.toList()));\n\t\t\tfactory.setSocketFactoryProcessors(processors.orderedStream().collect(Collectors.toList()));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/fd1d653c343ea434934fa80dad695b568bcf4e2c", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": "\tpublic void addServerProcessors(ServerRSocketFactoryProcessor... serverProcessors) {\n\t\tAssert.notNull(serverProcessors, \"ServerProcessors must not be null\");\n\t\tthis.serverProcessors.addAll(Arrays.asList(serverProcessors));\n\tpublic void addSocketFactoryProcessors(ServerRSocketFactoryProcessor... socketFactoryProcessors) {\n\t\tAssert.notNull(socketFactoryProcessors, \"SocketFactoryProcessors must not be null\");\n\t\tthis.socketFactoryProcessors.addAll(Arrays.asList(socketFactoryProcessors));\n\tprivate List serverProcessors = new ArrayList<>();\n\tprivate List socketFactoryProcessors = new ArrayList<>();\n\t\tfor (ServerRSocketFactoryProcessor processor : this.serverProcessors) {\n\t\tfor (ServerRSocketFactoryProcessor processor : this.socketFactoryProcessors) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/spring-projects/spring-boot/commit/fd1d653c343ea434934fa80dad695b568bcf4e2c", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 7 ] }, { "input": "import org.springframework.boot.env.OriginTrackedMapPropertySource;\nimport org.springframework.boot.origin.OriginLookup;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/spring-projects/spring-boot/commit/062163b52f4c6c70a7146cb4c449912ec8ee1701", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tpublic EmbeddedMongoDependencyConfiguration() {\n\t\t\tsuper(\"embeddedMongoServer\");\n\t\t@Bean\n\t\tpublic MongoClientDependsOnBeanFactoryPostProcessor mongoClientDependsOnBeanFactoryPostProcessor(\n\t\t\t\tListableBeanFactory listableBeanFactory) {\n\t\t\tString[] mongoExecutableBeanNames = BeanFactoryUtils.beanNamesForTypeIncludingAncestors(listableBeanFactory,\n\t\t\t\t\tMongodExecutable.class);\n\t\t\treturn new MongoClientDependsOnBeanFactoryPostProcessor(mongoExecutableBeanNames);\n\t\tpublic EmbeddedReactiveMongoDependencyConfiguration() {\n\t\t\tsuper(\"embeddedMongoServer\");\n\t\t@Bean\n\t\tpublic ReactiveStreamsMongoClientDependsOnBeanFactoryPostProcessor reactiveStreamsMongoClientDependsOnBeanFactoryPostProcessor(\n\t\t\t\tListableBeanFactory listableBeanFactory) {\n\t\t\tString[] mongoExecutableBeanNames = BeanFactoryUtils.beanNamesForTypeIncludingAncestors(listableBeanFactory,\n\t\t\t\t\tMongodExecutable.class);\n\t\t\treturn new ReactiveStreamsMongoClientDependsOnBeanFactoryPostProcessor(mongoExecutableBeanNames);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/39f103942569bc8f69fa70b4455640b9c7e3ff42", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\treturn new EventLoopGroupMongoClientSettingsBuilderCustomizer(settings);\n\t\t\treturn new NettyDriverMongoClientSettingsBuilderCustomizer(settings);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/f20d9a62aeee672c399fd9c2e6fae29783f184db", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "\t\tassertThat(excludes(filter, ExampleServerHttpSecurity.class)).isFalse();\n\t\tassertThat(excludes(filter, ExampleServerHttpSecurity.class)).isFalse();\n\t\tassertThat(excludes(filter, ExampleServerHttpSecurity.class)).isFalse();\n\t\tassertThat(excludes(filter, ExampleServerHttpSecurity.class)).isTrue();\n\t\tassertThat(excludes(filter, ExampleServerHttpSecurity.class)).isFalse();\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/spring-projects/spring-boot/commit/0a54fb73fa069f35aa2a3813412883dc540d0c95", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 5, 6, 7 ] }, { "input": "import org.springframework.boot.context.properties.EnableConfigurationProperties;\nimport org.springframework.boot.context.properties.EnableConfigurationProperties;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/0b29da14b398efb062febbb8760eb05ae4c6cba0", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tthis.context.register(JtaPropertiesConfiguration.class,\n\t\t\t\tAtomikosJtaConfiguration.class);\n\t\tthis.context.register(AtomikosJtaConfiguration.class);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/0b29da14b398efb062febbb8760eb05ae4c6cba0", "target_edit_idx": 7, "propagatable_edit_idx": [ 6, 8, 9, 10, 11 ] }, { "input": "\t\tthis.context.register(JtaPropertiesConfiguration.class,\n\t\t\t\tAtomikosJtaConfiguration.class, PoolConfiguration.class);\n\t\tthis.context.register(AtomikosJtaConfiguration.class,\n\t\t\t\tPoolConfiguration.class);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/0b29da14b398efb062febbb8760eb05ae4c6cba0", "target_edit_idx": 8, "propagatable_edit_idx": [ 6, 7, 9, 10, 11 ] }, { "input": "\t\tthis.context.register(JtaPropertiesConfiguration.class,\n\t\t\t\tBitronixJtaConfiguration.class, PoolConfiguration.class);\n\t\tthis.context.register(BitronixJtaConfiguration.class,\n\t\t\t\tPoolConfiguration.class);\n\t\tthis.context.register(JtaPropertiesConfiguration.class,\n\t\t\t\tBitronixJtaConfiguration.class);\n\t\tthis.context.register(BitronixJtaConfiguration.class);\n\t\tthis.context.register(JtaPropertiesConfiguration.class,\n\t\t\t\tAtomikosJtaConfiguration.class);\n\t\tthis.context.register(AtomikosJtaConfiguration.class);\n\t\tthis.context.register(JtaPropertiesConfiguration.class,\n\t\t\t\tAtomikosJtaConfiguration.class, PoolConfiguration.class);\n\t\tthis.context.register(AtomikosJtaConfiguration.class,\n\t\t\t\tPoolConfiguration.class);\n\t\tthis.context.register(JtaPropertiesConfiguration.class,\n\t\t\t\tAtomikosJtaConfiguration.class, PoolConfiguration.class);\n\t\tthis.context.register(AtomikosJtaConfiguration.class,\n\t\t\t\tPoolConfiguration.class);\n\t\tthis.context.register(JtaPropertiesConfiguration.class,\n\t\t\t\tBitronixJtaConfiguration.class, PoolConfiguration.class);\n\t\tthis.context.register(BitronixJtaConfiguration.class,\n\t\t\t\tPoolConfiguration.class);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/0b29da14b398efb062febbb8760eb05ae4c6cba0", "target_edit_idx": 9, "propagatable_edit_idx": [ 6, 7, 8, 10, 11 ] }, { "input": "\t\tassertThat(health.getDetails().get(\"hello\")).isNotNull();\n\t\tassertThat(health.getDetails().get(\"result\")).isNotNull();\n\t\tassertThat(health.getDetails().get(\"hello\")).isNotNull();\n\t\tassertThat(health.getDetails().get(\"result\")).isNotNull();\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/spring-projects/spring-boot/commit/d9586d94f6ebfce41138c7736ea091e9f26aa9d4", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t@SuppressWarnings(\"unchecked\")\n\t@SuppressWarnings(\"unchecked\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/spring-projects/spring-boot/commit/95174a077386222a311ee225b044815e2f81a8d0", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tprivate final int port;\n\t\tprivate final GenericContainer container;\n\t\tprivate final int port;\n\t\tprivate final GenericContainer container;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/c9f04c397793b661569b012a647926b82d5aa11b", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tprivate WaitStrategy(int port) {\n\t\t\tthis.port = port;\n\t\tprivate WaitStrategy(GenericContainer container) {\n\t\t\tthis.container = container;\n\t\tprivate WaitStrategy(int port) {\n\t\t\tthis.port = port;\n\t\tprivate WaitStrategy(GenericContainer container) {\n\t\t\tthis.container = container;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/c9f04c397793b661569b012a647926b82d5aa11b", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "import org.testcontainers.containers.wait.HostPortWaitStrategy;\nimport org.testcontainers.containers.wait.strategy.HostPortWaitStrategy;\nimport org.testcontainers.containers.wait.HostPortWaitStrategy;\nimport org.testcontainers.containers.wait.strategy.HostPortWaitStrategy;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/6c504a5098735239552db4c757815816d9ffe9cb", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tsuper(\"neo4j:3.3.1\", 7687, (container) -> container.waitingFor(new WaitStrategy())\n\t\t\t\t.withEnv(\"NEO4J_AUTH\", \"none\"));\n\t\tsuper(\"neo4j:3.3.1\", PORT,\n\t\t\t\t(container) -> container\n\t\t\t\t\t\t.waitingFor(new WaitStrategy(container.getMappedPort(PORT)))\n\t\t\t\t\t\t.withEnv(\"NEO4J_AUTH\", \"none\"));\n\t\tsuper(\"cassandra:3.11.1\", PORT, (container) -> container\n\t\t\t\t.waitingFor(new WaitStrategy()).withStartupAttempts(3));\n\t\tsuper(\"cassandra:3.11.1\", PORT,\n\t\t\t\t(container) -> container\n\t\t\t\t\t\t.waitingFor(new WaitStrategy(container.getMappedPort(PORT)))\n\t\t\t\t\t\t.withStartupAttempts(3));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/6c504a5098735239552db4c757815816d9ffe9cb", "target_edit_idx": 7, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t@Bean(destroyMethod = \"stop\")\n\t\t@Bean\n\t\t@Bean(destroyMethod = \"stop\")\n\t\t@Bean\n\t\t@Bean(destroyMethod = \"stop\")\n\t\t@Bean\n\t\t@Bean(destroyMethod = \"stop\")\n\t\t@Bean\n\t\t@Bean(destroyMethod = \"stop\")\n\t\t@Bean\n\t\t@Bean(destroyMethod = \"stop\")\n\t\t@Bean\n\t\t@Bean(destroyMethod = \"stop\")\n\t\t@Bean\n\t\t@Bean(destroyMethod = \"stop\")\n\t\t@Bean\n\t\t@Bean(destroyMethod = \"stop\")\n\t\t@Bean\n\t\t@Bean(destroyMethod = \"stop\")\n\t\t@Bean\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/4ab439856c75211f22837fee7c5facebf6927732", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": "\t\tfinal CodeSource codeSource = new CodeSource(new URL(\"file\", \"\", \"/some/test/path/\"), (Certificate[]) null);\n\t\tfinal File codeSourceArchive = factory.getCodeSourceArchive(codeSource);\n\t\tCodeSource codeSource = new CodeSource(new URL(\"file\", \"\", \"/some/test/path/\"),\n\t\t\t\t(Certificate[]) null);\n\t\tFile codeSourceArchive = factory.getCodeSourceArchive(codeSource);\n\t\tfinal CodeSource codeSource = new CodeSource(new URL(\"file\", \"\", \"/test/path/with%20space/\"), (Certificate[]) null);\n\t\tfinal File codeSourceArchive = factory.getCodeSourceArchive(codeSource);\n\t\tCodeSource codeSource = new CodeSource(\n\t\t\t\tnew URL(\"file\", \"\", \"/test/path/with%20space/\"), (Certificate[]) null);\n\t\tFile codeSourceArchive = factory.getCodeSourceArchive(codeSource);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/c14f5fb6adfd1e41ec2ee74089afffe7b8235a03", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\tBindHandler handler, Context context, boolean skipIfHasBoundBean) {\n\t\t\tBindHandler handler, Context context, boolean allowRecursiveBinding) {\n\t\t\tBindHandler handler, Context context, boolean skipIfHasBoundBean)\n\t\t\tBindHandler handler, Context context, boolean allowRecursiveBinding)\n\t\treturn bindBean(name, target, handler, context, skipIfHasBoundBean);\n\t\treturn bindBean(name, target, handler, context, allowRecursiveBinding);\n\t\t\tBindHandler handler, Context context, boolean skipIfHasBoundBean) {\n\t\t\tBindHandler handler, Context context, boolean allowRecursiveBinding) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/588dcf76c64da8856df82e9d76f86c6b919a6f02", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5, 7 ] }, { "input": "\t\t\tBindHandler handler, Context context, boolean skipIfHasBoundBean) {\n\t\t\tBindHandler handler, Context context, boolean allowRecursiveBinding) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/588dcf76c64da8856df82e9d76f86c6b919a6f02", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 4, 5 ] }, { "input": "\t\tsuper(context);\n\t\tsuper(context, false);\n\t\tsuper(context);\n\t\tsuper(context, true);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/588dcf76c64da8856df82e9d76f86c6b919a6f02", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\t\t\t\"{scheme}://{serverName}:{serverPort}{contextPath}/login/oauth2/authorize/code/{registrationId}\");\n\t\t\t\t\"{scheme}://{serverName}:{serverPort}{contextPath}/login/oauth2/{registrationId}\");\n\t\t\t\t\"{scheme}://{serverName}:{serverPort}{contextPath}/login/oauth2/authorize/code/{registrationId}\");\n\t\t\t\t\"{scheme}://{serverName}:{serverPort}{contextPath}/login/oauth2/{registrationId}\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/182b6f0d2943af0e7150c88ff6d3a062103616f2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\t\t\"spring-snapshot\", \"spring-milestone\", \"active-by-default\");\n\t\t\t\t\t\"spring-snapshot\", \"spring-milestone\", \"active-by-default\",\n\t\t\t\t\t\"spring-ext-release\");\n\t\t\t\t\t\"spring-snapshot\", \"spring-milestone\", \"active-by-property\");\n\t\t\t\t\t\"spring-snapshot\", \"spring-milestone\", \"active-by-property\",\n\t\t\t\t\t\"spring-ext-release\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/a6a8195ea891927c0c31bd32de14c4d8a555105e", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "import javax.annotation.PostConstruct;\n\nimport org.springframework.beans.factory.InitializingBean;\nimport javax.annotation.PostConstruct;\n\nimport org.springframework.beans.factory.InitializingBean;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/7b675fc53e32408c1a3bf11284fa01ce18fc7882", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "public class SpringConfiguration {\npublic class SpringConfiguration implements InitializingBean {\npublic class SpringConfiguration {\npublic class SpringConfiguration implements InitializingBean {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/7b675fc53e32408c1a3bf11284fa01ce18fc7882", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\treturn new WebEndpointResponse<>(WebEndpointResponse.BAD_REQUEST_STATUS);\n\t\t\treturn new WebEndpointResponse<>(WebEndpointResponse.STATUS_BAD_REQUEST);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/f43aa9444d8dcde37226152d5b06a3911a655c10", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\tpublic static final int INTERNAL_SERVER_ERROR_STATUS = 500;\n\tpublic static final int STATUS_INTERNAL_SERVER_ERROR = 500;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/f43aa9444d8dcde37226152d5b06a3911a655c10", "target_edit_idx": 4, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\tassertThat(((String) health.getDetails().get(\"error\"))\n\t\t\t\t.contains(\"Connection failed\"));\n\t\tassertThat((String) health.getDetails().get(\"error\"))\n\t\t\t\t.contains(\"Connection failed\");\n\t\tassertThat(((String) health.getDetails().get(\"error\"))\n\t\t\t\t.contains(\"Connection failed\"));\n\t\tassertThat((String) health.getDetails().get(\"error\"))\n\t\t\t\t.contains(\"Connection failed\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/04ca7f137d743acb153b9de532800fbf20ed14cc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " * Copyright 2012-2016 the original author or authors.\n * Copyright 2012-2017 the original author or authors.\n * Copyright 2012-2016 the original author or authors.\n * Copyright 2012-2017 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/spring-projects/spring-boot/commit/04ca7f137d743acb153b9de532800fbf20ed14cc", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tString key = pair.substring(0, index > 0 ? index : pair.length());\n\t\t\tString key = index > 0 ? pair.substring(0, index) : pair;\n\t\t\tString key = pair.substring(0, index > 0 ? index : pair.length());\n\t\t\tString key = index > 0 ? pair.substring(0, index) : pair;\n\t\t\tString key = pair.substring(0, index > 0 ? index : pair.length());\n\t\t\tString key = index > 0 ? pair.substring(0, index) : pair;\n\t\t\tString key = pair.substring(0, index > 0 ? index : pair.length());\n\t\t\tString key = index > 0 ? pair.substring(0, index) : pair;\n\t\t\tString key = pair.substring(0, index > 0 ? index : pair.length());\n\t\t\tString key = index > 0 ? pair.substring(0, index) : pair;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/4ae3691fee9f05de95afcf950d9bc6acfa8f0783", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": "\tOptional findOne(Long aLong);\n\tOptional findById(Long aLong);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/822b473cbe215907e8b5887053be12fe7a044ff3", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\tBindingResult result = getBindingResult();\n\t\tif (result.hasErrors()) {\n\t\t\tthrow new BindException(result);\n\t\ttry {\n\t\t\tdoValidate();\n\t\t}\n\t\tcatch (BindException ex) {\n\t\t\tthrow new IllegalStateException(ex);\n\t\tthis.thrown.expect(BindException.class);\n\t\tthis.thrown.expect(IllegalStateException.class);\n\t\tthis.thrown.expect(BindException.class);\n\t\tthis.thrown.expect(IllegalStateException.class);\n\t\tthis.thrown.expect(BindException.class);\n\t\tthis.thrown.expect(IllegalStateException.class);\n\t\tthis.thrown.expect(BindException.class);\n\t\tthis.thrown.expect(IllegalStateException.class);\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/4a00f905456fea3e6452e61bdcbcf08eaeaf53b1", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": "import org.springframework.boot.bind.RelaxedPropertyResolver;\nimport org.springframework.boot.bind.RelaxedPropertyResolver;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/7efbedc0dc54ceb8025739c3b2e1771d613b4112", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tregistrar.onApplicationEvent(new ApplicationReadyEvent(new SpringApplication(),\n\t\tregistrar.onApplicationReadyEvent(new ApplicationReadyEvent(new SpringApplication(),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/d4251125fc829d1e7640a52c8d9d821854353455", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "\tprivate ApplicationContext applicationContext;\n\tprivate ListableBeanFactory beanFactory;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/546338ac805c122a64a987b5624dc3e877ad2e2f", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\tsetFailureResponseStatus(request, response);\n\t\tsendFailureResponse(request, response);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/38eeae216604cca7bca730847a8bf45fe85392e8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " * Copyright 2012-2015 the original author or authors.\n * Copyright 2012-2016 the original author or authors.\n * Copyright 2012-2014 the original author or authors.\n * Copyright 2012-2016 the original author or authors.\n * Copyright 2012-2014 the original author or authors.\n * Copyright 2012-2016 the original author or authors.\n * Copyright 2012-2014 the original author or authors.\n * Copyright 2012-2016 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/spring-projects/spring-boot/commit/e15b3e463f312524495349673a16cb67cfaa2eae", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 5, 7 ] }, { "input": "\t\tsuper(instance);\n\t\tsuper(\"com.sun.source.tree.ExpressionTree\", instance);\n\t\tsuper(instance);\n\t\tsuper(\"com.sun.source.tree.VariableTree\", instance);\n\t\tsuper(instance);\n\t\tsuper(\"com.sun.source.util.Trees\", instance);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/e15b3e463f312524495349673a16cb67cfaa2eae", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "\t\tgiven(this.persistenceUnitUtil.getIdentifier(entity)).willReturn(null, 123);\n\t\tgiven(this.persistenceUnitUtil.getIdentifier(entity)).willReturn(123);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/3e19f8aa8d0ffa4531cc8b9ec7383f198745302a", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\t\tString[] basePackages = attributes.getStringArray(\"basePackages\");\n\t\t\tString[] basePackages = attributes.getAliasedStringArray(\"basePackages\",\n\t\t\t\t\tEntityScan.class, metadata.getClassName());\n\t\tString[] basePackages = attributes.getStringArray(\"basePackages\");\n\t\tString[] basePackages = attributes.getAliasedStringArray(\"basePackages\",\n\t\t\t\tEntityScan.class, metadata.getClassName());\n\t\tString[] basePackages = attributes.getStringArray(\"basePackages\");\n\t\tString[] basePackages = attributes.getAliasedStringArray(\"basePackages\",\n\t\t\t\tServletComponentScan.class, metadata.getClassName());\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/spring-projects/spring-boot/commit/0356be7b95bcf33a051bae9f0f7879c7ec64d185", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " * Copyright 2012-2015 the original author or authors.\n * Copyright 2012-2016 the original author or authors.\n * Copyright 2012-2015 the original author or authors.\n * Copyright 2012-2016 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/29c7b936406a2cc2cab0064d41f01b49619bcaaa", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\tinitializers(\n\t\t\t\t\tnew ParentContextApplicationContextInitializer(this.parent.run()));\n\t\t\tinitializers(new ParentContextApplicationContextInitializer(\n\t\t\t\t\tthis.parent.run(args)));\n\t\tthis.context = application.run();\n\t\tthis.context = application.run(\"foo.bar=baz\");\n\t\tthis.context = application.build().run();\n\t\tthis.context = application.build(\"a=alpha\").run(\"b=bravo\");\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.05263157894736842, "commit_url": "https://github.com/spring-projects/spring-boot/commit/29c7b936406a2cc2cab0064d41f01b49619bcaaa", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 10 ] }, { "input": "\t\tconfigureAsChildIfNecessary();\n\t\treturn build(new String[0]);\n\t}\n\n\t/**\n\t * Returns a fully configured {@link SpringApplication} that is ready to run. Any\n\t * parent that has been configured will be run with the given {@code args}.\n\t * @param args the parent's args\n\t * @return the fully configured {@link SpringApplication}.\n\t */\n\tpublic SpringApplication build(String... args) {\n\t\tconfigureAsChildIfNecessary(args);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/29c7b936406a2cc2cab0064d41f01b49619bcaaa", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\tthis.context = application.run();\n\t\tthis.context = application.run(\"foo.bar=baz\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/29c7b936406a2cc2cab0064d41f01b49619bcaaa", "target_edit_idx": 8, "propagatable_edit_idx": [ 10, 3 ] }, { "input": " * Copyright 2012-2014 the original author or authors.\n * Copyright 2012-2015 the original author or authors.\n * Copyright 2012-2014 the original author or authors.\n * Copyright 2012-2015 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-boot/commit/b8106ae773c09cb7454cf9988fa494567d503f36", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " * Copyright 2012-2013 the original author or authors.\n * Copyright 2012-2015 the original author or authors.\n * Copyright 2012-2013 the original author or authors.\n * Copyright 2012-2015 the original author or authors.\n * Copyright 2012-2014 the original author or authors.\n * Copyright 2012-2015 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/spring-projects/spring-boot/commit/b45a2bcfc0d19b7d70f73e1bdefca11f659ef7b9", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\t\t\tboolean isNested = getAnnotation(field,\n\t\t\t\t\tnestedConfigurationPropertyAnnotation()) != null;\n\t\t\tElement returnType = this.processingEnv.getTypeUtils().asElement(\n\t\t\t\t\tgetter.getReturnType());\n\t\t\tboolean isNested = isNested(returnType, field, element);\n\t\t\tboolean isNested = getAnnotation(field,\n\t\t\t\t\tnestedConfigurationPropertyAnnotation()) != null;\n\t\t\tboolean isNested = isNested(returnType, field, element);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/e56a1ba561ac6ef19658c01e1d75985acde65db8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t@Bean(name = \"org.springframework.autoconfigure.security.SecurityProperties\")\n\t@Bean\n\t@Bean(name = \"org.springframework.autoconfigure.security.SecurityProperties\")\n\t@Bean\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/spring-projects/spring-boot/commit/efe8494f46fca70e103f51cef09a9126b481397d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\tManagementSecurityAutoConfiguration.class })\n\t\t\tManagementSecurityAutoConfiguration.class,\n\t\t\tEndpointMBeanExportAutoConfiguration.class })\n\t\t\tManagementSecurityAutoConfiguration.class })\n\t\t\tManagementSecurityAutoConfiguration.class,\n\t\t\tEndpointMBeanExportAutoConfiguration.class })\n\t\t\tManagementSecurityAutoConfiguration.class })\n\t\t\tManagementSecurityAutoConfiguration.class,\n\t\t\tEndpointMBeanExportAutoConfiguration.class })\n\t\t\tManagementSecurityAutoConfiguration.class })\n\t\t\tManagementSecurityAutoConfiguration.class,\n\t\t\tEndpointMBeanExportAutoConfiguration.class })\n\t\t\tManagementSecurityAutoConfiguration.class })\n\t\t\tManagementSecurityAutoConfiguration.class,\n\t\t\tEndpointMBeanExportAutoConfiguration.class })\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/spring-projects/spring-boot/commit/384dfc91e3b4791f2c462ab84d75341f3cace00f", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": "import org.junit.Ignore;\nimport org.junit.Ignore;\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/spring-projects/spring-boot/commit/83d3b508a88bba5693b44c3352142633e8959bac", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t// FIXME Fails on CI\n\t\t// FIXME Fails on CI\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-boot/commit/83d3b508a88bba5693b44c3352142633e8959bac", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " threadPool.generic().execute(() -> ActionListener.completeWith(listener, () -> {\n threadPool.generic().execute(ActionRunnable.run(listener, () -> {\n threadPool.generic().execute(() -> ActionListener.completeWith(listener, () -> {\n threadPool.generic().execute(ActionRunnable.supply(listener, () -> {\n threadPool.generic().execute(() -> ActionListener.completeWith(listener, () -> {\n threadPool.generic().execute(ActionRunnable.supply(listener, () -> {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/aa24d02a291a9755abdfd55314bd069ca1f7f10c", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " assertEquals(SimilarityMeasure.DOT_PRODUCT, CohereService.defaultSimilarity(null));\n assertEquals(SimilarityMeasure.DOT_PRODUCT, CohereService.defaultSimilarity(CohereEmbeddingType.FLOAT));\n assertEquals(SimilarityMeasure.COSINE, CohereService.defaultSimilarity(CohereEmbeddingType.INT8));\n assertEquals(SimilarityMeasure.COSINE, CohereService.defaultSimilarity(CohereEmbeddingType.BYTE));\n assertEquals(SimilarityMeasure.DOT_PRODUCT, CohereService.defaultSimilarity());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/6b38bfb6122738c20c0c093c5110c0acd502e8ae", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " return wrapIfNested(q, field);\n return q;\n return wrapIfNested(q, e);\n return q;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/a73f52500b7c63277907f801740c48034fcbf397", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " return ExpressionTranslator.wrapIfNested(querySupplier.get(), field);\n return querySupplier.get();\n return ExpressionTranslator.wrapIfNested(query, field);\n return query;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/a73f52500b7c63277907f801740c48034fcbf397", "target_edit_idx": 9, "propagatable_edit_idx": [ 14 ] }, { "input": " return wrapFunctionQuery(bc.left(), () -> translate(bc, handler, bc.left(), bc.right()));\n return wrapFunctionQuery(() -> translate(bc, handler, bc.left(), bc.right()));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/a73f52500b7c63277907f801740c48034fcbf397", "target_edit_idx": 12, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " SparseEmbeddingResultsTests.buildExpectation(\n SparseEmbeddingResultsTests.buildExpectationSparseEmbeddings(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/1cff3b4366d8cf5f6e6616820f14585d69073872", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 11, 13, 9 ] }, { "input": " buildExpectation(\n buildExpectationSparseEmbeddings(\n buildExpectation(\n buildExpectationSparseEmbeddings(\n buildExpectation(\n buildExpectationSparseEmbeddings(\n buildExpectation(\n buildExpectationSparseEmbeddings(\n buildExpectation(\n buildExpectationSparseEmbeddings(\n buildExpectation(\n buildExpectationSparseEmbeddings(\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/elastic/elasticsearch/commit/1cff3b4366d8cf5f6e6616820f14585d69073872", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 10 ] }, { "input": " is(buildExpectation(List.of(new SparseEmbeddingResultsTests.EmbeddingExpectation(Map.of(\"field\", 1.0f), false))))\n is(\n buildExpectationSparseEmbeddings(\n List.of(new SparseEmbeddingResultsTests.EmbeddingExpectation(Map.of(\"field\", 1.0f), false))\n )\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06666666666666667, "commit_url": "https://github.com/elastic/elasticsearch/commit/1cff3b4366d8cf5f6e6616820f14585d69073872", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " is(buildExpectation(List.of(new SparseEmbeddingResultsTests.EmbeddingExpectation(Map.of(\"field\", 4.0294965E10F), false))))\n is(\n buildExpectationSparseEmbeddings(\n List.of(new SparseEmbeddingResultsTests.EmbeddingExpectation(Map.of(\"field\", 4.0294965E10F), false))\n )\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06666666666666667, "commit_url": "https://github.com/elastic/elasticsearch/commit/1cff3b4366d8cf5f6e6616820f14585d69073872", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": " // ES-8334 TODO build this wait into the relevant APIs (especially, delete-index and close-index)\n // ES-8334 TODO build this wait into the relevant APIs (especially, delete-index and close-index)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/0247199e6a125f05070c6dbbc4fb373a538ff11d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "import static org.hamcrest.Matchers.equalTo;\nimport static org.hamcrest.Matchers.equalTo;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/5a824c5a38e51590064e410a292fa50cb0bb0d86", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "import org.apache.logging.log4j.LogManager;\nimport org.apache.logging.log4j.Logger;\nimport org.apache.logging.log4j.LogManager;\nimport org.apache.logging.log4j.Logger;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/6f17735e1a7ee98f0a8e5cfb2cb35b8226a84cdd", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " private static final Logger logger = LogManager.getLogger(AzureOpenAiEmbeddingsRequestTaskSettings.class);\n private static final Logger logger = LogManager.getLogger(OpenAiEmbeddingsRequestTaskSettings.class);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/6f17735e1a7ee98f0a8e5cfb2cb35b8226a84cdd", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " \"version\" : -1,\n \"version\" : -9223372036854775808,\n \"version\" : -1,\n \"version\" : -9223372036854775808,\n", "class": "clone", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/elastic/elasticsearch/commit/658c01401696c4685e8f7acf18865e2061fa534e", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " @AwaitsFix(bugUrl = \"https://github.com/elastic/elasticsearch/issues/107417\")\n @AwaitsFix(bugUrl = \"https://github.com/elastic/elasticsearch/issues/107417\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/4f10afa388925281c65a940928827f7e95799109", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " assertThat(codec, instanceOf(PerFieldMapperCodec.class));\n KnnVectorsFormat knnVectorsFormat = ((PerFieldMapperCodec) codec).getKnnVectorsFormatForField(\"field\");\n KnnVectorsFormat knnVectorsFormat;\n if (CodecService.ZSTD_STORED_FIELDS_FEATURE_FLAG.isEnabled()) {\n assertThat(codec, instanceOf(PerFieldMapperCodec.class));\n knnVectorsFormat = ((PerFieldMapperCodec) codec).getKnnVectorsFormatForField(\"field\");\n } else {\n assertThat(codec, instanceOf(LegacyPerFieldMapperCodec.class));\n knnVectorsFormat = ((LegacyPerFieldMapperCodec) codec).getKnnVectorsFormatForField(\"field\");\n }\n assertThat(codec, instanceOf(PerFieldMapperCodec.class));\n KnnVectorsFormat knnVectorsFormat = ((PerFieldMapperCodec) codec).getKnnVectorsFormatForField(\"field\");\n KnnVectorsFormat knnVectorsFormat;\n if (CodecService.ZSTD_STORED_FIELDS_FEATURE_FLAG.isEnabled()) {\n assertThat(codec, instanceOf(PerFieldMapperCodec.class));\n knnVectorsFormat = ((PerFieldMapperCodec) codec).getKnnVectorsFormatForField(\"field\");\n } else {\n assertThat(codec, instanceOf(LegacyPerFieldMapperCodec.class));\n knnVectorsFormat = ((LegacyPerFieldMapperCodec) codec).getKnnVectorsFormatForField(\"field\");\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/4f10afa388925281c65a940928827f7e95799109", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " public BlobCacheBufferedIndexInput(String resourceDesc, int bufferSize) {\n public BlobCacheBufferedIndexInput(String resourceDesc, int bufferSize, long length) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/05a25bfd3c6021a603173d941fa6997259889de2", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " private final long length;\n private final long length;\n", "class": "clone", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/elastic/elasticsearch/commit/05a25bfd3c6021a603173d941fa6997259889de2", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " this.length = length;\n this.length = length;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/elastic/elasticsearch/commit/05a25bfd3c6021a603173d941fa6997259889de2", "target_edit_idx": 6, "propagatable_edit_idx": [ 10 ] }, { "input": " @Override\n public long length() {\n return length;\n }\n\n @Override\n public final long length() {\n return length;\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/05a25bfd3c6021a603173d941fa6997259889de2", "target_edit_idx": 7, "propagatable_edit_idx": [ 12 ] }, { "input": " int remained = in.readVInt();\n for (int i = 0; i < pages.length - 1; i++) {\n int len = pages[0].length;\n int remainedBytes = in.readVInt();\n for (int i = 0; i < pages.length && remainedBytes > 0; i++) {\n int len = Math.min(remainedBytes, pages[0].length);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/663126ea0faafaa82506dc9aec869b242855c0b5", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " static void writePages(StreamOutput out, int size, byte[][] pages, int bytesPerValue, int pageSize) throws IOException {\n out.writeVInt(size * bytesPerValue);\n int lastPageEnd = size % pageSize;\n if (lastPageEnd == 0) {\n for (byte[] page : pages) {\n out.write(page);\n }\n return;\n }\n for (int i = 0; i < pages.length - 1; i++) {\n out.write(pages[i]);\n static void writePages(StreamOutput out, long size, byte[][] pages, int bytesPerValue) throws IOException {\n int remainedBytes = Math.toIntExact(size * bytesPerValue);\n out.writeVInt(remainedBytes);\n for (int i = 0; i < pages.length && remainedBytes > 0; i++) {\n int len = Math.min(remainedBytes, pages[i].length);\n out.writeBytes(pages[i], 0, len);\n remainedBytes -= len;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/663126ea0faafaa82506dc9aec869b242855c0b5", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " private class LocalExchangeSink implements ExchangeSink {\n private class ExchangeSinkImpl implements ExchangeSink {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/e42e47e803001bf6881d9586774698e456f5ac6f", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " * @param current The current state of the connector.\n * @param next The attempted next state of the connector.\n * @param current The current state of the {@link Connector}.\n * @param next The attempted next state of the {@link Connector}.\n * @param current The current state of the connector sync job.\n * @param next The proposed next state of the connector sync job.\n * @param current The current {@link ConnectorSyncStatus} of the {@link ConnectorSyncJob}.\n * @param next The proposed next {link ConnectorSyncStatus} of the {@link ConnectorSyncJob}.\n * @param current The current state of the connector.\n * @param next The proposed next state of the connector.\n * @param current The current {@link ConnectorStatus} of the {@link Connector}.\n * @param next The proposed next {@link ConnectorStatus} of the {@link Connector}.\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/72640731abff4d41685fee836c232f6e95a16cbb", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 5 ] }, { "input": " * It defines valid transitions between different connector states and provides a method to validate these transitions.\n * It defines valid transitions between instances of {@link ConnectorStatus} and provides a method to validate these transitions.\n * It defines valid transitions between different connector sync job states and provides a method to validate these transitions.\n * It defines valid transitions between instances of {@link ConnectorSyncStatus} and provides a method to validate these transitions.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/72640731abff4d41685fee836c232f6e95a16cbb", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " * Checks if a transition from one connector state to another is valid.\n * Checks if a transition from one {@link ConnectorStatus} to another is valid.\n * Checks if a transition from one connector sync job state to another is valid.\n * Checks if a transition from one {@link ConnectorSyncStatus} to another is valid.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/72640731abff4d41685fee836c232f6e95a16cbb", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " var mergeResult = MergeResult.build(this, mergeWith, reason, parentMergeContext);\n return merge(mergeWithObject, reason, parentMergeContext);\n }\n\n ObjectMapper merge(NestedObjectMapper mergeWithObject, MapperService.MergeReason reason, MapperMergeContext parentMergeContext) {\n var mergeResult = MergeResult.build(this, mergeWithObject, reason, parentMergeContext);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7d1f54c32476e135815cbf79fac5ff7a8408a325", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 5, 7 ] }, { "input": " Mapper mergeWith,\n ObjectMapper mergeWithObject,\n Mapper mergeWith,\n ObjectMapper mergeWithObject,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/7d1f54c32476e135815cbf79fac5ff7a8408a325", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " fieldInfo.isSoftDeletesField()\n fieldInfo.isSoftDeletesField(),\n fieldInfo.isParentField()\n fieldInfo.isSoftDeletesField()\n fieldInfo.isSoftDeletesField(),\n fieldInfo.isParentField()\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/647005f60ef648b056559e30318cb4acac8b2bd3", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " rolesStore.getRoleDescriptorsList(effectiveSubject, listener.delegateFailureAndWrap(this::handleRoleDescriptorsList));\n rolesStore.getRoleDescriptors(effectiveSubject, listener.delegateFailureAndWrap(this::handleRoleDescriptors));\n }).when(rolesStore).getRoleDescriptorsList(any(Subject.class), any(ActionListener.class));\n }).when(rolesStore).getRoleDescriptors(any(Subject.class), any(ActionListener.class));\n verify(rolesStore, never()).getRoleDescriptorsList(any(), any());\n verify(rolesStore, never()).getRoleDescriptors(any(), any());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/5cf8b94f30037f7f4719be2bcd2bce45e513373d", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " final PlainActionFuture>> future = new PlainActionFuture<>();\n compositeRolesStore.getRoleDescriptorsList(subject, future);\n assertThat(future.actionGet(), equalTo(List.of(Set.of(internalUser.getLocalClusterRoleDescriptor().get()))));\n final PlainActionFuture> future = new PlainActionFuture<>();\n compositeRolesStore.getRoleDescriptors(subject, future);\n assertThat(future.actionGet(), equalTo(Set.of(internalUser.getLocalClusterRoleDescriptor().get())));\n final PlainActionFuture>> future = new PlainActionFuture<>();\n compositeRolesStore.getRoleDescriptorsList(subject, future);\n assertThat(future.actionGet(), equalTo(List.of(Set.of(expectedRoleDescriptor))));\n final PlainActionFuture> future = new PlainActionFuture<>();\n compositeRolesStore.getRoleDescriptors(subject, future);\n assertThat(future.actionGet(), equalTo(Set.of(expectedRoleDescriptor)));\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/5cf8b94f30037f7f4719be2bcd2bce45e513373d", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " private CachedBlob(\n Instant creationTime,\n Version version,\n String repository,\n String name,\n String path,\n BytesReference content,\n long from,\n long to\n ) {\n private CachedBlob(Instant creationTime, String repository, String name, String path, BytesReference content, long from, long to) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/ad9cfcf2e4f2d162417ed63ce2aae5d929cbf57b", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " * @param versionComposableTemplateExpected In which version of Elasticsearch did this template switch to being a composable template?\n * null means the template hasn't been switched yet.\n * @param versionComposableTemplateExpected In which version of Elasticsearch did this template switch to being a composable template?\n * null means the template hasn't been switched yet.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/a2a7da94eb56b9b1daec3d171f9d3e205013409b", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "import org.elasticsearch.Version;\nimport org.elasticsearch.Version;\nimport org.elasticsearch.Version;\n", "class": "clone", "binary_label": 1, "regression_label": 0.1875, "commit_url": "https://github.com/elastic/elasticsearch/commit/9f611dd514aa3ab8cbfb50df614010acbf00a899", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 7 ] }, { "input": "import org.elasticsearch.cluster.node.DiscoveryNodes;\nimport org.elasticsearch.cluster.node.DiscoveryNodes;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/elastic/elasticsearch/commit/9f611dd514aa3ab8cbfb50df614010acbf00a899", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": "import org.elasticsearch.test.VersionUtils;\nimport org.elasticsearch.test.VersionUtils;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/elastic/elasticsearch/commit/9f611dd514aa3ab8cbfb50df614010acbf00a899", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " Settings tmpSettings = Settings.builder()\n Settings environmentSettings = Settings.builder()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7e94d4a1ee0145714a20a13f67d2fe524e2c32ea", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4, 5, 6 ] }, { "input": " nodeEnvironment = new NodeEnvironment(tmpSettings, environment);\n nodeEnvironment = new NodeEnvironment(environmentSettings, environment);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/elastic/elasticsearch/commit/7e94d4a1ee0145714a20a13f67d2fe524e2c32ea", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 5, 6 ] }, { "input": "import org.elasticsearch.rest.Scope;\nimport org.elasticsearch.rest.ServerlessScope;\nimport org.elasticsearch.rest.Scope;\nimport org.elasticsearch.rest.ServerlessScope;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/8dcb8b01b90124d985f39bde4dc65184610a4729", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "@ServerlessScope(Scope.INTERNAL)\n@ServerlessScope(Scope.INTERNAL)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/8dcb8b01b90124d985f39bde4dc65184610a4729", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " if (isDisconnected()) {\n if (isRegisterDisconnected()) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/07a42ed0c20455158ef1ea6b9649970832b99f75", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " } else if (isBlackholed()) {\n } else if (isRegisterBlackholed()) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/07a42ed0c20455158ef1ea6b9649970832b99f75", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " new ActionListenerResponseHandler<>(preservingContextListener, SearchShardsResponse::new)\n new ActionListenerResponseHandler<>(\n preservingContextListener,\n SearchShardsResponse::new,\n TransportResponseHandler.TRANSPORT_WORKER\n )\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/cacb595bcb89534f91619ec1bdca1f5282848c03", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 2, 4, 6 ] }, { "input": " // ensure that index templates are present\n if (isAllTemplatesCreated(event) == false) {\n logger.trace(\"Skipping index creation; not all templates are present yet\");\n // ensure that all resources are present that we need to create indices\n if (isAllResourcesCreated(event) == false) {\n logger.trace(\"Skipping index creation; not all required resources are present yet\");\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/b45eeda7fc6b60e3e4a0563939757b9aa382734c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 6 ] }, { "input": " boolean resourcesCreated = ProfilingIndexTemplateRegistry.areAllTemplatesCreated(state);\n boolean resourcesCreated = ProfilingIndexTemplateRegistry.isAllResourcesCreated(state);\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/b45eeda7fc6b60e3e4a0563939757b9aa382734c", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " configureClient(builder, settings);\n doConfigureClient(builder, settings);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/elastic/elasticsearch/commit/89a65b2c5ab3fbc2093703ac9ab84425cc3dfafc", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4 ] }, { "input": " double expected = td.quantile(percentile / 100);\n double value = ((DoubleBlock) result).getDouble(position);\n assertThat(value, closeTo(expected, expected * 0.1));\n if (td.size() > 0) {\n double expected = td.quantile(percentile / 100);\n double value = ((DoubleBlock) result).getDouble(position);\n assertThat(value, closeTo(expected, expected * 0.1));\n } else {\n assertTrue(result.isNull(position));\n }\n double expected = td.quantile(percentile / 100);\n double value = ((DoubleBlock) result).getDouble(position);\n assertThat(value, closeTo(expected, expected * 0.1));\n if (td.size() > 0) {\n double expected = td.quantile(percentile / 100);\n double value = ((DoubleBlock) result).getDouble(position);\n assertThat(value, closeTo(expected, expected * 0.1));\n } else {\n assertTrue(result.isNull(position));\n }\n double expected = td.quantile(percentile / 100);\n double value = ((DoubleBlock) result).getDouble(position);\n assertThat(value, closeTo(expected, expected * 0.1));\n if (td.size() > 0) {\n double expected = td.quantile(percentile / 100);\n double value = ((DoubleBlock) result).getDouble(position);\n assertThat(value, closeTo(expected, expected * 0.1));\n } else {\n assertTrue(result.isNull(position));\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/d2b3fbcdd366b46c239f0c5df2eae506cefa6da6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "/**\n * This class extends {@link org.apache.lucene.document.KnnByteVectorField}\n * with a single goal to override the Lucene's limit of max vector dimensions,\n * and set it to {@link org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapper.MAX_DIMENSIONS}\n */\n\n/**\n * This class extends {@link org.apache.lucene.document.KnnFloatVectorField}\n * with a single goal to override the Lucene's limit of max vector dimensions,\n * and set it to {@link org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapper.MAX_DIMENSIONS}\n */\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/22a3e7f7f096642d748662459ba2bad45018c0ce", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " assertTrue(g.preFiltered());\n assertTrue(g.preFiltered());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/a18eb65eee2885bb1118fce79c29e91c1f76051b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "import org.elasticsearch.compute.data.ElementType;\nimport org.elasticsearch.compute.data.ElementType;\nimport org.elasticsearch.compute.data.ElementType;\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/elastic/elasticsearch/commit/221d97c7708b9ab34c458fed23fb39f803929747", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 11 ] }, { "input": " return new EvalOperator(evaluator.get(), elementType);\n return new EvalOperator(evaluator.get());\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/elastic/elasticsearch/commit/221d97c7708b9ab34c458fed23fb39f803929747", "target_edit_idx": 5, "propagatable_edit_idx": [ 1 ] }, { "input": " (listener) -> listener.onResponse(null)\n (listener, term) -> listener.onResponse(null)\n (listener) -> listener.onResponse(null)\n (listener, term) -> listener.onResponse(null)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/eaabba1415f14d2e1335b3ac380c5f78dfa0d33a", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": " List matchedSearchContexts,\n Function queryFunction,\n List searchContexts,\n Function queryFunction,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/52e64c16a8ee4001afc013c7059ee5a2c32fe1a7", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 8 ] }, { "input": " \"shard has exceeded the maximum number of retries [%d] on failed allocation attempts - \"\n + \"manually call [/_cluster/reroute?retry_failed=true] to retry, [%s]\",\n \"shard has exceeded the maximum number of retries [%d] on failed allocation attempts - manually call [%s] to retry, [%s]\",\n \"shard has exceeded the maximum number of retries [%d] on failed relocation attempts - \"\n + \"manually call [/_cluster/reroute?retry_failed=true] to retry, [%s]\",\n \"shard has exceeded the maximum number of retries [%d] on failed relocation attempts - manually call [%s] to retry, [%s]\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/8ebe2c76bbe5aedc9216a85611b577b0dff941ca", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " final Path tmp = tmpDir();\n final Path tmp = createTempDir(getTestName());\n final Path tmp = tmpDir();\n final Path tmp = createTempDir(getTestName());\n final Path tmp = tmpDir();\n final Path tmp = createTempDir(getTestName());\n final Path tmp = tmpDir();\n final Path tmp = createTempDir(getTestName());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/77fe1b81bfde81ca4f54772c919fcb307c89c34e", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " public static Integer getNumberOfSegments(RestClient client, String index) throws IOException {\n public static Integer getNumberOfPrimarySegments(RestClient client, String index) throws IOException {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/183232e099874b8e287e10ad15c24e7cac652fa5", "target_edit_idx": 2, "propagatable_edit_idx": [ 6, 7, 8, 9, 10 ] }, { "input": "import static org.elasticsearch.xpack.TimeSeriesRestDriver.getNumberOfSegments;\nimport static org.elasticsearch.xpack.TimeSeriesRestDriver.getNumberOfPrimarySegments;\n public static Integer getNumberOfSegments(RestClient client, String index) throws IOException {\n public static Integer getNumberOfPrimarySegments(RestClient client, String index) throws IOException {\nimport static org.elasticsearch.xpack.TimeSeriesRestDriver.getNumberOfSegments;\nimport static org.elasticsearch.xpack.TimeSeriesRestDriver.getNumberOfPrimarySegments;\n assertThat(getNumberOfSegments(client(), index), greaterThanOrEqualTo(1));\n assertThat(getNumberOfPrimarySegments(client(), index), greaterThanOrEqualTo(1));\n Integer preLifecycleBackingIndexSegments = getNumberOfSegments(client(), backingIndexName);\n Integer preLifecycleBackingIndexSegments = getNumberOfPrimarySegments(client(), backingIndexName);\n Integer numberOfSegments = getNumberOfSegments(client(), backingIndexName);\n Integer numberOfSegments = getNumberOfPrimarySegments(client(), backingIndexName);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/elastic/elasticsearch/commit/183232e099874b8e287e10ad15c24e7cac652fa5", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 6, 7, 9, 10 ] }, { "input": " return ClusterState.builder(currentState)\n .metadata(\n Metadata.builder(currentState.metadata())\n .putCustom(TrainedModelAssignmentMetadata.NAME, modelAssignments.build())\n .removeCustom(TrainedModelAssignmentMetadata.DEPRECATED_NAME)\n )\n .build();\n return forceUpdate(currentState, modelAssignments);\n return ClusterState.builder(currentState)\n .metadata(\n Metadata.builder(currentState.metadata())\n .putCustom(TrainedModelAssignmentMetadata.NAME, TrainedModelAssignmentMetadata.Builder.empty().build())\n .removeCustom(TrainedModelAssignmentMetadata.DEPRECATED_NAME)\n .build()\n )\n .build();\n return forceUpdate(currentState, TrainedModelAssignmentMetadata.Builder.empty());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/1f80ec198cc9b9a8415c3917a947db3a84cf8210", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " HttpRequest httpRequestWithoutContentType = httpRequest;\n HttpRequest httpRequestWithoutHeader = httpRequest;\n httpRequestWithoutContentType = httpRequestWithoutContentType.removeHeader(failedHeaderName);\n httpRequestWithoutHeader = httpRequestWithoutHeader.removeHeader(failedHeaderName);\n return RestRequest.request(parserConfig, httpRequestWithoutContentType, httpChannel);\n return RestRequest.request(parserConfig, httpRequestWithoutHeader, httpChannel);\n return RestRequest.requestWithoutParameters(parserConfig, httpRequestWithoutContentType, httpChannel);\n return RestRequest.requestWithoutParameters(parserConfig, httpRequestWithoutHeader, httpChannel);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/8a264351b718b4d31122e5d71a1b5e73654cdb2d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " return indicesService.createIndexMapperService(indexMetadata);\n return indicesService.createIndexMapperServiceForValidation(indexMetadata);\n MapperService mapperService = indicesService.createIndexMapperService(indexMetadata);\n MapperService mapperService = indicesService.createIndexMapperServiceForValidation(indexMetadata);\n return indexServices.createIndexMapperService(indexMetadata);\n return indexServices.createIndexMapperServiceForValidation(indexMetadata);\n public synchronized MapperService createIndexMapperService(IndexMetadata indexMetadata) throws IOException {\n public synchronized MapperService createIndexMapperServiceForValidation(IndexMetadata indexMetadata) throws IOException {\n try (MapperService mapperService = indicesService.createIndexMapperService(indexMetadata)) {\n try (MapperService mapperService = indicesService.createIndexMapperServiceForValidation(indexMetadata)) {\n * Tests that teh {@link MapperService} created by {@link IndicesService#createIndexMapperService(IndexMetadata)} contains\n * Tests that teh {@link MapperService} created by {@link IndicesService#createIndexMapperServiceForValidation(IndexMetadata)} contains\n MapperService mapperService = indicesService.createIndexMapperService(indexMetadata);\n MapperService mapperService = indicesService.createIndexMapperServiceForValidation(indexMetadata);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/40230125f50f6e87a3844dccc57ebf0e75aacca7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": " return indexServices.createIndexMapperService(indexMetadata);\n return indexServices.createIndexMapperServiceForValidation(indexMetadata);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/elastic/elasticsearch/commit/40230125f50f6e87a3844dccc57ebf0e75aacca7", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6 ] }, { "input": " assertEquals(RED, HealthStatus.merge(randomStatusesContaining(GREEN, YELLOW, RED)));\n assertEquals(RED, HealthStatus.merge(randomStatusesContaining(GREEN, UNKNOWN, YELLOW, RED)));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/a30ab8649547e5694bcd66d171ccd5cd5779f183", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "import com.carrotsearch.hppc.LongHashSet;\n\nimport com.carrotsearch.hppc.IntHashSet;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/53fb1d851e089b10c9fc122606ec5e6badab134b", "target_edit_idx": 0, "propagatable_edit_idx": [ 12 ] }, { "input": " LongHashSet ordinalSet = new LongHashSet();\n Set ordinalSet = new HashSet<>();\n LongHashSet ordinalSet = new LongHashSet();\n Set ordinalSet = new HashSet<>();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/53fb1d851e089b10c9fc122606ec5e6badab134b", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " final long[] ords = ordinalSet.toArray();\n final long[] ords = ordinalSet.stream().mapToLong(Long::longValue).toArray();\n final long[] ords = ordinalSet.toArray();\n final long[] ords = ordinalSet.stream().mapToLong(Long::longValue).toArray();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/53fb1d851e089b10c9fc122606ec5e6badab134b", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " Map.of(\"kibana-\" + randomAlphaOfLengthBetween(0, 4), mock(Object.class)),\n Map.of(\"kibana\" + randomAlphaOfLengthBetween(0, 4), mock(Object.class)),\n Map.of(\"kibana-\" + randomAlphaOfLengthBetween(0, 4), mock(Object.class)),\n Map.of(\"kibana\" + randomAlphaOfLengthBetween(0, 4), mock(Object.class)),\n Map.of(\"kibana-\" + randomAlphaOfLengthBetween(0, 4), mock(Object.class)),\n Map.of(\"kibana\" + randomAlphaOfLengthBetween(0, 4), mock(Object.class)),\n Map.of(randomAlphaOfLengthBetween(0, 6), mock(Object.class)),\n Map.of(randomValueOtherThan(\"kibana\", () -> randomAlphaOfLengthBetween(0, 6)), mock(Object.class)),\n Map.of(\"kibana-\" + randomAlphaOfLengthBetween(0, 4), mock(Object.class)),\n Map.of(\"kibana\" + randomAlphaOfLengthBetween(0, 4), mock(Object.class)),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/add9b6a5ebe68243e9b1d6a00f9c0ae36c948889", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 2, 4, 7 ] }, { "input": " \"kibana-\" + randomAlphaOfLengthBetween(0, 4),\n \"kibana\" + randomAlphaOfLengthBetween(0, 4),\n \"kibana-\" + randomAlphaOfLengthBetween(0, 4),\n \"kibana\" + randomAlphaOfLengthBetween(0, 4),\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/elastic/elasticsearch/commit/add9b6a5ebe68243e9b1d6a00f9c0ae36c948889", "target_edit_idx": 5, "propagatable_edit_idx": [ 9 ] }, { "input": " randomAlphaOfLengthBetween(0, 6),\n randomValueOtherThan(\"kibana\", () -> randomAlphaOfLengthBetween(0, 6)),\n randomAlphaOfLengthBetween(0, 6),\n randomValueOtherThan(\"kibana\", () -> randomAlphaOfLengthBetween(0, 6)),\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/elastic/elasticsearch/commit/add9b6a5ebe68243e9b1d6a00f9c0ae36c948889", "target_edit_idx": 6, "propagatable_edit_idx": [ 10 ] }, { "input": " return new Builder(indexVersionCreated).init(this);\n return new Builder(createdOnOrAfterV8).init(this);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/c583002bd291a3970973bf79fed4e81c194ff10f", "target_edit_idx": 1, "propagatable_edit_idx": [ 11, 4, 6 ] }, { "input": " private final Version indexVersionCreated;\n private final boolean createdOnOrAfterV8;\n private final Version indexVersionCreated;\n private final boolean createdOnOrAfterV8;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/c583002bd291a3970973bf79fed4e81c194ff10f", "target_edit_idx": 2, "propagatable_edit_idx": [ 9 ] }, { "input": "import io.netty.handler.codec.http.HttpHeaders;\nimport io.netty.handler.codec.http.HttpHeaders;\n", "class": "clone", "binary_label": 1, "regression_label": 0.07142857142857142, "commit_url": "https://github.com/elastic/elasticsearch/commit/7718df6ef049b91a8fa5003ac64fda58e13db7de", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": " this.requestHeaders = requestHeaders;\n this.requestHeaders = requestHeaders;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7718df6ef049b91a8fa5003ac64fda58e13db7de", "target_edit_idx": 3, "propagatable_edit_idx": [ 9 ] }, { "input": "\n public HttpHeaders requestHeaders() {\n return requestHeaders;\n }\n\n public HttpHeaders requestHeaders() {\n return requestHeaders;\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7718df6ef049b91a8fa5003ac64fda58e13db7de", "target_edit_idx": 4, "propagatable_edit_idx": [ 10 ] }, { "input": " private final HttpHeaders requestHeaders;\n\n NioHttpResponse(HttpHeaders requestHeaders, HttpVersion version, RestStatus status, BytesReference content) {\n NioHttpResponse(HttpVersion version, RestStatus status, BytesReference content) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7718df6ef049b91a8fa5003ac64fda58e13db7de", "target_edit_idx": 8, "propagatable_edit_idx": [ 5 ] }, { "input": " public static String trainedModelDeploymentTaskId(String deploymentId) {\n return TRAINED_MODEL_DEPLOYMENT_TASK_ID_PREFIX + deploymentId;\n }\n\n public static String trainedModelDeploymentId(String taskId) {\n return taskId.substring(TRAINED_MODEL_DEPLOYMENT_TASK_ID_PREFIX.length());\n public static String trainedModelAllocationTaskDescription(String modelId) {\n return TrainedModelConfig.MODEL_ID.getPreferredName() + \"[\" + modelId + \"]\";\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/elastic/elasticsearch/commit/89c3915711c0d8c16afbf5ee9034f2d5b08596b4", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 4, 5 ] }, { "input": " super(id, type, action, MlTasks.trainedModelDeploymentTaskId(taskParams.getModelId()), parentTask, headers);\n super(id, type, action, MlTasks.trainedModelAllocationTaskDescription(taskParams.getModelId()), parentTask, headers);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/89c3915711c0d8c16afbf5ee9034f2d5b08596b4", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " assertEquals(node, ex.node());\n assertEquals(node, ex.node());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/49feb651a399755e2109b27fb485cbca22eac09c", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " assertThat(((ConnectTransportException) cause).node(), equalTo(nodeA));\n assertThat(cause.getMessage(), allOf(containsString(nodeA.getName()), containsString(nodeA.getAddress().toString())));\n assertThat(((ConnectTransportException) cause).node(), equalTo(nodeA));\n assertThat(cause.getMessage(), allOf(containsString(nodeA.getName()), containsString(nodeA.getAddress().toString())));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/49feb651a399755e2109b27fb485cbca22eac09c", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " private void inferAgainstAllocatedModel(Request request, Response.Builder responseBuilder, ActionListener listener) {\n private void inferAgainstAllocatedModel(\n Task task,\n Request request,\n Response.Builder responseBuilder,\n ActionListener listener\n ) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/d4d4211e39c65ee5774b0a70b2ab5a3c59022a86", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": "import org.elasticsearch.xcontent.DeprecationHandler;\nimport org.elasticsearch.xcontent.NamedXContentRegistry;\nimport org.elasticsearch.xcontent.DeprecationHandler;\nimport org.elasticsearch.xcontent.NamedXContentRegistry;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/elastic/elasticsearch/commit/1607c934c76752dc32486ec41bd7ae3b00bbb76a", "target_edit_idx": 1, "propagatable_edit_idx": [ 12 ] }, { "input": "import org.elasticsearch.common.xcontent.LoggingDeprecationHandler;\nimport org.elasticsearch.common.xcontent.LoggingDeprecationHandler;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/1607c934c76752dc32486ec41bd7ae3b00bbb76a", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": "import org.elasticsearch.xcontent.NamedXContentRegistry;\nimport org.elasticsearch.xcontent.NamedXContentRegistry;\n", "class": "clone", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/elastic/elasticsearch/commit/1607c934c76752dc32486ec41bd7ae3b00bbb76a", "target_edit_idx": 5, "propagatable_edit_idx": [ 9 ] }, { "input": " // EMPTY is safe here because we never use namedObject\n XContentParser xContentParser = XContentType.YAML.xContent()\n .createParser(NamedXContentRegistry.EMPTY, LoggingDeprecationHandler.INSTANCE, reader);\n XContentParser xContentParser = XContentType.YAML.xContent().createParser(XContentParserConfiguration.EMPTY, reader);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/1607c934c76752dc32486ec41bd7ae3b00bbb76a", "target_edit_idx": 11, "propagatable_edit_idx": [ 3, 7 ] }, { "input": " // Re-create repo to clear repository data cache\n assertAcked(clusterAdmin().prepareDeleteRepository(repoName).get());\n createRepository(repoName, \"fs\", repoPath);\n // Re-create repo to clear repository data cache\n assertAcked(clusterAdmin().prepareDeleteRepository(repoName).get());\n createRepository(repoName, \"fs\", repoPath);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f89eda5f9d89fa6b197dd00cb1dd700b78880887", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " logger.info(\"--> recreating repository to clear caches\");\n client().admin().cluster().prepareDeleteRepository(repoName).get();\n createRepository(repoName, \"fs\", repoPath);\n\n logger.info(\"--> recreating repository to clear caches\");\n client().admin().cluster().prepareDeleteRepository(repoName).get();\n createRepository(repoName, \"fs\", repoPath);\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/f89eda5f9d89fa6b197dd00cb1dd700b78880887", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " persistedState = new AsyncLucenePersistedState(settings, transportService.getThreadPool(),\n persistedState = new AsyncPersistedState(settings, transportService.getThreadPool(),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/ceb3099511ccecae88f6f7e103e37c9e1d8fdfc6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": " return AggregationBuilders.avg(randomAlphaOfLengthBetween(1, 10)).field(randomAlphaOfLengthBetween(1, 10));\n return AggregationBuilders.avg(\"avg_\" + randomAlphaOfLengthBetween(1, 10)).field(randomAlphaOfLengthBetween(1, 10));\n return AggregationBuilders.min(randomAlphaOfLengthBetween(1, 10)).field(randomAlphaOfLengthBetween(1, 10));\n return AggregationBuilders.min(\"min_\" + randomAlphaOfLengthBetween(1, 10)).field(randomAlphaOfLengthBetween(1, 10));\n return AggregationBuilders.max(randomAlphaOfLengthBetween(1, 10)).field(randomAlphaOfLengthBetween(1, 10));\n return AggregationBuilders.max(\"max_\" + randomAlphaOfLengthBetween(1, 10)).field(randomAlphaOfLengthBetween(1, 10));\n return AggregationBuilders.sum(randomAlphaOfLengthBetween(1, 10)).field(randomAlphaOfLengthBetween(1, 10));\n return AggregationBuilders.sum(\"sum_\" + randomAlphaOfLengthBetween(1, 10)).field(randomAlphaOfLengthBetween(1, 10));\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/elastic/elasticsearch/commit/b9f01a1cf0b635d1c8fa7a9c55dcaa2b07f41202", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " public boolean hasGlobalOrdinals() {\n public boolean hasOrdinals() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/1fa629abd646b13d68c8376c61cdbd2e57da1fe0", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 4, 5 ] }, { "input": "import org.elasticsearch.common.lucene.index.SequentialStoredFieldsLeafReader;\nimport org.elasticsearch.common.lucene.index.SequentialStoredFieldsLeafReader;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/c3cc521b711d02fe88ab414a7a24cbcdfca44dbc", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " @AwaitsFix(bugUrl = \"https://github.com/elastic/ml-cpp/issues/1253\")\n @AwaitsFix(bugUrl = \"https://github.com/elastic/ml-cpp/issues/1253\")\n @AwaitsFix(bugUrl = \"https://github.com/elastic/ml-cpp/issues/1253\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/61309456df4d5f09afa7f7ae435a206c60918fac", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " JoinHelper joinHelper = new JoinHelper(null, null, transportService, () -> 0L, () -> null,\n JoinHelper joinHelper = new JoinHelper(Settings.EMPTY, null, null, transportService, () -> 0L, () -> null,\n JoinHelper joinHelper = new JoinHelper(null, null, transportService, () -> 0L, () -> null,\n JoinHelper joinHelper = new JoinHelper(Settings.EMPTY, null, null, transportService, () -> 0L, () -> null,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/acfffc63ca4166e099aa2c01bdfab3e75957df35", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": " private String resultPosition = \"head\";\n private String resultPosition = \"tail\";\n private String resultPosition = \"head\";\n private String resultPosition = \"tail\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/2f5042369ccfe2d4a41be4eae3ad3800f89799c5", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " metricsToCheck = Set.of(\"sequence\", \"sequence_queries_two\", \"pipe_head\");\n metricsToCheck = Set.of(\"sequence\", \"sequence_queries_two\", defaultPipe);\n metricsToCheck = Set.of(\"sequence\", \"sequence_queries_two\", \"pipe_head\", \"join_keys_four\");\n metricsToCheck = Set.of(\"sequence\", \"sequence_queries_two\", \"join_keys_four\", defaultPipe);\n metricsToCheck = Set.of(\"sequence\", \"sequence_queries_two\", \"pipe_head\", \"join_keys_five_or_more\");\n metricsToCheck = Set.of(\"sequence\", \"sequence_queries_two\", \"join_keys_five_or_more\", defaultPipe);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/elastic/elasticsearch/commit/2f5042369ccfe2d4a41be4eae3ad3800f89799c5", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " store.createEmpty(Version.CURRENT.luceneVersion);\n store.createEmpty();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/ac18f24124bba3e3536d73ab81a06c3fb389c361", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 6, 7, 9, 10, 11, 12, 13, 14 ] }, { "input": " store.createEmpty(Version.CURRENT.luceneVersion);\n store.createEmpty();\n store.createEmpty(indexShard.indexSettings().getIndexVersionCreated().luceneVersion);\n store.createEmpty();\n public void createEmpty(Version luceneVersion) throws IOException {\n public void createEmpty() throws IOException {\n Version luceneVersion = indexSettings.getIndexVersionCreated().luceneVersion;\n store.createEmpty(Version.CURRENT.luceneVersion);\n store.createEmpty();\n store.createEmpty(Version.CURRENT.luceneVersion);\n store.createEmpty();\n store.createEmpty(Version.CURRENT.luceneVersion);\n store.createEmpty();\n store.createEmpty(Version.CURRENT.luceneVersion);\n store.createEmpty();\n store.createEmpty(Version.CURRENT.luceneVersion);\n store.createEmpty();\n store.createEmpty(Version.LATEST);\n store.createEmpty();\n store.createEmpty(config.getIndexSettings().getIndexVersionCreated().luceneVersion);\n store.createEmpty();\n store.createEmpty(store.indexSettings().getIndexVersionCreated().luceneVersion);\n store.createEmpty();\n store.createEmpty(config.getIndexSettings().getIndexVersionCreated().luceneVersion);\n store.createEmpty();\n leaderStore.createEmpty(leaderIndexMetadata.getCreationVersion().luceneVersion);\n leaderStore.createEmpty();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/ac18f24124bba3e3536d73ab81a06c3fb389c361", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 6, 7, 9, 10, 11, 12, 13, 14 ] }, { "input": "import org.elasticsearch.Version;\nimport org.elasticsearch.Version;\n", "class": "clone", "binary_label": 1, "regression_label": 0.025, "commit_url": "https://github.com/elastic/elasticsearch/commit/ac18f24124bba3e3536d73ab81a06c3fb389c361", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " store.createEmpty(Version.LATEST);\n store.createEmpty();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/elastic/elasticsearch/commit/ac18f24124bba3e3536d73ab81a06c3fb389c361", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 9, 11, 12, 13, 14 ] }, { "input": " store.createEmpty(config.getIndexSettings().getIndexVersionCreated().luceneVersion);\n store.createEmpty();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/ac18f24124bba3e3536d73ab81a06c3fb389c361", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 9, 10, 12, 13, 14 ] }, { "input": " store.createEmpty(store.indexSettings().getIndexVersionCreated().luceneVersion);\n store.createEmpty();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/elastic/elasticsearch/commit/ac18f24124bba3e3536d73ab81a06c3fb389c361", "target_edit_idx": 12, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 9, 10, 11, 13, 14 ] }, { "input": " leaderStore.createEmpty(leaderIndexMetadata.getCreationVersion().luceneVersion);\n leaderStore.createEmpty();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/elastic/elasticsearch/commit/ac18f24124bba3e3536d73ab81a06c3fb389c361", "target_edit_idx": 14, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 9, 10, 11, 12, 13 ] }, { "input": " final MappingLookup allFieldMappers = documentMapper.mappers();\n final MappingLookup mappingLookup = documentMapper.mappers();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7a890e8ea64d037c00606e42abdfeed05b252657", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " for (Mapper fieldMapper : allFieldMappers) {\n for (Mapper fieldMapper : mappingLookup.fieldMappers()) {\n for (Mapper fieldMapper : allFieldMappers) {\n for (Mapper fieldMapper : mappingLookup.fieldMappers()) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7a890e8ea64d037c00606e42abdfeed05b252657", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "import org.elasticsearch.index.mapper.DocumentMapper;\nimport org.elasticsearch.index.mapper.DocumentMapper;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/elastic/elasticsearch/commit/131bcf2d6a6bde2fcfb3ad59cb0a012fca2ccf43", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " protected Analyzer getAnalyzer(DocumentMapper docMapper) {\n return new AnnotatedHighlighterAnalyzer(super.getAnalyzer(docMapper));\n protected Analyzer wrapAnalyzer(Analyzer analyzer) {\n return new AnnotatedHighlighterAnalyzer(super.wrapAnalyzer(analyzer));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/131bcf2d6a6bde2fcfb3ad59cb0a012fca2ccf43", "target_edit_idx": 1, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\n protected Analyzer getAnalyzer(DocumentMapper docMapper) {\n return docMapper.mappers().indexAnalyzer();\n protected Analyzer wrapAnalyzer(Analyzer analyzer) {\n return analyzer;\n protected Analyzer getAnalyzer(DocumentMapper docMapper) {\n return new AnnotatedHighlighterAnalyzer(super.getAnalyzer(docMapper));\n protected Analyzer wrapAnalyzer(Analyzer analyzer) {\n return new AnnotatedHighlighterAnalyzer(super.wrapAnalyzer(analyzer));\n Analyzer analyzer = getAnalyzer(fieldContext.context.mapperService().documentMapper());\n Analyzer analyzer = wrapAnalyzer(fieldContext.context.getQueryShardContext().getFieldNameIndexAnalyzer());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/131bcf2d6a6bde2fcfb3ad59cb0a012fca2ccf43", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 6 ] }, { "input": " () -> simpleMappedFieldType().regexpQuery(\"cat\", 0, Operations.DEFAULT_MAX_DETERMINIZED_STATES, null, mockContext())\n () -> simpleMappedFieldType().regexpQuery(\"cat\", 0, 0, Operations.DEFAULT_MAX_DETERMINIZED_STATES, null, mockContext())\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/717f62a3501a209176828a8544b08c159307d052", "target_edit_idx": 12, "propagatable_edit_idx": [ 10, 13, 14 ] }, { "input": " recoveryState.preWarmFinished();\n recoveryState.setPreWarmComplete();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f09ff11cba6c807117cb2122e38d60cde4ecb5a2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 11, 12, 13, 14 ] }, { "input": " public synchronized void preWarmFinished() {\n public synchronized void setPreWarmComplete() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/elastic/elasticsearch/commit/f09ff11cba6c807117cb2122e38d60cde4ecb5a2", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 11, 12, 13, 14 ] }, { "input": " assertExecutorIsIdle(snapshotDirectory.prewarmExecutor());\n assertBusy(() -> assertTrue(recoveryState.isPreWarmComplete()));\n assertExecutorIsIdle(snapshotDirectory.prewarmExecutor());\n assertBusy(() -> assertTrue(recoveryState.isPreWarmComplete()));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f09ff11cba6c807117cb2122e38d60cde4ecb5a2", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " IndexFieldData localGlobalDirect(DirectoryReader indexReader) throws Exception;\n IndexFieldData loadGlobalDirect(DirectoryReader indexReader) throws Exception;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/1a566d7b7d40b7ed1b1c8420874ec8b033a68d38", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " IndexOrdinalsFieldData localGlobalDirect(DirectoryReader indexReader) throws Exception;\n IndexOrdinalsFieldData loadGlobalDirect(DirectoryReader indexReader) throws Exception;\n IndexFieldData localGlobalDirect(DirectoryReader indexReader) throws Exception;\n IndexFieldData loadGlobalDirect(DirectoryReader indexReader) throws Exception;\n return (IFD) indexFieldData.localGlobalDirect(indexReader);\n return (IFD) indexFieldData.loadGlobalDirect(indexReader);\n public IndexOrdinalsFieldData localGlobalDirect(DirectoryReader indexReader) throws Exception {\n public IndexOrdinalsFieldData loadGlobalDirect(DirectoryReader indexReader) throws Exception {\n public IndexOrdinalsFieldData localGlobalDirect(DirectoryReader indexReader) throws Exception {\n public IndexOrdinalsFieldData loadGlobalDirect(DirectoryReader indexReader) throws Exception {\n public IndexOrdinalsFieldData localGlobalDirect(DirectoryReader indexReader) throws Exception {\n public IndexOrdinalsFieldData loadGlobalDirect(DirectoryReader indexReader) throws Exception {\n public IndexOrdinalsFieldData localGlobalDirect(DirectoryReader indexReader) throws Exception {\n public IndexOrdinalsFieldData loadGlobalDirect(DirectoryReader indexReader) throws Exception {\n public IndexOrdinalsFieldData localGlobalDirect(DirectoryReader indexReader) throws Exception {\n public IndexOrdinalsFieldData loadGlobalDirect(DirectoryReader indexReader) throws Exception {\n final Accountable ifd = (Accountable) indexFieldData.localGlobalDirect(indexReader);\n final Accountable ifd = (Accountable) indexFieldData.loadGlobalDirect(indexReader);\n return (IFD) indexFieldData.localGlobalDirect(indexReader);\n return (IFD) indexFieldData.loadGlobalDirect(indexReader);\n public IndexOrdinalsFieldData localGlobalDirect(DirectoryReader indexReader) throws Exception {\n IndexOrdinalsFieldData fieldData = delegate.localGlobalDirect(indexReader);\n public IndexOrdinalsFieldData loadGlobalDirect(DirectoryReader indexReader) throws Exception {\n IndexOrdinalsFieldData fieldData = delegate.loadGlobalDirect(indexReader);\n return (IFD) indexFieldData.localGlobalDirect(indexReader);\n return (IFD) indexFieldData.loadGlobalDirect(indexReader);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.9166666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/1a566d7b7d40b7ed1b1c8420874ec8b033a68d38", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " public IndexOrdinalsFieldData localGlobalDirect(DirectoryReader indexReader) throws Exception {\n public IndexOrdinalsFieldData loadGlobalDirect(DirectoryReader indexReader) throws Exception {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.9090909090909091, "commit_url": "https://github.com/elastic/elasticsearch/commit/1a566d7b7d40b7ed1b1c8420874ec8b033a68d38", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " public IndexOrdinalsFieldData localGlobalDirect(DirectoryReader indexReader) throws Exception {\n IndexOrdinalsFieldData fieldData = delegate.localGlobalDirect(indexReader);\n public IndexOrdinalsFieldData loadGlobalDirect(DirectoryReader indexReader) throws Exception {\n IndexOrdinalsFieldData fieldData = delegate.loadGlobalDirect(indexReader);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5454545454545454, "commit_url": "https://github.com/elastic/elasticsearch/commit/1a566d7b7d40b7ed1b1c8420874ec8b033a68d38", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11 ] }, { "input": " public Index[] concreteIndices(ClusterState state, IndicesRequest request) {\n public Index[] concreteIndices(ClusterState state, IndicesRequest request, boolean includeDataStreams) {\n Index[] concreteIndices = indexNameExpressionResolver.concreteIndices(state, request);\n Index[] concreteIndices = indexNameExpressionResolver.concreteIndices(state, request, true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/296531bc4b382be8cc0368a6c9cfd5ea015069d9", "target_edit_idx": 11, "propagatable_edit_idx": [ 7 ] }, { "input": " threadPool.shutdownNow();\n threadPool.shutdownNow();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/5c9b639233ea4477855474669334078e12df3678", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " SearchRequest searchRequest = new SearchRequest(NotificationsIndex.NOTIFICATIONS_INDEX);\n searchRequest.source().query(new TermsQueryBuilder(\"message.raw\", expectedAuditMessage));\n SearchRequest jobAuditSearchRequest = new SearchRequest(NotificationsIndex.NOTIFICATIONS_INDEX);\n jobAuditSearchRequest.source().query(new TermsQueryBuilder(\"message.raw\", expectedAuditMessage));\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/c9a1258fb11f0d0f81903f3d50db77355f943d3c", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": " * The bug ID is 9064309.\n * The bug is: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8242214\n * The bug ID is 9064309.\n * The bug is: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8242214\n * The bug ID is 9064309.\n * The bug is: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8242214\n * The bug ID is 9064309.\n * The bug is: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8242214\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/cda31879b5f5ca5dc242f08fc481619024ca8285", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " final Metadata.Builder metaData = Metadata.builder()\n final Metadata.Builder metadata = Metadata.builder()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/515e40881723d799c6f5e906164d12dfcb74d24a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " MetadataCreateIndexService metaDataCreateIndexService) {\n MetadataCreateIndexService metadataCreateIndexService) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7b3008c2a1a38fa620d4cc366c5759a652ed6817", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " private static InternalPercentilesBucket createTestInstance(String name, Map metaData,\n private static InternalPercentilesBucket createTestInstance(String name, Map metadata,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7b3008c2a1a38fa620d4cc366c5759a652ed6817", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "import org.elasticsearch.common.settings.Settings;\nimport org.elasticsearch.common.settings.Settings;\nimport org.elasticsearch.common.settings.Settings;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/b390b7c3eba3c2300da0858162f15f1d4b4e188c", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 5 ] }, { "input": " return new NamedWriteableRegistry(new Autoscaling(Settings.EMPTY).getNamedWriteables());\n return AutoscalingTestCase.getAutoscalingNamedWriteableRegistry();\n return new NamedWriteableRegistry(new Autoscaling(Settings.EMPTY).getNamedWriteables());\n return AutoscalingTestCase.getAutoscalingNamedWriteableRegistry();\n return new NamedWriteableRegistry(new Autoscaling(Settings.EMPTY).getNamedWriteables());\n return AutoscalingTestCase.getAutoscalingNamedWriteableRegistry();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/b390b7c3eba3c2300da0858162f15f1d4b4e188c", "target_edit_idx": 1, "propagatable_edit_idx": [ 11, 7 ] }, { "input": " return new NamedXContentRegistry(new Autoscaling(Settings.EMPTY).getNamedXContent());\n return AutoscalingTestCase.getAutoscalingXContentRegistry();\n return new NamedXContentRegistry(new Autoscaling(Settings.EMPTY).getNamedXContent());\n return AutoscalingTestCase.getAutoscalingXContentRegistry();\n return new NamedXContentRegistry(new Autoscaling(Settings.EMPTY).getNamedXContent());\n return AutoscalingTestCase.getAutoscalingXContentRegistry();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/b390b7c3eba3c2300da0858162f15f1d4b4e188c", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 12 ] }, { "input": " SnapshotsStatusResponse s =\n client().admin().cluster().prepareSnapshotStatus(REPO).setSnapshots(completedSnapshotName).get();\n SnapshotsStatusResponse s = getSnapshotStatus(completedSnapshotName);\n SnapshotsStatusResponse s =\n client().admin().cluster().prepareSnapshotStatus(REPO).setSnapshots(completedSnapshotName).get();\n SnapshotsStatusResponse s = getSnapshotStatus(completedSnapshotName);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/5f72407ce7e48f87abf5ece6652ef2496b487a87", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " IngestDocument ingestDocument = new IngestDocument(\"_index\", \"_type\", \"_id\", \"_routing\", 1L, VersionType.INTERNAL,\n IngestDocument ingestDocument = new IngestDocument(\"_index\", \"_id\", \"_routing\", 1L, VersionType.INTERNAL,\n IngestDocument ingestDocument = new IngestDocument(\"_index\", \"_type\", \"_id\", \"_routing\", 1L, VersionType.INTERNAL,\n IngestDocument ingestDocument = new IngestDocument(\"_index\", \"_id\", \"_routing\", 1L, VersionType.INTERNAL,\n IngestDocument ingestDocument = new IngestDocument(\"_index\", \"_type\", \"_id\", \"_routing\", 1L, VersionType.INTERNAL,\n IngestDocument ingestDocument = new IngestDocument(\"_index\", \"_id\", \"_routing\", 1L, VersionType.INTERNAL,\n IngestDocument ingestDocument = new IngestDocument(\"_index\", \"_type\", \"_id\", \"_routing\", 1L, VersionType.INTERNAL,\n IngestDocument ingestDocument = new IngestDocument(\"_index\", \"_id\", \"_routing\", 1L, VersionType.INTERNAL,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/0ef3668357175c90460a2ef8b227e6826dcf7e77", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " assertThat(ingestDocument.getSourceAndMetadata().size(), equalTo(6));\n assertThat(ingestDocument.getSourceAndMetadata().size(), equalTo(5));\n assertThat(ingestDocument.getSourceAndMetadata().size(), equalTo(6));\n assertThat(ingestDocument.getSourceAndMetadata().size(), equalTo(5));\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/0ef3668357175c90460a2ef8b227e6826dcf7e77", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy.MM.dd\", Locale.getDefault());\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n long expectedDate = dateFormat.parse(\"2019.09.04\").getTime();\n\n long expectedDate = dateFormatter.parseMillis(\"2019.09.04\");\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy.MM.dd\", Locale.getDefault());\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n long parsedLifecycleDate = dateFormat.parse(\"2019.09.14\").getTime();\n DateFormatter dateFormatter = DateFormatter.forPattern(\"yyyy.MM.dd\");\n long expectedDate = dateFormatter.parseMillis(\"2019.09.14\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7cf509a7a11ecf6c40c44c18e8f03b8e81fcd1c2", "target_edit_idx": 3, "propagatable_edit_idx": [ 10 ] }, { "input": " long secondDateInIndexName = dateFormat.parse(\"2019.09.24\").getTime();\n long secondDateInIndexName = dateFormatter.parseMillis(\"2019.09.24\");\n long secondDateInIndexName = dateFormat.parse(\"2019.09.24\").getTime();\n long secondDateInIndexName = dateFormatter.parseMillis(\"2019.09.24\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/7cf509a7a11ecf6c40c44c18e8f03b8e81fcd1c2", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " private final SnapshotsService snapshotsService;\n private final RepositoriesService repositoriesService;\n public SnapshotShardsService(Settings settings, ClusterService clusterService, SnapshotsService snapshotsService,\n public SnapshotShardsService(Settings settings, ClusterService clusterService, RepositoriesService repositoriesService,\n this.snapshotsService = snapshotsService;\n this.repositoriesService = repositoriesService;\n settings, clusterService, snapshotsService, threadPool,\n settings, clusterService, repositoriesService, threadPool,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/bbea61a232db278db2941e726bbfec16bea8d7f6", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 7 ] }, { "input": " this.snapshotsService = snapshotsService;\n this.repositoriesService = repositoriesService;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/bbea61a232db278db2941e726bbfec16bea8d7f6", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 7 ] }, { "input": " assertEquals(0, (selectionKey.interestOps() & SelectionKey.OP_WRITE));\n\n assertEquals(0, (selectionKey.interestOps() & SelectionKey.OP_WRITE));\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/82703d3f273f821520143ab9e9dc4a8448a1ee39", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " /**\n * {@inheritDoc}\n */\n /**\n * {@inheritDoc}\n */\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/c39fd45a745057e16eaf224fc51c18aa8bed2bc9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " boolean skipLowTresholdChecks = shardRouting.primary() &&\n boolean skipLowThresholdChecks = shardRouting.primary() &&\n if (skipLowTresholdChecks == false) {\n if (skipLowThresholdChecks == false) {\n if (skipLowTresholdChecks == false) {\n if (skipLowThresholdChecks == false) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/88c9ecb0b06c0c1951900e162687fdd8c66bd972", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " assertThat(callsToReloadJwk, equalTo(0));\n if (jwk.getAlgorithm().getName().startsWith(\"HS\")) {\n assertThat(callsToReloadJwk, equalTo(0));\n } else {\n assertThat(callsToReloadJwk, equalTo(1));\n }\n assertThat(callsToReloadJwk, equalTo(0));\n if (jwk.getAlgorithm().getName().startsWith(\"HS\")) {\n assertThat(callsToReloadJwk, equalTo(0));\n } else {\n assertThat(callsToReloadJwk, equalTo(1));\n }\n assertThat(callsToReloadJwk, equalTo(0));\n if (jwk.getAlgorithm().getName().startsWith(\"HS\")) {\n assertThat(callsToReloadJwk, equalTo(0));\n } else {\n assertThat(callsToReloadJwk, equalTo(1));\n }\n assertThat(callsToReloadJwk, equalTo(0));\n if (jwk.getAlgorithm().getName().startsWith(\"HS\")) {\n assertThat(callsToReloadJwk, equalTo(0));\n } else {\n assertThat(callsToReloadJwk, equalTo(1));\n }\n assertThat(callsToReloadJwk, equalTo(0));\n assertThat(callsToReloadJwk, equalTo(1));\n assertThat(callsToReloadJwk, equalTo(0));\n if (jwk.getAlgorithm().getName().startsWith(\"HS\")) {\n assertThat(callsToReloadJwk, equalTo(0));\n } else {\n assertThat(callsToReloadJwk, equalTo(1));\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/elastic/elasticsearch/commit/4d0c375e181041a14a9db9c797c3da635f105f12", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7, 8 ] }, { "input": " public String getAliasName(String policyName) {\n // #41553 (list policy api) will add name to policy, so that we don't have to provide the name via a parameter.\n return \".enrich-\" + policyName;\n public String getBaseName(String policyName) {\n return ENRICH_INDEX_NAME_BASE + policyName;\n try (Engine.Searcher engineSearcher = searchProvider.apply(policy.getAliasName(policyName))) {\n try (Engine.Searcher engineSearcher = searchProvider.apply(policy.getBaseName(policyName))) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/33fddef4e83085082f88146879d8914bc4d908e7", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " Iterator backoffState = internalPolicy.backoffStateFor(bulkResponse);\n assertNotNull(\"backoffState is null (indicates a bulk request got rejected without retry)\", backoffState);\n if (backoffState.hasNext()) {\n // we're not expecting that we overwhelmed it even once when we maxed out the number of retries\n throw new AssertionError(\"Got rejected although backoff policy would allow more retries\",\n failure.getCause());\n } else {\n rejectedAfterAllRetries = true;\n logger.debug(\"We maxed out the number of bulk retries and got rejected (this is ok).\");\n }\n assertRetriedCorrectly(internalPolicy, bulkResponse, failure.getCause());\n rejectedAfterAllRetries = true;\n Iterator backoffState = internalPolicy.backoffStateFor(bulkResponse);\n assertNotNull(\"backoffState is null (indicates a bulk request got rejected without retry)\", backoffState);\n if (backoffState.hasNext()) {\n // we're not expecting that we overwhelmed it even once when we maxed out the number of retries\n throw new AssertionError(\"Got rejected although backoff policy would allow more retries\",\n failure.getCause());\n } else {\n rejectedAfterAllRetries = true;\n logger.debug(\"We maxed out the number of bulk retries and got rejected (this is ok).\");\n }\n assertRetriedCorrectly(internalPolicy, bulkResponse, failure.getCause());\n rejectedAfterAllRetries = true;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/fc0266846f3119d443975924dd43519645c55d0b", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": " && ((RemoteTransportException) response).status() == RestStatus.TOO_MANY_REQUESTS && rejectedExecutionExpected) {\n // ignored, we exceeded the write queue size with dispatching the initial bulk request\n && ((RemoteTransportException) response).status() == RestStatus.TOO_MANY_REQUESTS) {\n if (rejectedExecutionExpected == false) {\n assertRetriedCorrectly(internalPolicy, response, ((Throwable) response).getCause());\n rejectedAfterAllRetries = true;\n }\n // ignored, we exceeded the write queue size when dispatching the initial bulk request\n && ((RemoteTransportException) response).status() == RestStatus.TOO_MANY_REQUESTS && rejectedExecutionExpected) {\n // ignored, we exceeded the write queue size with dispatching the initial bulk request\n && ((RemoteTransportException) response).status() == RestStatus.TOO_MANY_REQUESTS) {\n if (rejectedExecutionExpected == false) {\n assertRetriedCorrectly(internalPolicy, response, ((Throwable) response).getCause());\n rejectedAfterAllRetries = true;\n }\n // ignored, we exceeded the write queue size when dispatching the initial bulk request\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/fc0266846f3119d443975924dd43519645c55d0b", "target_edit_idx": 2, "propagatable_edit_idx": [ 9 ] }, { "input": " String rewrittenFieldName = rewriteFieldName(jobCaps, TermQueryBuilder.NAME, fieldName, null);\n String rewrittenFieldName = rewriteFieldName(jobCaps, TermQueryBuilder.NAME, fieldName);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/6667bd83b33db0cb6e0bbe8ec15d12c2fd1237be", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6, 7 ] }, { "input": " private static String rewriteFieldName(Set jobCaps,\n String builderName,\n String fieldName,\n String timeZone) {\n List incompatibleTimeZones = timeZone == null ? Collections.emptyList() : new ArrayList<>();\n private static String rewriteFieldName(Set jobCaps, String builderName, String fieldName) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/6667bd83b33db0cb6e0bbe8ec15d12c2fd1237be", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " int randomMilli = withMillis ? randomInt(999999999) : 0;\n int randomMilli = withMillis ? randomInt(999) : 0;\n int randomMilli = withMillis ? randomInt(999999999) : 0;\n int randomMilli = withMillis ? randomInt(999) : 0;\n int randomMilli = withMillis ? randomInt(999999999) : 0;\n int randomMilli = withMillis ? randomInt(999) : 0;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/cea81b199dcb92bf80fb42a87fb4817a4f63d890", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " int randomMilli = randomInt(999999999);\n int randomMilli = randomInt(999);\n int randomMilli = randomInt(999999999);\n int randomMilli = randomInt(999);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/cea81b199dcb92bf80fb42a87fb4817a4f63d890", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " retainingSequenceNumbers[0] = randomLongBetween(SequenceNumbers.NO_OPS_PERFORMED, Long.MAX_VALUE);\n retainingSequenceNumbers[0] = randomLongBetween(0, Long.MAX_VALUE);\n final long retainingSequenceNumber = randomLongBetween(SequenceNumbers.NO_OPS_PERFORMED, Long.MAX_VALUE);\n final long retainingSequenceNumber = randomLongBetween(0, Long.MAX_VALUE);\n retainingSequenceNumbers[0] = randomLongBetween(SequenceNumbers.NO_OPS_PERFORMED, Long.MAX_VALUE);\n retainingSequenceNumbers[0] = randomLongBetween(0, Long.MAX_VALUE);\n final long retainingSequenceNumber = randomLongBetween(SequenceNumbers.NO_OPS_PERFORMED, Long.MAX_VALUE);\n final long retainingSequenceNumber = randomLongBetween(0, Long.MAX_VALUE);\n final long retainingSequenceNumber = randomLongBetween(SequenceNumbers.NO_OPS_PERFORMED, Long.MAX_VALUE);\n final long retainingSequenceNumber = randomLongBetween(0, Long.MAX_VALUE);\n", "class": "clone", "binary_label": 1, "regression_label": 0.36363636363636365, "commit_url": "https://github.com/elastic/elasticsearch/commit/ba285a56a72655d189ee11aeed8c9eb8d2043ff9", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 10, 4, 5 ] }, { "input": " double queryValue = parse(value);\n long scaledValue = Math.round(queryValue * scalingFactor);\n long scaledValue = Math.round(scale(value));\n double queryValue = parse(value);\n long scaledValue = Math.round(queryValue * scalingFactor);\n long scaledValue = Math.round(scale(value));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/860a8a7b235a91d6927ac8e2171f039c23b8de3e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " double dValue = parse(lowerTerm) * scalingFactor;\n double dValue = scale(lowerTerm);\n double dValue = parse(upperTerm) * scalingFactor;\n double dValue = scale(upperTerm);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/860a8a7b235a91d6927ac8e2171f039c23b8de3e", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " * @lucene.experimental\n * @lucene.experimental\n * @lucene.experimental\n * @lucene.experimental\n * @lucene.experimental\n * @lucene.experimental\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/a34a3532ce135691f858a09c11206f73c8ed4da2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 6 ] }, { "input": "import org.elasticsearch.rest.action.search.RestMultiSearchAction;\nimport org.elasticsearch.rest.action.search.RestMultiSearchAction;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/b15d1aebcf742f1d95660f7005f672a57bfaccd0", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "import org.elasticsearch.index.engine.InternalEngine;\nimport org.elasticsearch.index.engine.InternalEngine;\nimport org.elasticsearch.index.engine.InternalEngine;\nimport org.elasticsearch.index.engine.InternalEngine;\n", "class": "clone", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/elastic/elasticsearch/commit/8a56369f5bbcbc2c66b01e2e888a2bd904f46081", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 4, 7 ] }, { "input": "import org.elasticsearch.ElasticsearchTimeoutException;\nimport org.elasticsearch.ElasticsearchTimeoutException;\nimport org.elasticsearch.ElasticsearchTimeoutException;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/e4eb631b8ec0820e6d016b4ff5fa50b3a351362e", "target_edit_idx": 0, "propagatable_edit_idx": [ 11, 6 ] }, { "input": "import java.util.concurrent.TimeoutException;\nimport java.util.concurrent.TimeoutException;\nimport java.util.concurrent.TimeoutException;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/6dfe54c8381e2b9046de836fb07fabaa03a02452", "target_edit_idx": 1, "propagatable_edit_idx": [ 12, 7 ] }, { "input": " super.index = shardId.getIndexName();\n index = shardId.getIndexName();\n super.index = shardId.getIndexName();\n index = shardId.getIndexName();\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/ed0571e16caac689a77362bfe4c45c79dcba4d82", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " ShardSearchFailure response = createTestItem();\n ShardSearchFailure response = createTestItem(IndexMetaData.INDEX_UUID_NA_VALUE);\n public static ShardSearchFailure createTestItem() {\n public static ShardSearchFailure createTestItem(String indexUuid) {\n failures[i] = ShardSearchFailureTests.createTestItem();\n failures[i] = ShardSearchFailureTests.createTestItem(IndexMetaData.INDEX_UUID_NA_VALUE);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/ed0571e16caac689a77362bfe4c45c79dcba4d82", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " protected Netty4TcpChannel initiateChannel(InetSocketAddress address, ActionListener listener) throws IOException {\n protected Netty4TcpChannel initiateChannel(DiscoveryNode node, ActionListener listener) throws IOException {\n InetSocketAddress address = node.getAddress().address();\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/faa42de66d67f6ddcdd0e89c8bfb6cde96c11471", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 6, 7, 9, 11 ] }, { "input": " FlushAcknowledgement flushAcknowledgement = listener.waitForFlush(\"_id\", Duration.ofMillis(10000));\n flushAcknowledgementHolder.set(flushAcknowledgement);\n try {\n FlushAcknowledgement flushAcknowledgement = listener.waitForFlush(\"_id\", Duration.ofMillis(10000));\n flushAcknowledgementHolder.set(flushAcknowledgement);\n } catch (InterruptedException _ex) {\n Thread.currentThread().interrupt();\n }\n FlushAcknowledgement flushAcknowledgement = listener.waitForFlush(String.valueOf(id), Duration.ofMillis(10000));\n flushAcknowledgementHolder.set(flushAcknowledgement);\n try {\n FlushAcknowledgement flushAcknowledgement = listener.waitForFlush(String.valueOf(id), Duration.ofMillis(10000));\n flushAcknowledgementHolder.set(flushAcknowledgement);\n } catch (InterruptedException _ex) {\n Thread.currentThread().interrupt();\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/9fb790dcc362a70ec0896313658bac1fcead2334", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " void handleFailure(Exception e, Runnable task) {\n private void updateMapping(LongConsumer handler) {\n updateMapping(handler, new AtomicInteger(0));\n }\n\n private void updateMapping(LongConsumer handler, AtomicInteger retryCounter) {\n innerUpdateMapping(handler, e -> handleFailure(e, retryCounter, () -> updateMapping(handler, retryCounter)));\n }\n\n private void handleFailure(Exception e, AtomicInteger retryCounter, Runnable task) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/006c79a80d265484294ea8edf544732f8f26dbe7", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " protected void updateMapping(LongConsumer handler) {\n protected void innerUpdateMapping(LongConsumer handler, Consumer errorHandler) {\n protected void updateMapping(LongConsumer handler) {\n protected void innerUpdateMapping(LongConsumer handler, Consumer errorHandler) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/006c79a80d265484294ea8edf544732f8f26dbe7", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " String now = formatter.format(ZonedDateTime.ofInstant(Instant.ofEpochSecond(0), ZoneOffset.UTC));\n String formattedTime = formatter.format(ZonedDateTime.ofInstant(Instant.ofEpochSecond(0), ZoneOffset.UTC));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/d268b494d7e305ca65ec28b8b62380eac97dba3b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " private static final ParseField TYPE_FIELD = new ParseField(\"parent_type\");\n private static final ParseField PARENT_TYPE_FIELD = new ParseField(\"parent_type\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/c827a4e8e1d65e9158b5e4889a3add9f34002ee6", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "public class FollowIndexAction extends Action {\npublic class FollowIndexAction extends Action {\npublic class UnfollowIndexAction extends Action {\npublic class UnfollowIndexAction extends Action {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/c74cd30ac6fb354534fbba3cd2ddd76f43e13910", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " if (!blobExists(blobName)) {\n throw new NoSuchFileException(\"Blob [\" + blobName + \"] does not exist\");\n try {\n if (store.execute(fileContext -> fileContext.delete(new Path(path, blobName), true)) == false) {\n throw new NoSuchFileException(\"Blob [\" + blobName + \"] does not exist\");\n }\n } catch (FileNotFoundException fnfe) {\n throw new NoSuchFileException(\"[\" + blobName + \"] blob not found\");\n if (!blobExists(blobName)) {\n throw new NoSuchFileException(\"Blob [\" + blobName + \"] does not exist\");\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/1dca00deb93bdc104f6ebb8814bf43a42b9273d9", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " public void trigger(String jobName, int times) {\n trigger(jobName, times, null);\n }\n\n public void trigger(String jobName, int times, TimeValue interval) {\n public boolean trigger(String jobName, int times, TimeValue interval) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/elastic/elasticsearch/commit/b5a793b569e7a5af18f27edac2f6b0318d9c744c", "target_edit_idx": 10, "propagatable_edit_idx": [ 7 ] }, { "input": " String zeroTermsDocs = parser.text();\n if (\"none\".equalsIgnoreCase(zeroTermsDocs)) {\n String zeroTermsValue = parser.text();\n if (\"none\".equalsIgnoreCase(zeroTermsValue)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/00d88a5d3e334ca201dead987091312e4008f6c9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": " + \"\\\"generic\\\":{\"\n + \"\\\"get\\\":{\"\n + \"\\\"bulk\\\":{\"\n + \"\\\"generic\\\":{\"\n + \"\\\"get\\\":{\"\n + \"\\\"management\\\":{\"\n + \"\\\"management\\\":{\"\n + \"\\\"search\\\":{\"\n + \"\\\"search\\\":{\"\n + \"\\\"watcher\\\":{\"\n + \"\\\"watcher\\\":{\"\n + \"\\\"write\\\":{\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/elastic/elasticsearch/commit/650b80a982a55679b433f6080bf9b53d516ea57c", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5, 6, 7 ] }, { "input": "import org.elasticsearch.persistent.PersistentTasksCustomMetaData;\nimport org.elasticsearch.persistent.PersistentTasksCustomMetaData.PersistentTask;\nimport org.elasticsearch.persistent.PersistentTasksCustomMetaData;\nimport org.elasticsearch.persistent.PersistentTasksCustomMetaData.PersistentTask;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/c0be4d70550a522cb36fe5d6e333652db7113153", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " public AbstractIndicesCleanerTestCase() throws Exception {\n super();\n }\n\n public LocalIndicesCleanerTests() throws Exception {\n super();\n }\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/0402ef4853c7bf128fa31753df0ee74cad2bec08", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " recoveryRef.target().prepareForTranslogOperations(request.deleteLocalTranslog(), request.totalTranslogOps());\n recoveryRef.target().prepareForTranslogOperations(request.createNewTranslog(), request.totalTranslogOps());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/e44e34f42a127fe90004006b6f3ceec355166841", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 7, 8 ] }, { "input": " final String name = props.getProperty(\"name\");\n\n final String name = propsMap.remove(\"name\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/0375d887f26223963a0cd83b43ccb7022491c32e", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7, 8, 9 ] }, { "input": " final String esVersionString = props.getProperty(\"elasticsearch.version\");\n final String esVersionString = propsMap.remove(\"elasticsearch.version\");\n final String name = props.getProperty(\"name\");\n\n final String name = propsMap.remove(\"name\");\n final String description = props.getProperty(\"description\");\n final String description = propsMap.remove(\"description\");\n final String version = props.getProperty(\"version\");\n final String version = propsMap.remove(\"version\");\n final String javaVersionString = props.getProperty(\"java.version\");\n final String javaVersionString = propsMap.remove(\"java.version\");\n final String classname = props.getProperty(\"classname\");\n final String classname = propsMap.remove(\"classname\");\n final String hasNativeControllerValue = props.getProperty(\"has.native.controller\");\n final String hasNativeControllerValue = propsMap.remove(\"has.native.controller\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7777777777777778, "commit_url": "https://github.com/elastic/elasticsearch/commit/0375d887f26223963a0cd83b43ccb7022491c32e", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 5, 7, 8, 9 ] }, { "input": " final String hasNativeControllerValue = props.getProperty(\"has.native.controller\");\n final String hasNativeControllerValue = propsMap.remove(\"has.native.controller\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5555555555555556, "commit_url": "https://github.com/elastic/elasticsearch/commit/0375d887f26223963a0cd83b43ccb7022491c32e", "target_edit_idx": 9, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8 ] }, { "input": " @AwaitsFix(bugUrl = \"https://github.com/elastic/x-pack-elasticsearch/issues/3382\")\n @AwaitsFix(bugUrl = \"https://github.com/elastic/x-pack-elasticsearch/issues/3382\")\n @AwaitsFix(bugUrl = \"https://github.com/elastic/x-pack-elasticsearch/issues/3382\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/b89b1d5cc5f57748b167192e8bf162711df42706", "target_edit_idx": 5, "propagatable_edit_idx": [ 11, 6 ] }, { "input": " .addMapping(\"type1\", \"field1\", \"type=keyword,normalizer=my_normalizer\"));\n .addMapping(\"type1\", \"field1\", \"type=keyword,normalizer=my_normalizer\", \"field2\", \"type=keyword\"));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/8635f68ece81db9ca6c51e45aba0ab13b93daecc", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " // we don't wait for a pending refreshes here since it's a stats call instead we mark it as accesssed only which will cause\n // we don't wait for a pending refreshes here since it's a stats call instead we mark it as accessed only which will cause\n // we don't wait for a pending refreshes here since it's a stats call instead we mark it as accesssed only which will cause\n // we don't wait for a pending refreshes here since it's a stats call instead we mark it as accessed only which will cause\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/b1162215408a7a11bc37ddb60a371ebc28e7e25d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "import org.elasticsearch.xpack.security.InternalClient;\nimport org.elasticsearch.xpack.security.InternalClient;\nimport org.elasticsearch.xpack.security.InternalClient;\nimport org.elasticsearch.xpack.security.InternalClient;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f571dc3000b856e07c6065b05e0a2ae2ab062b19", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 12, 5 ] }, { "input": " public Collection createComponents(InternalClient internalClient, ClusterService clusterService, Clock clock,\n public Collection createComponents(Client client, ClusterService clusterService, Clock clock,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f571dc3000b856e07c6065b05e0a2ae2ab062b19", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 6, 7, 10, 13 ] }, { "input": " return allocation.decision(Decision.NO, NAME, \"non-new primary allocations are forbidden due to {}\",\n return allocation.decision(Decision.NO, NAME, \"non-new primary allocations are forbidden due to %s\",\n return allocation.decision(Decision.NO, NAME, \"replica allocations are forbidden due to {}\",\n return allocation.decision(Decision.NO, NAME, \"replica allocations are forbidden due to %s\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/76203e72bd445ab36ed19ad8a9a79188f2574958", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " final void exceptionCaught(NioSocketChannel channel, Throwable cause) {\n final Throwable unwrapped = ExceptionsHelper.unwrap(cause, ElasticsearchException.class);\n final Throwable t = unwrapped != null ? unwrapped : cause;\n onException(channel, t instanceof Exception ? (Exception) t : new ElasticsearchException(t));\n final void exceptionCaught(NioSocketChannel channel, Exception exception) {\n onException(channel, exception);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f761a0e0e47b1d8787b2c537253394dd8a807673", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 6, 7 ] }, { "input": " verify(handler).handleMessage(new BytesArray(bytes), channel, PROFILE, messageLength);\n verify(handler).handleMessage(new BytesArray(bytes), channel, messageLength);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f761a0e0e47b1d8787b2c537253394dd8a807673", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 3, 5 ] }, { "input": " verify(handler).handleMessage(reference, channel, PROFILE, messageLength + messageLength);\n verify(handler).handleMessage(reference, channel, messageLength + messageLength);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f761a0e0e47b1d8787b2c537253394dd8a807673", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 3, 5 ] }, { "input": " * @param closingTransport whether we abort the connection on RST instead of FIN\n * @param doNotLinger whether we abort the connection on RST instead of FIN\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/277637f42f020f0d37fdd0373658f430c7a46640", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7 ] }, { "input": " return toFloat(queryScore * Math.min(funcScore, maxBoost));\n return (float) (queryScore * Math.min(funcScore, maxBoost));\n return toFloat(Math.min(funcScore, maxBoost));\n return (float) (Math.min(funcScore, maxBoost));\n return toFloat(queryScore + Math.min(funcScore, maxBoost));\n return (float) (queryScore + Math.min(funcScore, maxBoost));\n return toFloat(Math.min(queryScore, Math.min(funcScore, maxBoost)));\n return (float) (Math.min(queryScore, Math.min(funcScore, maxBoost)));\n return toFloat(Math.max(queryScore, Math.min(funcScore, maxBoost)));\n return (float) (Math.max(queryScore, Math.min(funcScore, maxBoost)));\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/elastic/elasticsearch/commit/315319b76325e6385f4c689329f875bf0a43ca6e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 5, 6 ] }, { "input": " CombineFunction.toFloat(score),\n (float) score,\n CombineFunction.toFloat(score),\n (float) score,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/315319b76325e6385f4c689329f875bf0a43ca6e", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " CombineFunction.toFloat(score(docId, subQueryScore.getValue())),\n (float) score(docId, subQueryScore.getValue()),\n CombineFunction.toFloat(score(docId, subQueryScore.getValue())),\n (float) score(docId, subQueryScore.getValue()),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/315319b76325e6385f4c689329f875bf0a43ca6e", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": " watcherIndexMetaData.getSettings().getAsInt(indexFormatSetting, 0) == EXPECTED_INDEX_FORMAT_VERSION;\n Upgrade.checkInternalIndexFormat(watcherIndexMetaData);\n triggeredWatchesIndexMetaData.getSettings().getAsInt(indexFormatSetting, 0) == EXPECTED_INDEX_FORMAT_VERSION;\n Upgrade.checkInternalIndexFormat(triggeredWatchesIndexMetaData);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/41f30b0ae4641e1e1fa8bc6ffd7bfb848625b035", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " return newTestIndexMeta(name, null, indexSettings, \"foo\");\n return newTestIndexMeta(name, null, indexSettings);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/41f30b0ae4641e1e1fa8bc6ffd7bfb848625b035", "target_edit_idx": 13, "propagatable_edit_idx": [ 9, 10, 11 ] }, { "input": " public void testUnknownField() throws IOException {\n public void testUnknownField() {\n public void testUnknownField() throws IOException {\n public void testUnknownField() {\n public void testUnknownField() throws IOException {\n public void testUnknownField() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.2222222222222222, "commit_url": "https://github.com/elastic/elasticsearch/commit/3185eaece86365992e3e3ea3221b2400c22950c7", "target_edit_idx": 4, "propagatable_edit_idx": [ 10, 5 ] }, { "input": " String targetFieldName = RandomDocumentPicks.randomFieldName(random());\n String targetFieldName = fieldName + \"foo\";\n String targetFieldName = RandomDocumentPicks.randomFieldName(random());\n String targetFieldName = fieldName + \"foo\";\n String targetFieldName = RandomDocumentPicks.randomFieldName(random());\n String targetFieldName = fieldName + \"foo\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/elastic/elasticsearch/commit/1ac78182010b22dedb449ec7e13feffb05b9e240", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " IngestDocument ingestDocument = RandomDocumentPicks.randomIngestDocument(random());\n IngestDocument ingestDocument = RandomDocumentPicks.randomIngestDocument(random(), Collections.emptyMap());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/1ac78182010b22dedb449ec7e13feffb05b9e240", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 6 ] }, { "input": " .primaryTerm(0, 1);\n .primaryTerm(0, randomIntBetween(1, 100));\n .primaryTerm(0, 1);\n .primaryTerm(0, randomIntBetween(1, 100));\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/elastic/elasticsearch/commit/cd57395c9814663ded30b84e9706b1920eaf0ee5", "target_edit_idx": 7, "propagatable_edit_idx": [ 13 ] }, { "input": " assertNoOpTranslogOperationForDocumentFailure(shards, 1, failureMessage);\n assertNoOpTranslogOperationForDocumentFailure(shards, 1, shards.getPrimary().getPrimaryTerm(), failureMessage);\n assertNoOpTranslogOperationForDocumentFailure(shards, 2, failureMessage);\n assertNoOpTranslogOperationForDocumentFailure(shards, 2, shards.getPrimary().getPrimaryTerm(), failureMessage);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/cd57395c9814663ded30b84e9706b1920eaf0ee5", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " assertNoOpTranslogOperationForDocumentFailure(shards, 2, failureMessage);\n assertNoOpTranslogOperationForDocumentFailure(shards, 2, shards.getPrimary().getPrimaryTerm(), failureMessage);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/cd57395c9814663ded30b84e9706b1920eaf0ee5", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": " private final UnaryOperator keyTransform;\n private final UnaryOperator addPrefix;\n private final UnaryOperator removePrefix;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/ac82824d80dd6d0e60630bc5fb9c28d87f792ae3", "target_edit_idx": 2, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " formattedMessage = Messages.getMessage(Messages.JOB_AUDIT_SNAPSHOT_DELETED, \"foo-job\");\n assertEquals(\"Job model snapshot 'foo-job' deleted\", formattedMessage);\n formattedMessage = Messages.getMessage(Messages.JOB_AUDIT_SNAPSHOT_DELETED, \"snapshot_foo\", \"snapshot description\");\n assertEquals(\"Model snapshot [snapshot_foo] with description 'snapshot description' deleted\", formattedMessage);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/9b655ce6f188932e2044baacf186896b216d8603", "target_edit_idx": 8, "propagatable_edit_idx": [ 0 ] }, { "input": " public void setLikeText(Fields... likeFields) {\n public void setLikeFields(Fields... likeFields) {\n mltQuery.setLikeText(getFieldsFor(likeItemsResponse));\n mltQuery.setLikeFields(getFieldsFor(likeItemsResponse));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/563e7ddc830c991dea210f5ed936b06f5f613ac7", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " mltQuery.setUnlikeText(unlikeFields);\n mltQuery.setUnlikeFields(unlikeFields);\n public void setUnlikeText(Fields... unlikeFields) {\n public void setUnlikeFields(Fields... unlikeFields) {\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/563e7ddc830c991dea210f5ed936b06f5f613ac7", "target_edit_idx": 6, "propagatable_edit_idx": [ 2 ] }, { "input": " public ScriptEngineService getScriptEngineService(Settings settings) {\n public ScriptEngine getScriptEngine(Settings settings) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/85deb1f8f7088c967d37217a1f5d8cd7d561c1c3", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 8 ] }, { "input": " threadPool.executor(MachineLearning.NORMALIZER_THREAD_POOL_NAME));\n threadPool.executor(MachineLearning.UTILITY_THREAD_POOL_NAME));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f3f9cb6d741eb5a3c0fab1eae4e5626c49c2d31f", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 13 ] }, { "input": " threadPool.executor(ThreadPool.Names.MANAGEMENT).execute(new AbstractRunnable() {\n threadPool.executor(MachineLearning.UTILITY_THREAD_POOL_NAME).execute(new AbstractRunnable() {\n threadPool.executor(ThreadPool.Names.MANAGEMENT).execute(new AbstractRunnable() {\n threadPool.executor(MachineLearning.UTILITY_THREAD_POOL_NAME).execute(new AbstractRunnable() {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f3f9cb6d741eb5a3c0fab1eae4e5626c49c2d31f", "target_edit_idx": 4, "propagatable_edit_idx": [ 12 ] }, { "input": " super(settings, TASK_NAME, ThreadPool.Names.MANAGEMENT);\n super(settings, TASK_NAME, MachineLearning.UTILITY_THREAD_POOL_NAME);\n super(settings, TASK_NAME, ThreadPool.Names.MANAGEMENT);\n super(settings, TASK_NAME, MachineLearning.UTILITY_THREAD_POOL_NAME);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f3f9cb6d741eb5a3c0fab1eae4e5626c49c2d31f", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " private final XPackLicenseState licenseState;\n private final XPackLicenseState licenseState;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/elastic/elasticsearch/commit/e93b447b9c17952b9cf059b6b16fdceca4757bb0", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " this.licenseState = licenseState;\n this.licenseState = licenseState;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/elastic/elasticsearch/commit/e93b447b9c17952b9cf059b6b16fdceca4757bb0", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " } catch (Exception e) {\n if (e.getMessage().contains(\"expected job state [opened], but got [closed]\")\n || e.getMessage().contains(\"expected job state [opened], but got [closing]\")) {\n logger.debug(\"job [\" + jobId + \"] has already been closed\", e);\n } catch (Exception e1) {\n if (e1.getMessage().contains(\"expected job state [opened], but got [closed]\")\n || e1.getMessage().contains(\"expected job state [opened], but got [closing]\")) {\n logger.debug(\"job [\" + jobId + \"] has already been closed\", e1);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/elastic/elasticsearch/commit/fc29fd159a58decb18c16eca162d45739066e456", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 7, 10, 11 ] }, { "input": " throw new RuntimeException(\"Had to resort to force-closing job, something went wrong?\");\n throw new RuntimeException(\"Had to resort to force-closing job, something went wrong?\");\n throw new RuntimeException(\"Had to resort to force-closing job, something went wrong?\");\n throw new RuntimeException(\"Had to resort to force-stopping datafeed, something went wrong?\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/fc29fd159a58decb18c16eca162d45739066e456", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 12, 5 ] }, { "input": " } catch (Exception e) {\n if (e.getMessage().contains(\"expected job state [opened], but got [closed]\")\n || e.getMessage().contains(\"expected job state [opened], but got [closing]\")) {\n logger.debug(\"job [\" + jobId + \"] has already been closed\", e);\n } catch (Exception e1) {\n if (e1.getMessage().contains(\"expected job state [opened], but got [closed]\")\n || e1.getMessage().contains(\"expected job state [opened], but got [closing]\")) {\n logger.debug(\"job [\" + jobId + \"] has already been closed\", e1);\n } catch (Exception e) {\n if (e.getMessage().contains(\"expected job state [opened], but got [closed]\")\n || e.getMessage().contains(\"expected job state [opened], but got [closing]\")) {\n logger.debug(\"job [\" + jobId + \"] has already been closed\", e);\n } catch (Exception e1) {\n if (e1.getMessage().contains(\"expected job state [opened], but got [closed]\")\n || e1.getMessage().contains(\"expected job state [opened], but got [closing]\")) {\n logger.debug(\"job [\" + jobId + \"] has already been closed\", e1);\n logger.warn(\"failed to close job [\" + jobId + \"]. Forcing closed.\", e);\n\n logger.warn(\"failed to close job [\" + jobId + \"]. Forcing closed.\", e1);\n } catch (ExecutionException e) {\n if (e.getMessage().contains(\"datafeed already stopped, expected datafeed state [started], but got [stopped]\")) {\n logger.debug(\"failed to stop datafeed [\" + datafeedId + \"], already stopped\", e);\n } catch (ExecutionException e1) {\n if (e1.getMessage().contains(\"datafeed already stopped, expected datafeed state [started], but got [stopped]\")) {\n logger.debug(\"failed to stop datafeed [\" + datafeedId + \"], already stopped\", e1);\n } catch (Exception e) {\n if (e.getMessage().contains(\"expected job state [opened], but got [closed]\")\n || e.getMessage().contains(\"expected job state [opened], but got [closing]\")) {\n logger.debug(\"job [\" + jobId + \"] has already been closed\", e);\n } catch (Exception e1) {\n if (e1.getMessage().contains(\"expected job state [opened], but got [closed]\")\n || e1.getMessage().contains(\"expected job state [opened], but got [closing]\")) {\n logger.debug(\"job [\" + jobId + \"] has already been closed\", e1);\n logger.warn(\"failed to close job [\" + jobId + \"]. Forcing closed.\", e);\n\n logger.warn(\"failed to close job [\" + jobId + \"]. Forcing closed.\", e1);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/elastic/elasticsearch/commit/fc29fd159a58decb18c16eca162d45739066e456", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 4, 7, 11 ] }, { "input": " // NORELEASE: Use Jodatime instead\n // TODO: Use java.time for the Dates here: x-pack-elasticsearch#829\n // NORELEASE: Use Jodatime instead\n // TODO: Use java.time for the Dates here: x-pack-elasticsearch#829\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/ea67089cef86948890eb731b8ce9fb788eec7b27", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " task.stop(request.getTimeout());\n task.stop(\"stop_datafeed_api\", request.getTimeout());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/e9e14cbceaa02280fe411ff8e669200fef8a6063", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 9 ] }, { "input": " task.stop();\n task.stop(\"test\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/e9e14cbceaa02280fe411ff8e669200fef8a6063", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 4 ] }, { "input": " masterFD.start(nodeB, \"test\");\n masterFD.restart(nodeB, \"test\");\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/0161edae10a8769b326376b2c05a2949bfb21992", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " masterFDNodeB.start(nodeB, \"test\");\n masterFDNodeB.restart(nodeB, \"test\");\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/0161edae10a8769b326376b2c05a2949bfb21992", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " assertFailures(client.prepareSearch(\"ramtest\").setQuery(matchAllQuery()).addSort(\"test\", SortOrder.DESC),\n RestStatus.INTERNAL_SERVER_ERROR,\n containsString(\"Data too large, data for [test] would be larger than limit of [100/100b]\"));\n SearchRequestBuilder searchRequest = client.prepareSearch(\"ramtest\").setQuery(matchAllQuery()).addSort(\"test\", SortOrder.DESC);\n\n String errMsg = \"Data too large, data for [test] would be\";\n assertFailures(searchRequest, RestStatus.INTERNAL_SERVER_ERROR, containsString(errMsg));\n errMsg = \"which is larger than the limit of [100/100b]\";\n assertFailures(searchRequest, RestStatus.INTERNAL_SERVER_ERROR, containsString(errMsg));\n assertFailures(client.prepareSearch(\"cb-test\").setQuery(matchAllQuery()).addSort(\"test\", SortOrder.DESC),\n RestStatus.INTERNAL_SERVER_ERROR,\n containsString(\"Data too large, data for [test] would be larger than limit of [10/10b]\"));\n // execute a search that loads field data (sorting on the \"test\" field)\n // again, this time it should trip the breaker\n SearchRequestBuilder searchRequest = client.prepareSearch(\"cb-test\").setQuery(matchAllQuery()).addSort(\"test\", SortOrder.DESC);\n\n String errMsg = \"Data too large, data for [test] would be\";\n assertFailures(searchRequest, RestStatus.INTERNAL_SERVER_ERROR, containsString(errMsg));\n errMsg = \"which is larger than the limit of [10/10b]\";\n assertFailures(searchRequest, RestStatus.INTERNAL_SERVER_ERROR, containsString(errMsg));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/41abf6e81da0e3d9c3d0aa1dea5cd4896019d1e1", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " sourceWithMockedRemoteCall(false, \"main/0_90_13.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, ContentType.APPLICATION_JSON, \"main/0_90_13.json\").lookupRemoteVersion(v -> {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/fc1f7c2147627f148a87f26c3d1698a88b7bf2f2", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6, 7, 8, 9, 12, 13 ] }, { "input": " sourceWithMockedRemoteCall(false, \"main/1_7_5.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, ContentType.APPLICATION_JSON, \"main/1_7_5.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, \"main/0_20_5.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, ContentType.APPLICATION_JSON, \"main/0_20_5.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, \"main/0_90_13.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, ContentType.APPLICATION_JSON, \"main/0_90_13.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, \"main/2_3_3.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, ContentType.APPLICATION_JSON, \"main/2_3_3.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, \"main/5_0_0_alpha_3.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, ContentType.APPLICATION_JSON, \"main/5_0_0_alpha_3.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, \"main/with_unknown_fields.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, ContentType.APPLICATION_JSON, \"main/with_unknown_fields.json\").lookupRemoteVersion(v -> {\n return sourceWithMockedRemoteCall(true, paths);\n return sourceWithMockedRemoteCall(true, ContentType.APPLICATION_JSON, paths);\n private RemoteScrollableHitSource sourceWithMockedRemoteCall(boolean mockRemoteVersion, String... paths) throws Exception {\n private RemoteScrollableHitSource sourceWithMockedRemoteCall(boolean mockRemoteVersion, ContentType contentType, String... paths)\n throws Exception {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/fc1f7c2147627f148a87f26c3d1698a88b7bf2f2", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5, 7, 8, 9, 12, 13 ] }, { "input": " sourceWithMockedRemoteCall(false, \"main/5_0_0_alpha_3.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, ContentType.APPLICATION_JSON, \"main/5_0_0_alpha_3.json\").lookupRemoteVersion(v -> {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/fc1f7c2147627f148a87f26c3d1698a88b7bf2f2", "target_edit_idx": 8, "propagatable_edit_idx": [ 4, 5, 6, 7, 9, 12, 13 ] }, { "input": " sourceWithMockedRemoteCall(false, \"main/with_unknown_fields.json\").lookupRemoteVersion(v -> {\n sourceWithMockedRemoteCall(false, ContentType.APPLICATION_JSON, \"main/with_unknown_fields.json\").lookupRemoteVersion(v -> {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/fc1f7c2147627f148a87f26c3d1698a88b7bf2f2", "target_edit_idx": 9, "propagatable_edit_idx": [ 4, 5, 6, 7, 8, 12, 13 ] }, { "input": " private RemoteScrollableHitSource sourceWithMockedRemoteCall(boolean mockRemoteVersion, String... paths) throws Exception {\n private RemoteScrollableHitSource sourceWithMockedRemoteCall(boolean mockRemoteVersion, ContentType contentType, String... paths)\n throws Exception {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/fc1f7c2147627f148a87f26c3d1698a88b7bf2f2", "target_edit_idx": 13, "propagatable_edit_idx": [ 4, 5, 6, 7, 8, 9, 12 ] }, { "input": " prepareTargetForTranslog(0);\n prepareTargetForTranslog(0, maxUnsafeAutoIdTimestamp);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/8741691511a93429170ce830d14df3f67395c09f", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "import org.elasticsearch.common.ParseFieldMatcher;\nimport org.elasticsearch.common.ParseFieldMatcher;\nimport org.elasticsearch.common.ParseFieldMatcher;\nimport org.elasticsearch.common.ParseFieldMatcher;\nimport org.elasticsearch.common.ParseFieldMatcher;\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/elastic/elasticsearch/commit/80dc895450edcabd83444f8d4ad7b76ccde6d09b", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 2, 4, 6 ] }, { "input": "import org.elasticsearch.common.ParseFieldMatcher;\nimport org.elasticsearch.common.ParseFieldMatcher;\nimport org.elasticsearch.common.ParseFieldMatcher;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/77f4152a18ca856a716e73522172285626e9d2f3", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " public static ClearIndicesCacheRequest fromRequest(final RestRequest request, ClearIndicesCacheRequest clearIndicesCacheRequest,\n ParseFieldMatcher parseFieldMatcher) {\n public static ClearIndicesCacheRequest fromRequest(final RestRequest request, ClearIndicesCacheRequest clearIndicesCacheRequest) {\n fromRequest(request, clearIndicesCacheRequest, parseFieldMatcher);\n fromRequest(request, clearIndicesCacheRequest);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/77f4152a18ca856a716e73522172285626e9d2f3", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " new AnalyzeRequest(\"for test\"), new ParseFieldMatcher(Settings.EMPTY)));\n new AnalyzeRequest(\"for test\")));\n new AnalyzeRequest(\"for test\"), new ParseFieldMatcher(Settings.EMPTY)));\n new AnalyzeRequest(\"for test\")));\n new AnalyzeRequest(\"for test\"), new ParseFieldMatcher(Settings.EMPTY)));\n new AnalyzeRequest(\"for test\")));\n new AnalyzeRequest(\"for test\"), new ParseFieldMatcher(Settings.EMPTY)));\n new AnalyzeRequest(\"for test\")));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/77f4152a18ca856a716e73522172285626e9d2f3", "target_edit_idx": 11, "propagatable_edit_idx": [ 12, 13, 14 ] }, { "input": " metadataBuilder.putCustom(PrelertMetadata.TYPE, PrelertMetadata.PROTO);\n metadataBuilder.putCustom(PrelertMetadata.TYPE, PrelertMetadata.EMPTY_METADATA);\n .metaData(MetaData.builder().putCustom(PrelertMetadata.TYPE, PrelertMetadata.PROTO).indices(indexMap)).build();\n .metaData(MetaData.builder().putCustom(PrelertMetadata.TYPE, PrelertMetadata.EMPTY_METADATA).indices(indexMap)).build();\n builder.metaData(MetaData.builder().putCustom(PrelertMetadata.TYPE, PrelertMetadata.PROTO));\n builder.metaData(MetaData.builder().putCustom(PrelertMetadata.TYPE, PrelertMetadata.EMPTY_METADATA));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/161eefe7d8ed28199bb264b97e40e2d2a9d0e1a3", "target_edit_idx": 2, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " new ZenDiscovery.NodeRemovalClusterStateTaskExecutor(allocationService, electMasterService, rejoin, logger) {\n new ZenDiscovery.NodeRemovalClusterStateTaskExecutor(allocationService, electMasterService, submitRejoin, logger) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/a724f4eb6165b3229109b7ae29a2399024dc6fad", "target_edit_idx": 13, "propagatable_edit_idx": [ 1, 9 ] }, { "input": " assertThat(request.requests().get(1).indices()[0], equalTo(\"test2\"));\n assertThat(request.requests().get(1).indices()[1], equalTo(\"test3\"));\n assertThat(request.requests().get(1).getRequest().indices()[0], equalTo(\"test2\"));\n assertThat(request.requests().get(1).getRequest().indices()[1], equalTo(\"test3\"));\n assertThat(request.requests().get(2).indices()[0], equalTo(\"test4\"));\n assertThat(request.requests().get(2).indices()[1], equalTo(\"test1\"));\n assertThat(request.requests().get(2).getRequest().indices()[0], equalTo(\"test4\"));\n assertThat(request.requests().get(2).getRequest().indices()[1], equalTo(\"test1\"));\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/elastic/elasticsearch/commit/6eaff9432ddc05adad528761f4ce65545cce9cf8", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " LOGGER.warn(\"Failed to delete file {}\", fileToDelete::toString);\n LOGGER.warn(\"[{}] Failed to delete file {}\", jobId, fileToDelete.toString());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/16b91c9d0fd05ab9f63d150ee606cbfa34e3b032", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " final boolean isRunAs = authentication.getUser() != authentication.getRunAsUser();\n final boolean isRunAs = authentication.isRunAs();\n final boolean isRunAs = authentication.getUser() != authentication.getRunAsUser();\n final boolean isRunAs = authentication.isRunAs();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/27cb25581b6398da8341f9c85cb52f99225c5f33", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " return seqNo == SequenceNumbersService.UNASSIGNED_SEQ_NO;\n assert seqNo == SequenceNumbersService.UNASSIGNED_SEQ_NO : \"old op recovering but it already has a seq no.\" +\n \" index version: \" + engineConfig.getIndexSettings().getIndexVersionCreated() + \". seq no: \" + seqNo;\n return seqNo == SequenceNumbersService.UNASSIGNED_SEQ_NO;\n assert seqNo == SequenceNumbersService.UNASSIGNED_SEQ_NO : \"primary ops should never an assigned seq no. got: \" + seqNo;\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/fac6cf0d4e371adfa0fae8c432e0e3ad7d0516f5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " final DirectoryService directoryService = new DirectoryService(shardId, INDEX_SETTINGS) {\n return createStore(INDEX_SETTINGS, directory);\n }\n protected Store createStore(final IndexSettings indexSettings, final Directory directory) throws IOException {\n final DirectoryService directoryService = new DirectoryService(shardId, indexSettings) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.058823529411764705, "commit_url": "https://github.com/elastic/elasticsearch/commit/fac6cf0d4e371adfa0fae8c432e0e3ad7d0516f5", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " .build()).start();\n .build(), Collections.emptyList()).start();\n .build()).start();\n .build(), Collections.emptyList()).start();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/0573e03aa17f27e84c31844fd2f6171d9c1a3dfa", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " logger.warn(\"plugin {}, failed to invoke custom onModule method\", e, plugin.v1().getName());\n logger.warn((Supplier) () -> new ParameterizedMessage(\"plugin {}, failed to invoke custom onModule method\", plugin.v1().getName()), e);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/bf5d425ab9de5b5feb115ba57804f79c7ef1d5ae", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 2, 7 ] }, { "input": " logger.info(\"unexpected exception in background thread of [{}]\", e, node);\n logger.info((Supplier) () -> new ParameterizedMessage(\"unexpected exception in background thread of [{}]\", node), e);\n logger.info(\"{}: failed to obtain shard lock\", ex, shardId);\n logger.info((Supplier) () -> new ParameterizedMessage(\"{}: failed to obtain shard lock\", shardId), ex);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/bf5d425ab9de5b5feb115ba57804f79c7ef1d5ae", "target_edit_idx": 10, "propagatable_edit_idx": [ 3 ] }, { "input": " logger.trace(\"failed to run {}\", e, compiledScript);\n logger.trace((Supplier) () -> new ParameterizedMessage(\"failed to run {}\", compiledScript), e);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/bf5d425ab9de5b5feb115ba57804f79c7ef1d5ae", "target_edit_idx": 11, "propagatable_edit_idx": [ 5 ] }, { "input": " assertThat(throwables.get(0).getMessage(), containsString(\"index must have 1 or more primary shards\"));\n assertThat(throwables.get(0).getMessage(),\n containsString(\"Failed to parse value [0] for setting [index.number_of_shards] must be >= 1\"));\n assertThat(throwables.get(0).getMessage(),\n containsString(\"unknown value for [index.shard.check_on_startup] \" +\n \"must be one of [true, false, fix, checksum] but was: blargh\"));\n assertThat(throwables.get(0).getMessage(), containsString(\"index must have 1 or more primary shards\"));\n assertThat(throwables.get(0).getMessage(),\n containsString(\"Failed to parse value [0] for setting [index.number_of_shards] must be >= 1\"));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/e462edc6d6231d4a1b9024ccf0059635d19adbcb", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " searchRequestParsers.aggParsers, searchRequestParsers.suggesters);\n searchRequestParsers.aggParsers, searchRequestParsers.suggesters,\n searchRequestParsers.searchExtParsers);\n searchRequestParsers.aggParsers, searchRequestParsers.suggesters);\n searchRequestParsers.aggParsers, searchRequestParsers.suggesters, searchRequestParsers.searchExtParsers);\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/5829d112d12d764e5677e9ba008865d75223af84", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " indexModule.addIndexOperationListener(new BlockingDeleteListener());\n indexModule.addIndexOperationListener(new BlockingOperationListener());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/34bbd27f84323f83d7cef4012d4849b7fca9d460", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " Collections.emptyMap(), new StringEntity(body, RestClient.JSON_CONTENT_TYPE));\n Collections.emptyMap(), new StringEntity(body, ContentType.APPLICATION_JSON));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4583333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/1bb33cf572c04e7e61dafb2826530795e8edbb95", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 11, 12, 7 ] }, { "input": " \"}\", RestClient.JSON_CONTENT_TYPE);\n \"}\", ContentType.APPLICATION_JSON);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/elastic/elasticsearch/commit/1bb33cf572c04e7e61dafb2826530795e8edbb95", "target_edit_idx": 9, "propagatable_edit_idx": [ 11, 12, 6, 7 ] }, { "input": " requestBody = new StringEntity(body, RestClient.JSON_CONTENT_TYPE);\n requestBody = new StringEntity(body, ContentType.APPLICATION_JSON);\n \"}\", RestClient.JSON_CONTENT_TYPE);\n \"}\", ContentType.APPLICATION_JSON);\n entity = new StringEntity(body, RestClient.JSON_CONTENT_TYPE);\n entity = new StringEntity(body, ContentType.APPLICATION_JSON);\n Collections.emptyMap(), new StringEntity(body, RestClient.JSON_CONTENT_TYPE));\n Collections.emptyMap(), new StringEntity(body, ContentType.APPLICATION_JSON));\n return new StringEntity(builder.string(), RestClient.JSON_CONTENT_TYPE);\n return new StringEntity(builder.string(), ContentType.APPLICATION_JSON);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.30434782608695654, "commit_url": "https://github.com/elastic/elasticsearch/commit/1bb33cf572c04e7e61dafb2826530795e8edbb95", "target_edit_idx": 12, "propagatable_edit_idx": [ 9, 11, 6, 7 ] }, { "input": " try {\n indexAuditTrail.stop();\n } catch (Exception e) {\n logger.error(\"failed to stop audit trail module\", e);\n if (indexAuditTrail != null) {\n try {\n indexAuditTrail.stop();\n } catch (Exception e) {\n logger.error(\"failed to stop audit trail module\", e);\n }\n try {\n indexAuditTrail.close();\n } catch (Exception e) {\n logger.error(\"failed to close audit trail module\", e);\n if (indexAuditTrail != null) {\n try {\n indexAuditTrail.close();\n } catch (Exception e) {\n logger.error(\"failed to close audit trail module\", e);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/elastic/elasticsearch/commit/41eea741b8cbb95749f244d2b15c494d4beb9189", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " for (Module pluginModule : pluginsService.nodeModules()) {\n for (Module pluginModule : pluginsService.createGuiceModules()) {\n for (Module pluginModule : pluginsService.nodeModules()) {\n for (Module pluginModule : pluginsService.createGuiceModules()) {\n @SuppressWarnings(\"unchecked\")\n public Collection nodeModules() {\n public Collection createGuiceModules() {\n for (Module pluginModule : pluginsService.nodeModules()) {\n for (Module pluginModule : pluginsService.createGuiceModules()) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7195d1e0ff368ea29149b55d83187eed14268f79", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": " for (Module pluginModule : pluginsService.nodeModules()) {\n for (Module pluginModule : pluginsService.createGuiceModules()) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/7195d1e0ff368ea29149b55d83187eed14268f79", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " ClusterService clusterService = Mockito.mock(ClusterService.class);\n Mockito.when(clusterService.state()).thenReturn(ClusterState.builder(new ClusterName(\"_name\")).build());\n ClusterService clusterService = Mockito.mock(ClusterService.class);\n Mockito.when(clusterService.state()).thenReturn(ClusterState.builder(new ClusterName(\"_name\")).build());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/2d0055de3548830ca7e74ef0846d56d842617747", "target_edit_idx": 0, "propagatable_edit_idx": [ 12 ] }, { "input": " new ResourceWatcherService(settings, tp), scriptEngineRegistry, scriptContextRegistry, scriptSettings),\n clusterService);\n new ResourceWatcherService(settings, tp), scriptEngineRegistry, scriptContextRegistry, scriptSettings));\n new ResourceWatcherService(settings, tp), scriptEngineRegistry, scriptContextRegistry, scriptSettings),\n clusterService);\n new ResourceWatcherService(settings, tp), scriptEngineRegistry, scriptContextRegistry, scriptSettings));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/2d0055de3548830ca7e74ef0846d56d842617747", "target_edit_idx": 1, "propagatable_edit_idx": [ 13 ] }, { "input": " e.addHeader(\"WWW-Authenticate\", \"Basic realm=\\\"\" + Security.NAME + \"\\\"\");\n e.addHeader(\"WWW-Authenticate\", \"Basic realm=\\\"\" + Security.NAME + \"\\\" charset=\\\"UTF-8\\\"\");\n e.addHeader(\"WWW-Authenticate\", \"Basic realm=\\\"\" + Security.NAME + \"\\\"\");\n e.addHeader(\"WWW-Authenticate\", \"Basic realm=\\\"\" + Security.NAME + \"\\\" charset=\\\"UTF-8\\\"\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/27958cc708ac3caafbd76f9339a9bd1b5e6fa760", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " static void log(Log logger, String message, HttpUriRequest request, HttpHost host, HttpResponse httpResponse) {\n static void logResponse(Log logger, String message, HttpUriRequest request, HttpHost host, HttpResponse httpResponse) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/1932f6bc7c4c5d77f79ad27320e3dcdc3162ccfc", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " RequestLogger.log(logger, \"request failed\", request, host, httpResponse);\n RequestLogger.logResponse(logger, \"request failed\", request, host, httpResponse);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/1932f6bc7c4c5d77f79ad27320e3dcdc3162ccfc", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "import org.elasticsearch.search.SearchParseElement;\nimport org.elasticsearch.search.SearchParseElement;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/f20928b1461ec6a6cf91712d5c8a4a4b4321164d", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " assertThat(e.getHost(), equalTo(httpHost));\n assertThat(e.getStatusLine().getStatusCode(), equalTo(sniffResponse.nodesInfoResponseCode));\n assertThat(e.getRequestLine().toString(), equalTo(\"GET /_nodes/http?timeout=\" + sniffRequestTimeout + \"ms HTTP/1.1\"));\n assertThat(response.getHost(), equalTo(httpHost));\n assertThat(response.getStatusLine().getStatusCode(), equalTo(sniffResponse.nodesInfoResponseCode));\n assertThat(response.getRequestLine().toString(),\n equalTo(\"GET /_nodes/http?timeout=\" + sniffRequestTimeout + \"ms HTTP/1.1\"));\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/9a38d81bec9549a7505c03001c2d9e8251e3edab", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": " globalSettings = Settings.builder().put(\"path.home\", createTempDir())\n .put(\"xpack.security.ssl.keystore.path\", keystore)\n .put(\"xpack.security.ssl.keystore.password\", \"changeit\")\n .build();\n Settings.Builder builder = Settings.builder().put(\"path.home\", createTempDir());\n if (useGlobalSSL) {\n builder.put(\"xpack.security.ssl.keystore.path\", keystore)\n .put(\"xpack.security.ssl.keystore.password\", \"changeit\");\n }\n globalSettings = builder.build();\n globalSettings = Settings.builder().put(\"path.home\", createTempDir())\n .put(\"xpack.security.ssl.keystore.path\", keystore)\n .put(\"xpack.security.ssl.keystore.password\", \"changeit\")\n .build();\n useGlobalSSL = randomBoolean();\n Settings.Builder builder = Settings.builder().put(\"path.home\", createTempDir());\n if (useGlobalSSL) {\n builder.put(\"xpack.security.ssl.keystore.path\", keystore)\n .put(\"xpack.security.ssl.keystore.password\", \"changeit\");\n }\n globalSettings = builder.build();\n Settings settings = Settings.builder().put(\"path.home\", createTempDir())\n .put(\"xpack.security.ssl.keystore.path\", keystore)\n .put(\"xpack.security.ssl.keystore.password\", \"changeit\")\n .build();\n Settings.Builder builder = Settings.builder().put(\"path.home\", createTempDir());\n if (useGlobalSSL) {\n builder.put(\"xpack.security.ssl.keystore.path\", keystore)\n .put(\"xpack.security.ssl.keystore.password\", \"changeit\");\n }\n Settings settings = builder.build();\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/cc6674068338d4b775ea23cd1ff1da6ee92bb82a", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " .put(ActiveDirectorySessionFactory.HOSTNAME_VERIFICATION_SETTING, hostnameVerification)\n .put(\"ssl.truststore.path\", getDataPath(\"../ldap/support/ldaptrust.jks\"))\n .put(\"ssl.truststore.password\", \"changeit\");\n .put(ActiveDirectorySessionFactory.HOSTNAME_VERIFICATION_SETTING, hostnameVerification);\n if (useGlobalSSL == false) {\n builder.put(\"ssl.truststore.path\", getDataPath(\"../ldap/support/ldaptrust.jks\"))\n .put(\"ssl.truststore.password\", \"changeit\");\n }\n .put(ActiveDirectorySessionFactory.HOSTNAME_VERIFICATION_SETTING, hostnameVerification)\n .put(\"ssl.truststore.path\", getDataPath(\"../ldap/support/ldaptrust.jks\"))\n .put(\"ssl.truststore.password\", \"changeit\");\n .put(ActiveDirectorySessionFactory.HOSTNAME_VERIFICATION_SETTING, hostnameVerification);\n if (useGlobalSSL == false) {\n builder.put(\"ssl.truststore.path\", getDataPath(\"../ldap/support/ldaptrust.jks\"))\n .put(\"ssl.truststore.password\", \"changeit\");\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/cc6674068338d4b775ea23cd1ff1da6ee92bb82a", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " Settings settings = Settings.builder()\n .put(LdapTestCase.buildLdapSettings(new String[] { AD_LDAP_URL }, userTemplate, false))\n .put(\"ssl.truststore.path\", getDataPath(\"../ldap/support/ldaptrust.jks\"))\n .put(\"ssl.truststore.password\", \"changeit\")\n .build();\n Settings settings = LdapTestCase.buildLdapSettings(new String[] { AD_LDAP_URL }, userTemplate, false);\n if (useGlobalSSL == false) {\n settings = Settings.builder()\n .put(settings)\n .put(\"ssl.truststore.path\", getDataPath(\"../ldap/support/ldaptrust.jks\"))\n .put(\"ssl.truststore.password\", \"changeit\")\n .build();\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/cc6674068338d4b775ea23cd1ff1da6ee92bb82a", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " dataNodeClient.execute(DeleteLicenseAction.INSTANCE, new DeleteLicenseRequest());\n client.execute(DeleteLicenseAction.INSTANCE, new DeleteLicenseRequest());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/bd04cc9d1feacebd2d497d863522cd054647b341", "target_edit_idx": 2, "propagatable_edit_idx": [ 12 ] }, { "input": "import org.elasticsearch.common.Strings;\nimport org.elasticsearch.common.Strings;\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/elastic/elasticsearch/commit/4a1591f2a897fc8b15fdb9003bc8138e8725cea4", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " .setQuery(hasParentQuery(\"parent\", matchAllQuery()))\n .setQuery(hasParentQuery(\"parent\", matchAllQuery(), false))\n .setQuery(hasParentQuery(\"parent\", matchAllQuery()))\n .setQuery(hasParentQuery(\"parent\", matchAllQuery(), false))\n .setQuery(hasParentQuery(\"parent\", matchAllQuery()))\n .setQuery(hasParentQuery(\"parent\", matchAllQuery(), false))\n .setQuery(hasParentQuery(\"parent\", matchAllQuery()))\n .setQuery(hasParentQuery(\"parent\", matchAllQuery(), false))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/5f7220dea4514373e1676e619e2127b942dd68b7", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 5, 6 ] }, { "input": " .setQuery(hasChildQuery(\"child\", matchAllQuery()))\n .setQuery(hasChildQuery(\"child\", matchAllQuery(), ScoreMode.None))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/5f7220dea4514373e1676e619e2127b942dd68b7", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 7, 10, 11 ] }, { "input": " .setQuery(hasChildQuery(\"child\", matchAllQuery()))\n .setQuery(hasChildQuery(\"child\", matchAllQuery(), ScoreMode.None))\n .setQuery(hasChildQuery(\"child\", matchAllQuery()))\n .setQuery(hasChildQuery(\"child\", matchAllQuery(), ScoreMode.None))\n .setQuery(hasChildQuery(\"child\", matchAllQuery()))\n .setQuery(hasChildQuery(\"child\", matchAllQuery(), ScoreMode.None))\n .setQuery(hasChildQuery(\"child\", matchAllQuery()))\n .setQuery(hasChildQuery(\"child\", matchAllQuery(), ScoreMode.None))\n .setQuery(hasChildQuery(\"child\", termQuery(\"field1\", \"yellow\")))\n .setQuery(hasChildQuery(\"child\", termQuery(\"field1\", \"yellow\"), ScoreMode.None))\n .setQuery(hasChildQuery(\"child\", termQuery(\"field1\", \"yellow\")))\n .setQuery(hasChildQuery(\"child\", termQuery(\"field1\", \"yellow\"), ScoreMode.None))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/5f7220dea4514373e1676e619e2127b942dd68b7", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 7, 10, 11 ] }, { "input": " .setQuery(hasParentQuery(\"parent\", matchAllQuery()))\n .setQuery(hasParentQuery(\"parent\", matchAllQuery(), false))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/5f7220dea4514373e1676e619e2127b942dd68b7", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 2, 6 ] }, { "input": " .setQuery(hasChildQuery(\"child\", termQuery(\"field1\", \"yellow\")))\n .setQuery(hasChildQuery(\"child\", termQuery(\"field1\", \"yellow\"), ScoreMode.None))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/5f7220dea4514373e1676e619e2127b942dd68b7", "target_edit_idx": 10, "propagatable_edit_idx": [ 1, 3, 4, 7, 11 ] }, { "input": " assumeTrue(\"test cannot run with security manager enabled\", System.getSecurityManager() == null);\n Path path = createTempDir().resolve(\"key\");\n Path path = jimfs.getPath(randomAsciiOfLength(10)).resolve(\"key\");\n Files.createDirectory(path.getParent());\n assumeTrue(\"test cannot run with security manager enabled\", System.getSecurityManager() == null);\n Path path = createTempDir().resolve(\"key\");\n Path path = jimfs.getPath(randomAsciiOfLength(10)).resolve(\"key\");\n Files.createDirectories(path.getParent());\n assumeTrue(\"test cannot run with security manager enabled\", System.getSecurityManager() == null);\n Path path = createTempDir().resolve(\"key\");\n Path path = jimfs.getPath(randomAsciiOfLength(10)).resolve(\"key\");\n Files.createDirectories(path.getParent());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/323f80216d300cbda0fce844dd7e239c7676b8ae", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 10 ] }, { "input": " if (addedNode.dataNode()) {\n if (addedNode.isDataNode()) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.9, "commit_url": "https://github.com/elastic/elasticsearch/commit/dfeb9379ab81d6de63a42dfdc82a5feb1252f4e0", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 5, 6, 7, 8, 9 ] }, { "input": " if (!discoNode.dataNode()) {\n if (!discoNode.isDataNode()) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7, "commit_url": "https://github.com/elastic/elasticsearch/commit/dfeb9379ab81d6de63a42dfdc82a5feb1252f4e0", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 4, 6, 7, 8, 9 ] }, { "input": " public JsonSettingsLoader(boolean guardAgainstNullValuedSettings) {\n super(guardAgainstNullValuedSettings);\n public JsonSettingsLoader(boolean allowNullValues) {\n super(allowNullValues);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/4d27328a8337ef1214aa7637c0247103b3835d40", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 6, 7 ] }, { "input": " return new JsonSettingsLoader(true);\n return new JsonSettingsLoader(false);\n return new YamlSettingsLoader(true);\n return new YamlSettingsLoader(false);\n return new JsonSettingsLoader(true);\n return new JsonSettingsLoader(false);\n return new JsonSettingsLoader(false);\n return new JsonSettingsLoader(true);\n return new YamlSettingsLoader(false);\n return new YamlSettingsLoader(true);\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/elastic/elasticsearch/commit/4d27328a8337ef1214aa7637c0247103b3835d40", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": " final ElasticsearchParseException e = expectThrows(ElasticsearchParseException.class, () -> new JsonSettingsLoader(true).load(json));\n final ElasticsearchParseException e = expectThrows(ElasticsearchParseException.class, () -> new JsonSettingsLoader(false).load(json));\n final ElasticsearchParseException e = expectThrows(ElasticsearchParseException.class, () -> new YamlSettingsLoader(true).load(yaml));\n final ElasticsearchParseException e = expectThrows(ElasticsearchParseException.class, () -> new YamlSettingsLoader(false).load(yaml));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/4d27328a8337ef1214aa7637c0247103b3835d40", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " private void refreshTestCase(Boolean refresh, boolean shouldRefresh) {\n public void testRefreshTrueSkipsRefreshIfNoDestinationIndexes() throws Exception {\n refreshTestCase(true, false, false);\n }\n\n private void refreshTestCase(Boolean refresh, boolean addDestinationIndexes, boolean shouldRefresh) {\n refreshTestCase(null, false);\n refreshTestCase(null, true, false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/aaa4d57fff41c3ac2bef16a8b42fb7d4cd8821d3", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": " public void waitForBlockOnAllDataNodes(String repository, TimeValue timeout) throws InterruptedException {\n public void waitForBlockOnAnyDataNode(String repository, TimeValue timeout) throws InterruptedException {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/625695a92a3fc4c2850cd5d11ac5e739591beffc", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " private void addSimilarities(Map similaritySettings, Map providers, Map> similarities) {\n private Map addSimilarities(Map similaritySettings,\n Map> similarities) {\n Map providers = new HashMap<>(similarities.size());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/a70df69af45be60a0b6eaeb16a86ef848d505eaf", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "/** Rest integration test. runs against external cluster in 'mvn verify' */\n/** Rest integration test. Runs against a cluster started by {@code gradle integTest} */\n/** Rest integration test. runs against external cluster in 'mvn verify' */\n/** Rest integration test. Runs against a cluster started by {@code gradle integTest} */\n/** Rest integration test. runs against external cluster in 'mvn verify' */\n/** Rest integration test. Runs against a cluster started by {@code gradle integTest} */\n/** Rest integration test. runs against external cluster in 'mvn verify' */\n/** Rest integration test. Runs against a cluster started by {@code gradle integTest} */\n/** Rest integration test. runs against external cluster in 'mvn verify' */\n/** Rest integration test. Runs against a cluster started by {@code gradle integTest} */\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/74754952db4dc7688b666669645e0d7f3462e468", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 3, 5, 7 ] }, { "input": " // we run them all sequentially: start simple!\n\n // we run them all sequentially: start simple!\n\n // we run them all sequentially: start simple!\n\n // we run them all sequentially: start simple!\n\n // we run them all sequentially: start simple!\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/74754952db4dc7688b666669645e0d7f3462e468", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 10, 4, 6 ] }, { "input": " public static final boolean DEFAULT_NUMBER_COEERCE_POLICY = true;\n public static final boolean DEFAULT_NUMBER_COERCE_POLICY = true;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/1d26b4de22a7b0a5e374316a10dbbc3eb0068943", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5, 6, 7 ] }, { "input": " return longValue(DEFAULT_NUMBER_COEERCE_POLICY);\n return longValue(DEFAULT_NUMBER_COERCE_POLICY);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/elastic/elasticsearch/commit/1d26b4de22a7b0a5e374316a10dbbc3eb0068943", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4, 6, 7 ] }, { "input": " public Mapper.Builder parse(String name, Map node, ParserContext parserContext) throws MapperParsingException {\n StringFieldMapper.Builder builder = stringField(name);\n public Mapper.Builder parse(String fieldName, Map node, ParserContext parserContext) throws MapperParsingException {\n StringFieldMapper.Builder builder = stringField(fieldName);\n parseTextField(builder, name, node, parserContext);\n parseTextField(builder, fieldName, node, parserContext);\n throw new MapperParsingException(\"Analyzer [\" + propNode.toString() + \"] not found for field [\" + name + \"]\");\n throw new MapperParsingException(\"Analyzer [\" + propNode.toString() + \"] not found for field [\" + fieldName + \"]\");\n } else if (parseMultiField(builder, name, parserContext, propName, propNode)) {\n } else if (parseMultiField(builder, fieldName, parserContext, propName, propNode)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/elastic/elasticsearch/commit/7cb4baebf5e6e5314fe7544b29234b4369509042", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " throw new IllegalArgumentException(\"Can't parse [index] value [\" + index + \"], expected [true], [false], [no], [not_analyzed] or [analyzed]\");\n throw new IllegalArgumentException(\"Can't parse [index] value [\" + index + \"] for field [\" + fieldName + \"], expected [true], [false], [no], [not_analyzed] or [analyzed]\");\n throw new IllegalArgumentException(\"Can't parse [index] value [\" + index + \"], expected [true], [false], [no], [not_analyzed] or [analyzed]\");\n throw new IllegalArgumentException(\"Can't parse [index] value [\" + index + \"] for field [\" + fieldName + \"], expected [true], [false], [no], [not_analyzed] or [analyzed]\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/7cb4baebf5e6e5314fe7544b29234b4369509042", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " String[] values = headers.get(HttpHeaders.Names.CONTENT_TYPE);\n String[] values = header(HttpHeaders.Names.CONTENT_TYPE);\n String[] values = headers.get(HttpHeaders.Names.CONTENT_TYPE);\n String[] values = header(HttpHeaders.Names.CONTENT_TYPE);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/93a3d3f570558a74ba569d9de6704e3ff2f78dfb", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_id\", null, true, ShardRoutingState.STARTED, 1))\n .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_id\", null, true, ShardRoutingState.STARTED))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/8d70501f25fcb9d3c041c38d6a169093e8ddfd8d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_name\", null, true, ShardRoutingState.STARTED, 1))\n .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_name\", null, true, ShardRoutingState.STARTED))\n .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_id\", null, null, true, state, 1, new UnassignedInfo(UnassignedInfo.Reason.INDEX_CREATED, \"\")))\n .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_id\", null, null, true, state, new UnassignedInfo(UnassignedInfo.Reason.INDEX_CREATED, \"\")))\n .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_id\", null, true, ShardRoutingState.STARTED, 1))\n .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_id\", null, true, ShardRoutingState.STARTED))\n .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_name\", null, true, ShardRoutingState.STARTED, 1))\n .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_name\", null, true, ShardRoutingState.STARTED))\n .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_id\", null, true, ShardRoutingState.STARTED, 1))\n .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_id\", null, true, ShardRoutingState.STARTED))\n .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, null, true, ShardRoutingState.UNASSIGNED, 1, new UnassignedInfo(UnassignedInfo.Reason.INDEX_CREATED, \"\")))\n .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, null, true, ShardRoutingState.UNASSIGNED, new UnassignedInfo(UnassignedInfo.Reason.INDEX_CREATED, \"\")))\n .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, true, ShardRoutingState.STARTED, 1))\n .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, true, ShardRoutingState.STARTED))\n .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, true, ShardRoutingState.STARTED, 1))\n .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, true, ShardRoutingState.STARTED))\n .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, true, ShardRoutingState.STARTED, 1))\n .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, true, ShardRoutingState.STARTED))\n .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, true, ShardRoutingState.STARTED, 1))\n .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, true, ShardRoutingState.STARTED))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/8d70501f25fcb9d3c041c38d6a169093e8ddfd8d", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_name\", null, true, ShardRoutingState.STARTED, 1))\n .addShard(TestShardRouting.newShardRouting(index, 0, \"_node_name\", null, true, ShardRoutingState.STARTED))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/8d70501f25fcb9d3c041c38d6a169093e8ddfd8d", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9 ] }, { "input": " .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, null, true, ShardRoutingState.UNASSIGNED, 1, new UnassignedInfo(UnassignedInfo.Reason.INDEX_CREATED, \"\")))\n .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, null, true, ShardRoutingState.UNASSIGNED, new UnassignedInfo(UnassignedInfo.Reason.INDEX_CREATED, \"\")))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/8d70501f25fcb9d3c041c38d6a169093e8ddfd8d", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8, 9 ] }, { "input": " .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, true, ShardRoutingState.STARTED, 1))\n .addShard(TestShardRouting.newShardRouting(WatchStore.INDEX, 0, \"_node_id\", null, true, ShardRoutingState.STARTED))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/8d70501f25fcb9d3c041c38d6a169093e8ddfd8d", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 9 ] }, { "input": " settingsModule.registerSettingsFilter(AwsEc2Service.CLOUD_AWS.KEY);\n settingsModule.registerSettingsFilter(AwsEc2Service.CLOUD_AWS.SECRET);\n settingsModule.registerSettingsFilter(AwsEc2Service.CLOUD_AWS.PROXY_PASSWORD);\n settingsModule.registerSettingsFilter(AwsEc2Service.CLOUD_EC2.KEY);\n settingsModule.registerSettingsFilter(AwsEc2Service.CLOUD_EC2.SECRET);\n settingsModule.registerSettingsFilter(AwsEc2Service.CLOUD_EC2.PROXY_PASSWORD);\n settingsModule.registerSettingsFilterIfMissing(AwsEc2Service.CLOUD_AWS.KEY);\n settingsModule.registerSettingsFilterIfMissing(AwsEc2Service.CLOUD_AWS.SECRET);\n settingsModule.registerSettingsFilterIfMissing(AwsEc2Service.CLOUD_AWS.PROXY_PASSWORD);\n settingsModule.registerSettingsFilterIfMissing(AwsEc2Service.CLOUD_EC2.KEY);\n settingsModule.registerSettingsFilterIfMissing(AwsEc2Service.CLOUD_EC2.SECRET);\n settingsModule.registerSettingsFilterIfMissing(AwsEc2Service.CLOUD_EC2.PROXY_PASSWORD);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/elastic/elasticsearch/commit/e1cf5e745d962de7adaae6200d7940d69eb74957", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " threadPool.executor(ThreadPool.Names.INGEST).execute(() -> {\n threadPool.executor(ThreadPool.Names.INDEX).execute(() -> {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/63ee2224f771d23874bbc6e081b606618bcf2b73", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " if (Settings.getSettingsRequireUnits()) {\n throw new ElasticsearchParseException(\"failed to parse setting [{}] with value [{}] as a size in bytes: unit is missing or unrecognized\", settingName, sValue);\n } else {\n // Leniency default to bytes:\n bytes = Long.parseLong(sValue);\n }\n throw new ElasticsearchParseException(\"failed to parse setting [{}] with value [{}] as a size in bytes: unit is missing or unrecognized\", settingName, sValue);\n if (Settings.getSettingsRequireUnits()) {\n // Missing units:\n throw new ElasticsearchParseException(\"Failed to parse setting [{}] with value [{}] as a time value: unit is missing or unrecognized\", settingName, sValue);\n } else {\n // Leniency default to msec for bwc:\n millis = Long.parseLong(sValue);\n }\n // Missing units:\n throw new ElasticsearchParseException(\"Failed to parse setting [{}] with value [{}] as a time value: unit is missing or unrecognized\", settingName, sValue);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/148557a61c18ffe4ff20173eca2c6a61bc213f4a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "import org.elasticsearch.index.query.IndexQueryParserService;\nimport org.elasticsearch.index.query.IndexQueryParserService;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/b7b9fa3ba5e0fd80adf6cc772d6c1127fda47d12", "target_edit_idx": 1, "propagatable_edit_idx": [ 9 ] }, { "input": " private final IndexQueryParserService parserService;\n private final QueryShardContext queryShardContext;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/b7b9fa3ba5e0fd80adf6cc772d6c1127fda47d12", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7, 11, 13 ] }, { "input": " * Translates the provided index expression into actual concrete indices.\n * Translates the provided index expression into actual concrete indices, properly deduplicated.\n * Translates the provided index expression into actual concrete indices.\n * Translates the provided index expression into actual concrete indices, properly deduplicated.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/7eaac7b7061bfea573bbc9ed33933318492a28b2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " assertThat(recordedRequest.getPath(), equalTo(\"/_template/marvel\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/.marvel-es\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/marvel\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/.marvel-es\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/marvel\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/.marvel-es\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/marvel\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/.marvel-es\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/marvel\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/.marvel-es\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/marvel\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/.marvel-es\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/marvel\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/.marvel-es\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/marvel\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/.marvel-es\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/marvel\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/.marvel-es\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/marvel\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/.marvel-es\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/marvel\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/.marvel-es\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/marvel\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/.marvel-es\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/marvel\"));\n assertThat(recordedRequest.getPath(), equalTo(\"/_template/.marvel-es\"));\n", "class": "clone", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/elastic/elasticsearch/commit/f16dabc2bb8d06874b2256de7aef95debb493368", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " void clear(IndexReader reader);\n\n void clear(IndexReader reader);\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/6120f26c40351835e923a585b18300c8eaa0a7ed", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\n @Override\n public void clear(IndexReader reader) {\n }\n @Override\n public void clear(IndexReader reader) {\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.18181818181818182, "commit_url": "https://github.com/elastic/elasticsearch/commit/6120f26c40351835e923a585b18300c8eaa0a7ed", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " @Override\n public void clear(IndexReader reader) {\n throw new UnsupportedOperationException(UNSUPPORTED);\n }\n\n @Override\n public void clear(IndexReader reader) {\n throw new UnsupportedOperationException(UNSUPPORTED);\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/elastic/elasticsearch/commit/6120f26c40351835e923a585b18300c8eaa0a7ed", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "import static java.util.Collections.singleton;\nimport static java.util.Collections.singleton;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/7fe90ba03c476326e5b57a3c639b7a7cc1565afd", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " private static final Set FORBIDDEN_INDEX_SETTINGS = singleton(\"index.mapper.dynamic\");\n private static final String FORBIDDEN_INDEX_SETTING = \"index.mapper.dynamic\";\n private static final Set FORBIDDEN_INDEX_SETTINGS = singleton(\"index.mapper.dynamic\");\n private static final String FORBIDDEN_INDEX_SETTING = \"index.mapper.dynamic\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/7fe90ba03c476326e5b57a3c639b7a7cc1565afd", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " if (FORBIDDEN_INDEX_SETTINGS.contains(name)) {\n if (FORBIDDEN_INDEX_SETTING.contains(name)) {\n if (FORBIDDEN_INDEX_SETTINGS.contains(name)) {\n if (FORBIDDEN_INDEX_SETTING.equals(name)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7fe90ba03c476326e5b57a3c639b7a7cc1565afd", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "import org.elasticsearch.index.mapper.*;\nimport org.elasticsearch.index.mapper.Mapping;\n", "class": "clone", "binary_label": 1, "regression_label": 0.043478260869565216, "commit_url": "https://github.com/elastic/elasticsearch/commit/152775c5155b74457e1ed690915870918db0b79d", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " cluster2.wipe();\n cluster2.wipe(Collections.emptySet());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/04178cbc30de0a79dac98842e2c79f1c18b3247e", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " remoteCluster.wipe();\n remoteCluster.wipe(Collections.emptySet());\n cluster().wipe();\n cluster().wipe(Collections.emptySet());\n cluster2.wipe();\n cluster2.wipe(Collections.emptySet());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/04178cbc30de0a79dac98842e2c79f1c18b3247e", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " Path dir = getDataPath(\"/indices/bwc\");\n try (DirectoryStream stream = Files.newDirectoryStream(dir, prefix + \"-*.zip\")) {\n try (DirectoryStream stream = Files.newDirectoryStream(getBwcIndicesPath(), prefix + \"-*.zip\")) {\n Path dir = getDataPath(\"/indices/bwc\");\n try (DirectoryStream stream = Files.newDirectoryStream(dir, \"index-*.zip\")) {\n try (DirectoryStream stream = Files.newDirectoryStream(getBwcIndicesPath(), \"index-*.zip\")) {\n Path dir = getDataPath(\"/indices/bwc\");\n try (DirectoryStream stream = Files.newDirectoryStream(dir, \"index-*.zip\")) {\n try (DirectoryStream stream = Files.newDirectoryStream(getBwcIndicesPath(), \"index-*.zip\")) {\n Path dir = getDataPath(\"/indices/bwc\");\n try (DirectoryStream stream = Files.newDirectoryStream(dir, \"index-*.zip\")) {\n try (DirectoryStream stream = Files.newDirectoryStream(getBwcIndicesPath(), \"index-*.zip\")) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/5c810eff599d1ad0bc0d6613021f8243ff4338f5", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": " .put(\"path.repo\", reposRoot())\n .put(\"path.repo\", getBwcIndicesPath())\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/5c810eff599d1ad0bc0d6613021f8243ff4338f5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " LDAPConnectionOptions options = factory.connectionOptions(Settings.EMPTY);\n LDAPConnectionOptions options = SessionFactory.connectionOptions(Settings.EMPTY);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/5dd5f525b53bcb2627add04dd4fcfac7c42b9e76", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " logger.error(\"failed to process triggered events [{}]\", e, Iterables.toArray(events, TriggerEvent.class));\n logger.error(\"failed to process triggered events [{}]\", e, (Object)Iterables.toArray(events, TriggerEvent.class));\n logger.error(\"failed to process triggered events [{}]\", e, Iterables.toArray(events, TriggerEvent.class));\n logger.error(\"failed to process triggered events [{}]\", e, (Object)Iterables.toArray(events, TriggerEvent.class));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/5dd5f525b53bcb2627add04dd4fcfac7c42b9e76", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " protected boolean supportsBoostAndQueryNameParsing() {\n protected boolean supportsBoostAndQueryName() {\n protected boolean supportsBoostAndQueryNameParsing() {\n protected boolean supportsBoostAndQueryName() {\n protected boolean supportsBoostAndQueryNameParsing() {\n protected boolean supportsBoostAndQueryName() {\n protected boolean supportsBoostAndQueryNameParsing() {\n protected boolean supportsBoostAndQueryName() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/50c43c9328b248cd5357ef90fee57ec9f31772dc", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 10, 11 ] }, { "input": " protected boolean supportsBoostAndQueryNameParsing() {\n protected boolean supportsBoostAndQueryName() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/50c43c9328b248cd5357ef90fee57ec9f31772dc", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 10, 6 ] }, { "input": " tribeNodeCluster = new InternalTestCluster(\"network\", randomLong(), createTempDir(), 1, 1, tribeClusterName, tribeSettingsSource, 0, false, TRIBE_CLUSTER_NODE_PREFIX);\n tribeNodeCluster = new InternalTestCluster(\"network\", randomLong(), createTempDir(), 1, 1, tribeClusterName, tribeSettingsSource, 0, false, TRIBE_CLUSTER_NODE_PREFIX, true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/5900a65085ff65e535ef505ea6f10a81987d3909", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " if (queryBuilder.fields().size() > 1 && (!\"\".equals(queryBuilder.value()))) {\n if (\"\".equals(queryBuilder.value())) {\n assertTrue(\"Query should have been MatchNoDocsQuery but was \" + query.getClass().getName(), query instanceof MatchNoDocsQuery);\n } else if (queryBuilder.fields().size() > 1) {\n } else if (queryBuilder.fields().size() == 1 && (!\"\".equals(queryBuilder.value()))) {\n } else if (queryBuilder.fields().size() <= 1) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/11b41f1d6861a62458dee412834b8505e30744e4", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " licensesClientService.register(FEATURE_NAME, TRIAL_LICENSE_OPTIONS, expirationLoggers, new InternalListener());\n licensesClientService.register(FEATURE_NAME, TRIAL_LICENSE_OPTIONS, expirationLoggers, null, new InternalListener());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/0b9021ee87270a9ff4d11064230dc143595afda0", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5 ] }, { "input": " clientService.register(FEATURE_NAME, TRIAL_LICENSE_OPTIONS, expirationLoggers, new InternalListener(this));\n clientService.register(FEATURE_NAME, TRIAL_LICENSE_OPTIONS, expirationLoggers, null, new InternalListener(this));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/0b9021ee87270a9ff4d11064230dc143595afda0", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5 ] }, { "input": " String expectedStagingUrl = String.format(Locale.ROOT, \"http://download.elastic.co/elasticsearch/staging/org/elasticsearch/plugin/%s/%s/%s-%s.zip\",\n randomPluginName, Version.CURRENT.number(), randomPluginName, Version.CURRENT.number());\n String expectedStagingUrl = String.format(Locale.ROOT, \"http://download.elastic.co/elasticsearch/staging/%s/org/elasticsearch/plugin/%s/%s/%s-%s.zip\",\n Build.CURRENT.hashShort(), randomPluginName, Version.CURRENT.number(), randomPluginName, Version.CURRENT.number());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/cedbd20f2ccc948f47b1c7fff7c98bae0962e124", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " connectionPool = createConnectionPool(settings, serverSet, timeout, logger);\n connectionPool = createConnectionPool(config, serverSet, timeout, logger);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3, "commit_url": "https://github.com/elastic/elasticsearch/commit/571c04dd790a0fa2200627b09ac13fa2ece1bde5", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " LDAPConnectionPool connectionPool = LdapUserSearchSessionFactory.createConnectionPool(config.settings(), new SingleServerSet(\"localhost\", ldapServer.getListenPort()), TimeValue.timeValueSeconds(5), NoOpLogger.INSTANCE);\n LDAPConnectionPool connectionPool = LdapUserSearchSessionFactory.createConnectionPool(config, new SingleServerSet(\"localhost\", ldapServer.getListenPort()), TimeValue.timeValueSeconds(5), NoOpLogger.INSTANCE);\n LDAPConnectionPool connectionPool = LdapUserSearchSessionFactory.createConnectionPool(config.settings(), new SingleServerSet(\"localhost\", ldapServer.getListenPort()), TimeValue.timeValueSeconds(5), NoOpLogger.INSTANCE);\n LDAPConnectionPool connectionPool = LdapUserSearchSessionFactory.createConnectionPool(config, new SingleServerSet(\"localhost\", ldapServer.getListenPort()), TimeValue.timeValueSeconds(5), NoOpLogger.INSTANCE);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/571c04dd790a0fa2200627b09ac13fa2ece1bde5", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " public List readNamedWritableList() throws IOException {\n public List readNamedWriteableList() throws IOException {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/b2606d98dfdd0255f98eb19e37fc3451665d72e4", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 5, 6, 7, 9, 11 ] }, { "input": " out.writeNamedWritableList(this.filters);\n out.writeNamedWriteableList(this.filters);\n out.writeNamedWritableList(this.mustClauses);\n out.writeNamedWritableList(this.mustNotClauses);\n out.writeNamedWritableList(this.shouldClauses);\n out.writeNamedWritableList(this.filterClauses);\n out.writeNamedWriteableList(this.mustClauses);\n out.writeNamedWriteableList(this.mustNotClauses);\n out.writeNamedWriteableList(this.shouldClauses);\n out.writeNamedWriteableList(this.filterClauses);\n public void writeNamedWritableList(List list) throws IOException {\n public void writeNamedWriteableList(List list) throws IOException {\n out.writeNamedWritableList(this.queries);\n out.writeNamedWriteableList(this.queries);\n out.writeNamedWritableList(this.filters);\n out.writeNamedWriteableList(this.filters);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/elastic/elasticsearch/commit/b2606d98dfdd0255f98eb19e37fc3451665d72e4", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 1, 10, 12 ] }, { "input": " queryBuilders = in.readNamedWritableList();\n queryBuilders = in.readNamedWriteableList();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/b2606d98dfdd0255f98eb19e37fc3451665d72e4", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 4, 5, 7, 9, 11 ] }, { "input": " List queryBuilders = in.readNamedWritableList();\n List queryBuilders = in.readNamedWriteableList();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/b2606d98dfdd0255f98eb19e37fc3451665d72e4", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 2, 4, 5, 6, 7, 11 ] }, { "input": "import org.elasticsearch.client.ClusterAdminClient;\nimport org.elasticsearch.client.ClusterAdminClient;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/fb7cbbe581053d96958a0cbe5a7fdd0445f36e35", "target_edit_idx": 0, "propagatable_edit_idx": [ 11 ] }, { "input": " lastCommittedSegmentInfos = store.readLastCommittedSegmentsInfo();\n lastCommittedSegmentInfos = readLastCommittedSegmentInfos(searcherManager);\n this.lastCommittedSegmentInfos = store.readLastCommittedSegmentsInfo();\n this.lastCommittedSegmentInfos = readLastCommittedSegmentInfos(searcherManager);\n lastCommittedSegmentInfos = store.readLastCommittedSegmentsInfo();\n lastCommittedSegmentInfos = readLastCommittedSegmentInfos(searcherManager);\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/elastic/elasticsearch/commit/6646881bb6176d7761aaaf9bc83788e3055670f3", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " .field(\"_id\", 1)\n .field(\"_id\", 1)\n .field(\"_id\", 1)\n .field(\"_id\", 1)\n .field(\"_id\", 1)\n .field(\"_id\", 1)\n", "class": "clone", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/elastic/elasticsearch/commit/d8e595b76a03a00bf8668ed95de23ec26154628d", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 6, 8, 10, 12 ] }, { "input": " ParseContext.Document doc = docMapper.parse(json).rootDoc();\n ParseContext.Document doc = docMapper.parse(\"person\", \"1\", json).rootDoc();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/d8e595b76a03a00bf8668ed95de23ec26154628d", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 7, 9, 11, 13 ] }, { "input": " ParseContext.Document doc = docMapper.parse(json).rootDoc();\n ParseContext.Document doc = docMapper.parse(\"person\", \"1\", json).rootDoc();\n ParseContext.Document doc = docMapper.parse(json).rootDoc();\n ParseContext.Document doc = docMapper.parse(\"person\", \"1\", json).rootDoc();\n ParseContext.Document doc = docMapper.parse(json).rootDoc();\n ParseContext.Document doc = docMapper.parse(\"person\", \"1\", json).rootDoc();\n ParseContext.Document doc = docMapper.parse(json).rootDoc();\n ParseContext.Document doc = docMapper.parse(\"person\", \"1\", json).rootDoc();\n ParseContext.Document doc = docMapper.parse(xcb.bytes()).rootDoc();\n ParseContext.Document doc = docMapper.parse(\"person\", \"1\", xcb.bytes()).rootDoc();\n ParseContext.Document doc = docMapper.parse(xcb.bytes()).rootDoc();\n ParseContext.Document doc = docMapper.parse(\"person\", \"1\", xcb.bytes()).rootDoc();\n ParseContext.Document doc = docMapper.parse(json).rootDoc();\n ParseContext.Document doc = docMapper.parse(\"person\", \"1\", json).rootDoc();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/d8e595b76a03a00bf8668ed95de23ec26154628d", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 3, 5, 9, 11, 13 ] }, { "input": " if (count != 0 && valueFormatter != null) {\n if (count != 0 && valueFormatter != null && !(valueFormatter instanceof ValueFormatter.Raw)) {\n if (count != 0 && valueFormatter != null) {\n if (count != 0 && valueFormatter != null && !(valueFormatter instanceof ValueFormatter.Raw)) {\n if (count != 0 && valueFormatter != null) {\n if (count != 0 && valueFormatter != null && !(valueFormatter instanceof ValueFormatter.Raw)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/elastic/elasticsearch/commit/82df50a039551cf6c469f06c3db0f1d6896eadb3", "target_edit_idx": 0, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " if (valueFormatter != null) {\n if (valueFormatter != null && !(valueFormatter instanceof ValueFormatter.Raw)) {\n if (valueFormatter != null) {\n if (valueFormatter != null && !(valueFormatter instanceof ValueFormatter.Raw)) {\n if (valueFormatter != null) {\n if (valueFormatter != null && !(valueFormatter instanceof ValueFormatter.Raw)) {\n if (valueFormatter != null) {\n if (valueFormatter != null && !(valueFormatter instanceof ValueFormatter.Raw)) {\n if (valueFormatter != null) {\n if (valueFormatter != null && !(valueFormatter instanceof ValueFormatter.Raw)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/elastic/elasticsearch/commit/82df50a039551cf6c469f06c3db0f1d6896eadb3", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 9, 4, 5 ] }, { "input": " if (hasValue && valueFormatter != null) {\n if (hasValue && valueFormatter != null && !(valueFormatter instanceof ValueFormatter.Raw)) {\n if (hasValue && valueFormatter != null) {\n if (hasValue && valueFormatter != null && !(valueFormatter instanceof ValueFormatter.Raw)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/elastic/elasticsearch/commit/82df50a039551cf6c469f06c3db0f1d6896eadb3", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " @LuceneTestCase.AwaitsFix(bugUrl = \"https://github.com/elasticsearch/elasticsearch/issues/9849\")\n @LuceneTestCase.AwaitsFix(bugUrl = \"https://github.com/elasticsearch/elasticsearch/issues/9849\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/c19b7a2f61de08cf7fe4c12da9a5eb65eaabc5c6", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " if (settings.getAsBoolean(\"shield.audit.logfile.prefix.node_host_address\", false)) {\n if (settings.getAsBoolean(\"shield.audit.logfile.prefix.emit_node_host_address\", false)) {\n if (settings.getAsBoolean(\"shield.audit.logfile.prefix.node_host_name\", false)) {\n if (settings.getAsBoolean(\"shield.audit.logfile.prefix.emit_node_host_name\", false)) {\n if (settings.getAsBoolean(\"shield.audit.logfile.prefix.node_name\", true)) {\n if (settings.getAsBoolean(\"shield.audit.logfile.prefix.emit_node_name\", true)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/2c55d85aa5553d296a0515bbe92b5e3f34d46112", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " static void assertNotUpgraded(HttpRequestBuilder httpClient, String index) throws Exception {\n public static void assertNotUpgraded(HttpRequestBuilder httpClient, String index) throws Exception {\n static void assertUpgraded(HttpRequestBuilder httpClient, String index) throws Exception {\n public static void assertUpgraded(HttpRequestBuilder httpClient, String index) throws Exception {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7f9ffea97c3f86fb26578ff2d0d0e48694c7df0e", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " return InternalEngineHolder.DEFAULT_REFRESH_ITERVAL;\n return InternalEngineHolder.DEFAULT_REFRESH_INTERVAL;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/c9d63d3482a0792d2dcf882e4299bba7281e818e", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " ESLicense inputLicense = generateSignedLicense(randomRealisticUnicodeOfCodepointLengthBetween(5, 15),\n ESLicense inputLicense = generateSignedLicense(\"feature__1\",\n ESLicense inputLicense = generateSignedLicense(randomRealisticUnicodeOfCodepointLengthBetween(5, 15),\n ESLicense inputLicense = generateSignedLicense(\"feature__1\",\n ESLicense esLicense = generateSignedLicense(randomRealisticUnicodeOfCodepointLengthBetween(5, 15),\n ESLicense esLicense = generateSignedLicense(\"feature__\" + i,\n ESLicense esLicense = generateSignedLicense(randomRealisticUnicodeOfCodepointLengthBetween(5, 15),\n ESLicense esLicense = generateSignedLicense(\"feature__\" + i,\n ESLicense signedLicense = generateSignedLicense(randomRealisticUnicodeOfCodepointLengthBetween(5, 15)\n ESLicense signedLicense = generateSignedLicense(\"feature__1\"\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/bb929c7470bbad1be3693c8995107d89ebb52e2e", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": " long maxdurationInMilliSeconds = 1200;\n long maxdurationInMilliSeconds = 1200;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f50deecf12c4577a1a1ddf24a1a98b0e163b5076", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " Collection responses = nettyHttpClient.sendRequests(transportAddress.address(), maxdurationInMilliSeconds, requests.toArray(new String[]{}));\n Collection responses = nettyHttpClient.sendRequests(transportAddress.address(), requests.toArray(new String[]{}));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f50deecf12c4577a1a1ddf24a1a98b0e163b5076", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 7 ] }, { "input": " createIndex(\"test\");\n assertAcked(client().admin().indices().prepareCreate(\"test\").setSettings(\n ImmutableSettings.settingsBuilder()\n // Always run CheckIndex in the end:\n .put(MockFSDirectoryService.CHECK_INDEX_ON_CLOSE, true).build()));\n createIndex(\"test\");\n assertAcked(client().admin().indices().prepareCreate(\"test\").setSettings(\n ImmutableSettings.settingsBuilder()\n // Always run CheckIndex in the end:\n .put(MockFSDirectoryService.CHECK_INDEX_ON_CLOSE, true).build()));\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7ca64237a8dd81892a0b6df38841a75c2e719c28", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " if (shieldUpstreamHandler != null) {\n pipeline.addFirst(\"ipfilter\", shieldUpstreamHandler);\n }\n if (shieldUpstreamHandler != null) {\n pipeline.addFirst(\"ipfilter\", shieldUpstreamHandler);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/d604c63527efc7a008ffad283ae0a69306dd4c01", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " // update how long it takes if we are still recovering...\n if (peerRecoveryStatus.recoveryState().getTimer().startTime() > 0 && peerRecoveryStatus.stage() != RecoveryState.Stage.DONE) {\n peerRecoveryStatus.recoveryState().getTimer().time(System.currentTimeMillis() - peerRecoveryStatus.recoveryState().getTimer().startTime());\n if (recoveryStatus.recoveryState().getTimer().startTime() > 0 && recoveryStatus.stage() != RecoveryState.Stage.DONE) {\n recoveryStatus.recoveryState().getTimer().time(System.currentTimeMillis() - recoveryStatus.recoveryState().getTimer().startTime());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/43a5cbe9bee92898056db7ba0db2d548514a16bd", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " ExternalNode(File path, String clusterName, long seed) {\n ExternalNode(File path, String clusterName, long seed, NodeSettingsSource nodeSettingsSource) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1875, "commit_url": "https://github.com/elastic/elasticsearch/commit/eddb378baec7a452928492fdcd1f037ff92ac1ca", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 7 ] }, { "input": "\n synchronized ExternalNode start(Client localNode, Settings settings, String nodeName, String clusterName) throws IOException, InterruptedException {\n ExternalNode externalNode = new ExternalNode(path, clusterName, random.nextLong());\n synchronized ExternalNode start(Client localNode, Settings defaultSettings, String nodeName, String clusterName, int nodeOrdinal) throws IOException, InterruptedException {\n ExternalNode externalNode = new ExternalNode(path, clusterName, random.nextLong(), nodeSettingsSource);\n Settings settings = ImmutableSettings.builder().put(nodeSettingsSource.settings(nodeOrdinal)).put(defaultSettings).build();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/eddb378baec7a452928492fdcd1f037ff92ac1ca", "target_edit_idx": 10, "propagatable_edit_idx": [ 0 ] }, { "input": " indexRandom(true, builders);\n indexRandom(true, false, builders);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/223550bf3c04769074ca381e6b0d774ef0bf5a3e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "import java.util.HashMap;\nimport java.util.Map;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/047119d92e669292646f69025b9115d466a5b1eb", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " private NodeAndClient buildNode(int nodeId, long seed, Settings settings) {\n private NodeAndClient buildNode(int nodeId, long seed, Settings settings, Version version) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/7d3f49c43b23a0a4db2feafe20a0e28baf39f164", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 7, 10 ] }, { "input": " int numChildDocs = random().nextInt(TEST_NIGHTLY ? 100 : 25);\n int numChildDocs;\n if (rarely()) {\n numChildDocs = random().nextInt(TEST_NIGHTLY ? 100 : 25);\n } else {\n numChildDocs = random().nextInt(TEST_NIGHTLY ? 40 : 10);\n }\n int numChildDocs = random().nextInt(TEST_NIGHTLY ? 100 : 25);\n int numChildDocs;\n if (rarely()) {\n numChildDocs = random().nextInt(TEST_NIGHTLY ? 100 : 25);\n } else {\n numChildDocs = random().nextInt(TEST_NIGHTLY ? 40 : 10);\n }\n int numChildDocs = random().nextInt(TEST_NIGHTLY ? 100 : 25);\n int numChildDocs;\n if (rarely()) {\n numChildDocs = random().nextInt(TEST_NIGHTLY ? 100 : 25);\n } else {\n numChildDocs = random().nextInt(TEST_NIGHTLY ? 40 : 10);\n }\n int numChildDocs = random().nextInt(TEST_NIGHTLY ? 100 : 25);\n int numChildDocs;\n if (rarely()) {\n numChildDocs = random().nextInt(TEST_NIGHTLY ? 100 : 25);\n } else {\n numChildDocs = random().nextInt(TEST_NIGHTLY ? 40 : 10);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/8fda8aaabfa2e99e140093d8949fdf9fc72605be", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 4, 7 ] }, { "input": " for (String childValue : childValues) {\n int max = numUniqueChildValues / 4;\n for (int i = 0; i < max; i++) {\n String childValue = childValues[random().nextInt(numUniqueChildValues)];\n for (String childValue : childValues) {\n int max = numUniqueChildValues / 4;\n for (int i = 0; i < max; i++) {\n String childValue = childValues[random().nextInt(numUniqueChildValues)];\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/elastic/elasticsearch/commit/8fda8aaabfa2e99e140093d8949fdf9fc72605be", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " for (String parentValue : parentValues) {\n int max = numUniqueParentValues / 4;\n for (int i = 0; i < max; i++) {\n String parentValue = parentValues[random().nextInt(numUniqueParentValues)];\n for (String parentValue : parentValues) {\n int max = numUniqueParentValues / 4;\n for (int i = 0; i < max; i++) {\n String parentValue = parentValues[random().nextInt(numUniqueParentValues)];\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/elastic/elasticsearch/commit/8fda8aaabfa2e99e140093d8949fdf9fc72605be", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": " wipeIndices();\n wipeRepositories();\n wipeIndices();\n wipeRepositories();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/a305fb08d68116ecb8ef0846e9901cb9b6de5c8f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "import org.junit.Before;\nimport org.junit.Before;\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/elastic/elasticsearch/commit/a305fb08d68116ecb8ef0846e9901cb9b6de5c8f", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " @Before\n public final void beforeSnapshots() {\n wipeRepositories();\n }\n\n @Before\n public final void beforeSnapshots() {\n wipeRepositories();\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/a305fb08d68116ecb8ef0846e9901cb9b6de5c8f", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " multiSearchRequest.add(request.content(), request.contentUnsafe(), indices, types, request.param(\"search_type\"), ignoreIndices, allowExplicitIndex);\n multiSearchRequest.add(request.content(), request.contentUnsafe(), indices, types, request.param(\"search_type\"), request.param(\"routing\"), ignoreIndices, allowExplicitIndex);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/8f88d0aa4a7ec5b9379d7a1c5a532de3865c1bb1", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " int defaultSize = defaultSettings.getAsInt(\"size\", boundedNumberOfProcessors() * 5);\n int defaultSize = defaultSettings.getAsInt(\"size\", EsExecutors.boundedNumberOfProcessors());\n int defaultSize = defaultSettings.getAsInt(\"size\", boundedNumberOfProcessors() * 5);\n int defaultSize = defaultSettings.getAsInt(\"size\", EsExecutors.boundedNumberOfProcessors());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/d442e089acc712d4dd28f213a88a2b4595df9f0c", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " handler.handleException(rtx);\n try {\n handler.handleException(rtx);\n } catch (Throwable t) {\n logger.error(\"failed to handle exception response [{}]\", t, handler);\n }\n handler.handleException(rtx);\n try {\n handler.handleException(rtx);\n } catch (Throwable e) {\n logger.error(\"failed to handle exception response [{}]\", e, handler);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/29d337c44b7dd263a0fea2e0ef0de4b2e9b57657", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " builder.locale(parseLocal(propNode.toString()));\n builder.locale(parseLocale(propNode.toString()));\n public static Locale parseLocal(String locale) {\n public static Locale parseLocale(String locale) {\n assertThat(Locale.GERMAN, equalTo(DateFieldMapper.parseLocal(\"de\")));\n assertThat(Locale.GERMANY, equalTo(DateFieldMapper.parseLocal(\"de_DE\")));\n assertThat(new Locale(\"de\",\"DE\",\"DE\"), equalTo(DateFieldMapper.parseLocal(\"de_DE_DE\")));\n assertThat(Locale.GERMAN, equalTo(DateFieldMapper.parseLocale(\"de\")));\n assertThat(Locale.GERMANY, equalTo(DateFieldMapper.parseLocale(\"de_DE\")));\n assertThat(new Locale(\"de\",\"DE\",\"DE\"), equalTo(DateFieldMapper.parseLocale(\"de_DE_DE\")));\n DateFieldMapper.parseLocal(\"de_DE_DE_DE\");\n DateFieldMapper.parseLocale(\"de_DE_DE_DE\");\n assertThat(Locale.ROOT, equalTo(DateFieldMapper.parseLocal(\"\")));\n assertThat(Locale.ROOT, equalTo(DateFieldMapper.parseLocal(\"ROOT\")));\n assertThat(Locale.ROOT, equalTo(DateFieldMapper.parseLocale(\"\")));\n assertThat(Locale.ROOT, equalTo(DateFieldMapper.parseLocale(\"ROOT\")));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/af4205fd30b0f15c4d9b3c72e7e44bf5803c099b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " TokenStream tokenStream = doc.rootDoc().getField(\"date_field_en\").tokenStream(defaultMapper.indexAnalyzer());\n TokenStream tokenStream = doc.rootDoc().getField(fieldA).tokenStream(defaultMapper.indexAnalyzer());\n tokenStream = doc.rootDoc().getField(\"date_field_de\").tokenStream(defaultMapper.indexAnalyzer());\n tokenStream = doc.rootDoc().getField(fieldB).tokenStream(defaultMapper.indexAnalyzer());\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/af4205fd30b0f15c4d9b3c72e7e44bf5803c099b", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " private volatile ByteSizeValue maxSizePerSec;\n private volatile ByteSizeValue maxBytesPerSec;\n rateLimiter = new SimpleRateLimiter(maxSizePerSec.mbFrac());\n rateLimiter = new SimpleRateLimiter(maxBytesPerSec.mbFrac());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/6d5805c90102894c9f2261d6544b7cd5f4fa1f76", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " out.writeVLong(makePositive(entry.getValue().docCount()));\n out.writeVLong(makePositive(entry.getValue().sumTotalTermFreq()));\n out.writeVLong(makePositive(entry.getValue().sumDocFreq()));\n out.writeVLong(addOne(entry.getValue().docCount()));\n out.writeVLong(addOne(entry.getValue().sumTotalTermFreq()));\n out.writeVLong(addOne(entry.getValue().sumDocFreq()));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/elastic/elasticsearch/commit/436e23b8d4fb5271263256cb163d8d59722f8d6b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 5 ] }, { "input": " public static long makePositive(long value) {\n assert Math.signum(value+1) >= 0; \n return value+1;\n public static long addOne(long value) {\n assert value + 1 >= 0;\n return value + 1;\n out.writeVLong(makePositive(entry.getValue().docCount()));\n out.writeVLong(makePositive(entry.getValue().sumTotalTermFreq()));\n out.writeVLong(makePositive(entry.getValue().sumDocFreq()));\n out.writeVLong(addOne(entry.getValue().docCount()));\n out.writeVLong(addOne(entry.getValue().sumTotalTermFreq()));\n out.writeVLong(addOne(entry.getValue().sumDocFreq()));\n out.writeVLong(makePositive(termStatistic.totalTermFreq())); \n out.writeVLong(addOne(termStatistic.totalTermFreq())); \n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/elastic/elasticsearch/commit/436e23b8d4fb5271263256cb163d8d59722f8d6b", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " return build(reader, builder, build, new BuilderBytes() {\n return build(reader, fieldDataType, builder, build, new BuilderBytes() {\n return build(reader, builder, build, new BuilderShorts() {\n return build(reader, fieldDataType, builder, build, new BuilderShorts() {\n return build(reader, builder, build, new BuilderIntegers() {\n return build(reader, fieldDataType, builder, build, new BuilderIntegers() {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/5af634369737765bb4f6b52817b2570ade149429", "target_edit_idx": 1, "propagatable_edit_idx": [ 12, 6 ] }, { "input": " if (!build.isMultiValued()) {\n if (!build.isMultiValued() && CommonSettings.removeOrdsOnSingleValue(fieldDataType)) {\n if (!build.isMultiValued()) {\n if (!build.isMultiValued() && CommonSettings.removeOrdsOnSingleValue(fieldDataType)) {\n if (!build.isMultiValued()) {\n if (!build.isMultiValued() && CommonSettings.removeOrdsOnSingleValue(fieldDataType)) {\n if (!build.isMultiValued()) {\n if (!build.isMultiValued() && CommonSettings.removeOrdsOnSingleValue(fieldDataType)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/elastic/elasticsearch/commit/5af634369737765bb4f6b52817b2570ade149429", "target_edit_idx": 3, "propagatable_edit_idx": [ 11, 4, 5 ] }, { "input": " return ByteArrayIndexFieldData.build(reader, builder, build, new ByteArrayIndexFieldData.BuilderBytes() {\n return ByteArrayIndexFieldData.build(reader, fieldDataType, builder, build, new ByteArrayIndexFieldData.BuilderBytes() {\n return ShortArrayIndexFieldData.build(reader, builder, build, new ShortArrayIndexFieldData.BuilderShorts() {\n return ShortArrayIndexFieldData.build(reader, fieldDataType, builder, build, new ShortArrayIndexFieldData.BuilderShorts() {\n return IntArrayIndexFieldData.build(reader, builder, build, new IntArrayIndexFieldData.BuilderIntegers() {\n return IntArrayIndexFieldData.build(reader, fieldDataType, builder, build, new IntArrayIndexFieldData.BuilderIntegers() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/5af634369737765bb4f6b52817b2570ade149429", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " boolean analyzed();\n boolean tokenized();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.9583333333333334, "commit_url": "https://github.com/elastic/elasticsearch/commit/f3dbe9224adc7be648cead62936709b2d474addc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " if (this.indexed() != fieldMergeWith.indexed() || this.analyzed() != fieldMergeWith.analyzed()) {\n if (this.indexed() != fieldMergeWith.indexed() || this.tokenized() != fieldMergeWith.tokenized()) {\n boolean analyzed();\n boolean tokenized();\n public boolean analyzed() {\n public boolean tokenized() {\n if (this.analyzed() != fieldMergeWith.analyzed()) {\n if (this.tokenized() != fieldMergeWith.tokenized()) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/f3dbe9224adc7be648cead62936709b2d474addc", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " analyzed() != Defaults.BOOLEAN_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), analyzed()));\n tokenized() != Defaults.BOOLEAN_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), tokenized()));\n analyzed() != Defaults.BYTE_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), analyzed()));\n tokenized() != Defaults.BYTE_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), tokenized()));\n analyzed() != Defaults.DATE_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), analyzed()));\n tokenized() != Defaults.DATE_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), tokenized()));\n analyzed() != Defaults.DOUBLE_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), analyzed()));\n tokenized() != Defaults.DOUBLE_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), tokenized()));\n analyzed() != Defaults.FLOAT_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), analyzed()));\n tokenized() != Defaults.FLOAT_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), tokenized()));\n analyzed() != Defaults.INTEGER_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), analyzed()));\n tokenized() != Defaults.INTEGER_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), tokenized()));\n analyzed() != Defaults.LONG_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), analyzed()));\n tokenized() != Defaults.LONG_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), tokenized()));\n analyzed() != Defaults.SHORT_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), analyzed()));\n tokenized() != Defaults.SHORT_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), tokenized()));\n analyzed() != Defaults.STRING_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), analyzed()));\n tokenized() != Defaults.STRING_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), tokenized()));\n analyzed() != Defaults.IP_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), analyzed()));\n tokenized() != Defaults.IP_FIELD_TYPE.tokenized()) {\n builder.field(\"index\", indexTokenizeOptionToString(indexed(), tokenized()));\n", "class": "clone", "binary_label": 1, "regression_label": 0.9, "commit_url": "https://github.com/elastic/elasticsearch/commit/f3dbe9224adc7be648cead62936709b2d474addc", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": "import org.apache.lucene.document.Field;\nimport org.apache.lucene.document.Field;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/2fb3591792349e09b897185fe693a2c7cd57be27", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " public static boolean isMatchAllQuery(Query query) {\n public static boolean isConstantMatchAllQuery(Query query) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/a3af3d2f47590c859cac1dbc9f6fa273fc6bbd22", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " if (Queries.isMatchAllQuery(query())) {\n if (Queries.isConstantMatchAllQuery(query())) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/a3af3d2f47590c859cac1dbc9f6fa273fc6bbd22", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " logger.debug(\"merge [{}] done, took [{}]\", merge.info.name, TimeValue.timeValueMillis(took));\n logger.debug(\"merge [{}] done, took [{}]\", merge.info == null ? \"_na_\" : merge.info.name, TimeValue.timeValueMillis(took));\n logger.trace(\"merge [{}] done, took [{}]\", merge.info.name, TimeValue.timeValueMillis(took));\n logger.trace(\"merge [{}] done, took [{}]\", merge.info == null ? \"_na_\" : merge.info.name, TimeValue.timeValueMillis(took));\n logger.debug(\"merge [{}] done, took [{}]\", merge.info.name, TimeValue.timeValueMillis(took));\n logger.debug(\"merge [{}] done, took [{}]\", merge.info == null ? \"_na_\" : merge.info.name, TimeValue.timeValueMillis(took));\n logger.trace(\"merge [{}] done, took [{}]\", merge.info.name, TimeValue.timeValueMillis(took));\n logger.trace(\"merge [{}] done, took [{}]\", merge.info == null ? \"_na_\" : merge.info.name, TimeValue.timeValueMillis(took));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/e488d524c3fe625965043cae55a235fd986a05b0", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 5, 6 ] }, { "input": " return ThreadPool.Names.SEARCH;\n return ThreadPool.Names.GET;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/1ed07a0c5077a16bff2fd30440d032543e1d6eaf", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " threadPool.generic().execute(loader);\n threadPool.executor(ThreadPool.Names.CACHE).execute(loader);\n threadPool.generic().execute(loader);\n threadPool.executor(ThreadPool.Names.CACHE).execute(loader);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/b83378f4ce5b2738d3725e743daea16c1e5682a8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return ThreadPool.Names.MANAGEMENT;\n return ThreadPool.Names.FLUSH;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/elastic/elasticsearch/commit/7ed68a5c30e1a94d1938aef513e343f508eadf15", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " endpoint = null; // no specific endpoint for EU (still can be used for region)\n endpoint = \"s3-eu-west-1.amazonaws.com\";\n endpoint = null; // no specific endpoint for EU (still can be used for region)\n endpoint = \"s3-eu-west-1.amazonaws.com\";\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/e8d91a66b68a52802142d7ddb3bd8730e85a98d7", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " DynamicTemplate dynamicTemplate = findTemplate(context.path(), name, dynamicType);\n return findTemplateBuilder(context, name, dynamicType, dynamicType);\n }\n\n public Mapper.Builder findTemplateBuilder(ParseContext context, String name, String dynamicType, String matchType) {\n DynamicTemplate dynamicTemplate = findTemplate(context.path(), name, matchType);\n public DynamicTemplate findTemplate(ContentPath path, String name, String dynamicType) {\n public DynamicTemplate findTemplate(ContentPath path, String name, String matchType) {\n if (dynamicTemplate.match(path, name, dynamicType)) {\n if (dynamicTemplate.match(path, name, matchType)) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/c5ebe6e86ff224650f8f3147067bdb6a707b9cf3", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " routingFieldMapper.validate(context, source.routing());\n routingFieldMapper.validate(context);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/4395202ebc83864921a40a27461d65f7fad0f58b", "target_edit_idx": 2, "propagatable_edit_idx": [ 12 ] }, { "input": " @Override protected void doExecute(final DeleteRequest deleteRequest, final ActionListener listener) {\n if (autoCreateIndex && !clusterService.state().metaData().hasConcreteIndex(deleteRequest.index())) {\n createIndexAction.execute(new CreateIndexRequest(deleteRequest.index()), new ActionListener() {\n @Override protected void doExecute(final DeleteRequest request, final ActionListener listener) {\n if (autoCreateIndex && !clusterService.state().metaData().hasConcreteIndex(request.index())) {\n request.beforeLocalFork();\n createIndexAction.execute(new CreateIndexRequest(request.index()), new ActionListener() {\n innerExecute(deleteRequest, listener);\n innerExecute(request, listener);\n innerExecute(deleteRequest, listener);\n innerExecute(request, listener);\n innerExecute(deleteRequest, listener);\n innerExecute(request, listener);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/848638d53c6feafecedeb65d3d0000a023898121", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "import static org.elasticsearch.cluster.routing.RoutingTable.*;\n\nimport static org.elasticsearch.cluster.routing.RoutingTable.*;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/elastic/elasticsearch/commit/0bf1ed964e7b58ee92ff4d447cb044a70652c9b4", "target_edit_idx": 3, "propagatable_edit_idx": [ 10 ] }, { "input": " RoutingTable.Builder routingTableBuilder = newRoutingTableBuilder().routingTable(currentState.routingTable());\n RoutingTable.Builder routingTableBuilder = RoutingTable.builder().routingTable(currentState.routingTable());\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/0bf1ed964e7b58ee92ff4d447cb044a70652c9b4", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " public static final RoutingTable EMPTY_ROUTING_TABLE = newRoutingTableBuilder().build();\n public static final RoutingTable EMPTY_ROUTING_TABLE = builder().build();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/elastic/elasticsearch/commit/0bf1ed964e7b58ee92ff4d447cb044a70652c9b4", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " routingTable = newRoutingTableBuilder().routingTable(routingTable).updateNumberOfReplicas(2).build();\n routingTable = RoutingTable.builder().routingTable(routingTable).updateNumberOfReplicas(2).build();\n routingTable = newRoutingTableBuilder().routingTable(routingTable).updateNumberOfReplicas(1).build();\n routingTable = RoutingTable.builder().routingTable(routingTable).updateNumberOfReplicas(1).build();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/0bf1ed964e7b58ee92ff4d447cb044a70652c9b4", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " listener.onFailure(new ReduceSearchPhaseException(\"query_fetch\", \"\", e, buildShardFailures()));\n ReduceSearchPhaseException failure = new ReduceSearchPhaseException(\"query_fetch\", \"\", e, buildShardFailures());\n if (logger.isDebugEnabled()) {\n logger.debug(\"failed to reduce search\", failure);\n }\n listener.onFailure(failure);\n listener.onFailure(new ReduceSearchPhaseException(\"fetch\", \"\", e, buildShardFailures()));\n ReduceSearchPhaseException failure = new ReduceSearchPhaseException(\"fetch\", \"\", e, buildShardFailures());\n if (logger.isDebugEnabled()) {\n logger.debug(\"failed to reduce search\", failure);\n }\n listener.onFailure(failure);\n listener.onFailure(new ReduceSearchPhaseException(\"fetch\", \"\", e, buildShardFailures()));\n ReduceSearchPhaseException failure = new ReduceSearchPhaseException(\"fetch\", \"\", e, buildShardFailures());\n if (logger.isDebugEnabled()) {\n logger.debug(\"failed to reduce search\", failure);\n }\n listener.onFailure(failure);\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/elastic/elasticsearch/commit/9f44c93a25d722ed14f3ce77023fd93c0880b976", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " public String nodeId() {\n @Nullable public String nodeId() {\n public String getNodeId() {\n @Nullable public String getNodeId() {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/ba725f8986463d41d14fd331b82702ab65a2e87e", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " MapperQueryParser queryParser = parseContext.queryParser(qpSettings);\n MapperQueryParser queryParser = parseContext.singleQueryParser(qpSettings);\n public MapperQueryParser queryParser(QueryParserSettings settings) {\n public MapperQueryParser singleQueryParser(QueryParserSettings settings) {\n queryParser = parseContext.queryParser(qpSettings);\n queryParser = parseContext.singleQueryParser(qpSettings);\n queryParser = parseContext.queryParser(qpSettings);\n queryParser = parseContext.singleQueryParser(qpSettings);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/elastic/elasticsearch/commit/ff6d7254fe230d332ba3fd131686cf2733307f6f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": " queryParser = parseContext.queryParser(qpSettings);\n queryParser = parseContext.singleQueryParser(qpSettings);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/elastic/elasticsearch/commit/ff6d7254fe230d332ba3fd131686cf2733307f6f", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 5 ] }, { "input": " this.workerCount = componentSettings.getAsInt(\"worker_count\", Runtime.getRuntime().availableProcessors());\n this.workerCount = componentSettings.getAsInt(\"worker_count\", Runtime.getRuntime().availableProcessors() * 2);\n this.workerCount = componentSettings.getAsInt(\"worker_count\", Runtime.getRuntime().availableProcessors());\n this.workerCount = componentSettings.getAsInt(\"worker_count\", Runtime.getRuntime().availableProcessors() * 2);\n this.workerCount = componentSettings.getAsInt(\"worker_count\", Runtime.getRuntime().availableProcessors());\n this.workerCount = componentSettings.getAsInt(\"worker_count\", Runtime.getRuntime().availableProcessors() * 2);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/elastic/elasticsearch/commit/b6277ac14d5c35c8f5c80616829868c4ea74abfa", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " return value;\n return defaultValue;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/bad45de7af063379c1369a418d82e5b2236b8efa", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " void flush();\n void sync();\n\n void syncOnEachOperation(boolean syncOnEachOperation);\n @Override public void flush() {\n @Override public void sync() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/elastic/elasticsearch/commit/ab9aa15bb4b08126b0bcb9451f7ec4f5ee883333", "target_edit_idx": 9, "propagatable_edit_idx": [ 12 ] }, { "input": " final long took;\n final long time;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/elastic/elasticsearch/commit/311520d14682a1f3096dc9307da3e5fcb82936ab", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5, 6, 7, 8, 10 ] }, { "input": " int utflen = readUnsignedShort();\n int utflen = readInt();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/c989d3a928b6bfc526dc5e21161fb31f058f77dc", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "import java.io.UTFDataFormatException;\nimport java.io.UTFDataFormatException;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/c989d3a928b6bfc526dc5e21161fb31f058f77dc", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " bytearr[count++] = (byte) ((utflen >>> 8) & 0xFF);\n bytearr[count++] = (byte) ((utflen >>> 0) & 0xFF);\n // same as writeInt\n bytearr[count++] = (byte) (utflen >> 24);\n bytearr[count++] = (byte) (utflen >> 16);\n bytearr[count++] = (byte) (utflen >> 8);\n bytearr[count++] = (byte) (utflen);\n bytearr[count++] = (byte) ((utflen >>> 8) & 0xFF);\n bytearr[count++] = (byte) ((utflen >>> 0) & 0xFF);\n // same as writeInt\n bytearr[count++] = (byte) (utflen >> 24);\n bytearr[count++] = (byte) (utflen >> 16);\n bytearr[count++] = (byte) (utflen >> 8);\n bytearr[count++] = (byte) (utflen);\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/elastic/elasticsearch/commit/c989d3a928b6bfc526dc5e21161fb31f058f77dc", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " options.withCompress();\n options.withCompress(true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/ee33ee457a4d36986fcbea4b75fc153f9b6ab2ef", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": " new StringMessage(\"moshe\"), TransportRequestOptions.options().withCompress(), new BaseTransportResponseHandler() {\n new StringMessage(\"moshe\"), TransportRequestOptions.options().withCompress(true), new BaseTransportResponseHandler() {\n TransportRequestOptions.options().withCompress(), VoidTransportResponseHandler.INSTANCE).txGet();\n TransportRequestOptions.options().withCompress(compress), VoidTransportResponseHandler.INSTANCE).txGet();\n public TransportRequestOptions withCompress() {\n this.compress = true;\n public TransportRequestOptions withCompress(boolean compress) {\n this.compress = compress;\n options.withCompress();\n options.withCompress(true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/elastic/elasticsearch/commit/ee33ee457a4d36986fcbea4b75fc153f9b6ab2ef", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " * Order by the count of each term.\n * Order by the (higher) count of each term.\n * Order by the count of each term.\n * Order by the (lower) count of each term.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/e29925684abfe82afce8100506cadaa526eaec9c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " reverse = \"score\".equals(fieldName);\n reverse = SCORE_FIELD_NAME.equals(fieldName);\n reverse = !\"score\".equals(fieldName);\n reverse = !SCORE_FIELD_NAME.equals(fieldName);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/2a3130c649b832a056d85f7defed52ac4901c284", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " public static void copyToDirectory(File copyFrom, Directory dir, String fileName) throws IOException {\n if (dir instanceof FSDirectory) {\n public static void copyToDirectory(File copyFrom, Directory dir, String fileName, boolean nativeCopy) throws IOException {\n if (nativeCopy && (dir instanceof FSDirectory)) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/c2d583064e95b1bb06f102a7d3610442a2ed8038", "target_edit_idx": 6, "propagatable_edit_idx": [ 4 ] }, { "input": " * @author kimchy (Shay Banon)\n * @author kimchy (shay.banon)\n * @author kimchy (Shay Banon)\n * @author kimchy (shay.banon)\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/elastic/elasticsearch/commit/a7cce9cd38845e5e634b9d9a694adc4dd261d664", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": " * @author kimchy (Shay Banon)\n * @author kimchy (shay.banon)\n * @author kimchy (Shay Banon)\n * @author kimchy (shay.banon)\n * @author kimchy (Shay Banon)\n * @author kimchy (shay.banon)\n", "class": "clone", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/elastic/elasticsearch/commit/6fe329ab697a9640648ea6ad84fb24b5282eb5c2", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 12 ] }, { "input": " ThrowableObjectInputStream ois = new ThrowableObjectInputStream(new DataInputInputStream(buffer));\n ThrowableObjectInputStream ois = new ThrowableObjectInputStream(buffer);\n ThrowableObjectInputStream ois = new ThrowableObjectInputStream(new DataInputInputStream(buffer));\n ThrowableObjectInputStream ois = new ThrowableObjectInputStream(buffer);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/elastic/elasticsearch/commit/b5544769d2718eadaa9649c57f08e195d3833b80", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " * @author Yanming Zhou\n * @author Yanming Zhou\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/821109bd06ccf76c288af6187509cf4ec7157efb", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "import org.springframework.web.HttpSessionRequiredException;\nimport org.springframework.web.HttpSessionRequiredException;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/c38e9896c7d51b35d5ff80ab498475b6190c77be", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tassertThatExceptionOfType(HttpSessionRequiredException.class).isThrownBy(() ->\n\t\tassertThatIllegalStateException().isThrownBy(() ->\n\t\tassertThatExceptionOfType(HttpSessionRequiredException.class).isThrownBy(() ->\n\t\tassertThatIllegalStateException().isThrownBy(() ->\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/c38e9896c7d51b35d5ff80ab498475b6190c77be", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t@SuppressWarnings(\"resource\")\n\t\t@SuppressWarnings(\"resource\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/9492d8827011546b8db2e5fc0b5686607b9c1990", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " * Copyright 2002-2021 the original author or authors.\n * Copyright 2002-2024 the original author or authors.\n * Copyright 2002-2022 the original author or authors.\n * Copyright 2002-2024 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/a34ceb405c4dc64860fcb0d289630e4110bce9e5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tif (generic.isUnresolvableTypeVariable() || generic.isWildcardWithoutBounds() || generic.hasUnresolvableGenerics()) {\n\t\t\tif (generic.isUnresolvableTypeVariable() || generic.isWildcardWithoutBounds() ||\n\t\t\t\t\tgeneric.hasUnresolvableGenerics(currentTypeSeen(alreadySeen))) {\n\t\t\t\treturn getSuperType().hasUnresolvableGenerics();\n\t\t\t\treturn getSuperType().hasUnresolvableGenerics(currentTypeSeen(alreadySeen));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/spring-projects/spring-framework/commit/ea3573176a5c80e5a7b2bd48a6d5d5ab5cfa4285", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\t\treturn getSuperType().hasUnresolvableGenerics();\n\t\t\t\treturn getSuperType().hasUnresolvableGenerics(currentTypeSeen(alreadySeen));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/spring-projects/spring-framework/commit/ea3573176a5c80e5a7b2bd48a6d5d5ab5cfa4285", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "import java.util.Spliterators;\nimport java.util.Spliterators;\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/spring-projects/spring-framework/commit/481283d2f1afa6926324f2fb9c736138ef05900d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\treturn Spliterators.spliterator(this.propertySourceList, 0);\n\t\treturn this.propertySourceList.spliterator();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/481283d2f1afa6926324f2fb9c736138ef05900d", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " * Adapt {@link LocaleContextHolder} to the {@link ThreadLocalAccessor} contract to assist\n * the Micrometer Context Propagation library with {@link LocaleContext} propagation.\n * Adapt {@link LocaleContextHolder} to the {@link ThreadLocalAccessor} contract\n * to assist the Micrometer Context Propagation library with {@link LocaleContext}\n * propagation.\n *\n * Adapt {@link RequestContextHolder} to the {@link ThreadLocalAccessor} contract to assist\n * the Micrometer Context Propagation library with {@link RequestAttributes} propagation.\n * Adapt {@link RequestContextHolder} to the {@link ThreadLocalAccessor} contract\n * to assist the Micrometer Context Propagation library with\n * {@link RequestAttributes} propagation.\n *\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/aef4b21f19474005fdca4a13c50da2ae87ac34a8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tprivate final Predicate modelAttribitePredicate;\n\tprivate final Predicate modelAttributePredicate;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/87377d6f3e9be0785d2a0c0ca96fe329c1c564c0", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": "\t\t\tPredicate modelAttribitePredicate, Predicate requestParamPredicate) {\n\t\t\tPredicate modelAttributePredicate, Predicate requestParamPredicate) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/87377d6f3e9be0785d2a0c0ca96fe329c1c564c0", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 9 ] }, { "input": " * Copyright 2002-2022 the original author or authors.\n * Copyright 2002-2024 the original author or authors.\n * Copyright 2002-2023 the original author or authors.\n * Copyright 2002-2024 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/549f6c1e8007191ec627302524e9c4586efca587", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tif (left == null) {\n\t\tString input = leftOp.getValue(state, String.class);\n\t\tif (input == null) {\n\t\t\tMatcher matcher = pattern.matcher(new MatcherInput(left, new AccessCount()));\n\t\t\tMatcher matcher = pattern.matcher(new MatcherInput(input, new AccessCount()));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/8010de8b63057af06984df5c7550ba99d006e909", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " * Copyright 2002-2022 the original author or authors.\n * Copyright 2002-2023 the original author or authors.\n * Copyright 2002-2022 the original author or authors.\n * Copyright 2002-2023 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/ab0d1c395d1b7ae55971bba7a21ba0658fd01c62", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\tisInvalidReadOnlyPropertyType(method.getReturnType())) {\n\t\t\t\tisInvalidReadOnlyPropertyType(method.getReturnType(), method.getDeclaringClass())) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/ec3f59e6fea2b968ae00f41511c2e8ed6bda94d8", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\t\t\t\t\treturn this.proxyClass.getConstructor(rawClassExecutable.getParameterTypes());\n\t\t\t\t\truntimeHints.reflection().registerConstructor(userConstructor, ExecutableMode.INTROSPECT);\n\t\t\t\t\treturn this.proxyClass.getConstructor(userExecutable.getParameterTypes());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/e749cd1ef1abda77d6e185dd22bee12258868b78", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\tvoid processAheadOfTime(Class testClass, RuntimeHints runtimeHints, ClassLoader classLoader);\n\tvoid processAheadOfTime(RuntimeHints runtimeHints, Class testClass, ClassLoader classLoader);\n\tpublic void processAheadOfTime(Class testClass, RuntimeHints runtimeHints, ClassLoader classLoader) {\n\tpublic void processAheadOfTime(RuntimeHints runtimeHints, Class testClass, ClassLoader classLoader) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/98801f8a5b6997f1f1ed1c95b139639a0d1dcfd0", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " * Copyright 2002-2020 the original author or authors.\n * Copyright 2002-2022 the original author or authors.\n * Copyright 2002-2021 the original author or authors.\n * Copyright 2002-2022 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/97ea8a67892a20b0deedd54e6489895c7f1fea24", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\tClass aliasedAnnotation = methodAnnotations.get(AliasFor.class).getClass(\"annotation\");\n\t\t\t\tboolean process = (aliasedAnnotation != Annotation.class && !types.contains(aliasedAnnotation));\n\t\t\t\tif (process) {\n\t\t\t\t\ttypes.add(aliasedAnnotation);\n\t\t\t\t\tcollectAliasedAnnotations(types, aliasedAnnotation);\n\t\t\t\tClass annotationAttribute = methodAnnotations.get(AliasFor.class).getClass(\"annotation\");\n\t\t\t\tClass targetAnnotation = (annotationAttribute != Annotation.class\n\t\t\t\t\t\t? annotationAttribute : annotationType);\n\t\t\t\tif (!types.contains(targetAnnotation)) {\n\t\t\t\t\ttypes.add(targetAnnotation);\n\t\t\t\t\tif (!targetAnnotation.equals(annotationType)) {\n\t\t\t\t\t\tcollectAliasedAnnotations(seen, types, targetAnnotation);\n\t\t\t\t\t}\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/86a85f558c7c319c6dbb651807dce7ebbe2e1f3e", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\tprivate class StringDelegate implements Delegate {\n\tprivate static class StringDelegate implements Delegate {\n\tprivate class EnumDelegate implements Delegate {\n\tprivate static class EnumDelegate implements Delegate {\n\tprivate class ClassDelegate implements Delegate {\n\tprivate static class ClassDelegate implements Delegate {\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/spring-projects/spring-framework/commit/7cb6ac0a026c2a5cdf9c7990219c1bc683b75b97", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\tpublic void resolve(\n\tpublic boolean resolve(\n\tpublic void resolve(\n\tpublic boolean resolve(\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/62ab360f64b57b2679f19a1dd9eb13d317c6e40e", "target_edit_idx": 0, "propagatable_edit_idx": [ 11 ] }, { "input": " * Copyright 2002-2021 the original author or authors.\n * Copyright 2002-2022 the original author or authors.\n * Copyright 2002-2021 the original author or authors.\n * Copyright 2002-2022 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/eefdd2c768cbacdc97839ede2209a630cf1f0d3e", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tprivate final Object returnValue;\n\t\tprivate final Class returnValueType;\n\t\tprivate final Object returnValue;\n\t\tprivate final Class returnValueType;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/eefdd2c768cbacdc97839ede2209a630cf1f0d3e", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\tthis.returnValue = returnValue;\n\t\t\tthis.returnValueType = (returnValue != null ? returnValue.getClass() : null);\n\t\t\tthis.returnValue = returnValue;\n\t\t\tthis.returnValueType = (returnValue != null ? returnValue.getClass() : null);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/eefdd2c768cbacdc97839ede2209a630cf1f0d3e", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\tthis.returnValue = original.returnValue;\n\t\t\tthis.returnValueType = original.returnValueType;\n\t\t\tthis.returnValue = original.returnValue;\n\t\t\tthis.returnValueType = original.returnValueType;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/eefdd2c768cbacdc97839ede2209a630cf1f0d3e", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\treturn (this.returnValue != null ? this.returnValue.getClass() : super.getParameterType());\n\t\t\treturn (this.returnValueType != null ? this.returnValueType : super.getParameterType());\n\t\t\treturn (this.returnValue != null ? this.returnValue.getClass() : super.getParameterType());\n\t\t\treturn (this.returnValueType != null ? this.returnValueType : super.getParameterType());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/eefdd2c768cbacdc97839ede2209a630cf1f0d3e", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\tthis.conversionService.addConverter(new Converter() {\n\t\t\t@Override\n\t\t\tpublic Boolean convert(Integer source) {\n\t\t\t\treturn source == 1;\n\t\t\t}\n\t\t});\n\t\tthis.conversionService.addConverter(Integer.class, Boolean.class, source -> source == 1);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/23ab9ca8ca385d0253cf959ab2849f36d0c19edb", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " * Copyright 2002-2020 the original author or authors.\n * Copyright 2002-2021 the original author or authors.\n * Copyright 2002-2020 the original author or authors.\n * Copyright 2002-2021 the original author or authors.\n * Copyright 2002-2020 the original author or authors.\n * Copyright 2002-2021 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/spring-projects/spring-framework/commit/af6fd6c303252a2bf83770419bfd829849d12e70", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " * Copyright 2002-2020 the original author or authors.\n * Copyright 2002-2021 the original author or authors.\n * Copyright 2002-2020 the original author or authors.\n * Copyright 2002-2021 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/cb251347c3cca8f1133ac1f243163f75c727cfb1", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " * Copyright 2002-2017 the original author or authors.\n * Copyright 2002-2021 the original author or authors.\n * Copyright 2002-2020 the original author or authors.\n * Copyright 2002-2021 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/90af2d57948d235daadce325324a7b04aedb2b4e", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " * Copyright 2002-2019 the original author or authors.\n * Copyright 2002-2021 the original author or authors.\n * Copyright 2002-2019 the original author or authors.\n * Copyright 2002-2021 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/5f5cd8a7c442e6e641eb31e487cc622110c195c2", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\tif (requestOrigin.equalsIgnoreCase(allowedOrigin)) {\n\t\t\t\t\treturn requestOrigin;\n\t\t\t\tif (originToCheck.equalsIgnoreCase(allowedOrigin)) {\n\t\t\t\t\treturn origin;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/spring-projects/spring-framework/commit/aa51ed19403129bd9f0b8f5373391ba6bc8baaaa", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tassertThat(config.checkOrigin(\"https://domain.com/\")).isEqualTo(\"https://domain.com\");\n\t\tassertThat(config.checkOrigin(\"https://domain.com/\")).isEqualTo(\"https://domain.com/\");\n\t\tassertThat(config.checkOrigin(\"https://domain.com/\")).isEqualTo(\"https://domain.com\");\n\t\tassertThat(config.checkOrigin(\"https://domain.com/\")).isEqualTo(\"https://domain.com/\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/spring-projects/spring-framework/commit/aa51ed19403129bd9f0b8f5373391ba6bc8baaaa", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tassertThat(config.getAllowedOrigins()).containsExactly(\"http://www.foo.example/\");\n\t\tassertThat(config.getAllowedOrigins()).containsExactly(\"http://www.foo.example\");\n\t\tassertThat(config.getAllowedOrigins()).containsExactly(\"http://www.foo.example/\");\n\t\tassertThat(config.getAllowedOrigins()).containsExactly(\"http://www.foo.example\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/spring-projects/spring-framework/commit/aa51ed19403129bd9f0b8f5373391ba6bc8baaaa", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tprivate Mono handleBodyMono(ClientResponse response, Mono bodyPublisher) {\n\t\tprivate Mono handleBodyMono(ClientResponse response, Mono body) {\n\t\t\tbody = body.onErrorResume(WebClientUtils.WRAP_EXCEPTION_PREDICATE, exceptionWrappingFunction(response));\n\t\tprivate Publisher handleBodyFlux(ClientResponse response, Flux bodyPublisher) {\n\t\tprivate Publisher handleBodyFlux(ClientResponse response, Flux body) {\n\t\t\tbody = body.onErrorResume(WebClientUtils.WRAP_EXCEPTION_PREDICATE, exceptionWrappingFunction(response));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/ba9325446ce6a7f5863883e9ce344041c7d40168", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tMono wrappedExceptions = bodyPublisher.onErrorResume(WebClientUtils::shouldWrapException,\n\t\t\t\t\t\t\tt -> wrapException(t, response));\n\t\t\tif (result != null) {\n\t\t\t\treturn result.switchIfEmpty(wrappedExceptions);\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn wrappedExceptions;\n\t\t\t}\n\t\t\treturn (result != null ? result.switchIfEmpty(body) : body);\n\t\t\tFlux wrappedExceptions = bodyPublisher.onErrorResume(WebClientUtils::shouldWrapException,\n\t\t\t\t\tt -> wrapException(t, response));\n\t\t\tif (result != null) {\n\t\t\t\treturn result.flux().switchIfEmpty(wrappedExceptions);\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn wrappedExceptions;\n\t\t\t}\n\t\t\treturn (result != null ? result.flux().switchIfEmpty(body) : body);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/ba9325446ce6a7f5863883e9ce344041c7d40168", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " * Copyright 2002-2018 the original author or authors.\n * Copyright 2002-2020 the original author or authors.\n * Copyright 2002-2018 the original author or authors.\n * Copyright 2002-2020 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/spring-projects/spring-framework/commit/72b2dda17fcdb43af14778597da0c92970143b80", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "import org.apache.commons.logging.Log;\nimport org.apache.commons.logging.LogFactory;\n\nimport org.apache.commons.logging.Log;\nimport org.apache.commons.logging.LogFactory;\nimport org.apache.commons.logging.Log;\nimport org.apache.commons.logging.LogFactory;\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/72b2dda17fcdb43af14778597da0c92970143b80", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 6 ] }, { "input": "\tprotected final Log logger = LogFactory.getLog(getClass());\n\n\tprotected final Log logger = LogFactory.getLog(getClass());\n\n\tprotected final Log logger = LogFactory.getLog(getClass());\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/72b2dda17fcdb43af14778597da0c92970143b80", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " * Copyright 2002-2019 the original author or authors.\n * Copyright 2002-2020 the original author or authors.\n * Copyright 2002-2019 the original author or authors.\n * Copyright 2002-2020 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/spring-projects/spring-framework/commit/fb6ee012815345285fafe081009fe2fb9f4a6589", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "import java.io.IOException;\nimport java.io.IOException;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/fb6ee012815345285fafe081009fe2fb9f4a6589", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tskipLeadingEol(byteBuffer);\n\t\tskipEol(byteBuffer);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/3c0c0c0597e19b66d6cfebbf93b42f1c1fb2b4e5", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\treturn new Object[0];\n\t\t\treturn EMPTY_OBJECT_ARRAY;\n\t\t\treturn new Object[0];\n\t\t\treturn EMPTY_OBJECT_ARRAY;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/cca32a56a4e6a0495b200921cc32799cf8c3852b", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\treturn new String[0];\n\t\t\treturn EMPTY_STRING_ARRAY;\n\t\t\treturn new String[0];\n\t\t\treturn EMPTY_STRING_ARRAY;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/cca32a56a4e6a0495b200921cc32799cf8c3852b", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\t\treturn PayloadUtils.createPayload(metadata, data);\n\t\t\treturn PayloadUtils.createPayload(data, metadata);\n\t\treturn PayloadUtils.createPayload(metadata, data);\n\t\treturn PayloadUtils.createPayload(data, metadata);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/spring-projects/spring-framework/commit/5e15bbfbf12ad5a86852c462aaf02f9f40a4dbfe", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tPayload payload = PayloadUtils.createPayload(metadata, data);\n\t\tPayload payload = PayloadUtils.createPayload(data, metadata);\n\t\tPayload payload = PayloadUtils.createPayload(metadata, data);\n\t\tPayload payload = PayloadUtils.createPayload(data, metadata);\n\t\tPayload payload = PayloadUtils.createPayload(metadata, data);\n\t\tPayload payload = PayloadUtils.createPayload(data, metadata);\n\t\tPayload payload = PayloadUtils.createPayload(metadata, data);\n\t\tPayload payload = PayloadUtils.createPayload(data, metadata);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/spring-projects/spring-framework/commit/5e15bbfbf12ad5a86852c462aaf02f9f40a4dbfe", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 7 ] }, { "input": "\t\t\t\t.expectNextMatches(response -> HttpStatus.CREATED.equals(response.statusCode()))\n\t\t\t\t.expectNextMatches(response -> HttpStatus.CREATED.equals(response.statusCode()) &&\n\t\t\t\t\t\tresponse.rawStatusCode() == 201)\n\t\t\t\t.expectNextMatches(response -> HttpStatus.CREATED.equals(response.statusCode()))\n\t\t\t\t.expectNextMatches(response -> HttpStatus.CREATED.equals(response.statusCode()) &&\n\t\t\t\t\t\tresponse.rawStatusCode() == 201)\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/spring-projects/spring-framework/commit/7b734184189d33975239b9f1fea97d4cda78d9d7", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\treturn allocateBufferInternal(this.delegate.allocateBuffer());\n\t\treturn createLeakAwareDataBuffer(this.delegate.allocateBuffer());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/3ebbfa2191376d9920c57b545fbd3c07167b4c1e", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " * Copyright 2002-2018 the original author or authors.\n * Copyright 2002-2019 the original author or authors.\n * Copyright 2002-2018 the original author or authors.\n * Copyright 2002-2019 the original author or authors.\n * Copyright 2002-2018 the original author or authors.\n * Copyright 2002-2019 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/spring-projects/spring-framework/commit/88e3b841644bd860d144acb37c13da3f6a8c2d01", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 6 ] }, { "input": "\t\tMethod[] methods = getDeclaredMethods(clazz);\n\t\tMethod[] methods = getDeclaredMethods(clazz, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/8ef609a1b74ad359ae764c4d4052365ac5483fcf", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 5 ] }, { "input": "\tprivate static Method[] getDeclaredMethods(Class clazz) {\n\tpublic static Method[] getDeclaredMethods(Class clazz) {\n\t\treturn getDeclaredMethods(clazz, true);\n\t}\n\n\tprivate static Method[] getDeclaredMethods(Class clazz, boolean defensive) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/8ef609a1b74ad359ae764c4d4052365ac5483fcf", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " * Copyright 2002-2018 the original author or authors.\n * Copyright 2002-2019 the original author or authors.\n * Copyright 2002-2016 the original author or authors.\n * Copyright 2002-2019 the original author or authors.\n * Copyright 2002-2016 the original author or authors.\n * Copyright 2002-2019 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/spring-projects/spring-framework/commit/a5cef3845ca4d7625e17a460441bd6f8656ca2f8", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 6 ] }, { "input": "\tprivate static final RequestMethodsRequestCondition HEAD_CONDITION =\n\t\t\tnew RequestMethodsRequestCondition(RequestMethod.HEAD);\n\tprivate static final RequestMethodsRequestCondition GET_CONDITION =\n\t\t\tnew RequestMethodsRequestCondition(RequestMethod.GET);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/1cb9f2c7b2a25daae014349ba3df7823b3584171", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\t\tif (isBodyRequired || (adapter != null && !adapter.supportsEmpty())) {\n\t\t\t\t\t\tmono = mono.switchIfEmpty(Mono.error(handleMissingBody(bodyParameter)));\n\t\t\t\t\tif (missingBodyError != null) {\n\t\t\t\t\t\tmono = mono.switchIfEmpty(Mono.error(missingBodyError));\n\t\t\tif (isBodyRequired || (adapter != null && !adapter.supportsEmpty())) {\n\t\t\t\tbody = body.switchIfEmpty(Mono.error(handleMissingBody(bodyParameter)));\n\t\t\tif (missingBodyError != null) {\n\t\t\t\tbody = body.switchIfEmpty(Mono.error(missingBodyError));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/babe6c59c4a47f17cc765f429ecb9b7640ac902b", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " * Copyright 2002-2017 the original author or authors.\n * Copyright 2002-2018 the original author or authors.\n * Copyright 2002-2017 the original author or authors.\n * Copyright 2002-2018 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/196f3f8cc1aae9f3df06e9d961c62185e8730bfb", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t.apply(globalIdentity(\"Pablo\"))\n\t\t\t\t.apply(identity(\"Pablo\"))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/f5c54f90b309957b16ebebdeba0d57e8e59d7f37", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\tpublic PathPattern parse(String pattern) {\n\tpublic PathPattern parse(String pathPattern) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/babd5517aa892750bf6aca34e9572d67e84aa410", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\trequest.close();\n\t\t\t\trequest.close();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/d3e05296e175d13533f4abbb43673ecc1a3582c8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "import static org.junit.Assume.assumeFalse;\nimport static org.junit.Assume.assumeFalse;\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/spring-projects/spring-framework/commit/ba47d06cbb6a07bdc57042da9dd59daafe5c5aae", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t.verify();\n\t\t\t\t.verify(Duration.ofSeconds(3));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/ba47d06cbb6a07bdc57042da9dd59daafe5c5aae", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 6, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "\t * @param pathPatterns one or more resource URL path patterns\n\t * @param pathPatterns one or more resource URL path patterns,\n\t * relative to the pattern configured with the resource handler\n\t * @param pathPatterns one or more resource URL path patterns\n\t * @param pathPatterns one or more resource URL path patterns,\n\t * relative to the pattern configured with the resource handler\n\t * @param pathPatterns one or more resource URL path patterns\n\t * @param pathPatterns one or more resource URL path patterns,\n\t * relative to the pattern configured with the resource handler\n\t * @param pathPatterns one or more resource URL path patterns\n\t * @param pathPatterns one or more resource URL path patterns,\n\t * relative to the pattern configured with the resource handler\n\t * @param pathPatterns one or more resource URL path patterns\n\t * @param pathPatterns one or more resource URL path patterns,\n\t * relative to the pattern configured with the resource handler\n\t * @param pathPatterns one or more resource URL path patterns\n\t * @param pathPatterns one or more resource URL path patterns,\n\t * relative to the pattern configured with the resource handler\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/spring-projects/spring-framework/commit/52f664139f65bc8573e70f8c770c4784f9163f23", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": "\t * and then invokes the {@code other} function if this route had\n\t * and then invokes the {@code other} function (of the same type {@code T}) if this route had\n\t * and then invokes the {@code other} function if this route had\n\t * and then invokes the {@code other} function (of a different type) if this route had\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/61bf6a25b7817014a3bd3ef51532597ebf2860fe", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\tdefault RoutingFunction and(RoutingFunction other) {\n\tdefault RoutingFunction andSame(RoutingFunction other) {\n\tpublic void and() throws Exception {\n\tpublic void andSame() throws Exception {\n\t\tRoutingFunction result = routingFunction1.and(routingFunction2);\n\t\tRoutingFunction result = routingFunction1.andSame(routingFunction2);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/61bf6a25b7817014a3bd3ef51532597ebf2860fe", "target_edit_idx": 2, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "\t\t\tpos += count;\n\t\t\tpos += skipped;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/368f29d5bcd4e646ea03bae2b95715506fe22aaf", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " * Copyright 2002-2014 the original author or authors.\n * Copyright 2002-2016 the original author or authors.\n * Copyright 2002-2014 the original author or authors.\n * Copyright 2002-2016 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/spring-projects/spring-framework/commit/582864802e49f0cc47575be00194e4194d7b1dc5", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t * @param methodParam the method parameter specification\n\t * @param methodParameter the method parameter specification\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/c909789ea9158f074270b1248418efd1ae4fe1b0", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "\tpublic static Class resolveParameterType(MethodParameter methodParam, Class clazz) {\n\t\tAssert.notNull(methodParam, \"MethodParameter must not be null\");\n\t\tAssert.notNull(clazz, \"Class must not be null\");\n\t\tmethodParam.setContainingClass(clazz);\n\t\tmethodParam.setParameterType(ResolvableType.forMethodParameter(methodParam).resolve());\n\t\treturn methodParam.getParameterType();\n\tpublic static Class resolveParameterType(MethodParameter methodParameter, Class implementationClass) {\n\t\tAssert.notNull(methodParameter, \"MethodParameter must not be null\");\n\t\tAssert.notNull(implementationClass, \"Class must not be null\");\n\t\tmethodParameter.setContainingClass(implementationClass);\n\t\tResolvableType.resolveMethodParameter(methodParameter);\n\t\treturn methodParameter.getParameterType();\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/c909789ea9158f074270b1248418efd1ae4fe1b0", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\t\tString mimeType = MimeTypeResolver.getMimeType(filePath);\n\t\tString mimeType = FileTypeMap.getDefaultFileTypeMap().getContentType(filePath);\n\t\tString mimeType = MimeTypeResolver.getMimeType(filePath);\n\t\tString mimeType = FileTypeMap.getDefaultFileTypeMap().getContentType(filePath);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/3db62d5494c0e389472f93b3f256efd808ecb347", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\n\t/**\n\t * Inner factory class used to introduce a Java Activation Framework\n\t * dependency when actually asked to resolve a MIME type.\n\t */\n\tprivate static class MimeTypeResolver {\n\n\t\tpublic static String getMimeType(String filePath) {\n\t\t\treturn FileTypeMap.getDefaultFileTypeMap().getContentType(filePath);\n\t\t}\n\t}\n\n\n\t/**\n\t * Inner factory class used to introduce a Java Activation Framework\n\t * dependency when actually asked to resolve a MIME type.\n\t */\n\tprivate static class MimeTypeResolver {\n\n\t\tpublic static String getMimeType(String filePath) {\n\t\t\treturn FileTypeMap.getDefaultFileTypeMap().getContentType(filePath);\n\t\t}\n\t}\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/3db62d5494c0e389472f93b3f256efd808ecb347", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " * Copyright 2002-2014 the original author or authors.\n * Copyright 2002-2015 the original author or authors.\n * Copyright 2002-2014 the original author or authors.\n * Copyright 2002-2015 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/10a51a4f1957e5c579e9e63c023d422b0db55793", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t@Test(expected = HttpMessageNotReadableException.class)\n\t@Test\n\t@Test(expected = HttpMessageNotReadableException.class)\n\t@Test\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/spring-projects/spring-framework/commit/42aef5f5dcc977334a1800243ea1d8dc64f0c8a2", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "import static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertFalse;\nimport static org.junit.Assert.assertEquals;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/e98d3f790b82f4b336bf0326a31c77d3f7dbf442", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11 ] }, { "input": "\tpublic void noValues() throws Exception {\n\t\tObject k1 = generator.generate(null, null, new Object[] {});\n\t\tObject k2 = generator.generate(null, null, new Object[] {});\n\t\tObject k3 = generator.generate(null, null, new Object[] { \"different\" });\n\tpublic void noValues() {\n\t\tObject k1 = generateKey(new Object[] {});\n\t\tObject k2 = generateKey(new Object[] {});\n\t\tObject k3 = generateKey(new Object[] { \"different\" });\n\tpublic void singleValue() throws Exception {\n\t\tObject k1 = generator.generate(null, null, new Object[] { \"a\" });\n\t\tObject k2 = generator.generate(null, null, new Object[] { \"a\" });\n\t\tObject k3 = generator.generate(null, null, new Object[] { \"different\" });\n\tpublic void singleValue(){\n\t\tObject k1 = generateKey(new Object[] { \"a\" });\n\t\tObject k2 = generateKey(new Object[] { \"a\" });\n\t\tObject k3 = generateKey(new Object[] { \"different\" });\n\tpublic void multipleValues() throws Exception {\n\t\tObject k1 = generator.generate(null, null, new Object[] { \"a\", 1, \"b\" });\n\t\tObject k2 = generator.generate(null, null, new Object[] { \"a\", 1, \"b\" });\n\t\tObject k3 = generator.generate(null, null, new Object[] { \"b\", 1, \"a\" });\n\tpublic void multipleValues() {\n\t\tObject k1 = generateKey(new Object[] { \"a\", 1, \"b\" });\n\t\tObject k2 = generateKey(new Object[] { \"a\", 1, \"b\" });\n\t\tObject k3 = generateKey(new Object[] { \"b\", 1, \"a\" });\n\tpublic void singleNullValue() throws Exception {\n\t\tObject k1 = generator.generate(null, null, new Object[] { null });\n\t\tObject k2 = generator.generate(null, null, new Object[] { null });\n\t\tObject k3 = generator.generate(null, null, new Object[] { \"different\" });\n\tpublic void singleNullValue() {\n\t\tObject k1 = generateKey(new Object[] { null });\n\t\tObject k2 = generateKey(new Object[] { null });\n\t\tObject k3 = generateKey(new Object[] { \"different\" });\n\tpublic void multiplNullValues() throws Exception {\n\t\tObject k1 = generator.generate(null, null, new Object[] { \"a\", null, \"b\", null });\n\t\tObject k2 = generator.generate(null, null, new Object[] { \"a\", null, \"b\", null });\n\t\tObject k3 = generator.generate(null, null, new Object[] { \"a\", null, \"b\" });\n\tpublic void multipleNullValues() {\n\t\tObject k1 = generateKey(new Object[] { \"a\", null, \"b\", null });\n\t\tObject k2 = generateKey(new Object[] { \"a\", null, \"b\", null });\n\t\tObject k3 = generateKey(new Object[] { \"a\", null, \"b\" });\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/6d8f3a0a20fe3f0f75dc98eccd7080248238f567", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": "\tprivate final MockFilterChain filterChain;\n\tprivate final TestDispatcherServlet servlet;\n\n\tprivate final Filter[] filters;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.13333333333333333, "commit_url": "https://github.com/spring-projects/spring-framework/commit/ed9b2966c079b73094f293e5d0c35abd9d59db09", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\tpublic HandlerMethodArgumentResolverComposite getArgumentResolvers() {\n\t\treturn this.argumentResolvers;\n\tpublic List getArgumentResolvers() {\n\t\treturn this.argumentResolvers.getResolvers();\n\tpublic HandlerMethodArgumentResolverComposite getInitBinderArgumentResolvers() {\n\t\treturn this.initBinderArgumentResolvers;\n\tpublic List getInitBinderArgumentResolvers() {\n\t\treturn this.initBinderArgumentResolvers.getResolvers();\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/spring-projects/spring-framework/commit/62e23363cb78bfb106d0dc499c8c2c18ec2a3719", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " * Copyright 2002-2012 the original author or authors.\n * Copyright 2002-2013 the original author or authors.\n * Copyright 2002-2012 the original author or authors.\n * Copyright 2002-2013 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/spring-projects/spring-framework/commit/4b22558a06d7033e7ef3ed4f3122a4913b045c5c", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": "\tprivate void invokeAwareMethods(ImportBeanDefinitionRegistrar registrar) {\n\t\tif (registrar instanceof Aware) {\n\t\t\tif (registrar instanceof ResourceLoaderAware) {\n\t\t\t\t((ResourceLoaderAware) registrar).setResourceLoader(this.resourceLoader);\n\tprivate void invokeAwareMethods(Object importStrategyBean) {\n\t\tif (importStrategyBean instanceof Aware) {\n\t\t\tif (importStrategyBean instanceof ResourceLoaderAware) {\n\t\t\t\t((ResourceLoaderAware) importStrategyBean).setResourceLoader(this.resourceLoader);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/spring-projects/spring-framework/commit/db0d780d4339953276447e034a6143abc3d83db9", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "\t\t\tif (registrar instanceof BeanFactoryAware && this.registry instanceof BeanFactory) {\n\t\t\t\t((BeanFactoryAware) registrar).setBeanFactory((BeanFactory) this.registry);\n\t\t\tif (importStrategyBean instanceof BeanFactoryAware && this.registry instanceof BeanFactory) {\n\t\t\t\t((BeanFactoryAware) importStrategyBean).setBeanFactory((BeanFactory) this.registry);\n\tprivate void invokeAwareMethods(ImportBeanDefinitionRegistrar registrar) {\n\t\tif (registrar instanceof Aware) {\n\t\t\tif (registrar instanceof ResourceLoaderAware) {\n\t\t\t\t((ResourceLoaderAware) registrar).setResourceLoader(this.resourceLoader);\n\tprivate void invokeAwareMethods(Object importStrategyBean) {\n\t\tif (importStrategyBean instanceof Aware) {\n\t\t\tif (importStrategyBean instanceof ResourceLoaderAware) {\n\t\t\t\t((ResourceLoaderAware) importStrategyBean).setResourceLoader(this.resourceLoader);\n\t\t\tif (registrar instanceof BeanClassLoaderAware) {\n\t\t\tif (importStrategyBean instanceof BeanClassLoaderAware) {\n\t\t\t\t((BeanClassLoaderAware) registrar).setBeanClassLoader(classLoader);\n\t\t\t\t((BeanClassLoaderAware) importStrategyBean).setBeanClassLoader(classLoader);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/spring-projects/spring-framework/commit/db0d780d4339953276447e034a6143abc3d83db9", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "\t\tif (beanClass != null && !mbd.isSynthetic() && hasInstantiationAwareBeanPostProcessors()) {\n\t\tif (targetType != null && !mbd.isSynthetic() && hasInstantiationAwareBeanPostProcessors()) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/c986a1efc12a8c0c1c0e797ea5c0d3023e0b0287", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " * Copyright 2002-2008 the original author or authors.\n * Copyright 2002-2012 the original author or authors.\n * Copyright 2002-2011 the original author or authors.\n * Copyright 2002-2012 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/2503b7eb891824da01ccde3b5035f0030ea757a4", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\tpublic static final String DEFAULT_COMMAND_LINE_PROPERTY_SOURCE_NAME = \"commandLineArgs\";\n\tpublic static final String COMMAND_LINE_PROPERTY_SOURCE_NAME = \"commandLineArgs\";\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/b5b2add5cf991bf9afb64d29ee6ea9823a45d58e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": "\t * @see CommandLinePropertySource#DEFAULT_COMMAND_LINE_PROPERTY_SOURCE_NAME\n\t * @see CommandLinePropertySource#COMMAND_LINE_PROPERTY_SOURCE_NAME\n\tpublic static final String DEFAULT_COMMAND_LINE_PROPERTY_SOURCE_NAME = \"commandLineArgs\";\n\tpublic static final String COMMAND_LINE_PROPERTY_SOURCE_NAME = \"commandLineArgs\";\n\t * #DEFAULT_COMMAND_LINE_PROPERTY_SOURCE_NAME} and backed by the given source object.\n\t * #COMMAND_LINE_PROPERTY_SOURCE_NAME} and backed by the given source object.\n\t\tsuper(DEFAULT_COMMAND_LINE_PROPERTY_SOURCE_NAME, source);\n\t\tsuper(COMMAND_LINE_PROPERTY_SOURCE_NAME, source);\n\t * @see CommandLinePropertySource#DEFAULT_COMMAND_LINE_PROPERTY_SOURCE_NAME\n\t * @see CommandLinePropertySource#COMMAND_LINE_PROPERTY_SOURCE_NAME\n\t\t\t\tequalTo(CommandLinePropertySource.DEFAULT_COMMAND_LINE_PROPERTY_SOURCE_NAME));\n\t\t\t\tequalTo(CommandLinePropertySource.COMMAND_LINE_PROPERTY_SOURCE_NAME));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/spring-projects/spring-framework/commit/b5b2add5cf991bf9afb64d29ee6ea9823a45d58e", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5 ] }, { "input": "\t\tpublic PlatformTransactionManager createTransactionManager() {\n\t\tpublic PlatformTransactionManager annotationDrivenTransactionManager() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/e0ad6500bea0b6c9e07b8b29f2ca265b2faebf1b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\t\t\treturn new IncorrectResultSizeDataAccessException(ex.getMessage(), 1);\n\t\t\treturn new IncorrectResultSizeDataAccessException(ex.getMessage(), 1, ex);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/b0b1116f4b605e04dfc3c63cd6f5d40be7046919", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " * Copyright 2002-2010 the original author or authors.\n * Copyright 2002-2011 the original author or authors.\n * Copyright 2002-2010 the original author or authors.\n * Copyright 2002-2011 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/spring-projects/spring-framework/commit/150838bfc13a136ef0baf943e378a8ebb5f3549f", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t// TODO SPR-7508: log that this bean is being rejected on profile mismatch\n\t\t\t\t// TODO SPR-7508: log that this bean is being rejected on profile mismatch\n\t\t\t\t// TODO SPR-7508: log that this bean is being rejected on profile mismatch\n\t\t\t\t// TODO SPR-7508: log that this bean is being rejected on profile mismatch\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/spring-projects/spring-framework/commit/150838bfc13a136ef0baf943e378a8ebb5f3549f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": "\t * @param localeContext the current LocaleContext, or null to reset\n\t * the thread-bound context\n\t * @param localeContext the current LocaleContext\n\t * @param localeContext the current LocaleContext, or null to reset\n\t * the thread-bound context\n\t * @param localeContext the current LocaleContext,\n\t * or null to reset the thread-bound context\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/spring-projects/spring-framework/commit/ae3cfff3805ae488e4cd56da3cef24aee8d79ab5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t * Set a custom ArgumentResolvers to use for special method parameter types. Such a custom ArgumentResolver will kick\n\t * in first, having a chance to resolve an argument value before the standard argument handling kicks in.\n\t * Set a custom ArgumentResolvers to use for special method parameter types.\n\t *

Such a custom ArgumentResolver will kick in first, having a chance to resolve\n\t * an argument value before the standard argument handling kicks in.\n\t * Set one or more custom ArgumentResolvers to use for special method parameter types. Any such custom ArgumentResolver\n\t * will kick in first, having a chance to resolve an argument value before the standard argument handling kicks in.\n\t * Set one or more custom ArgumentResolvers to use for special method parameter types.\n\t *

Any such custom ArgumentResolver will kick in first, having a chance to resolve\n\t * an argument value before the standard argument handling kicks in.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/spring-projects/spring-framework/commit/45d9b0cb2d46930eaf6dbaf37f92e84ee53d9b5c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\t\tif (!isAssignable(lBound, rBound)) {\n\t\t\t\t\tif (!isAssignableBound(lBound, rBound)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.12244897959183673, "commit_url": "https://github.com/spring-projects/spring-framework/commit/66d2c6698b4642260cd3177407d036be4b0fc84a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6 ] }, { "input": "\t\t\t\t\tif (!isAssignable(rBound, lBound)) {\n\t\t\t\t\tif (!isAssignableBound(rBound, lBound)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.08163265306122448, "commit_url": "https://github.com/spring-projects/spring-framework/commit/66d2c6698b4642260cd3177407d036be4b0fc84a", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5, 6 ] }, { "input": " * Copyright 2002-2008 the original author or authors.\n * Copyright 2002-2009 the original author or authors.\n * Copyright 2002-2008 the original author or authors.\n * Copyright 2002-2009 the original author or authors.\n * Copyright 2002-2008 the original author or authors.\n * Copyright 2002-2009 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/spring-projects/spring-framework/commit/d46c1f600a97e41307e96225223d780b0e9c49f7", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "\t\t\t\t\tstringTransferable.removeOuterQuotes();\n\t\t\t\t\tstringTransferable.removeOuterQuotesAndStandardStringPrefix();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/0c2526020d0bae83745158ce732c215abe55e258", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tfor (FileSystemEventListener listener : listeners) {\n\t\t\tlistener.onFilesystemRefChange(fs, this);\n\t\t}\n\t\tlisteners.invoke().onFilesystemRefChange(fs, this);\n\t\tfor (FileSystemEventListener listener : listeners) {\n\t\t\tlistener.onFilesystemRefChange(fs, this);\n\t\t}\n\t\tlisteners.invoke().onFilesystemRefChange(fs, this);\n\t\tfor (FileSystemEventListener listener : listeners) {\n\t\t\tlistener.onFilesystemClose(fsCopy);\n\t\t}\n\t\tlisteners.invoke().onFilesystemClose(fsCopy);\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/84b93bc5db0f5fea9bcf10fdd6d882e280f93190", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "import java.awt.Dimension;\nimport java.awt.Dimension;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/06b267ed5fe899097b6306ba3333efcbc67513a2", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": "import javax.swing.Box;\nimport javax.swing.*;\nimport javax.swing.JLabel;\nimport javax.swing.JPanel;\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/06b267ed5fe899097b6306ba3333efcbc67513a2", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tBox northPanel = Box.createHorizontalBox();\n\t\tJPanel northPanel = new JPanel(new BorderLayout());\n\t\tBox northPanel = Box.createHorizontalBox();\n\t\tJPanel northPanel = new JPanel(new BorderLayout());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/06b267ed5fe899097b6306ba3333efcbc67513a2", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": "\tprivate Scalar grabMatchingScalar(Instruction instruction, int opIndex) {\n\tprivate Scalar grabMatchingScalar(Instruction instruction, int opIndex, int subOpIndex) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/a080cc563c81b67f961923a1fa24ab0546be3a1a", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": "//\t\t\treturn false;\n//\t\t\treturn false;\n//\t\t\treturn false;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/cf17f27a5b196d18c266c4fce0a96ae42032d996", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "\tvoid deleteMemoryBlock(long key) throws IOException {\n\tvoid deleteMemoryBlock(MemoryBlockDB block) throws IOException {\n\tvoid deleteMemoryBlock(long key) throws IOException {\n\tvoid deleteMemoryBlock(MemoryBlockDB block) throws IOException {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/5be1971ecf942ea997bcd62024cecedec1ae2278", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\tpublic int getSequence() {\n\tpublic Integer getSequence() {\n\tpublic int getSequence() {\n\tpublic Integer getSequence() {\n\tpublic int getSequence() {\n\tpublic Integer getSequence() {\n\tpublic int getSequence() {\n\tpublic Integer getSequence() {\n\t\tif (op == null) {\n\t\t\treturn null;\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/61cd2fbd104827f3679c03987de3a2aa18865029", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\t\tgetListeners().fire.event(getProxy(), eventThread, TargetEventType.MODULE_LOADED,\n\t\t\t\"Library \" + info.getModuleName(index) + \" loaded\", List.of(targetModule));\n\t\tif (eventThread != null) {\n\t\t\tgetListeners().fire.event(getProxy(), eventThread, TargetEventType.MODULE_LOADED,\n\t\t\t\t\t\"Library \" + info.getModuleName(index) + \" loaded\", List.of(targetModule));\n\t\t}\n\t\t\tgetListeners().fire.event(getProxy(), eventThread, TargetEventType.MODULE_UNLOADED,\n\t\t\t\t\"Library \" + info.getModuleName(index) + \" unloaded\", List.of(targetModule));\n\t\t\tif (eventThread != null) {\n\t\t\t\tgetListeners().fire.event(getProxy(), eventThread, TargetEventType.MODULE_UNLOADED,\n\t\t\t\t\t\t\"Library \" + info.getModuleName(index) + \" unloaded\", List.of(targetModule));\n\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/5462dd0d8f6dd793d5608d7da49dd8531d29133f", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tchangeAttributes(List.of(), List.of(), Map.of( //\n\t\t\tRANGE_ATTRIBUTE_NAME, range, //\n\t\t\t\"BaseAddress\", range.getMinAddress(), //\n\t\t\t\"Len\", Long.toHexString(range.getLength()) //\n\t\t), \"Initialized\");\n\t\tif (range != null) {\n\t\t\tchangeAttributes(List.of(), List.of(), Map.of( //\n\t\t\t\t\tRANGE_ATTRIBUTE_NAME, range, //\n\t\t\t\t\t\"BaseAddress\", range.getMinAddress(), //\n\t\t\t\t\t\"Len\", Long.toHexString(range.getLength()) //\n\t\t\t), \"Initialized\");\n\t\t}\n\t\tthis.changeAttributes(List.of(), List.of(), Map.of( //\n\t\t\t\"RegionBase\", range.getMinAddress(), //\n\t\t\t\"RegionEnd\", range.getMaxAddress(), //\n\t\t\t\"RegionSize\", Long.toHexString(range.getMaxAddress().subtract(range.getMinAddress()) + 1) //\n\t\t), \"Initialized\");\n\t\trange = doGetRange(region);\n\t\tif (range != null) {\n\t\t\tthis.changeAttributes(List.of(), List.of(), Map.of( //\n\t\t\t\tRANGE_ATTRIBUTE_NAME, range, //\n\t\t\t\t\"RegionBase\", range.getMinAddress(), //\n\t\t\t\t\"RegionEnd\", range.getMaxAddress(), //\n\t\t\t\t\"RegionSize\", Long.toHexString(range.getMaxAddress().subtract(range.getMinAddress()) + 1) //\n\t\t\t), \"Initialized\");\n\t\t}\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/5462dd0d8f6dd793d5608d7da49dd8531d29133f", "target_edit_idx": 9, "propagatable_edit_idx": [ 6 ] }, { "input": "\t// override clone to install the needed listeners\n\t@Override\n\tpublic GTreeNode clone() throws CloneNotSupportedException {\n\t\tArchiveNode clone = (ArchiveNode) super.clone();\n\t\tclone.installDataTypeManagerListener();\n\t\treturn clone;\n\t}\n\n\t// override clone to install the needed listeners\n\t@Override\n\tpublic GTreeNode clone() throws CloneNotSupportedException {\n\t\tArchiveRootNode clone = (ArchiveRootNode) super.clone();\n\t\tclone.init();\n\t\treturn clone;\n\t}\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/8ea716eb703a0299e1ff5fec6684dae350c3f3d3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tGTreeNode node = convertToViewNode(changedNode);\n\t\t\tif (node == null) {\n\t\t\t// If the tree is filtered and this is called on the original node, we have to\n\t\t\t// translate the node to a view node (one the jtree knows). \n\t\t\tGTreeNode viewNode = convertToViewNode(changedNode);\n\t\t\tif (viewNode == null) {\n\t\t\tif (node != changedNode) {\n\t\t\t\t// Note: calling setChildren() here triggers another call to this method. But, \n\t\t\t\t// the 'isFiringNodeStructureChanged' flag prevents that notification from\n\t\t\t\t// happening. So, we still have to fire the event below.\n\t\t\t\tnode.setChildren(null);\n\t\t\tif (viewNode != changedNode) {\n\t\t\t\t// This means we are filtered and since the original node's children are invalid, \n\t\t\t\t// then the filtered children are invalid also. So clear out the children by\n\t\t\t\t// setting an empty list as we don't want to trigger the node to regenerate its \n\t\t\t\t// children which happens if you set the children to null. \n\t\t\t\t//\n\t\t\t\t// This won't cause a second event to the jtree because we are protected\n\t\t\t\t// by the isFiringNodeStructureChanged variable\n\t\t\t\tviewNode.setChildren(Collections.emptyList());\n\t\t\tTreeModelEvent event = new TreeModelEvent(this, node.getTreePath());\n\t\t\tTreeModelEvent event = new TreeModelEvent(this, viewNode.getTreePath());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/8ea716eb703a0299e1ff5fec6684dae350c3f3d3", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10 ] }, { "input": "\t * @param program \n\t * @param program associated Program\n\t * @param program\n\t * @param program associated Program\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/0ed83875fcb25b57ce16d2fb8a23f307c950140e", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\tmachHeader.getStartIndexInProvider() + s.getOffset(), s.getSize()) : null;\n\t\t\tmachHeader.getStartIndex() + s.getOffset(), s.getSize()) : null;\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.9, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/aff4b18c3aa3204f563158955430a8e422bf768b", "target_edit_idx": 0, "propagatable_edit_idx": [ 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "\t\t\treader.setPointerIndex(header.getStartIndexInProvider() + modtaboff);\n\t\t\treader.setPointerIndex(header.getStartIndex() + modtaboff);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7777777777777778, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/aff4b18c3aa3204f563158955430a8e422bf768b", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 6, 7, 9, 10, 11, 12, 13, 14 ] }, { "input": "\t\t\treader.setPointerIndex(header.getStartIndexInProvider() + extreloff);\n\t\t\treader.setPointerIndex(header.getStartIndex() + extreloff);\n\t\t\tmachHeader.getStartIndexInProvider() + s.getOffset(), s.getSize()) : null;\n\t\t\tmachHeader.getStartIndex() + s.getOffset(), s.getSize()) : null;\n\t\treturn reader.getByteProvider().getInputStream(header.getStartIndexInProvider() + offset);\n\t\treturn reader.getByteProvider().getInputStream(header.getStartIndex() + offset);\n\t\t\treader.setPointerIndex(header.getStartIndexInProvider() + tocoff);\n\t\t\treader.setPointerIndex(header.getStartIndex() + tocoff);\n\t\t\treader.setPointerIndex(header.getStartIndexInProvider() + modtaboff);\n\t\t\treader.setPointerIndex(header.getStartIndex() + modtaboff);\n\t\t\treader.setPointerIndex(header.getStartIndexInProvider() + extrefsymoff);\n\t\t\treader.setPointerIndex(header.getStartIndex() + extrefsymoff);\n\t\t\treader.setPointerIndex(header.getStartIndexInProvider() + indirectsymoff);\n\t\t\treader.setPointerIndex(header.getStartIndex() + indirectsymoff);\n\t\t\treader.setPointerIndex(header.getStartIndexInProvider() + locreloff);\n\t\t\treader.setPointerIndex(header.getStartIndex() + locreloff);\n\t\treader.setPointerIndex(header.getStartIndexInProvider() + symoff);\n\t\treader.setPointerIndex(header.getStartIndex() + symoff);\n\t\tlong startIndex = header.getStartIndexInProvider();\n\t\tlong startIndex = header.getStartIndex();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5555555555555556, "commit_url": "https://github.com/NationalSecurityAgency/ghidra/commit/aff4b18c3aa3204f563158955430a8e422bf768b", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 6, 7, 8, 9, 10, 12, 13, 14 ] }, { "input": " * @param value\n * @param t\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ReactiveX/RxJava/commit/5b6d1f8c8e9e4adc3fe31388811aa4876a5afba2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " * @param transformer\n * implements the function that transforms the source Maybe\n * @param transformer the transformer function, not null\n * @param transformer\n * implements the function that transforms the source Single\n * @param transformer the transformer function, not null\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ReactiveX/RxJava/commit/5ad1c046da45a69817b643eb0c6602ddab1b112c", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " Observable.range(1, 100000).map(new Func1() {\n Observable.range(1, 1000).map(new Func1() {\n Observable.range(1, 100000).map(new Func1() {\n Observable.range(1, 1000).map(new Func1() {\n Observable.range(1, 10000).map(new Func1() {\n Observable.range(1, 1000).map(new Func1() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ReactiveX/RxJava/commit/2e53b6752b3a3ef0ac872c9cbbfa3e915d765646", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " counter.incrementAndGet();\n counter.incrementAndGet();\n counter.incrementAndGet();\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ReactiveX/RxJava/commit/cf8a50201cf252a407b3007cc0efb81e6a34752e", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "\t\t\treturn FileUtils.toPaths(selectedFiles);\n\t\t\treturn FileUtils.toPathsWithTrim(selectedFiles);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/skylot/jadx/commit/015876b7902ab9b95cc7195b5897869d9dd1a9d0", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tif (latestName.equalsIgnoreCase(version)) {\n\t\tif (latestName.equalsIgnoreCase(currentVersion)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/skylot/jadx/commit/92a6c333d8a0514c6e7928cc69e801f8c44f8964", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": "\tprivate static String getSmaliCode(DexBackedClassDef classDef) throws IOException {\n\tprivate static void getSmaliCode(DexBackedClassDef classDef, StringWriter stringWriter) throws IOException {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/skylot/jadx/commit/c97e5046867fc36a0887290b1b88150c27090009", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\t\t\tcheckInsn(insn);\n\t\t\tremoveParenthesis(insn);\n\t\t\t\t\tcheckInsn(wrapInsn);\n\t\t\t\t\tremoveParenthesis(wrapInsn);\n\tprivate static void checkInsn(InsnNode insn) {\n\tprivate static void removeParenthesis(InsnNode insn) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/skylot/jadx/commit/30fbf4bcfa7ae931101c5f848aefb94246d2c39f", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 5 ] }, { "input": "\t\t\tlist.add(String.format(\"f %s = %s\", fld.getFullId(), fld.getAlias()));\n\t\t\tlist.add(String.format(\"f %s = %s\", fld.getRawFullId(), fld.getAlias()));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/skylot/jadx/commit/a841d0ebe7dfff6639e3eabdd8ae7e79d6a35321", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": "\t\t\t\treturn getConstField((char) literal, Math.abs(literal) > 1);\n\t\t\t\treturn getConstField((char) literal, Math.abs(literal) > 10);\n\t\t\t\treturn getConstField((byte) literal, Math.abs(literal) > 1);\n\t\t\t\treturn getConstField((byte) literal, Math.abs(literal) > 10);\n\t\t\t\treturn getConstField((short) literal, Math.abs(literal) > 1);\n\t\t\t\treturn getConstField((short) literal, Math.abs(literal) > 100);\n\t\t\t\treturn getConstField((int) literal, Math.abs(literal) > 1);\n\t\t\t\treturn getConstField((int) literal, Math.abs(literal) > 100);\n\t\t\t\treturn getConstField(literal, Math.abs(literal) > 1);\n\t\t\t\treturn getConstField(literal, Math.abs(literal) > 1000);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/skylot/jadx/commit/380ee75d9aedc29d997a2f34d8fb2cc866d670cc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " os.write(b.length);\n writeLength(b.length);\n os.write(len);\n writeLength(len);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/dubbo/commit/164aebf6ed47d5c06fe5e91ced491bbff5b03abb", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " executor.waitAndDrain();\n executor.waitAndDrain(123);\n Assertions.assertTrue(invoked.get());\n public void waitAndDrain() throws InterruptedException {\n public void waitAndDrain(long deadline) throws InterruptedException {\n executor.waitAndDrain();\n executor.waitAndDrain(123);\n executor.waitAndDrain();\n executor.waitAndDrain(Long.MAX_VALUE);\n threadlessExecutor.waitAndDrain();\n threadlessExecutor.waitAndDrain(Long.MAX_VALUE);\n threadlessExecutor.waitAndDrain();\n long restTime = deadline - System.nanoTime();\n if (restTime > 0) {\n threadlessExecutor.waitAndDrain(deadline);\n } else {\n throw new TimeoutException(\"Timeout after \" + unit.toMillis(timeout) + \"ms waiting for result.\");\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/dubbo/commit/0f7a62a8ff2a2f3f66932cea4609ff06f90bb098", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 4, 7, 8, 10 ] }, { "input": " executor.waitAndDrain();\n executor.waitAndDrain(Long.MAX_VALUE);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/dubbo/commit/0f7a62a8ff2a2f3f66932cea4609ff06f90bb098", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 4, 6, 8, 10 ] }, { "input": " threadlessExecutor.waitAndDrain();\n threadlessExecutor.waitAndDrain(Long.MAX_VALUE);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/dubbo/commit/0f7a62a8ff2a2f3f66932cea4609ff06f90bb098", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 4, 6, 7, 10 ] }, { "input": " threadlessExecutor.waitAndDrain();\n long restTime = deadline - System.nanoTime();\n if (restTime > 0) {\n threadlessExecutor.waitAndDrain(deadline);\n } else {\n throw new TimeoutException(\"Timeout after \" + unit.toMillis(timeout) + \"ms waiting for result.\");\n }\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/dubbo/commit/0f7a62a8ff2a2f3f66932cea4609ff06f90bb098", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 4, 6, 7, 8 ] }, { "input": " private static final String ZK_SESSION_EXPIRE_KEY = \"zk.session.expire\";\n private static final String ZK_SESSION_EXPIRE_KEY = \"zk.session.expire\";\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/dubbo/commit/06b34ddde4379915a502c92d779326851517205b", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " int sessionExpireMs = url.getParameter(ZK_SESSION_EXPIRE_KEY, DEFAULT_SESSION_TIMEOUT_MS);\n int sessionExpireMs = url.getParameter(SESSION_KEY, DEFAULT_SESSION_TIMEOUT_MS);\n int sessionExpireMs = url.getParameter(ZK_SESSION_EXPIRE_KEY, DEFAULT_SESSION_TIMEOUT_MS);\n int sessionExpireMs = url.getParameter(SESSION_KEY, DEFAULT_SESSION_TIMEOUT_MS);\n this.sessionExpireMs = url.getParameter(ZK_SESSION_EXPIRE_KEY, DEFAULT_SESSION_TIMEOUT_MS);\n this.sessionExpireMs = url.getParameter(SESSION_KEY, DEFAULT_SESSION_TIMEOUT_MS);\n this.sessionExpireMs = url.getParameter(ZK_SESSION_EXPIRE_KEY, DEFAULT_SESSION_TIMEOUT_MS);\n this.sessionExpireMs = url.getParameter(SESSION_KEY, DEFAULT_SESSION_TIMEOUT_MS);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/dubbo/commit/06b34ddde4379915a502c92d779326851517205b", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 9, 5 ] }, { "input": " public static boolean isServiceDiscoveryRegistryType(URL url) {\n return isServiceDiscoveryRegistryType(url == null ? emptyMap() : url.getParameters());\n public static boolean hasServiceDiscoveryRegistryTypeKey(URL url) {\n return hasServiceDiscoveryRegistryTypeKey(url == null ? emptyMap() : url.getParameters());\n }\n\n public static boolean hasServiceDiscoveryRegistryProtocol(URL url) {\n return SERVICE_REGISTRY_PROTOCOL.equalsIgnoreCase(url.getProtocol());\n }\n\n public static boolean isServiceDiscoveryURL(URL url) {\n return hasServiceDiscoveryRegistryProtocol(url) || hasServiceDiscoveryRegistryTypeKey(url);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/apache/dubbo/commit/33e39a137938a3e47de6b0a427b79763ae6a462d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " if (!UrlUtils.isServiceDiscoveryRegistryType(statedURL.getRegistryUrl())) {\n if (!UrlUtils.isServiceDiscoveryURL(statedURL.getRegistryUrl())) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/apache/dubbo/commit/33e39a137938a3e47de6b0a427b79763ae6a462d", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6, 7 ] }, { "input": "import static org.apache.dubbo.registry.Constants.CONSUMER_PROTOCOL;\nimport static org.apache.dubbo.registry.Constants.CONSUMER_PROTOCOL;\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/apache/dubbo/commit/585694e3cf4e76a778390dd73e2673585aa29d03", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " URL consumerUrl = new URL(CONSUMER_PROTOCOL, parameters.remove(REGISTER_IP_KEY), 0, type.getName(), parameters);\n URL consumerUrl = new URL(parameters.get(PROTOCOL_KEY) == null ? DUBBO : parameters.get(PROTOCOL_KEY), parameters.remove(REGISTER_IP_KEY), 0, type.getName(), parameters);\n URL urlToRegistry = new URL(CONSUMER_PROTOCOL, parameters.remove(REGISTER_IP_KEY), 0, type.getName(), parameters);\n URL urlToRegistry = new URL(parameters.get(PROTOCOL_KEY) == null ? DUBBO : parameters.get(PROTOCOL_KEY), parameters.remove(REGISTER_IP_KEY), 0, type.getName(), parameters);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/dubbo/commit/585694e3cf4e76a778390dd73e2673585aa29d03", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " && !CONSUMER_PROTOCOL.equals(url.getProtocol());\n && !(url.getPort() == 0);\n && !CONSUMER_PROTOCOL.equals(url.getProtocol());\n && !(url.getPort() == 0);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/dubbo/commit/585694e3cf4e76a778390dd73e2673585aa29d03", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " public String[] include() {\n public String[] serviceParamsIncluded() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/dubbo/commit/a27494f9b2d4051b95fb3755e48d6cfb7f704458", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " return (Long) channel.getAttribute(HeaderExchangeHandler.KEY_READ_TIMESTAMP);\n return (Long) channel.getAttribute(HeartbeatHandler.KEY_READ_TIMESTAMP);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/dubbo/commit/4c358907023a7f055cff769549b8030ed1a926fb", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " channel.setAttribute(KEY_READ_TIMESTAMP, System.currentTimeMillis());\n channel.setAttribute(KEY_WRITE_TIMESTAMP, System.currentTimeMillis());\n channel.setAttribute(KEY_READ_TIMESTAMP, System.currentTimeMillis());\n channel.setAttribute(KEY_WRITE_TIMESTAMP, System.currentTimeMillis());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/dubbo/commit/4c358907023a7f055cff769549b8030ed1a926fb", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " channel.setAttribute(KEY_WRITE_TIMESTAMP, System.currentTimeMillis());\n channel.setAttribute(KEY_READ_TIMESTAMP, System.currentTimeMillis());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/dubbo/commit/4c358907023a7f055cff769549b8030ed1a926fb", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " private static final String RULE_SUFFIX = \".routers.condition\";\n private static final String RULE_SUFFIX = \".router-condition\";\n private static final String RULE_SUFFIX = \".routers.tag\";\n private static final String RULE_SUFFIX = \".router-tag\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/dubbo/commit/c4e9b9de2dd96b2cc13816b08662f1235463070e", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": "import org.apache.dubbo.rpc.cluster.router.TreeNode;\nimport org.apache.dubbo.rpc.cluster.router.TreeNode;\n", "class": "clone", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/apache/dubbo/commit/a5695af6873f3319644ed4d6b662054a76f6e2cf", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " @Override\n public String getKey() {\n return TreeNode.FAILOVER_KEY;\n }\n\n @Override\n public String getKey() {\n return TreeNode.FAILOVER_KEY;\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/dubbo/commit/a5695af6873f3319644ed4d6b662054a76f6e2cf", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " public void showVariablesPanel() {\n public void showVariablesPanel(@Nullable Boolean show) {\n editor.showVariablesPanel();\n editor.showVariablesPanel(null);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/bcfeb349f020cc546d24d2dfd7c999fd6d664c21", "target_edit_idx": 7, "propagatable_edit_idx": [ 14 ] }, { "input": " showOutputPanel();\n showOutputPanel(true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/bcfeb349f020cc546d24d2dfd7c999fd6d664c21", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 11, 3, 12 ] }, { "input": " showOutputPanel();\n showOutputPanel(true);\n if (outTab != null) showOutputPanel();\n if (logTab != null) showExecutionLogPanel();\n if (varTab != null) showVariablesPanel();\n if (outTab != null) showOutputPanel(true);\n if (logTab != null) showExecutionLogPanel(true);\n if (varTab != null) showVariablesPanel(true);\n showOutputPanel();\n showOutputPanel(true);\n public void showOutputPanel() {\n public void showOutputPanel(@Nullable Boolean show) {\n editor.showOutputPanel();\n editor.showOutputPanel(null);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/bcfeb349f020cc546d24d2dfd7c999fd6d664c21", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 9, 3, 12 ] }, { "input": " editor.showOutputPanel();\n editor.showOutputPanel(null);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/bcfeb349f020cc546d24d2dfd7c999fd6d664c21", "target_edit_idx": 12, "propagatable_edit_idx": [ 0, 9, 3, 11 ] }, { "input": " editor.showExecutionLogPanel();\n editor.showExecutionLogPanel(null);\n public void showExecutionLogPanel() {\n public void showExecutionLogPanel(@Nullable Boolean show) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/bcfeb349f020cc546d24d2dfd7c999fd6d664c21", "target_edit_idx": 13, "propagatable_edit_idx": [ 5 ] }, { "input": " editor.showVariablesPanel();\n editor.showVariablesPanel(null);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/bcfeb349f020cc546d24d2dfd7c999fd6d664c21", "target_edit_idx": 14, "propagatable_edit_idx": [ 7 ] }, { "input": " loadTaskRuns();\n loadTaskRuns(true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/af5eeafe67ea8de902f1f86f355427addfd0d7f9", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5, 7 ] }, { "input": " private void loadTaskRuns() {\n private void loadTaskRuns(boolean force) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/af5eeafe67ea8de902f1f86f355427addfd0d7f9", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " targetName = getSourceLabelOrName(targetName, false);\n targetName = getSourceLabelOrName(targetName, false, false);\n targetName = getSourceLabelOrName(getSource(), true);\n targetName = getSourceLabelOrName(getSource(), true, false);\n targetName = getSourceLabelOrName(source, false);\n targetName = getSourceLabelOrName(source, false, updateAttributesNames);\n targetName = getSourceLabelOrName(source, true);\n targetName = getSourceLabelOrName(source, true, updateAttributesNames);\n String sourceLabelOrName = getSourceLabelOrName(source, false);\n String sourceLabelOrName = getSourceLabelOrName(source, false, updateAttributesNames);\n String getSourceLabelOrName(DBSAttributeBase source, boolean addSpecialTransformation) {\n return getSourceLabelOrName(getSourceAttributeName(source), addSpecialTransformation);\n String getSourceLabelOrName(DBSAttributeBase source, boolean addSpecialTransformation, boolean updateAttributesNames) {\n return getSourceLabelOrName(getSourceAttributeName(source), addSpecialTransformation, updateAttributesNames);\n private String getSourceLabelOrName(String name, boolean addSpecialTransformation) {\n private String getSourceLabelOrName(String name, boolean addSpecialTransformation, boolean updateAttributesNames) {\n CommonUtils.notNull(sourceAttr.getLabel(), sourceAttr.getName()), attr -> attr.getSourceLabelOrName(attr.getSource(), false));\n CommonUtils.notNull(sourceAttr.getLabel(), sourceAttr.getName()),\n attr -> attr.getSourceLabelOrName(attr.getSource(), false, false));\n attrsSection.put(attrMapping.getSourceLabelOrName(sourceAttr, false), attrSettings);\n attrsSection.put(attrMapping.getSourceLabelOrName(sourceAttr, false, false), attrSettings);\n attrMapping.getSourceLabelOrName(sourceAttr, false));\n attrMapping.getSourceLabelOrName(sourceAttr, false, false));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/4973079c4bd20e3d45b6b9ecf316b2857c364184", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 5, 6, 7, 9, 10, 11 ] }, { "input": " if (System.getProperty(GeneralUtils.PROP_TRUST_STORE) != null\n || System.getProperty(GeneralUtils.PROP_TRUST_STORE_TYPE) != null\n if (CommonUtils.isNotEmpty(System.getProperty(GeneralUtils.PROP_TRUST_STORE))\n || (CommonUtils.isNotEmpty(System.getProperty(GeneralUtils.PROP_TRUST_STORE_TYPE))\n && !System.getProperty(GeneralUtils.PROP_TRUST_STORE_TYPE).equalsIgnoreCase(VALUE_TRUST_STRORE_TYPE_WINDOWS))\n && System.getProperty(GeneralUtils.PROP_TRUST_STORE) == null\n && System.getProperty(GeneralUtils.PROP_TRUST_STORE_TYPE) == null\n && CommonUtils.isEmpty(System.getProperty(GeneralUtils.PROP_TRUST_STORE))\n && CommonUtils.isEmpty(System.getProperty(GeneralUtils.PROP_TRUST_STORE_TYPE))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/dbeaver/dbeaver/commit/c55850fb94889e1c4787ed0e3ecec74b0168cdf4", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " PrintWriter outputWriter = new PrintWriter(outputViewer.getOutputWriter()) {\n if (currentOutputViewer == null || currentOutputViewer.isDisposed()) {\n return;\n }\n PrintWriter outputWriter = new PrintWriter(currentOutputViewer.getOutputWriter()) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/dbeaver/dbeaver/commit/e895111757da8088a17d940abd1d52a8016711c1", "target_edit_idx": 4, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " statistics = new DBCStatistics();\n statistics = new DBCStatistics();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/218be099dad1ff7c81799c6a12058003eac7fe79", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " setShellStyle(SWT.CLOSE | SWT.MAX | SWT.MIN | SWT.TITLE | SWT.BORDER | SWT.RESIZE | getDefaultOrientation());\n setShellStyle(SWT.CLOSE | SWT.MAX | SWT.TITLE | SWT.BORDER | SWT.RESIZE | getDefaultOrientation());\n return SWT.CLOSE | SWT.MAX | SWT.MIN | SWT.TITLE | SWT.BORDER | SWT.RESIZE | getDefaultOrientation();\n return SWT.CLOSE | SWT.MAX | SWT.TITLE | SWT.BORDER | SWT.RESIZE | getDefaultOrientation();\n return SWT.CLOSE | SWT.MAX | SWT.MIN | SWT.TITLE | SWT.BORDER | SWT.RESIZE | getDefaultOrientation();\n return SWT.CLOSE | SWT.MAX | SWT.TITLE | SWT.BORDER | SWT.RESIZE | getDefaultOrientation();\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/dbeaver/dbeaver/commit/7d7251a72665e1d6245965b4b0e78536e8610d96", "target_edit_idx": 0, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " setShellStyle(SWT.SHELL_TRIM);\n setShellStyle(SWT.CLOSE | SWT.TITLE | SWT.MAX | SWT.RESIZE);\n setShellStyle(SWT.SHELL_TRIM);\n setShellStyle(SWT.CLOSE | SWT.TITLE | SWT.MAX | SWT.RESIZE);\n setShellStyle(SWT.SHELL_TRIM);\n setShellStyle(SWT.CLOSE | SWT.TITLE | SWT.MAX | SWT.RESIZE);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/dbeaver/dbeaver/commit/7d7251a72665e1d6245965b4b0e78536e8610d96", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " @Property(viewable = true, editable = true, updatable = true, order = 50)\n @Property(viewable = true, editableExpr = \"!object.table.view\", updatableExpr = \"!object.table.view\", order = 50)\n @Property(viewable = true, editable = true, updatable = true, order = 70)\n @Property(viewable = true, editableExpr = \"!object.table.view\", updatableExpr = \"!object.table.view\", order = 70)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/5ced238a5b2447cb771f474161758d01198c2e35", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " sql.append(view.getViewType()).append(\" \").append(view.getFullyQualifiedName(DBPEvaluationContext.DDL));\n sql.append(view.getTableTypeName()).append(\" \").append(view.getFullyQualifiedName(DBPEvaluationContext.DDL));\n final String alterPrefix = \"ALTER \" + mView.getViewType() + \" \" + command.getObject().getFullyQualifiedName(DBPEvaluationContext.DDL) + \" \";\n final String alterPrefix = \"ALTER \" + mView.getTableTypeName() + \" \" + command.getObject().getFullyQualifiedName(DBPEvaluationContext.DDL) + \" \";\n sqlBuf.append(view.getViewType()).append(\" \").append(DBUtils.getObjectFullName(view, DBPEvaluationContext.DDL));\n sqlBuf.append(view.getTableTypeName()).append(\" \").append(DBUtils.getObjectFullName(view, DBPEvaluationContext.DDL));\n \"ALTER \" + view.getViewType() + \" \" + DBUtils.getQuotedIdentifier(view.getSchema()) + \".\" + DBUtils.getQuotedIdentifier(view.getDataSource(), command.getOldName()) + //$NON-NLS-1$\n \"ALTER \" + view.getTableTypeName() + \" \" + DBUtils.getQuotedIdentifier(view.getSchema()) + \".\" + DBUtils.getQuotedIdentifier(view.getDataSource(), command.getOldName()) + //$NON-NLS-1$\n \"COMMENT ON \" + viewBase.getViewType() + \" \" + viewBase.getFullyQualifiedName(DBPEvaluationContext.DDL) +\n \"COMMENT ON \" + viewBase.getTableTypeName() + \" \" + viewBase.getFullyQualifiedName(DBPEvaluationContext.DDL) +\n public String getViewType() {\n public String getTableTypeName() {\n public String getViewType() {\n public String getTableTypeName() {\n \"COMMENT ON \" + getViewType() + \" \" + getFullyQualifiedName(DBPEvaluationContext.DDL) + \" IS \" + SQLUtils.quoteString(this, getDescription())));\n \"COMMENT ON \" + getTableTypeName() + \" \" + getFullyQualifiedName(DBPEvaluationContext.DDL) + \" IS \" + SQLUtils.quoteString(this, getDescription())));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/85045ba0132c18af55505fa70d8041019436f01d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 5, 6, 7, 8, 12, 13 ] }, { "input": " \"ALTER \" + view.getViewType() + \" \" + DBUtils.getQuotedIdentifier(view.getSchema()) + \".\" + DBUtils.getQuotedIdentifier(view.getDataSource(), command.getOldName()) + //$NON-NLS-1$\n \"ALTER \" + view.getTableTypeName() + \" \" + DBUtils.getQuotedIdentifier(view.getSchema()) + \".\" + DBUtils.getQuotedIdentifier(view.getDataSource(), command.getOldName()) + //$NON-NLS-1$\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/dbeaver/dbeaver/commit/85045ba0132c18af55505fa70d8041019436f01d", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 5, 7, 8, 12, 13 ] }, { "input": " public String getViewType() {\n public String getTableTypeName() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7, "commit_url": "https://github.com/dbeaver/dbeaver/commit/85045ba0132c18af55505fa70d8041019436f01d", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 5, 6, 7, 12, 13 ] }, { "input": " showResultsPanel(false);\n showResultsPanel();\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/ea002c33957b6b39e195aaf7a6ef5e3b0ddcdc9a", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 5, 7 ] }, { "input": " private void showResultsPanel(boolean createQueryProcessor) {\n private void showResultsPanel() {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/ea002c33957b6b39e195aaf7a6ef5e3b0ddcdc9a", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 4, 7 ] }, { "input": " toggleResultPanel(false, createQueryProcessor);\n toggleResultPanel(false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/ea002c33957b6b39e195aaf7a6ef5e3b0ddcdc9a", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 8, 2 ] }, { "input": " showResultsPanel(true);\n showResultsPanel();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/ea002c33957b6b39e195aaf7a6ef5e3b0ddcdc9a", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": " editor.toggleResultPanel(true, true);\n editor.toggleResultPanel(true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/ea002c33957b6b39e195aaf7a6ef5e3b0ddcdc9a", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 2, 6 ] }, { "input": " static void addColumnCommentAction(List actionList, GenericTableColumn column) {\n actionList.add(new SQLDatabasePersistAction(\n \"Comment column\",\n \"COMMENT ON COLUMN \" + column.getTable().getFullyQualifiedName(DBPEvaluationContext.DDL) + \".\" + DBUtils.getQuotedIdentifier(column) +\n \" IS \" + SQLUtils.quoteString(column.getDataSource(), column.getDescription())));\n }\n\n public static void addColumnCommentAction(DBRProgressMonitor monitor, List actionList, OracleTableColumn column) {\n actionList.add(new SQLDatabasePersistAction(\n \"Comment column\",\n \"COMMENT ON COLUMN \" + column.getTable().getFullyQualifiedName(DBPEvaluationContext.DDL) + \".\" + DBUtils.getQuotedIdentifier(column) +\n \" IS \" + SQLUtils.quoteString(column.getDataSource(), column.getComment(monitor))));\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/b00336ad4529bffef802c3f723d47e26453a14e4", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " OracleTableColumnManager.addColumnCommentAction(monitor, actions, column);\n OracleTableColumnManager.addColumnCommentAction(actions, column, column.getTable());\n OracleTableColumnManager.addColumnCommentAction(monitor, actions, column);\n OracleTableColumnManager.addColumnCommentAction(actions, column, column.getTable());\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/dbeaver/dbeaver/commit/b00336ad4529bffef802c3f723d47e26453a14e4", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " toggleResultPanel();\n toggleResultPanel(false);\n toggleResultPanel();\n toggleResultPanel(false);\n public void toggleResultPanel() {\n public void toggleResultPanel(boolean switchFocus) {\n editor.toggleResultPanel();\n editor.toggleResultPanel(true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/6eca8c518436779973abb41149fe95592d5aa4ab", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": " editor.toggleResultPanel();\n editor.toggleResultPanel(true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/dbeaver/dbeaver/commit/6eca8c518436779973abb41149fe95592d5aa4ab", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " NativeToolUtils.VARIABLE_TIMESTAMP);\n NativeToolUtils.VARIABLE_TIMESTAMP,\n NativeToolUtils.VARIABLE_CONN_TYPE);\n NativeToolUtils.VARIABLE_TIMESTAMP);\n NativeToolUtils.VARIABLE_TIMESTAMP,\n NativeToolUtils.VARIABLE_CONN_TYPE);\n", "class": "clone", "binary_label": 1, "regression_label": 0.05263157894736842, "commit_url": "https://github.com/dbeaver/dbeaver/commit/9e51a58c4a63c254d12038d77df6741a4ad1b78b", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " GeneralUtils.variablePattern(NativeToolUtils.VARIABLE_TIMESTAMP)));\n GeneralUtils.variablePattern(NativeToolUtils.VARIABLE_TIMESTAMP),\n GeneralUtils.variablePattern(NativeToolUtils.VARIABLE_CONN_TYPE)));\n GeneralUtils.variablePattern(NativeToolUtils.VARIABLE_TIMESTAMP)));\n GeneralUtils.variablePattern(NativeToolUtils.VARIABLE_TIMESTAMP),\n GeneralUtils.variablePattern(NativeToolUtils.VARIABLE_CONN_TYPE)));\n", "class": "clone", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/dbeaver/dbeaver/commit/9e51a58c4a63c254d12038d77df6741a4ad1b78b", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " public static Object convertStringToValue(DBCSession session, DBSTypedObject itemType, String string) throws DBCException {\n if (itemType.getDataKind() == DBPDataKind.ARRAY) {\n public static Object convertStringToValue(DBCSession session, DBSTypedObject arrayType, String string) throws DBCException {\n if (arrayType.getDataKind() == DBPDataKind.ARRAY) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/dbeaver/dbeaver/commit/a06764129702c88ae252422aa43bd6ff3e8b40a9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " switch (itemType.getTypeID()) {\n switch (arrayType.getTypeID()) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/dbeaver/dbeaver/commit/a06764129702c88ae252422aa43bd6ff3e8b40a9", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8 ] }, { "input": " DataSourceDescriptor newDS = new DataSourceDescriptor((DataSourceDescriptor) source);\n DataSourceDescriptor newDS = new DataSourceDescriptor((DataSourceDescriptor) source, this);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.013157894736842105, "commit_url": "https://github.com/dbeaver/dbeaver/commit/4d70fae2b09b72d655a68da85210253da50503ea", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " protected void createOrReplaceViewQuery(DBRProgressMonitor monitor, List actions, PostgreViewBase view) throws DBException {\n if (CommonUtils.isEmpty(view.getSource())) {\n protected void createOrReplaceViewQuery(DBRProgressMonitor monitor, List actions, PostgreViewBase view, Map options) throws DBException {\n if (CommonUtils.isEmpty(view.getObjectDefinitionText(monitor, options))) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/2c407a76ee203b27d060fac0dd4f8b37ada05b87", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9, 3 ] }, { "input": " StreamTransferConsumer.VARIABLE_PROJECT);\n StreamTransferConsumer.VARIABLE_PROJECT,\n StreamTransferConsumer.VARIABLE_TYPE);\n StreamTransferConsumer.VARIABLE_PROJECT);\n StreamTransferConsumer.VARIABLE_PROJECT,\n StreamTransferConsumer.VARIABLE_TYPE);\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/dbeaver/dbeaver/commit/feb241bdc44dd4b00d0e1d3710dce18b933d19b1", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " @Property(editable = true, updatable = true, order = 40, visibleIf = PostgreVersionBefore12Validator.class)\n @Property(editable = true, updatable = true, order = 40, visibleIf = PostgreColumnHasOidsValidator.class)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/5a973469abcaa000ac3b944c133bb5650135138c", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": " setBackgroundColor(UIColors.getColor(part.getDiagram().getSchemeIndex(scheme)));\n DBPDataSourceContainer container = DBUtils.getParentOfType(DBPDataSourceContainer.class, part.getEntity().getObject());\n if (container != null) {\n int schemeIndex = part.getDiagram().getSchemeIndex(container, scheme);\n if (schemeIndex == 0){\n setBackgroundColor(colorRegistry.get(ERDConstants.COLOR_ERD_ENTITY_REGULAR_BACKGROUND));\n } else {\n setBackgroundColor(UIColors.getColor(schemeIndex - 1));\n }\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/3f2cdcde694bef0ebf5b9650cc433d223bb583ed", "target_edit_idx": 5, "propagatable_edit_idx": [ 10 ] }, { "input": " public int getSchemeIndex(DBSObject scheme) {\n Integer index = schemeMap.get(scheme);\n return index == null ? 0 : index;\n public int getSchemeIndex(DBPDataSourceContainer dataSource, DBSSchema scheme) {\n Map schemeMap = dataSourceSchemeMap.get(dataSource);\n Integer index;\n if (schemeMap != null) {\n index = schemeMap.get(scheme);\n return index == null ? 0 : index;\n }\n return 0;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/3f2cdcde694bef0ebf5b9650cc433d223bb583ed", "target_edit_idx": 10, "propagatable_edit_idx": [ 5 ] }, { "input": " this.expandAll();\n this.expandAll(true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/166924d0e9773437ef1333afe410062cb05ddc7c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 5, 6, 7 ] }, { "input": " propertyTree.expandAll();\n propertyTree.expandAll(true);\n ((AbstractTreeViewer) selectorViewer).expandAll();\n ((AbstractTreeViewer) selectorViewer).expandAll(true);\n this.expandAll();\n this.expandAll(true);\n scriptViewer.expandAll();\n scriptViewer.expandAll(true);\n treeViewer.expandAll();\n treeViewer.expandAll(true);\n PropertyTreeViewer.this.expandAll();\n PropertyTreeViewer.this.expandAll(true);\n PropertyTreeViewer.this.expandAll();\n PropertyTreeViewer.this.expandAll(true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/166924d0e9773437ef1333afe410062cb05ddc7c", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3, 5, 6, 7 ] }, { "input": " PropertyTreeViewer.this.expandAll();\n PropertyTreeViewer.this.expandAll(true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/166924d0e9773437ef1333afe410062cb05ddc7c", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 7 ] }, { "input": " new NavigatorStatePersistor().saveState(getNavigatorViewer().getExpandedElements(), memento);\n if (DBWorkbench.getPlatform().getPreferenceStore().getInt(NavigatorPreferences.NAVIGATOR_RESTORE_STATE_DEPTH) > 0)\n new NavigatorStatePersistor().saveState(getNavigatorViewer().getExpandedElements(), memento);\n new NavigatorStatePersistor().saveState(getNavigatorViewer().getExpandedElements(), memento);\n if (DBWorkbench.getPlatform().getPreferenceStore().getInt(NavigatorPreferences.NAVIGATOR_RESTORE_STATE_DEPTH) > 0)\n new NavigatorStatePersistor().saveState(getNavigatorViewer().getExpandedElements(), memento);\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/dbeaver/dbeaver/commit/fd66cceeff63ca0af3af3a45830c0cbbdfd27a6c", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " public String getNodeType(@NotNull DBPDataSource dataSource, @Nullable String locale) {\n public String getNodeType(@Nullable DBPDataSource dataSource, @Nullable String locale) {\n public String getNodeType(@NotNull DBPDataSource dataSource, @Nullable String locale)\n public String getNodeType(@Nullable DBPDataSource dataSource, @Nullable String locale)\n public String getNodeType(@NotNull DBPDataSource dataSource, @Nullable String locale)\n public String getNodeType(@Nullable DBPDataSource dataSource, @Nullable String locale)\n public abstract String getNodeType(@NotNull DBPDataSource dataSource, @Nullable String locale);\n public abstract String getNodeType(@Nullable DBPDataSource dataSource, @Nullable String locale);\n public abstract String getChildrenType(@NotNull DBPDataSource dataSource, @Nullable String locale);\n public abstract String getChildrenType(@Nullable DBPDataSource dataSource, @Nullable String locale);\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/dbeaver/dbeaver/commit/fb259dc98e82353a31895406d58fc9647379b30a", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 4, 6, 7 ] }, { "input": " public String getChildrenType(DBPDataSource dataSource, String locale) {\n public String getChildrenType(@Nullable DBPDataSource dataSource, String locale) {\n public String getChildrenType(DBPDataSource dataSource, String locale)\n public String getChildrenType(@Nullable DBPDataSource dataSource, String locale)\n public String getChildrenType(DBPDataSource dataSource, String locale)\n public String getChildrenType(@Nullable DBPDataSource dataSource, String locale)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/dbeaver/dbeaver/commit/fb259dc98e82353a31895406d58fc9647379b30a", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 3 ] }, { "input": " makeOverloadedName(getSchema(), getName(), params, true);\n makeOverloadedName(getSchema(), getName(), params, true, false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/65ceadf46db0bd3cd176d46e0b4c9420f5106565", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 4 ] }, { "input": " Assert.assertEquals(regularTableDropTableQuery.getTitle(), sqlDatabasePersistAction.getTitle());\n Assert.assertEquals(regularTableDropTableQuery.getTitle(), sqlDatabasePersistAction.getTitle());\n Assert.assertEquals(regularTableDropTableQuery.getTitle(), sqlDatabasePersistAction.getTitle());\n Assert.assertEquals(regularTableDropTableQuery.getTitle(), sqlDatabasePersistAction.getTitle());\n Assert.assertEquals(regularTableDropTableQuery.getTitle(), sqlDatabasePersistAction.getTitle());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/dbeaver/dbeaver/commit/cdc7b33876e50126d7626f916bda136c003cb0de", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " if (!activated) {\n {\n if (!activated) {\n {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/dbeaver/dbeaver/commit/f51be0465263231ff63f0a3dbc8589149a235016", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " setImageDescriptor(MARIADB_LOGO_IMG);\n setImageDescriptor(Activator.getImageDescriptor(\"icons/mariadb_logo.png\"));\n setImageDescriptor(MYSQL_LOGO_IMG);\n setImageDescriptor(Activator.getImageDescriptor(\"icons/mysql_logo.png\"));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/f51be0465263231ff63f0a3dbc8589149a235016", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " try (final JDBCPreparedStatement dbStat = session.prepareStatement(\"SELECT t.oid,t.* FROM pg_catalog.pg_type t WHERE oid=? \")) {\n try (final JDBCPreparedStatement dbStat = session.prepareStatement(\n \"SELECT t.oid,t.*,c.relkind FROM pg_catalog.pg_type t\" +\n \"\\nLEFT OUTER JOIN pg_class c ON c.oid=t.typrelid\" +\n \"\\nWHERE t.oid=? \")) {\n try (final JDBCPreparedStatement dbStat = session.prepareStatement(\"SELECT t.oid,t.* FROM pg_catalog.pg_type t WHERE typname=? \")) {\n try (final JDBCPreparedStatement dbStat = session.prepareStatement(\n \"SELECT t.oid,t.* FROM pg_catalog.pg_type t\" +\n \"\\nLEFT OUTER JOIN pg_class c ON c.oid=t.typrelid\" +\n \"\\nWHERE t.typname=? \")) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/dbeaver/dbeaver/commit/c864b4c1c6e5d1a54e9246db94df87cbfecb220f", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " public void setName(String tableName)\n public void setName(String name)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/a078fceaf26761a71ebd5d3415090941713fb528", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " protected SQLServerDataType fetchObject(JDBCSession session, SQLServerDatabase database, JDBCResultSet resultSet) throws SQLException, DBException {\n protected SQLServerDataType fetchObject(JDBCSession session, SQLServerDatabase database, JDBCResultSet resultSet) {\n protected SQLServerDatabaseTrigger fetchObject(JDBCSession session, SQLServerDatabase database, JDBCResultSet resultSet) throws SQLException, DBException {\n protected SQLServerDatabaseTrigger fetchObject(JDBCSession session, SQLServerDatabase database, JDBCResultSet resultSet) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/dbeaver/dbeaver/commit/355c7fda12a8714b63e349a2938d90d2c572b1bf", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " private int typeID;\n private int valueType;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/61666fcc1d86941fa678ae7bac691abcd57e7dd1", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 7 ] }, { "input": " this.typeID = getDataTypeIDByName(this.name);\n this.valueType = getDataTypeIDByName(this.name);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/dbeaver/dbeaver/commit/61666fcc1d86941fa678ae7bac691abcd57e7dd1", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 7 ] }, { "input": " return typeID;\n return valueType;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/dbeaver/dbeaver/commit/61666fcc1d86941fa678ae7bac691abcd57e7dd1", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " Group settingsGroup = UIUtils.createControlGroup(composite, SSHUIMessages.model_ssh_configurator_group_settings, 2, GridData.FILL_HORIZONTAL, SWT.DEFAULT);\n Group settingsGroup = UIUtils.createControlGroup(composite, SSHUIMessages.model_ssh_configurator_group_settings, 2, GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING, SWT.DEFAULT);\n Group advancedGroup = UIUtils.createControlGroup(composite, SSHUIMessages.model_ssh_configurator_group_advanced, 2, GridData.FILL_HORIZONTAL, SWT.DEFAULT);\n Group advancedGroup = UIUtils.createControlGroup(composite, SSHUIMessages.model_ssh_configurator_group_advanced, 2, GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING, SWT.DEFAULT);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/dbeaver/dbeaver/commit/d584cfe7711bb9b75335111fb5a5ab66eb4a9e98", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " sql = \"SELECT name FROM \" + DBUtils.getQuotedIdentifier(catalog) + \".sys.schemas\";\n sql = \"SELECT name FROM \" + sysSchema + \".schemas\";\n sql = \"SELECT name FROM \" + DBUtils.getQuotedIdentifier(catalog) + \".dbo.sysusers\";\n sql = \"SELECT name FROM \" + sysSchema + \".sysusers\";\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/5f68417df502f9b95e764abe3deac6c28469896a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " private SQLQuery wrapSourceQuery(SQLDataSource dataSource, SQLQuery query) {\n String srcQuery = query.getText();\n private SQLQuery wrapSourceQuery(SQLDataSource dataSource, SQLSyntaxManager syntaxManager, SQLQuery query) {\n // Trim query delimiters (#2541)\n String srcQuery = SQLUtils.trimQueryStatement(syntaxManager, query.getText(), true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/003ab8f74e253f31e331b79ccee3c33f94153cb9", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": " childHeight = Math.max(childHeight, child.getHeaderHeight(true));\n childHeight = Math.max(childHeight, child.getHeaderHeight(true, false));\n int getHeaderHeight(boolean includeChildren)\n int getHeaderHeight(boolean includeChildren, boolean forceRefresh)\n if (point.y >= parentLoc.y && point.y <= parentLoc.y + parent.getHeaderHeight(false)) {\n if (point.y >= parentLoc.y && point.y <= parentLoc.y + parent.getHeaderHeight(false, false)) {\n colHeaderHeight = Math.max(column.getHeaderHeight(true), colHeaderHeight);\n colHeaderHeight = Math.max(column.getHeaderHeight(true, true), colHeaderHeight);\n int columnHeight = column.getHeaderHeight(false);\n int columnHeight = column.getHeaderHeight(false, false);\n y += parent.getHeaderHeight(false);\n y += parent.getHeaderHeight(false, false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/cf91c0509118f520819d1ccba7e6d473815909cf", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4, 5, 6 ] }, { "input": " if (point.y >= parentLoc.y && point.y <= parentLoc.y + parent.getHeaderHeight(false)) {\n if (point.y >= parentLoc.y && point.y <= parentLoc.y + parent.getHeaderHeight(false, false)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/dbeaver/dbeaver/commit/cf91c0509118f520819d1ccba7e6d473815909cf", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 5, 6 ] }, { "input": " colHeaderHeight = Math.max(column.getHeaderHeight(true), colHeaderHeight);\n colHeaderHeight = Math.max(column.getHeaderHeight(true, true), colHeaderHeight);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/dbeaver/dbeaver/commit/cf91c0509118f520819d1ccba7e6d473815909cf", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3, 5, 6 ] }, { "input": " int columnHeight = column.getHeaderHeight(false);\n int columnHeight = column.getHeaderHeight(false, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/dbeaver/dbeaver/commit/cf91c0509118f520819d1ccba7e6d473815909cf", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 3, 4, 6 ] }, { "input": " y += parent.getHeaderHeight(false);\n y += parent.getHeaderHeight(false, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/dbeaver/dbeaver/commit/cf91c0509118f520819d1ccba7e6d473815909cf", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 3, 4, 5 ] }, { "input": " if (value instanceof Comparable) {\n value = FunctionNumeric.getComparable(value);\n if (value != null) {\n if (value instanceof Comparable) {\n value = FunctionNumeric.getComparable(value);\n if (value != null) {\n if (value instanceof Comparable) {\n value = FunctionNumeric.getComparable(value);\n if (value != null) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/dbeaver/dbeaver/commit/9d4ef9716659d9aafc0e65c127ad6868d6150117", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " onDataSourceChange();\n fireDataSourceChange();\n onDataSourceChange();\n fireDataSourceChange();\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/5211d3b38f923933db130143bee1957c77807357", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " SQLCommandHandlerDescriptor commandHandler = SQLCommandsRegistry.getInstance().getCommandHandler(command.getText());\n if (command.isEmptyCommand()) {\n return true;\n }\n SQLCommandHandlerDescriptor commandHandler = SQLCommandsRegistry.getInstance().getCommandHandler(command.getCommand());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/dbeaver/dbeaver/commit/21aba9e375f5908c5172683e053e4819878f3b91", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " protected ColumnModifier[] getSupportedModifiers()\n protected ColumnModifier[] getSupportedModifiers(PostgreTableColumn column)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/af2ac9505de3801f7f6f247ad94772d5b7d5e400", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 5, 6 ] }, { "input": " for (ColumnModifier modifier : getSupportedModifiers()) {\n for (ColumnModifier modifier : getSupportedModifiers(column)) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/af2ac9505de3801f7f6f247ad94772d5b7d5e400", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 4, 5 ] }, { "input": " public static T extractValue(Object pgObject) {\n public static boolean isPGObject(Object object) {\n return object != null && object.getClass().getName().equals(PostgreConstants.PG_OBJECT_CLASS);\n }\n\n public static T extractPGObjectValue(Object pgObject) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/0f4d071caf0b8b7431cc6e981db701bca5349c26", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " refreshDiagram();\n refreshDiagram(force);\n editor.refreshDiagram();\n editor.refreshDiagram(true);\n public void refreshDiagram()\n public void refreshDiagram(boolean force)\n refreshDiagram();\n refreshDiagram(true);\n refreshDiagram();\n refreshDiagram(true);\n editor.refreshDiagram();\n editor.refreshDiagram(true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/57e2fc28dbad3eea6d2fe1e74b1150451694f6e1", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 6, 7, 8 ] }, { "input": " editor.refreshDiagram();\n editor.refreshDiagram(true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/dbeaver/dbeaver/commit/57e2fc28dbad3eea6d2fe1e74b1150451694f6e1", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 3, 5, 6, 7 ] }, { "input": " private final DBDAttributeBinding attrribute;\n private final DBDAttributeBinding attribute;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/3f89d997cb3a535d8923ea400bb7a420bd46d2e9", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": " throw new IllegalStateException(\"Can't get/create transformer settings for '\" + attrribute.getFullyQualifiedName(DBPEvaluationContext.UI) + \"'\");\n throw new IllegalStateException(\"Can't get/create transformer settings for '\" + attribute.getFullyQualifiedName(DBPEvaluationContext.UI) + \"'\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/dbeaver/dbeaver/commit/3f89d997cb3a535d8923ea400bb7a420bd46d2e9", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 6 ] }, { "input": " editor.init(new SubEditorSite(viewer.getSite()), new StringEditorInput(\"SQL\", getActiveQueryText(), true, GeneralUtils.getDefaultConsoleEncoding()));\n editor.init(new SubEditorSite(viewer.getSite()), new StringEditorInput(\"SQL\", getActiveQueryText(), true, GeneralUtils.getDefaultFileEncoding()));\n StringEditorInput sqlInput = new StringEditorInput(sessionTable.getShell().getText(), text, true, GeneralUtils.getDefaultConsoleEncoding());\n StringEditorInput sqlInput = new StringEditorInput(sessionTable.getShell().getText(), text, true, GeneralUtils.getDefaultFileEncoding());\n StringEditorInput sqlInput = new StringEditorInput(\"SQL preview\", sqlText, true, GeneralUtils.getDefaultConsoleEncoding());\n StringEditorInput sqlInput = new StringEditorInput(\"SQL preview\", sqlText, true, GeneralUtils.getDefaultFileEncoding());\n sqlViewer.setInput(new StringEditorInput(\"SQL preview\", sqlText, true, GeneralUtils.getDefaultConsoleEncoding()));\n sqlViewer.setInput(new StringEditorInput(\"SQL preview\", sqlText, true, GeneralUtils.getDefaultFileEncoding()));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/dbeaver/dbeaver/commit/1f2a839684caf11a05666e7f244fbfea33838187", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": " public Object getAdapter(Class adapter) {\n public T getAdapter(Class adapter) {\n public Object getAdapter(Class adapter)\n public T getAdapter(Class adapter)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/dbeaver/dbeaver/commit/1f2a839684caf11a05666e7f244fbfea33838187", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " activeObject = DBUtils.getDefaultOrSelectedObject(dataSource);\n activeObject = DBUtils.getDefaultOrActiveObject(dataSource);\n public static DBSObject getDefaultOrSelectedObject(@NotNull DBSInstance object)\n public static DBSObject getDefaultOrActiveObject(@NotNull DBSInstance object)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/d94032fffb24a970137449d3b5389212ffbe1ba8", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " DBSObject selectedObject = DBUtils.getSelectedObject(dataSource);\n DBSObject selectedObject = DBUtils.getActiveInstanceObject(dataSource);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/d94032fffb24a970137449d3b5389212ffbe1ba8", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 3, 4, 7 ] }, { "input": " DBSObject selectedObject = getSelectedObject(object);\n DBSObject selectedObject = getActiveInstanceObject(object);\n public static DBSObject getSelectedObject(@NotNull DBSInstance object)\n public static DBSObject getActiveInstanceObject(@NotNull DBSInstance object)\n DBSObject selectedObject = DBUtils.getSelectedObject(dataSource);\n DBSObject selectedObject = DBUtils.getActiveInstanceObject(dataSource);\n DBSObject selectedObject = DBUtils.getSelectedObject(dataSource);\n DBSObject selectedObject = DBUtils.getActiveInstanceObject(dataSource);\n DBSObject selectedObject = DBUtils.getSelectedObject(dataSource);\n DBSObject selectedObject = DBUtils.getActiveInstanceObject(dataSource);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/d94032fffb24a970137449d3b5389212ffbe1ba8", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 3, 4, 5 ] }, { "input": " SQLEditorSourceViewerConfiguration configuration = new SQLEditorSourceViewerConfiguration(sqlEditor);\n SQLEditorSourceViewerConfiguration configuration = new SQLEditorSourceViewerConfiguration(sqlEditor, EditorsPlugin.getDefault().getPreferenceStore());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/35fd2b7568f750eaa6520a811efdc058188e22c0", "target_edit_idx": 7, "propagatable_edit_idx": [ 0 ] }, { "input": " resetSettings();\n resetSettings(true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/849a0f798699dc82e6fcbe0d04432abf44fb5c9c", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " JDBCExecutionContext context = new JDBCExecutionContext(this, purpose, false);\n context.connect(monitor);\n JDBCExecutionContext context = new JDBCExecutionContext(this, purpose);\n context.connect(monitor, null, null, true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/dbeaver/dbeaver/commit/880d7dd2c4e7d6da4dc17390bee84eff52629b24", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " this.metaContext = new JDBCExecutionContext(this, \"Metadata\", true);\n this.metaContext = new JDBCExecutionContext(this, \"Metadata\");\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.15384615384615385, "commit_url": "https://github.com/dbeaver/dbeaver/commit/880d7dd2c4e7d6da4dc17390bee84eff52629b24", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " prepareContext(monitor);\n initConnectionState(monitor);\n private void prepareContext(DBRProgressMonitor monitor) throws DBException {\n private void initConnectionState(DBRProgressMonitor monitor) throws DBException {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/880d7dd2c4e7d6da4dc17390bee84eff52629b24", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": " DBCSession session = sessionManager.getDataSource().openSession(getProgressMonitor(), DBCExecutionPurpose.UTIL, \"Retrieve server sessions\");\n DBCExecutionContext isolatedContext = sessionManager.getDataSource().openIsolatedContext(getProgressMonitor(), \"View sessions\");\n DBCSession session = sessionManager.getDataSource().openSession(getProgressMonitor(), DBCExecutionPurpose.UTIL, \"Kill server session\");\n DBCExecutionContext isolatedContext = sessionManager.getDataSource().openIsolatedContext(getProgressMonitor(), \"View sessions\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/dbeaver/dbeaver/commit/2b6d119e3508eb42b98105c8f86c701bd70a62bf", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " getConnection().setTransactionIsolation(level);\n getConnectionHolder().setTransactionIsolation(level);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.017857142857142856, "commit_url": "https://github.com/dbeaver/dbeaver/commit/3f8bcdef9dbc8ac8df4180e939634c18f474e3b8", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " mChart.setNoDataTextDescription(\"You need to provide data for the chart.\");\n mChart.setNoDataTextDescription(\"You need to provide data for the chart.\");\n chart.setNoDataTextDescription(\"You need to provide data for the chart.\");\n mChart.setNoDataTextDescription(\"You need to provide data for the chart.\");\n mChart.setNoDataTextDescription(\"You need to provide data for the chart.\");\n chart.setNoDataTextDescription(\"You need to provide data for the chart.\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/PhilJay/MPAndroidChart/commit/d34670fa620af9353da4fedc78d2c8653fe5c5b1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 6 ] }, { "input": " * @param text\n * @param tf\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/PhilJay/MPAndroidChart/commit/d34670fa620af9353da4fedc78d2c8653fe5c5b1", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": " public void setNoDataTextDescription(String text) {\n mNoDataTextDescription = text;\n public void setNoDataTextTypeface(Typeface tf) {\n mInfoPaint.setTypeface(tf);\n * @param text\n * @param tf\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/PhilJay/MPAndroidChart/commit/d34670fa620af9353da4fedc78d2c8653fe5c5b1", "target_edit_idx": 14, "propagatable_edit_idx": [ 13 ] }, { "input": " float shapeHalf = getShapeSize(entry.getSize(), dataSet.getMaxSize(), referenceSize) / 2f;\n float shapeHalf = getShapeSize(entry.getSize(), dataSet.getMaxSize(), referenceSize, normalizeSize) / 2f;\n float shapeHalf = getShapeSize(entry.getSize(), dataSet.getMaxSize(), referenceSize) / 2f;\n float shapeHalf = getShapeSize(entry.getSize(), dataSet.getMaxSize(), referenceSize, normalizeSize) / 2f;\n protected float getShapeSize(float entrySize, float maxSize, float reference) {\n final float factor = (maxSize == 0f) ? 1f : (float) Math.sqrt(entrySize / maxSize);\n protected float getShapeSize(float entrySize,\n float maxSize,\n float reference,\n boolean normalizeSize) {\n final float factor = normalizeSize\n ? ((maxSize == 0f) ? 1f : (float) Math.sqrt(entrySize / maxSize))\n : entrySize;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/PhilJay/MPAndroidChart/commit/1c312e85a9c6f868f76e886386621ebd3555a7d7", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 5 ] }, { "input": " float shapeHalf = getShapeSize(entry.getSize(), dataSet.getMaxSize(), referenceSize) / 2f;\n float shapeHalf = getShapeSize(entry.getSize(), dataSet.getMaxSize(), referenceSize, normalizeSize) / 2f;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/PhilJay/MPAndroidChart/commit/1c312e85a9c6f868f76e886386621ebd3555a7d7", "target_edit_idx": 9, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " protected void drawDataSet(Canvas c, IRadarDataSet dataSet) {\n /**\n * Draws the RadarDataSet\n *\n * @param c\n * @param dataSet\n * @param mostEntries the entry count of the dataset with the most entries\n */\n protected void drawDataSet(Canvas c, IRadarDataSet dataSet, int mostEntries) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/PhilJay/MPAndroidChart/commit/ebbea0651ba4f5bf1c1036a6299e98992d3dd441", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " valuePoints[j + 1] + halfTextHeight);\n valuePoints[j + 1] + halfTextHeight, dataSet.getValueTextColor(j / 2));\n valuePoints[j + 1] + halfTextHeight);\n valuePoints[j + 1] + halfTextHeight, dataSet.getValueTextColor(j / 2));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/PhilJay/MPAndroidChart/commit/c979bdb5356628d0b058ccd3337f9f5a37a49586", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\n // mShapeSize = Utils.convertDpToPixel(8f);\n mShapeSize = Utils.convertDpToPixel(size);\n mShapeSize = size;\n mShapeSize = Utils.convertDpToPixel(size);\n mShapeSize = size;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/PhilJay/MPAndroidChart/commit/54dc87cf5510189acf1d0e311a3ecb54bc45ecb6", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 6 ] }, { "input": " mScatterShapeHoleRadius = Utils.convertDpToPixel(holeRadius);\n mScatterShapeHoleRadius = holeRadius;\n mScatterShapeHoleRadius = Utils.convertDpToPixel(holeRadius);\n mScatterShapeHoleRadius = holeRadius;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/PhilJay/MPAndroidChart/commit/54dc87cf5510189acf1d0e311a3ecb54bc45ecb6", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " final float shapeSize = dataSet.getScatterShapeSize();\n final float shapeSize = Utils.convertDpToPixel(dataSet.getScatterShapeSize());\n float shapeSize = dataSet.getScatterShapeSize();\n float shapeSize = Utils.convertDpToPixel(dataSet.getScatterShapeSize());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/PhilJay/MPAndroidChart/commit/54dc87cf5510189acf1d0e311a3ecb54bc45ecb6", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " if (r.top > 0)\n r.top *= phaseY;\n else\n r.bottom *= phaseY;\n r.top *= phaseY;\n r.bottom *= phaseY;\n\n mMatrixValueToPx.mapRect(r);\n mViewPortHandler.getMatrixTouch().mapRect(r);\n mMatrixOffset.mapRect(r);\n }\n\n /**\n * Transform a rectangle with all matrices with potential animation phases.\n *\n * @param r\n\n */\n public void rectValueToPixelHorizontal(RectF r) {\n if (r.left > 0)\n r.left *= phaseY;\n else\n r.right *= phaseY;\n r.left *= phaseY;\n r.right *= phaseY;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/PhilJay/MPAndroidChart/commit/8bb5e1ad541ec85df2f1003ba08651a709249eec", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " ResponseEntity response = restTemplate.exchange(new URI(API_ENDPOINT), HttpMethod.GET,\n ResponseEntity response = restTemplate.exchange(new URI(String.format(API_ENDPOINT, serverPort)), HttpMethod.GET,\n ResponseEntity response = restTemplate.exchange(new URI(HEALTH_CHECK_ENDPOINT), HttpMethod.GET,\n ResponseEntity response = restTemplate.exchange(new URI(String.format(HEALTH_CHECK_ENDPOINT, serverPort)), HttpMethod.GET,\n ResponseEntity response = restTemplate.exchange(new URI(API_ENDPOINT), HttpMethod.GET,\n ResponseEntity response = restTemplate.exchange(new URI(String.format(API_ENDPOINT, serverPort)), HttpMethod.GET,\n ResponseEntity response = restTemplate.exchange(new URI(API_ENDPOINT), HttpMethod.GET,\n ResponseEntity response = restTemplate.exchange(new URI(String.format(API_ENDPOINT, serverPort)), HttpMethod.GET,\n ResponseEntity response = restTemplate.exchange(new URI(API_ENDPOINT), HttpMethod.GET,\n ResponseEntity response = restTemplate.exchange(new URI(String.format(API_ENDPOINT, serverPort)), HttpMethod.GET,\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/eugenp/tutorials/commit/3eda2da25ff9cb61b24288f38a4ecc1161910920", "target_edit_idx": 3, "propagatable_edit_idx": [ 10, 4, 5, 6 ] }, { "input": " assertEquals(output.toString(), \"ABa\");\n assertEquals(\"ABa\", output.toString());\n assertEquals(output.toString(), \"AaB\");\n assertEquals(\"AaB\", output.toString());\n assertEquals(output.toString(), \"abc\");\n assertEquals(\"abc\", output.toString());\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/eugenp/tutorials/commit/8861efd87ae098f976fc4c7a86a43e4b296c0310", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " public String firstName() {\n public String getFirstName() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/eugenp/tutorials/commit/96e48fed8110c7f1d6721a2cf768c49b27d6ebca", "target_edit_idx": 0, "propagatable_edit_idx": [ 10, 11, 4 ] }, { "input": " public LocalDate birthDate() {\n public LocalDate getBirthDate() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/eugenp/tutorials/commit/96e48fed8110c7f1d6721a2cf768c49b27d6ebca", "target_edit_idx": 6, "propagatable_edit_idx": [ 2 ] }, { "input": "@ConditionalOnProperty(prefix = \"application.runner\", \n value = \"enabled\", \n havingValue = \"true\", \n matchIfMissing = true)\n@ConditionalOnProperty(\n prefix = \"application.runner\", \n value = \"enabled\", \n havingValue = \"true\", \n matchIfMissing = true)\n@ConditionalOnProperty(prefix = \"command.line.runner\", \n value = \"enabled\", \n havingValue = \"true\", \n matchIfMissing = true)\n@ConditionalOnProperty(\n prefix = \"command.line.runner\", \n value = \"enabled\", \n havingValue = \"true\", \n matchIfMissing = true)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/eugenp/tutorials/commit/adf1ee9b0db6593d6480f350a6448994e193da89", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " assertThrows(NoSuchBeanDefinitionException.class,\n () -> context.getBean(CommandLineTaskExecutor.class),\n \"CommandLineRunner should not be loaded during this integration test\");\n assertThrows(NoSuchBeanDefinitionException.class,\n () -> context.getBean(ApplicationRunnerTaskExecutor.class),\n \"ApplicationRunner should not be loaded during this integration test\");\n assertThrows(NoSuchBeanDefinitionException.class, \n () -> context.getBean(CommandLineTaskExecutor.class), \n \"CommandLineRunner should not be loaded during this integration test\");\n assertThrows(NoSuchBeanDefinitionException.class, \n () -> context.getBean(ApplicationRunnerTaskExecutor.class), \n \"ApplicationRunner should not be loaded during this integration test\");\n assertThrows(NoSuchBeanDefinitionException.class,\n () -> context.getBean(CommandLineTaskExecutor.class),\n \"CommandLineRunner should not be loaded during this integration test\");\n assertThrows(NoSuchBeanDefinitionException.class,\n () -> context.getBean(ApplicationRunnerTaskExecutor.class),\n \"ApplicationRunner should not be loaded during this integration test\");\n assertThrows(NoSuchBeanDefinitionException.class, \n () -> context.getBean(CommandLineTaskExecutor.class), \n \"CommandLineRunner should not be loaded during this integration test\");\n assertThrows(NoSuchBeanDefinitionException.class, \n () -> context.getBean(ApplicationRunnerTaskExecutor.class), \n \"ApplicationRunner should not be loaded during this integration test\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/eugenp/tutorials/commit/adf1ee9b0db6593d6480f350a6448994e193da89", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " public static LocalDate addSubtractDaysSkippingWeekendsIterativeMethod(LocalDate date, int days) {\n public static LocalDate addDaysSkippingWeekends(LocalDate date, int days) {\n LocalDate result = AddSubtractDaysSkippingWeekendsUtils.addSubtractDaysSkippingWeekendsIterativeMethod(initialDate, 4);\n LocalDate result = AddSubtractDaysSkippingWeekendsUtils.addDaysSkippingWeekends(initialDate, 4);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/eugenp/tutorials/commit/1e1fe0592e9b66365a93eac72414de8368dab050", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " return Api.getSearchUrl(queryString);\n return Api.getSearchUrl(queryString, requireSafeOverQuality);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bumptech/glide/commit/f007af2d687b89a61cb5fdc6be1b10f21c97355b", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": " if (isParentVisible) {\n current.getGlideLifecycle().onStart();\n }\n if (isParentVisible) {\n current.getGlideLifecycle().onStart();\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bumptech/glide/commit/14a0e1acd07d76bc161de6d211f9cd7484918f61", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " RequestManagerFragment current = getRequestManagerFragment(fm, parentHint, isParentVisible);\n RequestManagerFragment current = getRequestManagerFragment(fm, parentHint);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bumptech/glide/commit/14a0e1acd07d76bc161de6d211f9cd7484918f61", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " SupportRequestManagerFragment getSupportRequestManagerFragment(\n Context context, FragmentManager fragmentManager) {\n return getSupportRequestManagerFragment(\n fragmentManager, /*parentHint=*/ null, isActivityVisible(context));\n SupportRequestManagerFragment getSupportRequestManagerFragment(FragmentManager fragmentManager) {\n return getSupportRequestManagerFragment(fragmentManager, /*parentHint=*/ null);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bumptech/glide/commit/14a0e1acd07d76bc161de6d211f9cd7484918f61", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 10 ] }, { "input": " boolean waitForFirstFrameBeforeEnablingHardwareBitmaps) {\n boolean waitForFirstFrameBeforeEnablingHardwareBitmaps,\n int manualOverrideHardwareBitmapMaxFdCount) {\n waitForFirstFrameBeforeEnablingHardwareBitmaps);\n waitForFirstFrameBeforeEnablingHardwareBitmaps,\n manualOverrideHardwareBitmapMaxFdCount);\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/bumptech/glide/commit/f903a73283702fb28220fcba913111c8fe4228d0", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " private final int fdCountLimit;\n private final int sdkBasedMaxFdCount;\n fdCountLimit = MAXIMUM_FDS_FOR_HARDWARE_CONFIGS_O;\n sdkBasedMaxFdCount = MAXIMUM_FDS_FOR_HARDWARE_CONFIGS_O;\n fdCountLimit = MAXIMUM_FDS_FOR_HARDWARE_CONFIGS_P;\n sdkBasedMaxFdCount = MAXIMUM_FDS_FOR_HARDWARE_CONFIGS_P;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bumptech/glide/commit/f903a73283702fb28220fcba913111c8fe4228d0", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " + fdCountLimit);\n + maxFdCount);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/bumptech/glide/commit/f903a73283702fb28220fcba913111c8fe4228d0", "target_edit_idx": 11, "propagatable_edit_idx": [ 10 ] }, { "input": " verify(harness.resourceRecycler).recycle(eq(harness.resource));\n verify(harness.resourceRecycler).recycle(eq(harness.resource), eq(false));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bumptech/glide/commit/100ac4a29eb525c0004d638edcd6ed8020864d75", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 6, 7, 8 ] }, { "input": " verify(harness.resourceRecycler).recycle(eq(harness.resource));\n verify(harness.resourceRecycler).recycle(eq(harness.resource), eq(true));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bumptech/glide/commit/100ac4a29eb525c0004d638edcd6ed8020864d75", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 6, 7, 8 ] }, { "input": " return FlickrPhotoGrid.newInstance(pageSize);\n return FlickrPhotoGrid.newInstance(pageSize, 30);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bumptech/glide/commit/d1865e6c24e44936f9fab7ae555aed12b70e95f0", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 1 ] }, { "input": " return FlickrPhotoGrid.newInstance(pageSize);\n return FlickrPhotoGrid.newInstance(pageSize, 10);\n public static FlickrPhotoGrid newInstance(int size) {\n public static FlickrPhotoGrid newInstance(int size, int preloadCount) {\n return FlickrPhotoGrid.newInstance(pageSize);\n return FlickrPhotoGrid.newInstance(pageSize, 30);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bumptech/glide/commit/d1865e6c24e44936f9fab7ae555aed12b70e95f0", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 7 ] }, { "input": " if (!isGif(bis)) {\n if (!shouldUsePool(bis)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bumptech/glide/commit/c24284108320cf3d613497ddd67ba4e1b232ce74", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " return ImageType.JPEG;\n return JPEG;\n return ImageType.GIF;\n return GIF;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/bumptech/glide/commit/c24284108320cf3d613497ddd67ba4e1b232ce74", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": " return mPreferences.arePluginErrorNotificationsEnabled();\n return mPreferences.arePluginErrorNotificationsEnabled(false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/termux/termux-app/commit/4b07e4f4c0a84f58d3fc1f25cdc1448e88c5655a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 7 ] }, { "input": " return mPreferences.areCrashReportNotificationsEnabled();\n return mPreferences.areCrashReportNotificationsEnabled(false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/termux/termux-app/commit/4b07e4f4c0a84f58d3fc1f25cdc1448e88c5655a", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": " if (!preferences.arePluginErrorNotificationsEnabled() && !forceNotification)\n if (!preferences.arePluginErrorNotificationsEnabled(true) && !forceNotification)\n if (preferences.arePluginErrorNotificationsEnabled())\n if (preferences.arePluginErrorNotificationsEnabled(false))\n return mPreferences.arePluginErrorNotificationsEnabled();\n return mPreferences.arePluginErrorNotificationsEnabled(false);\n public boolean arePluginErrorNotificationsEnabled() {\n return SharedPreferenceUtils.getBoolean(mSharedPreferences, TERMUX_APP.KEY_PLUGIN_ERROR_NOTIFICATIONS_ENABLED, TERMUX_APP.DEFAULT_VALUE_PLUGIN_ERROR_NOTIFICATIONS_ENABLED);\n public boolean arePluginErrorNotificationsEnabled(boolean readFromFile) {\n if (readFromFile)\n return SharedPreferenceUtils.getBoolean(mMultiProcessSharedPreferences, TERMUX_APP.KEY_PLUGIN_ERROR_NOTIFICATIONS_ENABLED, TERMUX_APP.DEFAULT_VALUE_PLUGIN_ERROR_NOTIFICATIONS_ENABLED);\n else\n return SharedPreferenceUtils.getBoolean(mSharedPreferences, TERMUX_APP.KEY_PLUGIN_ERROR_NOTIFICATIONS_ENABLED, TERMUX_APP.DEFAULT_VALUE_PLUGIN_ERROR_NOTIFICATIONS_ENABLED);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/termux/termux-app/commit/4b07e4f4c0a84f58d3fc1f25cdc1448e88c5655a", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 7 ] }, { "input": " int maxConsecutiveEmptyFrames, int secondsPerWindow) {\n return super.decoderEnforceMaxRstFramesPerWindow(maxConsecutiveEmptyFrames, secondsPerWindow);\n int maxRstFramesPerWindow, int secondsPerWindow) {\n return super.decoderEnforceMaxRstFramesPerWindow(maxRstFramesPerWindow, secondsPerWindow);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/netty/netty/commit/9b80d081ff3478c46152b012ae0e21f939467ac3", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " return track0(obj);\n return track0(obj, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/netty/netty/commit/7d5fcf79d4ddb47f011a0e42575572ed63c8ab9b", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " byteBuf = null;\n byteBuf = null;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/netty/netty/commit/4eda913d998898d8489565904b2a5d133d081413", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " return new SegmentedDatagramPacket(buffer, segmentSize, recipient, sender);\n return new SegmentedDatagramPacket(slice, segmentSize, recipient, sender);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/netty/netty/commit/4eda913d998898d8489565904b2a5d133d081413", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " Assume.assumeTrue(Epoll.isAvailable());\n Epoll.ensureAvailability();\n assumeTrue(Epoll.isAvailable());\n Epoll.ensureAvailability();\n assumeTrue(Epoll.isAvailable());\n Epoll.ensureAvailability();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/netty/netty/commit/6e866317d28cfd1e9cadc301bb488b654ee87797", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "import static org.junit.Assume.assumeTrue;\nimport static org.junit.Assume.assumeTrue;\n\nimport static org.junit.Assume.assumeTrue;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/netty/netty/commit/6e866317d28cfd1e9cadc301bb488b654ee87797", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 7 ] }, { "input": " Assume.assumeTrue(KQueue.isAvailable());\n KQueue.ensureAvailability();\n assumeTrue(KQueue.isAvailable());\n KQueue.ensureAvailability();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/netty/netty/commit/6e866317d28cfd1e9cadc301bb488b654ee87797", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " public void onDataRead(ChannelHandlerContext ctx, Http2DataFrame data) throws Exception {\n private static void onDataRead(ChannelHandlerContext ctx, Http2DataFrame data) throws Exception {\n public void onDataRead(ChannelHandlerContext ctx, Http2DataFrame data) throws Exception {\n private static void onDataRead(ChannelHandlerContext ctx, Http2DataFrame data) throws Exception {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/netty/netty/commit/580ac8cd41a426c30aeee363a9bf3dab2f9e303f", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " public void onHeadersRead(ChannelHandlerContext ctx, Http2HeadersFrame headers)\n private static void onHeadersRead(ChannelHandlerContext ctx, Http2HeadersFrame headers)\n public void onHeadersRead(ChannelHandlerContext ctx, Http2HeadersFrame headers)\n private static void onHeadersRead(ChannelHandlerContext ctx, Http2HeadersFrame headers)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/netty/netty/commit/580ac8cd41a426c30aeee363a9bf3dab2f9e303f", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " ctx.fireExceptionCaught(t);\n PlatformDependent.throwException(t);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/netty/netty/commit/ca2c349a4a95f79e1f8b5315bf7e7617386f266e", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " static WebSocketServerHandshaker getHandshaker(ChannelHandlerContext ctx) {\n return ctx.attr(HANDSHAKER_ATTR_KEY).get();\n static WebSocketServerHandshaker getHandshaker(Channel channel) {\n return channel.attr(HANDSHAKER_ATTR_KEY).get();\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/netty/netty/commit/2dde3a386bd3652a92c0c862b6588878bd94fe16", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " ctx.close(promise);\n\n // We notify the promise in the TryNotifyListener as there is a \"race\" where the close(...) call\n // by the timeoutFuture and the close call in the flushFuture listener will be called. Because of\n // this we need to use trySuccess() and tryFailure(...) as otherwise we can cause an\n // IllegalStateException.\n ctx.close(ctx.newPromise()).addListener(new ChannelPromiseNotifier(promise));\n ctx.close(promise);\n //\n // We notify the promise in the ChannelPromiseNotifier as there is a \"race\" where the close(...) call\n // by the timeoutFuture and the close call in the flushFuture listener will be called. Because of\n // this we need to use trySuccess() and tryFailure(...) as otherwise we can cause an\n // IllegalStateException.\n ctx.close(ctx.newPromise()).addListener(new ChannelPromiseNotifier(promise));\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/netty/netty/commit/e71e40057f7a6adeee8267ce612ba1df22484a66", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " if (!ensureOpen(promise)) {\n if (!promise.setUncancellable() || !ensureOpen(promise)) {\n if (!ensureOpen(promise)) {\n if (!promise.setUncancellable() || !ensureOpen(promise)) {\n if (!ensureOpen(promise)) {\n if (!promise.setUncancellable() || !ensureOpen(promise)) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/netty/netty/commit/041d37e0c8b3616dc86468bd2c3b6332638bdf1b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " out.add(message);\n out.add(message.retain());\n out.add(message);\n out.add(message.retain());\n out.add(message);\n out.add(message.retain());\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/netty/netty/commit/660e6f4afe6a5e1e53619600a5b14f11dac5537c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " ChannelFuture future = newFuture();\n final ChannelFuture future = newFuture();\n ChannelFuture future = newFuture();\n final ChannelFuture future = newFuture();\n ChannelFuture future = newFuture();\n final ChannelFuture future = newFuture();\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/netty/netty/commit/a1e8dad4ad5f5e15ff4d9a8c8890b1fecf8eaa64", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 5 ] }, { "input": " try {\n javaChannel().socket().shutdownOutput();\n future.setSuccess();\n } catch (Throwable t) {\n future.setFailure(t);\n }\n shutdownOutput(future);\n try {\n javaChannel().shutdownOutput();\n outputShutdown = true;\n future.setSuccess();\n } catch (Throwable t) {\n future.setFailure(t);\n }\n shutdownOutput(future);\n shutdownOutput();\n shutdownOutput(future);\n shutdownOutput();\n shutdownOutput(future);\n try {\n socket.shutdownOutput();\n future.setSuccess();\n } catch (Throwable t) {\n future.setFailure(t);\n }\n shutdownOutput(future);\n shutdownOutput();\n shutdownOutput(future);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/netty/netty/commit/a1e8dad4ad5f5e15ff4d9a8c8890b1fecf8eaa64", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 7, 10, 11 ] }, { "input": " shutdownOutput();\n shutdownOutput(future);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/netty/netty/commit/a1e8dad4ad5f5e15ff4d9a8c8890b1fecf8eaa64", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 6, 10, 11 ] }, { "input": " try {\n socket.shutdownOutput();\n future.setSuccess();\n } catch (Throwable t) {\n future.setFailure(t);\n }\n shutdownOutput(future);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/netty/netty/commit/a1e8dad4ad5f5e15ff4d9a8c8890b1fecf8eaa64", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 3, 6, 7, 11 ] }, { "input": " static boolean isServerID(int ID) {\n static boolean isServerId(int ID) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/netty/netty/commit/91fe9f4b38cbf781c2968e58de2e6058579db58e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " private int ID;\n private int id;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.13953488372093023, "commit_url": "https://github.com/netty/netty/commit/60de50d89e0ce51a7e3a07422fbac0c153fbf302", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4, 5, 8 ] }, { "input": " public void setID(int ID) {\n this.ID = ID;\n public void setId(int id) {\n this.id = id;\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/netty/netty/commit/60de50d89e0ce51a7e3a07422fbac0c153fbf302", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 5, 8 ] }, { "input": " out.writeInt(spdyPingFrame.getID());\n out.writeInt(spdyPingFrame.getId());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/netty/netty/commit/60de50d89e0ce51a7e3a07422fbac0c153fbf302", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 7, 9, 10, 11, 12, 13 ] }, { "input": " channel.pipeline().replace(HttpResponseDecoder.class, \"ws-decoder\",\n channel.pipeline().get(HttpResponseDecoder.class).replace(\n \"ws-decoder\",\n channel.pipeline().replace(HttpResponseDecoder.class, \"ws-decoder\",\n channel.pipeline().get(HttpResponseDecoder.class).replace(\n \"ws-decoder\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/netty/netty/commit/743596aaeac455f009d4b0c6805ea8322c785b0d", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " HttpClientCodec codec = new HttpClientCodec();\n HttpClientCodec codec = new HttpClientCodec(4096, 8192, 8192, true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/netty/netty/commit/54559a95956ba26bd75790fad04f7057fe0f6674", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 10, 11 ] }, { "input": " private static final int MISUSE_WARNING_THRESHOLD = 1024;\n // I'd say 64 active event thread pools are obvious misuse.\n private static final int MISUSE_WARNING_THRESHOLD = 64;\n private static final int MISUSE_WARNING_THRESHOLD = 1024;\n // I'd say 64 active timer threads are obvious misuse.\n private static final int MISUSE_WARNING_THRESHOLD = 64;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/netty/netty/commit/6370d06fb36bd244fa3790714522084c5be9f8c9", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " public DecoderEmbedder(ChannelUpstreamHandler handler) {\n super(handler);\n public DecoderEmbedder(ChannelUpstreamHandler... handlers) {\n super(handlers);\n public EncoderEmbedder(ChannelDownstreamHandler handler) {\n super(handler);\n public EncoderEmbedder(ChannelDownstreamHandler... handlers) {\n super(handlers);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/netty/netty/commit/e6594822158cfe795739e0928c1d5a0efcbf1306", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " String testStr = \"00010100010110100111011001100100110111101001110101010110011011011001000010101110010011101000100101000\";\n String testStr = \"00001010001011010011101100110010011011110100111010101011001101101100100001010111001001110100010010100000\";\n String testStr = \"00010100010110100111011001100100110111101001110101010110011011011001000010101110010011101000100101000\";\n String testStr = \"00001010001011010011101100110010011011110100111010101011001101101100100001010111001001110100010010100000\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/zxing/zxing/commit/24681e8488d9a73652ecba9a14b8bc2434ebaade", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " String testStr = \"0001010001011010111101111010110111010101001110111001010001001011100101000\";\n String testStr = \"0000001010001011010111101111010110111010101001110111001010001001011100101000000\";\n String testStr = \"0001010001011010111101111010110111010101001110111001010001001011100101000\";\n String testStr = \"0000001010001011010111101111010110111010101001110111001010001001011100101000000\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/zxing/zxing/commit/24681e8488d9a73652ecba9a14b8bc2434ebaade", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " return file.isDirectory() && VALUES_DIR_PATTERN.matcher(file.getName()).matches();\n Path path = file.toPath();\n return\n Files.isDirectory(path) &&\n !Files.isSymbolicLink(path) &&\n VALUES_DIR_PATTERN.matcher(file.getName()).matches();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zxing/zxing/commit/1fa7fa9d98ec9530c96d5a291cedc457183ba4df", "target_edit_idx": 7, "propagatable_edit_idx": [ 1 ] }, { "input": " public static boolean isGithubApk(@NonNull final App app) {\n return getCertificateSHA1Fingerprint(app).equals(GITHUB_APK_SHA1);\n public static boolean isReleaseApk(@NonNull final App app) {\n return getCertificateSHA1Fingerprint(app).equals(RELEASE_CERT_PUBLIC_KEY_SHA1);\n if (!isGithubApk(app)) {\n if (!isReleaseApk(app)) {\n if (!CheckForNewAppVersion.isGithubApk(App.getApp())) {\n if (!CheckForNewAppVersion.isReleaseApk(App.getApp())) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TeamNewPipe/NewPipe/commit/e5fd24b0d19d35d56efb15219277821b4afd00d2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " return charSequence.subSequence(min, max);\n\n final int start = getSelectionStart();\n final int end = getSelectionEnd();\n return String.valueOf(start > end ? text.subSequence(end, start)\n : text.subSequence(start, end));\n return charSequence.subSequence(min, max);\n\n final int start = getSelectionStart();\n final int end = getSelectionEnd();\n return String.valueOf(start > end ? text.subSequence(end, start)\n : text.subSequence(start, end));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TeamNewPipe/NewPipe/commit/3ded6feddb3921eeecf2b5b3030573bd39017a3a", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " PlaylistAppendDialog.checkPlaylists(getContext(),\n PlaylistAppendDialog.onPlaylistFound(getContext(),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TeamNewPipe/NewPipe/commit/32a142bf79351272c56e745b3a1f2052a0e5679b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 5, 6 ] }, { "input": " public Single deleteCompelteStreamStateHistory() {\n public Single deleteCompleteStreamStateHistory() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TeamNewPipe/NewPipe/commit/36248ff046a962edd32d55def68c20ce762f4122", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " options.setCapability(\"webSocketUrl\", true);\n options.enableBiDi();\n options.setCapability(\"webSocketUrl\", true);\n options.enableBiDi();\n options.setCapability(\"webSocketUrl\", true);\n options.enableBiDi();\n options.setCapability(\"webSocketUrl\", true);\n options.enableBiDi();\n options.setCapability(\"webSocketUrl\", true);\n options.enableBiDi();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/98c6eb062092c03d1f1079f09e2ec22cf1b24b78", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": "class ArrayLocalValue extends LocalValue {\npublic class ArrayLocalValue extends LocalValue {\nclass DateLocalValue extends LocalValue {\npublic class DateLocalValue extends LocalValue {\nclass MapLocalValue extends LocalValue {\npublic class MapLocalValue extends LocalValue {\nclass ObjectLocalValue extends LocalValue {\npublic class ObjectLocalValue extends LocalValue {\nclass SetLocalValue extends LocalValue {\npublic class SetLocalValue extends LocalValue {\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/a72ab320d0a76810950d3db8dc9f67cce6a8fa05", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": " String firefoxLocation = \"/Applications/Firefox Nightly.app/Contents/MacOS/firefox-bin\";\n String firefoxLocation = \"/Applications/Firefox Nightly.app/Contents/MacOS/firefox\";\n String ffLocation = \"/Applications/Firefox Nightly.app/Contents/MacOS/firefox-bin\";\n String ffLocation = \"/Applications/Firefox Nightly.app/Contents/MacOS/firefox\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/d3bccee5da004759d32c20709ac45b1711b37c7f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " public Map asMap() {\n public Map toJson() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/cf3adc78726ddbbf3128b76967e5f4054a9f8ca4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7 ] }, { "input": " **{\"stdout.decode.return_value\": '{\"result\": {\"message\": \"driver\"}, \"logs\": []}', \"returncode\": 0}\n **{\n \"stdout.decode.return_value\": '{\"result\": {\"driver_path\": \"driver\", \"browser_path\": \"browser\"}, \"logs\": []}',\n \"returncode\": 0,\n }\n **{\"stdout.decode.return_value\": '{\"result\": {\"message\": \"driver\"}, \"logs\": []}', \"returncode\": 0}\n **{\n \"stdout.decode.return_value\": '{\"result\": {\"driver_path\": \"driver\", \"browser_path\": \"browser\"}, \"logs\": []}',\n \"returncode\": 0,\n }\n **{\"stdout.decode.return_value\": '{\"result\": {\"message\": \"driver\"}, \"logs\": []}', \"returncode\": 0}\n **{\n \"stdout.decode.return_value\": '{\"result\": {\"driver_path\": \"driver\", \"browser_path\": \"browser\"}, \"logs\": []}',\n \"returncode\": 0,\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/01f65d261bd0350e572c0bc41084507164395750", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " * @param whitelistedIps Comma-separated list of remote IPv4 addresses.\n * @param allowedListIps Comma-separated list of remote IPv4 addresses.\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/4a30da61cf2a516323d0acef03dbf31c268e03df", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " if (whitelistedIps != null) {\n args.add(String.format(\"--whitelisted-ips=%s\", whitelistedIps));\n if (allowedListIps != null) {\n args.add(String.format(\"--allowed-ips=%s\", allowedListIps));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/4a30da61cf2a516323d0acef03dbf31c268e03df", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " URI uri = messages.getRawURI(request);\n URI uri = messages.getRawUri(request);\n public URI getRawURI(HttpRequest req) {\n public URI getRawUri(HttpRequest req) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/be2c7e469b3566409acc359f9d2410700332b869", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "@pytest.mark.xfail_firefox(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1429403')\n@pytest.mark.xfail_remote\ndef test_select_disabled_by_index(driver, pages):\n pages.load(\"formPage.html\")\n sel = Select(driver.find_element(By.NAME, disabledSelect['name']))\n selected = sel.first_selected_option\n sel.select_by_index(1)\n assert selected == sel.first_selected_option\n\n\n@pytest.mark.xfail_firefox(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1429403')\n@pytest.mark.xfail_remote\ndef test_select_disabled_by_value(driver, pages):\n pages.load(\"formPage.html\")\n sel = Select(driver.find_element(By.NAME, disabledSelect['name']))\n selected = sel.first_selected_option\n sel.select_by_value('bar')\n assert selected == sel.first_selected_option\n\n\n@pytest.mark.xfail_firefox(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1429403')\n@pytest.mark.xfail_remote\ndef test_select_disabled_by_visible_text(driver, pages):\n pages.load(\"formPage.html\")\n sel = Select(driver.find_element(By.NAME, disabledSelect['name']))\n selected = sel.first_selected_option\n sel.select_by_visible_text('Bar')\n assert selected == sel.first_selected_option\n\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/0eb286a8fd9573e6bb73d242df6def530deaa4ef", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " .filteredOn(capabilities -> capabilities.getCapability(\"se:vncEnabled\") != null)\n .filteredOn(capabilities ->\n capabilities.getCapability(\"se:vncEnabled\") != null &&\n capabilities.getCapability(\"se:noVncPort\") != null)\n .filteredOn(capabilities -> capabilities.getCapability(\"se:vncEnabled\") == null)\n .filteredOn(capabilities ->\n capabilities.getCapability(\"se:vncEnabled\") == null &&\n capabilities.getCapability(\"se:noVncPort\") == null)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/f333a0417894e3319a1088d6b84d270b5c74909e", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " changeSizeTo(new Dimension(640, 325));\n changeSizeTo(new Dimension(640, 400));\n changeSizeTo(new Dimension(640, 323));\n changeSizeTo(new Dimension(640, 400));\n changeSizeTo(new Dimension(640, 323));\n changeSizeTo(new Dimension(640, 400));\n changeSizeTo(new Dimension(640, 324));\n changeSizeTo(new Dimension(640, 400));\n changeSizeTo(new Dimension(640, 325));\n changeSizeTo(new Dimension(640, 400));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/b2e9e2574652b9438d37c515d0297db10078004d", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": " public void initializeListener(HasLogEvents loggable) {\n Require.precondition(loggable instanceof HasDevTools, \"Loggable must implement HasDevTools\");\n public void initializeListener(WebDriver webDriver) {\n Require.precondition(webDriver instanceof HasDevTools, \"Loggable must implement HasDevTools\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/a25ad324ea3dc0a3babda00b34d177a9ae66d51f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 6 ] }, { "input": " \"platformName\": \"MAC\",\n \"platformName\": \"mac\",\n \"platform\": \"MAC\",\n \"platform\": \"mac\",\n \"platform\": \"MAC\",\n \"platform\": \"mac\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/6c5c572c4adc6c7596692840014df1a2d814ad2d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " private final Regularly regularly;\n private final Regularly createNewSession;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/2263fb753ddb4117fb5c38986583df7024ce57a9", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 5 ] }, { "input": " HttpResponse response = client.execute(upstream);\n HttpResponse response = client.with(addSecret).execute(upstream);\n HttpResponse response = client.execute(request);\n HttpResponse response = client.with(addSecret).execute(request);\n HttpResponse response = client.execute(request);\n HttpResponse response = client.with(addSecret).execute(request);\n HttpResponse response = client.execute(request);\n HttpResponse response = client.with(addSecret).execute(request);\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/a930e517dddfaaf8b04d165248a16b8432eb5dd2", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": " HttpResponse res = client.execute(req);\n HttpResponse res = client.with(addSecret).execute(req);\n HttpResponse res = client.execute(req);\n HttpResponse res = client.with(addSecret).execute(req);\n HttpResponse res = client.execute(req);\n HttpResponse res = client.with(addSecret).execute(req);\n HttpResponse res = client.execute(req);\n HttpResponse res = client.with(addSecret).execute(req);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/3e84a8b33a4d7354bf061990b90dd99486de86a0", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": "import org.openqa.selenium.grid.distributor.model.Host;\nimport org.openqa.selenium.grid.distributor.model.Host;\n", "class": "clone", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/8e5b1329c32044094f21c99e2a5ca2f962ec8f42", "target_edit_idx": 0, "propagatable_edit_idx": [ 9 ] }, { "input": " protected abstract Set getModel();\n protected abstract Set getAvailableNodes();\n protected Set getModel() {\n protected Set getAvailableNodes() {\n protected Set getModel() {\n protected Set getAvailableNodes() {\n assertThat(distributor.getModel().size()).isEqualTo(0);\n assertThat(distributor.getAvailableNodes().size()).isEqualTo(0);\n assertThat(distributor.getModel().size()).isEqualTo(1);\n assertThat(distributor.getAvailableNodes().size()).isEqualTo(1);\n assertThat(distributor.getModel().size()).isEqualTo(1);\n assertThat(distributor.getAvailableNodes().size()).isEqualTo(1);\n assertThat(distributor.getModel().size()).isEqualTo(0);\n assertThat(distributor.getAvailableNodes().size()).isEqualTo(0);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/8e5b1329c32044094f21c99e2a5ca2f962ec8f42", "target_edit_idx": 4, "propagatable_edit_idx": [ 6, 10, 11, 12, 13, 14 ] }, { "input": " assertThat(distributor.getModel().size()).isEqualTo(1);\n assertThat(distributor.getAvailableNodes().size()).isEqualTo(1);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/8e5b1329c32044094f21c99e2a5ca2f962ec8f42", "target_edit_idx": 12, "propagatable_edit_idx": [ 4, 6, 10, 11, 13, 14 ] }, { "input": " assertThat(distributor.getModel().size()).isEqualTo(0);\n assertThat(distributor.getAvailableNodes().size()).isEqualTo(0);\n protected abstract Set getModel();\n protected abstract Set getAvailableNodes();\n protected Set getModel() {\n protected Set getAvailableNodes() {\n protected Set getModel() {\n protected Set getAvailableNodes() {\n assertThat(distributor.getModel().size()).isEqualTo(0);\n assertThat(distributor.getAvailableNodes().size()).isEqualTo(0);\n assertThat(distributor.getModel().size()).isEqualTo(1);\n assertThat(distributor.getAvailableNodes().size()).isEqualTo(1);\n assertThat(distributor.getModel().size()).isEqualTo(1);\n assertThat(distributor.getAvailableNodes().size()).isEqualTo(1);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/8e5b1329c32044094f21c99e2a5ca2f962ec8f42", "target_edit_idx": 14, "propagatable_edit_idx": [ 4, 6, 10, 11, 12, 13 ] }, { "input": " return Require.state(hostAndPort).nonNull();\n return Require.state(\"Host and port\", hostAndPort).nonNull();\n String testDirName = Require.state(getProperty(TEST_DIRECTORY_PROPERTY)).nonNull(\n String testDirName = Require.state(\"Test directory\", getProperty(TEST_DIRECTORY_PROPERTY)).nonNull(\n String actualExe = Require.state(\n new ExecutableFinder().find(executable)).nonNull(\"Unable to find executable for: %s\", executable);\n String actualExe = new ExecutableFinder().find(executable);\n Require.state(\"Actual executable\", actualExe).nonNull(\"Unable to find executable for: %s\", executable);\n Require.state(exePath).nonNull(\n Require.state(\"The path to the driver executable\", exePath).nonNull(\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/19af5d91ac3281200b242cc9396f160e94e9a8e8", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 1, 3 ] }, { "input": " assertThat(Require.state(arg).nonNull()).isSameAs(arg);\n assertThat(Require.state(arg).nonNull(\"test\")).isSameAs(arg);\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/19af5d91ac3281200b242cc9396f160e94e9a8e8", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " String testDirName = Require.state(getProperty(TEST_DIRECTORY_PROPERTY)).nonNull(\n String testDirName = Require.state(\"Test directory\", getProperty(TEST_DIRECTORY_PROPERTY)).nonNull(\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/19af5d91ac3281200b242cc9396f160e94e9a8e8", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": " assert '--disable-gpu' in options._arguments\n if platform.system().lower == 'windows':\n assert '--disable-gpu' in options._arguments\n assert '--disable-gpu' not in options._arguments\n if platform.system().lower == 'windows':\n assert '--disable-gpu' not in options._arguments\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/315bf4e38ae3e8a1d797f1f359fc21fb30c2da16", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " @Ignore(value = MARIONETTE, issue = \"3795\")\n @Ignore(value = MARIONETTE, issue = \"3795\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/825ff9fc3cbe47bece72241b3690e90dabd41744", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " String backgroundColour = element.getCssValue(\"background-color\");\n Color backgroundColour = Color.fromString(element.getCssValue(\"background-color\"));\n backgroundColour = element.getCssValue(\"background-color\");\n backgroundColour = Color.fromString(element.getCssValue(\"background-color\"));\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/825ff9fc3cbe47bece72241b3690e90dabd41744", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " assertEquals(\"rgba(0, 128, 0, 1)\", backgroundColour);\n assertEquals(new Color(0, 128, 0, 1), backgroundColour);\n assertEquals(\"rgba(255, 0, 0, 1)\", backgroundColour);\n assertEquals(new Color(255, 0, 0, 1), backgroundColour);\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/825ff9fc3cbe47bece72241b3690e90dabd41744", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " String backgroundColour = element.getCssValue(\"background-color\");\n assertEquals(\"rgba(0, 128, 0, 1)\", backgroundColour);\n Color backgroundColour = Color.fromString(element.getCssValue(\"background-color\"));\n assertEquals(new Color(0, 128, 0, 1), backgroundColour);\n backgroundColour = element.getCssValue(\"background-color\");\n assertEquals(\"rgba(0, 128, 0, 1)\", backgroundColour);\n\n backgroundColour = Color.fromString(element.getCssValue(\"background-color\"));\n assertEquals(new Color(0, 128, 0, 1), backgroundColour);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/825ff9fc3cbe47bece72241b3690e90dabd41744", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " if not callable(attrib):\n return attrib\n return _wrap if callable(attrib) else attrib\n if not callable(attrib):\n return attrib\n return _wrap if callable(attrib) else attrib\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/0c6f254f578df15b6a4b8d2c97f05693d05c23bd", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " raise e\n return _wrap\n\n raise AttributeError(name)\n raise\n else:\n raise AttributeError(name)\n raise e\n return _wrap\n\n raise AttributeError(name)\n raise\n else:\n raise AttributeError(name)", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/0c6f254f578df15b6a4b8d2c97f05693d05c23bd", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " with pytest.raises(ElementNotVisibleException):\n try:\n with pytest.raises(ElementNotVisibleException):\n try:\n with pytest.raises(ElementNotVisibleException):\n try:\n with pytest.raises(ElementNotVisibleException):\n try:\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/9296227628ada15265811cb7dcbde5f8fc06474f", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 10, 12 ] }, { "input": " public JettyAppServer(String hostName) {\n public JettyAppServer(String hostName, int httpPort, int httpsPort) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/32ff140c72cc047afd9511565ecb42d9af934285", "target_edit_idx": 7, "propagatable_edit_idx": [ 0 ] }, { "input": " private int getHttpPort() {\n private static int getHttpPort() {\n private int getHttpsPort() {\n private static int getHttpsPort() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/32ff140c72cc047afd9511565ecb42d9af934285", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " \"type\", \"implicit\",\n \"ms\", TimeUnit.MILLISECONDS.convert(time, unit)));\n \"implicit\", TimeUnit.MILLISECONDS.convert(time, unit)));\n \"type\", \"script\",\n \"ms\", TimeUnit.MILLISECONDS.convert(time, unit)));\n \"script\", TimeUnit.MILLISECONDS.convert(time, unit)));\n \"type\", \"page load\",\n \"ms\", TimeUnit.MILLISECONDS.convert(time, unit)));\n \"page load\", TimeUnit.MILLISECONDS.convert(time, unit)));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/441bf3011810fad30aa1b3eaf18cc7ffa3043162", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " assertThat(keyReporter.getAttribute(\"value\"), is(\"abc def\"));\n wait.until(\n ExpectedConditions.attributeToBe(keyReporter, \"value\", \"abc def\"));\n assertThat(keyReporter.getAttribute(\"value\"), is(\"abc \"));\n wait.until(\n ExpectedConditions.attributeToBe(keyReporter, \"value\", \"abc \"));\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/92cf77420dbc25a01a66dfe1d3b2572029a5424a", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " assertEquals(\n Colors.GREEN.getColorValue(), Color.fromString(redbox.getCssValue(\"background-color\")));\n\n wait.until(ExpectedConditions.attributeToBe(redbox, \"background-color\", Colors.GREEN.getColorValue().asRgba()));\n assertEquals(\n Colors.GREEN.getColorValue(), Color.fromString(redbox.getCssValue(\"background-color\")));\n\n wait.until(ExpectedConditions.attributeToBe(redbox, \"background-color\", Colors.GREEN.getColorValue().asRgba()));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/92cf77420dbc25a01a66dfe1d3b2572029a5424a", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " SeleniumServer remoteControl, DriverSessions webdriverSessions) {\n browserLauncherFactory = new BrowserLauncherFactory(webdriverSessions);\n SeleniumServer remoteControl, BrowserLauncherFactory browserLauncherFactory) {\n this.browserLauncherFactory = browserLauncherFactory;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/fa001b6753f5eead695ebad8e78536f51410e237", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " WebElement element = (WebElement) response.getValue();\n Object value = response.getValue();\n WebElement element;\n try {\n element = (WebElement) value;\n } catch (ClassCastException ex) {\n throw new WebDriverException(\"Returned value cannot be converted to WebElement: \" + value, ex);\n }\n WebElement element = (WebElement) response.getValue();\n Object responseValue = response.getValue();\n WebElement element;\n try {\n element = (WebElement) responseValue;\n } catch (ClassCastException ex) {\n throw new WebDriverException(\"Returned value cannot be converted to WebElement: \" + value, ex);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/9f672a380527cb68ad0673f5104132cf89d4fac6", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": " List allElements = (List) response.getValue();\n Object value = response.getValue();\n List allElements;\n try {\n allElements = (List) value;\n } catch (ClassCastException ex) {\n throw new WebDriverException(\"Returned value cannot be converted to List: \" + value, ex);\n }\n List allElements = (List) response.getValue();\n Object responseValue = response.getValue();\n List allElements;\n try {\n allElements = (List) responseValue;\n } catch (ClassCastException ex) {\n throw new WebDriverException(\"Returned value cannot be converted to List: \" + responseValue, ex);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/9f672a380527cb68ad0673f5104132cf89d4fac6", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": " return (Boolean) execute(DriverCommand.IS_ELEMENT_SELECTED, ImmutableMap.of(\"id\", id))\n Object value = execute(DriverCommand.IS_ELEMENT_SELECTED, ImmutableMap.of(\"id\", id))\n return (Boolean) execute(DriverCommand.IS_ELEMENT_ENABLED, ImmutableMap.of(\"id\", id))\n Object value = execute(DriverCommand.IS_ELEMENT_ENABLED, ImmutableMap.of(\"id\", id))\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/9f672a380527cb68ad0673f5104132cf89d4fac6", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " millis = ((Number) allParameters.get(\"ms\")).longValue();\n try {\n millis = ((Number) allParameters.get(\"ms\")).longValue();\n } catch (ClassCastException ex) {\n throw new WebDriverException(\"Illegal (non-numeric) timeout value passed: \" + allParameters.get(\"ms\"), ex);\n }\n millis = ((Number) allParameters.get(\"ms\")).longValue();\n try {\n millis = ((Number) allParameters.get(\"ms\")).longValue();\n } catch (ClassCastException ex) {\n throw new WebDriverException(\"Illegal (non-numeric) timeout value passed: \" + allParameters.get(\"ms\"), ex);\n }\n millis = ((Number) allParameters.get(\"ms\")).longValue();\n try {\n millis = ((Number) allParameters.get(\"ms\")).longValue();\n } catch (ClassCastException ex) {\n throw new WebDriverException(\"Illegal (non-numeric) timeout value passed: \" + allParameters.get(\"ms\"), ex);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/72702574d0491b03597cbbaed36e3cca2910926d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " * Copyright 2011 WebDriver committers Copyright 2011 Software Freedom Conservancy\n * Copyright 2011 WebDriver committers\n * Copyright 2011 Software Freedom Conservancy\n * Copyright 2011 WebDriver committers Copyright 2011 Software Freedom Conservancy\n * Copyright 2011 WebDriver committers\n * Copyright 2011 Software Freedom Conservancy\n * Copyright 2011 WebDriver committers Copyright 2011 Software Freedom Conservancy\n * Copyright 2011 WebDriver committers\n * Copyright 2011 Software Freedom Conservancy\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/898ab9c5f56323dba277b8bef6835a766ec30b7f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " public boolean isTimedOut(int timeout) {\n public boolean isTimedOut(long timeout) {\n public boolean isTimedOut(int timeout) {\n public boolean isTimedOut(long timeout) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/d03a5099fd48c1b7a3c660787e5f43834625335a", "target_edit_idx": 0, "propagatable_edit_idx": [ 13 ] }, { "input": " new Thread(new Runnable() {\n new Thread(new Runnable() { // Thread safety reviewed\n new Thread(new Runnable() {\n new Thread(new Runnable() { // Thread safety reviewed\n new Thread(new Runnable() {\n new Thread(new Runnable() { // Thread safety reviewed\n new Thread(new Runnable() {\n new Thread(new Runnable() { // Thread safety reviewed\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/6bd5edaf900582692fc98e3a02578c4a1045d38f", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": " wpm.changeRegistrySettings(browserConfigurationOptions);\n wpm.changeRegistrySettings(browserConfigurationOptions.asCapabilities());\n wpm.changeRegistrySettings(browserConfigurationOptions);\n wpm.changeRegistrySettings(browserConfigurationOptions.asCapabilities());\n wpm.changeRegistrySettings(browserConfigurationOptions);\n wpm.changeRegistrySettings(browserConfigurationOptions.asCapabilities());\n wpm.changeRegistrySettings(browserConfigurationOptions);\n wpm.changeRegistrySettings(browserConfigurationOptions.asCapabilities());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/01ce52af02feab0104517b00fb6791b23350bb85", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " public FirefoxCustomProfileLauncher(String sessionId, String browserLaunchLocation) {\n public FirefoxCustomProfileLauncher(int port, String sessionId, String browserLaunchLocation) {\n public FirefoxCustomProfileLauncher(String sessionId) {\n this(sessionId, findBrowserLaunchLocation());\n public FirefoxCustomProfileLauncher(int port, String sessionId) {\n this(port, sessionId, findBrowserLaunchLocation());\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/2ad86a76cc1498e234c60aa9bfa4f5267f64d331", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " runHTMLSuite(\"*firefox\");\n runHTMLSuite(\"*firefox\", false);\n }\n \n public void testFirefoxSlow() throws Exception{\n runHTMLSuite(\"*firefox\", true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/ae0c98b653b53d6a76ccb3d8e56adf99b6f12df6", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5, 6, 7, 8 ] }, { "input": " runHTMLSuite(\"*iexplore\");\n runHTMLSuite(\"*iexplore\", false);\n }\n \n public void testIExploreSlow() throws Exception {\n runHTMLSuite(\"*iexplore\", true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/ae0c98b653b53d6a76ccb3d8e56adf99b6f12df6", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 6, 7, 8 ] }, { "input": " // TODO incorporate Shinya's fixes from Selenium IDE\n // This test should pass\n runHTMLSuite(\"*chrome\");\n runHTMLSuite(\"*chrome\", false);\n }\n \n public void testChromeSlow() throws Exception {\n runHTMLSuite(\"*chrome\", true);\n runHTMLSuite(\"*firefox\");\n runHTMLSuite(\"*firefox\", false);\n }\n \n public void testFirefoxSlow() throws Exception{\n runHTMLSuite(\"*firefox\", true);\n // TODO incorporate Shinya's fixes from Selenium IDE\n // This test should pass\n runHTMLSuite(\"*chrome\");\n runHTMLSuite(\"*chrome\", false);\n }\n \n public void testChromeSlow() throws Exception {\n runHTMLSuite(\"*chrome\", true);\n runHTMLSuite(\"*firefox\");\n runHTMLSuite(\"*firefox\", false);\n }\n \n public void testFirefoxSlow() throws Exception{\n runHTMLSuite(\"*firefox\", true);\n runHTMLSuite(\"*iexplore\");\n runHTMLSuite(\"*iexplore\", false);\n }\n \n public void testIExploreSlow() throws Exception {\n runHTMLSuite(\"*iexplore\", true);\n runHTMLSuite(\"*opera\");\n runHTMLSuite(\"*opera\", false);\n }\n \n public void testOperaSlow() throws Exception {\n runHTMLSuite(\"*opera\", true);\n runHTMLSuite(\"*iehta\");\n runHTMLSuite(\"*iehta\", false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/ae0c98b653b53d6a76ccb3d8e56adf99b6f12df6", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 4, 5, 7, 8 ] }, { "input": " runHTMLSuite(\"*opera\");\n runHTMLSuite(\"*opera\", false);\n }\n \n public void testOperaSlow() throws Exception {\n runHTMLSuite(\"*opera\", true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/ae0c98b653b53d6a76ccb3d8e56adf99b6f12df6", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 8 ] }, { "input": " _outputFile = new File(args[i++]);\n outputFile = new File(args[i++]);\n FileWriter fw = new FileWriter(_outputFile);\n FileWriter fw = new FileWriter(outputFile);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/d906a40cf9d043b8924b2b7f4822e76370e99d81", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " String output = xlateTestCase(_outputFormat, Xlator.loadFile(_testCaseHTML), options);\n if (_outputFile == null) {\n String testName = extractTestName(testCaseHTML);\n String output = xlateTestCase(testName, outputFormat, Xlator.loadFile(testCaseHTML), options);\n if (outputFile == null) {\n public static String xlateTestCase(String outputFormat, String htmlSource, HashMap options) throws Exception {\n static String extractTestName(File testFile) {\n int dotIndex = testFile.getName().indexOf('.');\n if (dotIndex == -1) return testFile.getName();\n return testFile.getName().substring(0, dotIndex);\n }\n \n public static String xlateTestCase(String testName, String outputFormat, String htmlSource, HashMap options) throws Exception {\n output = Xlator.xlateTestCase(formatter.getValue(), htmlSource, options);\n output = Xlator.xlateTestCase(Xlator.extractTestName(input), formatter.getValue(), htmlSource, options);\n String content = Xlator.xlateTestCase(\"java-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n String content = Xlator.xlateTestCase(\"TestClick\", \"java-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n Xlator.xlateTestCase(\"cs-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n Xlator.xlateTestCase(\"TestClick\", \"cs-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n Xlator.xlateTestCase(\"perl-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n Xlator.xlateTestCase(\"TestClick\", \"perl-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n Xlator.xlateTestCase(\"ruby-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n Xlator.xlateTestCase(\"TestClick\", \"ruby-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n Xlator.xlateTestCase(\"python-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n Xlator.xlateTestCase(\"TestClick\", \"python-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/d906a40cf9d043b8924b2b7f4822e76370e99d81", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 6, 7, 8, 9, 10, 11 ] }, { "input": " public static String xlateTestCase(String outputFormat, String htmlSource, HashMap options) throws Exception {\n static String extractTestName(File testFile) {\n int dotIndex = testFile.getName().indexOf('.');\n if (dotIndex == -1) return testFile.getName();\n return testFile.getName().substring(0, dotIndex);\n }\n \n public static String xlateTestCase(String testName, String outputFormat, String htmlSource, HashMap options) throws Exception {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.7058823529411765, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/d906a40cf9d043b8924b2b7f4822e76370e99d81", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 6, 7, 8, 9, 10, 11 ] }, { "input": " Xlator.xlateTestCase(\"ruby-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n Xlator.xlateTestCase(\"TestClick\", \"ruby-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/d906a40cf9d043b8924b2b7f4822e76370e99d81", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 4, 6, 7, 8, 9, 11 ] }, { "input": " Xlator.xlateTestCase(\"python-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n Xlator.xlateTestCase(\"TestClick\", \"python-rc\", Xlator.loadResource(\"/tests/TestClick.html\"), options);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/SeleniumHQ/selenium/commit/d906a40cf9d043b8924b2b7f4822e76370e99d81", "target_edit_idx": 11, "propagatable_edit_idx": [ 2, 4, 6, 7, 8, 9, 10 ] }, { "input": " NamingService vendorImpl = (NamingService) constructor.newInstance(serverList);\n return vendorImpl;\n return (NamingService) constructor.newInstance(serverList);\n NamingService vendorImpl = (NamingService) constructor.newInstance(properties);\n return vendorImpl;\n return (NamingService) constructor.newInstance(properties);\n NamingMaintainService vendorImpl = (NamingMaintainService) constructor.newInstance(serverList);\n return vendorImpl;\n return (NamingMaintainService) constructor.newInstance(serverList);\n NamingMaintainService vendorImpl = (NamingMaintainService) constructor.newInstance(properties);\n return vendorImpl;\n return (NamingMaintainService) constructor.newInstance(properties);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/alibaba/nacos/commit/024a7a5a535c0ee33ca922bffc22195af1cf2942", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " return \"naming\";\n return MODULE;\n return \"naming\";\n return MODULE;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/alibaba/nacos/commit/024a7a5a535c0ee33ca922bffc22195af1cf2942", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": " public static final String XML = \"xml\";\n XML(\"xml\"),\n public static final String HTML = \"html\";\n HTML(\"html\"),\n public static final String YAML = \"yaml\";\n YAML(\"yaml\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/alibaba/nacos/commit/44e3c5e224ca97eec5af4cee1c0a55cc71d44c08", "target_edit_idx": 3, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " log.debug(\"Leader for partition {} is unknown for fetching offset\", tp);\n log.debug(\"Leader for partition {} is unknown for fetching offset {}\", tp, offset);\n log.debug(\"Not replacing existing epoch {} with new epoch {}\", oldEpoch, epoch);\n log.debug(\"Not replacing existing epoch {} with new epoch {} for partition {}\", oldEpoch, epoch, topicPartition);\n log.debug(\"Leader for partition {} is unavailable for fetching offset\", tp);\n log.debug(\"Leader for partition {} is unavailable for fetching offset {}\", tp, offset);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/kafka/commit/264d1d8a8b7ede0fb8e3595d0153893966bb73b8", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4 ] }, { "input": " log.debug(\"Leader for partition {} is unavailable for fetching offset\", tp);\n log.debug(\"Leader for partition {} is unavailable for fetching offset {}\", tp, offset);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/kafka/commit/264d1d8a8b7ede0fb8e3595d0153893966bb73b8", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\t@Bean\n\t@ConditionalOnMissingBean\n\tpublic NacosDiscoveryProperties nacosProperties() {\n\t\treturn new NacosDiscoveryProperties();\n\t}\n\n\t@Bean\n\t@ConditionalOnMissingBean\n\tpublic NacosDiscoveryProperties nacosProperties() {\n\t\treturn new NacosDiscoveryProperties();\n\t}\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/alibaba/spring-cloud-alibaba/commit/aadcc976869a91d9b806e216635bfd8859e3f45a", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " SlideDeck slideDeck;\n SlideDeck primarySlideDeck;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/signalapp/Signal-Android/commit/16c8b88f0fc5c6460ede0feca95f15a1fe81a688", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " return getGroupRecipient(message.getGroupContext()).orElseGet(() -> Recipient.externalPush(content.getSender()));\n return getGroupRecipient(message.getGroupContext(), sender);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/c30e3664b8d55aee187ab146b35a01edec8ddec5", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " return getGroupRecipient(message != null ? message.getGroupContext() : Optional.empty()).orElseGet(() -> Recipient.externalPush(content.getSender()));\n return getGroupRecipient(message != null ? message.getGroupContext() : Optional.empty(), sender);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/c30e3664b8d55aee187ab146b35a01edec8ddec5", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 11 ] }, { "input": " private Optional getGroupRecipient(Optional message) {\n if (message.isPresent()) {\n return Optional.of(Recipient.externalPossiblyMigratedGroup(GroupId.v2(message.get().getMasterKey())));\n private @NonNull Recipient getGroupRecipient(Optional signalServiceGroup, @NonNull Recipient senderRecipient) {\n if (signalServiceGroup.isPresent()) {\n return Recipient.externalPossiblyMigratedGroup(GroupId.v2(signalServiceGroup.get().getMasterKey()));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/c30e3664b8d55aee187ab146b35a01edec8ddec5", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " return MessageRecordUtil.isTextOnly(messageRecord, context) && !conversationMessage.hasBeenQuoted() ? MESSAGE_TYPE_INCOMING_TEXT : MESSAGE_TYPE_INCOMING_MULTIMEDIA;\n return conversationMessage.isTextOnly(context) ? MESSAGE_TYPE_INCOMING_TEXT : MESSAGE_TYPE_INCOMING_MULTIMEDIA;\n return MessageRecordUtil.isTextOnly(messageRecord, context) && !conversationMessage.hasBeenQuoted() ? MESSAGE_TYPE_OUTGOING_TEXT : MESSAGE_TYPE_OUTGOING_MULTIMEDIA;\n return conversationMessage.isTextOnly(context) ? MESSAGE_TYPE_OUTGOING_TEXT : MESSAGE_TYPE_OUTGOING_MULTIMEDIA;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/52a5fb8ea2cc7a8da8ade697bdf1ac424278d455", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " saveButton.setEnabled(false);\n saveButton.setAlpha(0.5f);\n saveButton.setEnabled(true);\n saveButton.setAlpha(1);\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/cdb7f0736827c668ed4d7ce85bece8b3a92dd819", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " ApplicationDependencies.getJobManager()\n .startChain(new RefreshAttributesJob(false))\n .then(ProfileKeySendJob.create(context, SignalDatabase.threads().getOrCreateThreadIdFor(threadRecipient), true))\n .enqueue();\n ProfileKeySendJob profileSendJob = ProfileKeySendJob.create(SignalDatabase.threads().getOrCreateThreadIdFor(threadRecipient), true);\n\n if (profileSendJob != null) {\n ApplicationDependencies.getJobManager()\n .startChain(new RefreshAttributesJob(false))\n .then(profileSendJob)\n .enqueue();\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/be2ed8989f873f96edfeac9f3e8b7f9a9be46f5b", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": " attachmentDatabase.updateMessageId(preUploadAttachmentIds, primaryMessageId);\n attachmentDatabase.updateMessageId(preUploadAttachmentIds, primaryMessageId, primaryMessage.getStoryType().isStory());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/9b83c5e2834c53aa6d848ee261480fded0a41028", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 5, 7 ] }, { "input": " attachmentDatabase.updateMessageId(attachmentIds, messageId);\n attachmentDatabase.updateMessageId(attachmentIds, messageId, secondaryMessage.getStoryType().isStory());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/9b83c5e2834c53aa6d848ee261480fded0a41028", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 5, 6 ] }, { "input": " return commitChange(change);\n return commitChange(change, allowWhenBlocked);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/19dc90b68b87c25eb7b503d8c9e5b6d001cba277", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " private GroupManager.GroupActionResult commitChange(@NonNull GroupChange.Actions.Builder change)\n private GroupManager.GroupActionResult commitChange(@NonNull GroupChange.Actions.Builder change, boolean allowWhenBlocked)\n return commitChange(change);\n return commitChange(change, allowWhenBlocked);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/19dc90b68b87c25eb7b503d8c9e5b6d001cba277", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " return Optional.of(new LongMessage(ConversationMessageFactory.createWithUnresolvedData(context, record.get()), \"\"));\n return Optional.of(new LongMessage(ConversationMessageFactory.createWithUnresolvedData(context, record.get())));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/570b4d71500259f5e515c506560dd34571b34d7f", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " return Optional.of(new LongMessage(ConversationMessageFactory.createWithUnresolvedData(context, record.get()), \"\"));\n return Optional.of(new LongMessage(ConversationMessageFactory.createWithUnresolvedData(context, record.get())));\n return Optional.of(new LongMessage(ConversationMessageFactory.createWithUnresolvedData(context, record.get()), \"\"));\n return Optional.of(new LongMessage(ConversationMessageFactory.createWithUnresolvedData(context, record.get())));\n return Optional.of(new LongMessage(ConversationMessageFactory.createWithUnresolvedData(context, record.get()), readFullBody(context, textSlide.getUri())));\n return Optional.of(new LongMessage(ConversationMessageFactory.createWithUnresolvedData(context, record.get(), readFullBody(context, textSlide.getUri()))));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/570b4d71500259f5e515c506560dd34571b34d7f", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " try (GroupDatabase.Reader reader = groupDatabase.getGroupsFilteredByTitle(query, false, true)) {\n try (GroupDatabase.Reader reader = groupDatabase.getGroupsFilteredByTitle(query, false, true, true)) {\n try (GroupDatabase.Reader reader = DatabaseFactory.getGroupDatabase(getContext()).getGroupsFilteredByTitle(getFilter(), flagSet(mode, DisplayMode.FLAG_INACTIVE_GROUPS), hideGroupsV1(mode))) {\n try (GroupDatabase.Reader reader = DatabaseFactory.getGroupDatabase(getContext()).getGroupsFilteredByTitle(getFilter(), flagSet(mode, DisplayMode.FLAG_INACTIVE_GROUPS), hideGroupsV1(mode), !smsEnabled(mode))) {\n public Reader getGroupsFilteredByTitle(String constraint, boolean includeInactive, boolean excludeV1) {\n public Reader getGroupsFilteredByTitle(String constraint, boolean includeInactive, boolean excludeV1, boolean excludeMms) {\n try (GroupDatabase.Reader reader = DatabaseFactory.getGroupDatabase(context).getGroupsFilteredByTitle(query, true, false)) {\n try (GroupDatabase.Reader reader = DatabaseFactory.getGroupDatabase(context).getGroupsFilteredByTitle(query, true, false, false)) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/1dca3698d23e7b2f56525fcbc4d8becb096e9027", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 5 ] }, { "input": " try (GroupDatabase.Reader reader = DatabaseFactory.getGroupDatabase(context).getGroupsFilteredByTitle(query, true, false)) {\n try (GroupDatabase.Reader reader = DatabaseFactory.getGroupDatabase(context).getGroupsFilteredByTitle(query, true, false, false)) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/1dca3698d23e7b2f56525fcbc4d8becb096e9027", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": " PushTransportDetails transportDetails = new PushTransportDetails(sessionCipher.getSessionVersion());\n PushTransportDetails transportDetails = new PushTransportDetails();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/signalapp/Signal-Android/commit/e74d502ae6a1f9ee7cfd58cdf1db10acca227711", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 12, 7 ] }, { "input": " paddedMessage = sessionCipher.decrypt(new PreKeySignalMessage(ciphertext));\n metadata = new SignalServiceMetadata(envelope.getSourceAddress(), envelope.getSourceDevice(), envelope.getTimestamp(), envelope.getServerReceivedTimestamp(), envelope.getServerDeliveredTimestamp(), false, envelope.getServerGuid());\n sessionVersion = sessionCipher.getSessionVersion();\n paddedMessage = sessionCipher.decrypt(new PreKeySignalMessage(ciphertext));\n metadata = new SignalServiceMetadata(envelope.getSourceAddress(), envelope.getSourceDevice(), envelope.getTimestamp(), envelope.getServerReceivedTimestamp(), envelope.getServerDeliveredTimestamp(), false, envelope.getServerGuid());\n paddedMessage = sessionCipher.decrypt(new SignalMessage(ciphertext));\n metadata = new SignalServiceMetadata(envelope.getSourceAddress(), envelope.getSourceDevice(), envelope.getTimestamp(), envelope.getServerReceivedTimestamp(), envelope.getServerDeliveredTimestamp(), false, envelope.getServerGuid());\n sessionVersion = sessionCipher.getSessionVersion();\n paddedMessage = sessionCipher.decrypt(new SignalMessage(ciphertext));\n metadata = new SignalServiceMetadata(envelope.getSourceAddress(), envelope.getSourceDevice(), envelope.getTimestamp(), envelope.getServerReceivedTimestamp(), envelope.getServerDeliveredTimestamp(), false, envelope.getServerGuid());\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/signalapp/Signal-Android/commit/e74d502ae6a1f9ee7cfd58cdf1db10acca227711", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " PushTransportDetails transportDetails = new PushTransportDetails(sessionVersion);\n PushTransportDetails transportDetails = new PushTransportDetails();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/signalapp/Signal-Android/commit/e74d502ae6a1f9ee7cfd58cdf1db10acca227711", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 12 ] }, { "input": " if (messageVersion < 2) throw new AssertionError(\"Unknown version: \" + messageVersion);\n else if (messageVersion == 2) return messageWithPadding;\n\n if (messageVersion < 2) throw new AssertionError(\"Unknown version: \" + messageVersion);\n else if (messageVersion == 2) return messageBody;\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/e74d502ae6a1f9ee7cfd58cdf1db10acca227711", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " private final PushTransportDetails transportV2 = new PushTransportDetails(2);\n private final PushTransportDetails transportV3 = new PushTransportDetails(3);\n private final PushTransportDetails transportV3 = new PushTransportDetails();\n PushTransportDetails transportDetails = new PushTransportDetails(sessionCipher.getSessionVersion(destination));\n PushTransportDetails transportDetails = new PushTransportDetails();\n PushTransportDetails transportDetails = new PushTransportDetails(sessionCipher.getSessionVersion());\n PushTransportDetails transportDetails = new PushTransportDetails();\n PushTransportDetails transportDetails = new PushTransportDetails(sessionVersion);\n PushTransportDetails transportDetails = new PushTransportDetails();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/signalapp/Signal-Android/commit/e74d502ae6a1f9ee7cfd58cdf1db10acca227711", "target_edit_idx": 12, "propagatable_edit_idx": [ 0, 1, 7 ] }, { "input": "import com.google.android.gms.common.util.ArrayUtils;\nimport com.google.android.gms.common.util.IOUtils;\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/signalapp/Signal-Android/commit/9dbb77c10ad88dbff462e3b87e340ef8a49f56a2", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "import com.google.android.gms.common.util.Hex;\nimport org.thoughtcrime.securesms.util.Hex;\nimport com.google.android.gms.common.util.Hex;\nimport org.thoughtcrime.securesms.util.Hex;\nimport com.google.android.gms.common.util.Hex;\nimport org.thoughtcrime.securesms.util.Hex;\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/signalapp/Signal-Android/commit/9dbb77c10ad88dbff462e3b87e340ef8a49f56a2", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 11 ] }, { "input": " return linkPreviewState;\n return linkPreviewSafeState;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/c09dbfa47c50b2d316705b49d759eb492af4813b", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10 ] }, { "input": " final LinkPreviewState state = linkPreviewState.getValue();\n final LinkPreviewState state = linkPreviewSafeState.getValue();\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/c09dbfa47c50b2d316705b49d759eb492af4813b", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9, 7 ] }, { "input": " boolean threadDeleted = DatabaseFactory.getThreadDatabase(context).update(threadId, false);\n boolean threadDeleted = DatabaseFactory.getThreadDatabase(context).update(threadId, false, true, true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/1ec3a72f79ee24e2fbd66fa08fa48ee24d2576c9", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 5, 6 ] }, { "input": " return update(threadId, unarchive, true);\n return update(threadId, unarchive, true, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/1ec3a72f79ee24e2fbd66fa08fa48ee24d2576c9", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 6 ] }, { "input": " private static final String RECIPIENT_ID = \"RECIPIENT_ID\";\n private static final String RECIPIENT_ID = \"RECIPIENT_ID\";\n private static final String FROM_CONVERSATION = \"FROM_CONVERSATION\";\n private static final String RECIPIENT_ID = \"RECIPIENT_ID\";\n private static final String RECIPIENT_ID = \"RECIPIENT_ID\";\n private static final String FROM_CONVERSATION = \"FROM_CONVERSATION\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/signalapp/Signal-Android/commit/555104aff063b5545565b7720badc053e7be11ef", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " completeKeys.remove(StorageId.forContact(key));\n completeIds.remove(StorageId.forContact(key));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/7734cd2c8f4725738e1ddee184efa13afc7e67ba", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " .createForSingleSessionOnDisk(this);\n .createForSingleSessionOnDisk(this, e -> Log.w(TAG, \"Failed to write to disk.\", e));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/ce0058864f718dd631e17f41fc9114421c609114", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 10, 13 ] }, { "input": " Optional extraText = Optional.absent();\n Optional textSlide = Optional.absent();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/003fa1b05980d07fa1122edcd12ef73dca1f1290", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " return new Pair<>(bodyText, extraText);\n return new Pair<>(bodyText, textSlide);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/signalapp/Signal-Android/commit/003fa1b05980d07fa1122edcd12ef73dca1f1290", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " private final String extraBody;\n private final String fullBody;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/003fa1b05980d07fa1122edcd12ef73dca1f1290", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " protected AttachmentUploadJob(@NonNull Context context, @NonNull WorkerParameters workerParameters) {\n public AttachmentUploadJob(@NonNull Context context, @NonNull WorkerParameters workerParameters) {\n protected ContextJob(@NonNull Context context, @NonNull WorkerParameters workerParameters) {\n public ContextJob(@NonNull Context context, @NonNull WorkerParameters workerParameters) {\n protected SendJob(@NonNull Context context, @NonNull WorkerParameters workerParameters) {\n public SendJob(@NonNull Context context, @NonNull WorkerParameters workerParameters) {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/5450967d0050f90dd33663d2d77c71b9306a5b5f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " onBindItemViewHolder(viewHolder, record, cursor.getPosition());\n onBindItemViewHolder(viewHolder, record);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/e96a02ab357d3f98262901b56c89e2c18c4f27e3", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 3, 5 ] }, { "input": " onBindItemViewHolder(viewHolder, fastRecords.get(calculatedPosition), calculatedPosition);\n onBindItemViewHolder(viewHolder, fastRecords.get(calculatedPosition));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/e96a02ab357d3f98262901b56c89e2c18c4f27e3", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 3, 4 ] }, { "input": " List messageIds = threads.setRead(threadId);\n List messageIds = threads.setRead(threadId, false);\n List messageIds = DatabaseFactory.getThreadDatabase(context).setRead(params[0]);\n List messageIds = DatabaseFactory.getThreadDatabase(context).setRead(params[0], false);\n List messageIds = DatabaseFactory.getThreadDatabase(getActivity()).setRead(threadId);\n List messageIds = DatabaseFactory.getThreadDatabase(getActivity()).setRead(threadId, false);\n public List setRead(long threadId) {\n public List setRead(long threadId, boolean lastSeen) {\n DatabaseFactory.getThreadDatabase(getContext()).setRead(threadId);\n DatabaseFactory.getThreadDatabase(getContext()).setRead(threadId, true);\n List messageIds = DatabaseFactory.getThreadDatabase(context).setRead(threadId);\n DatabaseFactory.getThreadDatabase(context).setLastSeen(threadId);\n List messageIds = DatabaseFactory.getThreadDatabase(context).setRead(threadId, true);\n List messageIds = DatabaseFactory.getThreadDatabase(context).setRead(replyThreadId);\n DatabaseFactory.getThreadDatabase(context).setLastSeen(replyThreadId);\n List messageIds = DatabaseFactory.getThreadDatabase(context).setRead(replyThreadId, true);\n List messageIds = DatabaseFactory.getThreadDatabase(context).setRead(threadId);\n List messageIds = DatabaseFactory.getThreadDatabase(context).setRead(threadId, true);\n List messageIds = DatabaseFactory.getThreadDatabase(context).setRead(threadId);\n DatabaseFactory.getThreadDatabase(context).setLastSeen(threadId);\n List messageIds = DatabaseFactory.getThreadDatabase(context).setRead(threadId, true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/8cd50d1e82a608513afca1abae9f6d95b260a2cb", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 10 ] }, { "input": " public void setTimestampRead(SyncMessageId messageId) {\n SQLiteDatabase database = databaseHelper.getWritableDatabase();\n Cursor cursor = null;\n public List> setTimestampRead(SyncMessageId messageId, long expireStarted) {\n SQLiteDatabase database = databaseHelper.getWritableDatabase();\n List> expiring = new LinkedList<>();\n Cursor cursor = null;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/signalapp/Signal-Android/commit/68b48ebe000f62545a2f6cdac76530ac1b81d0ce", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 11 ] }, { "input": " cameraView.previewDestroyed();\n cameraView.onPause();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/signalapp/Signal-Android/commit/52e4abf56269d0b484f1e150abfda9769b12558b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " private static void appendPushNotificationState(@NonNull Context context,\n @Nullable MasterSecret masterSecret,\n @NonNull NotificationState notificationState,\n @NonNull Cursor cursor)\n private static void appendPushNotificationState(@NonNull Context context,\n @NonNull NotificationState notificationState,\n @NonNull Cursor cursor)\n appendPushNotificationState(context, masterSecret, notificationState, pushCursor);\n if (includePushDatabase) {\n appendPushNotificationState(context, notificationState, pushCursor);\n }\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.07142857142857142, "commit_url": "https://github.com/signalapp/Signal-Android/commit/90d5e9dccdb5735f09bbf2870cd0d20e94dd0abb", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": " getLoaderManager().restartLoader(0, null, this);\n\n getLoaderManager().initLoader(0, null, this);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/signalapp/Signal-Android/commit/db7a657001c4e90d97950dc304ef2a85ae0b65e9", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " public SendConf send(@NonNull byte[] pduBytes) throws UndeliverableMessageException {\n public @Nullable SendConf send(@NonNull byte[] pduBytes) throws UndeliverableMessageException {\n public synchronized SendConf send(@NonNull byte[] pduBytes) throws UndeliverableMessageException {\n public @Nullable synchronized SendConf send(@NonNull byte[] pduBytes) throws UndeliverableMessageException {\n SendConf send(@NonNull byte[] pduBytes) throws UndeliverableMessageException;\n @Nullable SendConf send(@NonNull byte[] pduBytes) throws UndeliverableMessageException;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/signalapp/Signal-Android/commit/141ee6565dfffd4b6cf42a17c9547769e72968fd", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " String url = CONFIG.getConfig(ConfigurationKeys.STORE_DB_URL);\n String url = CONFIG.getConfig(ConfigurationKeys.STORE_DB_URL, DEFAULT_STORE_DB_URL);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/incubator-seata/commit/545b444a95c0c23aecba217758f6484379bfb478", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5, 6, 8, 10 ] }, { "input": " String user = CONFIG.getConfig(ConfigurationKeys.STORE_DB_USER);\n String user = CONFIG.getConfig(ConfigurationKeys.STORE_DB_USER, DEFAULT_STORE_DB_USER);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/incubator-seata/commit/545b444a95c0c23aecba217758f6484379bfb478", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 6, 8, 10 ] }, { "input": " String password = CONFIG.getConfig(ConfigurationKeys.STORE_DB_PASSWORD);\n String password = CONFIG.getConfig(ConfigurationKeys.STORE_DB_PASSWORD, DEFAULT_STORE_DB_PASSWORD);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/incubator-seata/commit/545b444a95c0c23aecba217758f6484379bfb478", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 4, 5, 8, 10 ] }, { "input": " String datasourceType = ConfigurationFactory.getInstance().getConfig(ConfigurationKeys.STORE_DB_DATASOURCE_TYPE);\n String datasourceType = ConfigurationFactory.getInstance().getConfig(\n ConfigurationKeys.STORE_DB_DATASOURCE_TYPE, DEFAULT_STORE_DB_DATASOURCE);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/incubator-seata/commit/545b444a95c0c23aecba217758f6484379bfb478", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 10 ] }, { "input": " String datasourceType = CONFIG.getConfig(ConfigurationKeys.STORE_DB_DATASOURCE_TYPE);\n String datasourceType = CONFIG.getConfig(ConfigurationKeys.STORE_DB_DATASOURCE_TYPE, DEFAULT_STORE_DB_DATASOURCE);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/incubator-seata/commit/545b444a95c0c23aecba217758f6484379bfb478", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 8 ] }, { "input": " private void sendRegisterMessage(String serverAddress, Channel channel, String dbKey) {\n private void sendRegisterMessage(String serverAddress, Channel channel, String resourceId) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/incubator-seata/commit/0e9beb11517e69e9b0df8fe5a0c3baf3009d6fc2", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " synchronized (RESOURCE_LOCK) {\n RESOURCE_LOCK.notifyAll();\n }\n synchronized (RESOURCE_LOCK) {\n RESOURCE_LOCK.notifyAll();\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/incubator-seata/commit/0e9beb11517e69e9b0df8fe5a0c3baf3009d6fc2", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " runTestOrdered(Integer.valueOf(42));\n runTestOrdered(Integer.valueOf(42), false);\n }\n \n public void testOrderedSticky() {\n runTestOrdered(\"42\", true);\n }\n\n public void testOrderedMainThreadSticky() {\n runTestOrdered(new IntTestEvent(42), true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/greenrobot/EventBus/commit/0b2e1fc6f600334ec517fed0bbe0e82223782455", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": " protected void runTestOrdered(Object event) {\n register(1);\n register(-1);\n register(10);\n register(0);\n register(-100);\n public void testOrderedBackgroundThreadSticky() {\n runTestOrdered(Integer.valueOf(42), true);\n }\n\n protected void runTestOrdered(Object event, boolean sticky) {\n register(1, sticky);\n register(-1, sticky);\n register(10, sticky);\n register(0, sticky);\n register(-100, sticky);\n runTestOrdered(\"42\");\n runTestOrdered(\"42\", false);\n runTestOrdered(new IntTestEvent(42));\n runTestOrdered(new IntTestEvent(42), false);\n runTestOrdered(Integer.valueOf(42));\n runTestOrdered(Integer.valueOf(42), false);\n }\n \n public void testOrderedSticky() {\n runTestOrdered(\"42\", true);\n }\n\n public void testOrderedMainThreadSticky() {\n runTestOrdered(new IntTestEvent(42), true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/greenrobot/EventBus/commit/0b2e1fc6f600334ec517fed0bbe0e82223782455", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " // allow tracking how many concurrent threads are in here the same way we do with threadpool\n metrics.markExecutionSemaphoreUsedPermitsCount(executionSemaphore.getNumberOfPermitsUsed());\n\n // allow tracking how many concurrent threads are in here the same way we do with threadpool\n metrics.markExecutionSemaphoreUsedPermitsCount(executionSemaphore.getNumberOfPermitsUsed());\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Netflix/Hystrix/commit/ae11c30a0b577e6b8e8863d8f29c8847b946b9fa", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " private final AtomicInteger executionSemaphorePermitsInUse = new AtomicInteger();\n private final AtomicInteger concurrentExecutionCount = new AtomicInteger();\n return executionSemaphorePermitsInUse.get();\n return concurrentExecutionCount.get();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Netflix/Hystrix/commit/ae11c30a0b577e6b8e8863d8f29c8847b946b9fa", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " response = executionHook.onSuccess(this, response);\n response = executionHook.onComplete(this, response);\n r = executionHook.onSuccess(this, r);\n r = executionHook.onComplete(this, r);\n return executionHook.onSuccess(_this, r);\n return executionHook.onComplete(_this, r);\n return executionHook.onSuccess(this, fallback);\n return executionHook.onComplete(this, fallback);\n public T onSuccess(HystrixCommand commandInstance, T response) {\n public T onComplete(HystrixCommand commandInstance, T response) {\n return super.onSuccess(commandInstance, response);\n return super.onComplete(commandInstance, response);\n public T onSuccess(HystrixCommand commandInstance, T response) {\n public T onComplete(HystrixCommand commandInstance, T response) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.35294117647058826, "commit_url": "https://github.com/Netflix/Hystrix/commit/aedb7962f8c533c97ef5526c9f2ad1b3324a0724", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 8 ] }, { "input": " return executionHook.onSuccess(_this, r);\n return executionHook.onComplete(_this, r);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.29411764705882354, "commit_url": "https://github.com/Netflix/Hystrix/commit/aedb7962f8c533c97ef5526c9f2ad1b3324a0724", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 8 ] }, { "input": " public T onSuccess(HystrixCommand commandInstance, T response) {\n public T onComplete(HystrixCommand commandInstance, T response) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.23529411764705882, "commit_url": "https://github.com/Netflix/Hystrix/commit/aedb7962f8c533c97ef5526c9f2ad1b3324a0724", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 8 ] }, { "input": " poller.start(new MetricsAsJsonPollerListener() {\n\n @Override\n public void handleJsonMetric(String json) {\n System.out.println(\"Received: \" + json);\n metricsCount.incrementAndGet();\n }\n });\n poller.start();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Netflix/Hystrix/commit/6264e9a0ed03bcd9644a16af3337ae4a6495d498", "target_edit_idx": 6, "propagatable_edit_idx": [ 10, 3, 7 ] }, { "input": " poller.start(jsonListener);\n poller.start();\n public synchronized void start(MetricsAsJsonPollerListener listener) {\n public synchronized void start() {\n poller.start(new MetricsAsJsonPollerListener() {\n\n @Override\n public void handleJsonMetric(String json) {\n System.out.println(\"Received: \" + json);\n metricsCount.incrementAndGet();\n }\n });\n poller.start();\n poller.start(new MetricsAsJsonPollerListener() {\n\n @Override\n public void handleJsonMetric(String json) {\n System.out.println(\"Received: \" + json);\n metricsCount.incrementAndGet();\n }\n });\n poller.start();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Netflix/Hystrix/commit/6264e9a0ed03bcd9644a16af3337ae4a6495d498", "target_edit_idx": 10, "propagatable_edit_idx": [ 3, 6, 7 ] }, { "input": " public final MetricGroup getJobMetricGroup() {\n return parent.parent;\n public final MetricGroup getTaskMetricGroup() {\n return parent;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/615d19735b0691b57262a110e6078c3488349f5a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " new RocksDBWriteBatchWrapper(this.rocksHandle.getDb(), writeBatchSize)) {\n new RocksDBWriteBatchWrapper(this.rocksHandle.getDb(), writeBatchSize);\n Closeable ignored =\n cancelStreamRegistryForRestore.registerCloseableTemporarily(\n asCloseable(writeBatchWrapper))) {\n new RocksDBWriteBatchWrapper(this.rocksHandle.getDb(), writeBatchSize)) {\n new RocksDBWriteBatchWrapper(this.rocksHandle.getDb(), writeBatchSize);\n Closeable ignored =\n cancelStreamRegistryForRestore.registerCloseableTemporarily(\n asCloseable(writeBatchWrapper))) {\n new RocksDBWriteBatchWrapper(this.rocksHandle.getDb(), writeBatchSize)) {\n new RocksDBWriteBatchWrapper(this.rocksHandle.getDb(), writeBatchSize);\n Closeable ignored =\n cancelStreamRegistry.registerCloseableTemporarily(\n asCloseable(writeBatchWrapper))) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/flink/commit/0b0158b4df97a0a0ae44d43f6c7b6947e8ed433f", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 12 ] }, { "input": " private int previousPrecision;\n private int precision;\n this.previousPrecision = precision;\n this.precision = precision;\n out.writeInt(previousPrecision);\n out.writeInt(precision);\n this.previousPrecision = in.readInt();\n this.precision = in.readInt();\n return new TimestampSerializer(previousPrecision);\n return new TimestampSerializer(precision);\n private int previousPrecision;\n private int precision;\n this.previousPrecision = precision;\n this.precision = precision;\n out.writeInt(previousPrecision);\n out.writeInt(precision);\n this.previousPrecision = in.readInt();\n this.precision = in.readInt();\n return new TimestampDataSerializer(previousPrecision);\n return new TimestampDataSerializer(precision);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/apache/flink/commit/f1597d5b2184ddcdd8e2e94c5c081b5a85eabf40", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 7, 8, 9, 10, 11 ] }, { "input": " return new TimestampSerializer(previousPrecision);\n return new TimestampSerializer(precision);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/flink/commit/f1597d5b2184ddcdd8e2e94c5c081b5a85eabf40", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 7, 8, 9, 10, 11 ] }, { "input": " private int previousPrecision;\n private int previousScale;\n private int precision;\n private int scale;\n this.previousPrecision = precision;\n this.previousScale = scale;\n this.precision = precision;\n this.scale = scale;\n out.writeInt(previousPrecision);\n out.writeInt(previousScale);\n out.writeInt(precision);\n out.writeInt(scale);\n this.previousPrecision = in.readInt();\n this.previousScale = in.readInt();\n this.precision = in.readInt();\n this.scale = in.readInt();\n return new DecimalDataSerializer(previousPrecision, previousScale);\n return new DecimalDataSerializer(precision, scale);\n private int previousPrecision;\n private int previousScale;\n private int precision;\n private int scale;\n this.previousPrecision = precision;\n this.previousScale = scale;\n this.precision = precision;\n this.scale = scale;\n out.writeInt(previousPrecision);\n out.writeInt(previousScale);\n out.writeInt(precision);\n out.writeInt(scale);\n this.previousPrecision = in.readInt();\n this.previousScale = in.readInt();\n this.precision = in.readInt();\n this.scale = in.readInt();\n return new DecimalDataSerializer(previousPrecision, previousScale);\n return new DecimalDataSerializer(precision, scale);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/apache/flink/commit/9e6a8b47cfcf583928b7811e47912af0e3299cd8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 7, 8, 9, 10, 11 ] }, { "input": " return new DecimalDataSerializer(previousPrecision, previousScale);\n return new DecimalDataSerializer(precision, scale);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/flink/commit/9e6a8b47cfcf583928b7811e47912af0e3299cd8", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 7, 8, 9, 10, 11 ] }, { "input": " DecimalDataSerializer newDecimalDataSerializer = (DecimalDataSerializer) newSerializer;\n if (previousPrecision != newDecimalDataSerializer.precision\n || previousScale != newDecimalDataSerializer.scale) {\n DecimalSerializerSnapshot oldDecimalSerializerSnapshot =\n (DecimalSerializerSnapshot) oldSerializerSnapshot;\n if (precision != oldDecimalSerializerSnapshot.precision\n || scale != oldDecimalSerializerSnapshot.scale) {\n DecimalDataSerializer newDecimalDataSerializer = (DecimalDataSerializer) newSerializer;\n if (previousPrecision != newDecimalDataSerializer.precision\n || previousScale != newDecimalDataSerializer.scale) {\n DecimalSerializerSnapshot oldDecimalSerializerSnapshot =\n (DecimalSerializerSnapshot) oldSerializerSnapshot;\n if (precision != oldDecimalSerializerSnapshot.precision\n || scale != oldDecimalSerializerSnapshot.scale) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/9e6a8b47cfcf583928b7811e47912af0e3299cd8", "target_edit_idx": 6, "propagatable_edit_idx": [ 13 ] }, { "input": " private LogicalType previousType;\n private TypeSerializer previousEleSer;\n private LogicalType elementType;\n private TypeSerializer elementTypeSerializer;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/763b30f4093ca93e49262a63e39fdb09e6a431a3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": " this.previousEleSer =\n this.elementTypeSerializer =\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/apache/flink/commit/763b30f4093ca93e49262a63e39fdb09e6a431a3", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " ArrayDataSerializer newArrayDataSerializer = (ArrayDataSerializer) newSerializer;\n if (!previousType.equals(newArrayDataSerializer.elementType)\n || !previousEleSer.equals(newArrayDataSerializer.elementTypeSerializer)) {\n ArrayDataSerializerSnapshot oldArrayDataSerializerSnapshot =\n (ArrayDataSerializerSnapshot) oldSerializerSnapshot;\n if (!elementType.equals(oldArrayDataSerializerSnapshot.elementType)\n || !elementTypeSerializer.equals(\n oldArrayDataSerializerSnapshot.elementTypeSerializer)) {\n ArrayDataSerializer newArrayDataSerializer = (ArrayDataSerializer) newSerializer;\n if (!previousType.equals(newArrayDataSerializer.eleType)\n || !previousEleSer.equals(newArrayDataSerializer.eleSer)) {\n ArrayDataSerializerSnapshot oldArrayDataSerializerSnapshot =\n (ArrayDataSerializerSnapshot) oldSerializerSnapshot;\n if (!eleType.equals(oldArrayDataSerializerSnapshot.eleType)\n || !eleSer.equals(oldArrayDataSerializerSnapshot.eleSer)) {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/763b30f4093ca93e49262a63e39fdb09e6a431a3", "target_edit_idx": 7, "propagatable_edit_idx": [ 14 ] }, { "input": " private T[] previousEnums;\n private T[] enums;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/apache/flink/commit/2a7b90443fbb2fbf3990005930f4c31c5e0a8bc0", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " return new EnumSerializer<>(enumClass, previousEnums);\n return new EnumSerializer<>(enumClass, enums);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/apache/flink/commit/2a7b90443fbb2fbf3990005930f4c31c5e0a8bc0", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " serializerSnapshot.resolveSchemaCompatibility(serializer);\n serializer.snapshotConfiguration().resolveSchemaCompatibility(serializerSnapshot);\n serializerSnapshot.resolveSchemaCompatibility(serializer);\n serializer.snapshotConfiguration().resolveSchemaCompatibility(serializerSnapshot);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/2a7b90443fbb2fbf3990005930f4c31c5e0a8bc0", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": " private long lastEmittedWatermark = Watermark.UNINITIALIZED.getTimestamp();\n private long latestWatermark = Watermark.UNINITIALIZED.getTimestamp();\n\n private boolean idle = false;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/apache/flink/commit/0e69a7b7d7684be4fe797ad4ff2d203f7da3f577", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": " private boolean isConsumedPartitionGroupConsumable(\n @Override\n public boolean isConsumableBasedOnFinishedProducers(\n private boolean isConsumedPartitionGroupConsumable(\n @Override\n public boolean isConsumableBasedOnFinishedProducers(\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/b462d0ec4d1d421a369e45f8dca33284b5be6bc2", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " final KubernetesConfigMap configMap = checkConfigMaps(configMaps, configMapName);\n final KubernetesConfigMap configMap = getOnlyConfigMap(configMaps, configMapName);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/075f359fdbbe331c2ee93479204e7fec57fc9b8b", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": "import static org.apache.flink.kubernetes.utils.KubernetesUtils.checkConfigMaps;\nimport static org.apache.flink.kubernetes.utils.KubernetesUtils.getOnlyConfigMap;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/apache/flink/commit/075f359fdbbe331c2ee93479204e7fec57fc9b8b", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 6, 7, 8, 9, 10, 11 ] }, { "input": "import org.apache.hadoop.yarn.util.ConverterUtils;\nimport org.apache.hadoop.yarn.util.ConverterUtils;\nimport org.apache.hadoop.yarn.util.ConverterUtils;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/flink/commit/a7b0c2707518a8b7f589e50fa4eafad791d7179f", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " boolean isPipeline = isPipelineResultPartition(partitionType);\n boolean isPipeline = isPipelinedOrHybridResultPartition(partitionType);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/42345dd63c18b6bc8b5098011693014a852876b0", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7 ] }, { "input": " isPipelineResultPartition(partitionType)\n isPipelinedOrHybridResultPartition(partitionType)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/apache/flink/commit/42345dd63c18b6bc8b5098011693014a852876b0", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 4, 6, 7 ] }, { "input": "import java.util.function.Supplier;\nimport java.util.function.Supplier;\nimport java.util.function.Supplier;\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/2d1510a9d559a49806a60ececfd854dd53a6591d", "target_edit_idx": 1, "propagatable_edit_idx": [ 11, 7 ] }, { "input": " Supplier mailboxHasMail) {\n CanEmitBatchOfRecordsChecker canEmitBatchOfRecords) {\n Supplier mailboxHasMail) {\n CanEmitBatchOfRecordsChecker canEmitBatchOfRecords) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/2d1510a9d559a49806a60ececfd854dd53a6591d", "target_edit_idx": 3, "propagatable_edit_idx": [ 9 ] }, { "input": " JobGraph jobGraph = createJobGraph(1000000, false, false);\n JobGraph jobGraph = createJobGraph(0, false, false);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/flink/commit/89be642cb6d50c93234fd62d0b8012b958b0c919", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " latestLoadTime = System.currentTimeMillis();\n latestLoadTime = loadTime;\n latestLoadTime = System.currentTimeMillis();\n latestLoadTime = loadTime;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/24c685a58ef72db4c64c90e37056a07eb562be15", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": " private final PhysicalStateHandleID physicalID;\n\n private final PhysicalStateHandleID physicalID;\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/231e96b205edadcf9cbccf19d5cd1b414c2eadea", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " return physicalID;\n return new PhysicalStateHandleID(filePath.toUri().toString());\n return physicalID;\n return new PhysicalStateHandleID(handleName);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/231e96b205edadcf9cbccf19d5cd1b414c2eadea", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "import org.apache.flink.api.common.time.Deadline;\nimport org.apache.flink.api.common.time.Deadline;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/apache/flink/commit/05162625b75db9ea7ea9908da7e9fd349e549f16", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " LOG.trace(\"Request to submit {} entries to KDF using KDF Sink.\", requestEntries.size());\n\n LOG.trace(\"Request to submit {} entries to KDS using KDS Sink.\", requestEntries.size());\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/69e5e4f7a7a7a534fe866f899e42e3e447233791", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " results.get(1).isLeft()\n && results.get(1).left() instanceof CommittableWithLineage);\n results.get(2).isLeft()\n && results.get(2).left() instanceof CommittableWithLineage);\n results.get(2).isLeft()\n && results.get(2).left() instanceof CommittableWithLineage);\n results.get(3).isLeft()\n && results.get(3).left() instanceof CommittableWithLineage);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/155f17d62952fff5f5b583256f959f5fb63d1a8e", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": " ((CommittableWithLineage) results.get(1).left())\n ((CommittableWithLineage) results.get(2).left())\n ((CommittableWithLineage) results.get(2).left())\n ((CommittableWithLineage) results.get(3).left())\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/flink/commit/155f17d62952fff5f5b583256f959f5fb63d1a8e", "target_edit_idx": 12, "propagatable_edit_idx": [ 14 ] }, { "input": " return readScheduler.crateSubpartitionReader(\n return readScheduler.createSubpartitionReader(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/b8d1a48dc41f57f2f15ebbc42f27521023827004", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " readScheduler.crateSubpartitionReader(\n readScheduler.createSubpartitionReader(\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/apache/flink/commit/b8d1a48dc41f57f2f15ebbc42f27521023827004", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8 ] }, { "input": " readScheduler.crateSubpartitionReader(\n readScheduler.createSubpartitionReader(\n return readScheduler.crateSubpartitionReader(\n return readScheduler.createSubpartitionReader(\n SortMergeSubpartitionReader crateSubpartitionReader(\n SortMergeSubpartitionReader createSubpartitionReader(\n readScheduler.crateSubpartitionReader(\n readScheduler.createSubpartitionReader(\n readScheduler.crateSubpartitionReader(\n readScheduler.createSubpartitionReader(\n readScheduler.crateSubpartitionReader(\n readScheduler.createSubpartitionReader(\n readScheduler.crateSubpartitionReader(\n readScheduler.createSubpartitionReader(\n readScheduler.crateSubpartitionReader(\n readScheduler.createSubpartitionReader(\n readScheduler.crateSubpartitionReader(\n readScheduler.createSubpartitionReader(\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/apache/flink/commit/b8d1a48dc41f57f2f15ebbc42f27521023827004", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8 ] }, { "input": " // BINARY\n // VARBINARY\n // BYTES\n .failTableApi(BINARY(2), DEFAULT_BINARY)\n .failTableApi(VARBINARY(5), DEFAULT_VARBINARY)\n .failTableApi(BYTES(), DEFAULT_BYTES)\n // BINARY\n // VARBINARY\n // BYTES\n .failTableApi(BINARY(2), DEFAULT_BINARY)\n .failTableApi(VARBINARY(5), DEFAULT_VARBINARY)\n .failTableApi(BYTES(), DEFAULT_BYTES)\n // BINARY\n // VARBINARY\n // BYTES\n .failTableApi(BINARY(2), DEFAULT_BINARY)\n .failTableApi(VARBINARY(5), DEFAULT_VARBINARY)\n .failTableApi(BYTES(), DEFAULT_BYTES)\n // BINARY\n // VARBINARY\n // BYTES\n .failTableApi(BINARY(2), DEFAULT_BINARY)\n .failTableApi(VARBINARY(5), DEFAULT_VARBINARY)\n .failTableApi(BYTES(), DEFAULT_BYTES)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/flink/commit/ba1d9166f5f704bd47ad6d71e755b0653e8c2a83", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": " .setThroughputMeter(\n .setThroughputCalculator(\n .setThroughputMeter(\n .setThroughputCalculator(\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/flink/commit/e6996cd0b1bb7059ab32f63f051ebdedf93bcc9d", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " int size = source.getCurrentNumberOfBuffers();\n int size = source.getNumberOfQueuedBuffers();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/088d16517126d7128e1f072d588b9ce0f4787ae6", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 12, 13 ] }, { "input": " assertEquals(2, pipelinedSubpartition.getCurrentNumberOfBuffers());\n assertEquals(2, pipelinedSubpartition.getNumberOfQueuedBuffers());\n int size = source.getCurrentNumberOfBuffers();\n int size = source.getNumberOfQueuedBuffers();\n int size = source.getCurrentNumberOfBuffers();\n int size = source.getNumberOfQueuedBuffers();\n assertEquals(2, pipelinedSubpartition.getCurrentNumberOfBuffers());\n assertEquals(2, pipelinedSubpartition.getNumberOfQueuedBuffers());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/apache/flink/commit/088d16517126d7128e1f072d588b9ce0f4787ae6", "target_edit_idx": 12, "propagatable_edit_idx": [ 10, 11, 13 ] }, { "input": " valve.shutValve(123L);\n final boolean shut = valve.tryShutValve(123L);\n\n assertFalse(shut);\n valve.shutValve(123L);\n final boolean shut = valve.tryShutValve(123L);\n\n assertFalse(shut);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/2a225d613f942ea1aaba455cfe933449af167570", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " valve.shutValve(1L);\n valve.tryShutValve(1L);\n valve.shutValve(17L);\n valve.tryShutValve(17L);\n valve.shutValve(17L);\n valve.tryShutValve(17L);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/2a225d613f942ea1aaba455cfe933449af167570", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " LOG.info(\"Enabled external resources: {}\", resourceSet);\n LOG.info(\"Enabled external resources: {}\", resourceSet);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/2d80d8e882bb3117cd25cfd76da72214715205a1", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " final T vertexParallelism =\n final VertexParallelism vertexParallelism =\n Map reserveResources(T vertexParallelism);\n Map reserveResources(VertexParallelism vertexParallelism);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/8b5e172118a3f40bc14f9ab1ec969754615813a0", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "public class DefaultLogicalResult\n implements LogicalResult {\npublic class DefaultLogicalResult implements LogicalResult {\npublic class DefaultLogicalVertex\n implements LogicalVertex {\npublic class DefaultLogicalVertex implements LogicalVertex {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/5b20a7bb143b4d3dee2e64928f5c826e5e7c1632", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "public interface LogicalResult, R extends LogicalResult>\n extends Result {}\npublic interface LogicalResult\n extends Result {}public interface LogicalVertex, R extends LogicalResult>\n extends Vertex {}\npublic interface LogicalVertex\n extends Vertex {}", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/5b20a7bb143b4d3dee2e64928f5c826e5e7c1632", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " Collection> totalRequirements,\n ResourceCounter totalRequirements,\n Collection> totalRequirements,\n ResourceCounter totalRequirements,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/1ba2962361a8b5fb24149711655e616a13d2d61d", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " private final Map registeredPQStates;\n private final Map> registeredPQStates;\n private final Map registeredPQStates;\n private final Map> registeredPQStates;\n private final Map registeredPQStates;\n private final Map> registeredPQStates;\n", "class": "clone", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/apache/flink/commit/e3b777ecf47ecd16ddffcc7f24eb6f43f4818487", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " Map registeredPQStates,\n Map> registeredPQStates,\n Map registeredPQStates) {\n Map> registeredPQStates) {\n Map registeredPQStates,\n Map> registeredPQStates,\n Map registeredPQStates,\n Map> registeredPQStates,\n", "class": "clone", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/apache/flink/commit/e3b777ecf47ecd16ddffcc7f24eb6f43f4818487", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 7 ] }, { "input": " public JdbcDeserializationConverter createNullableInternalConverter(LogicalType type) {\n public JdbcDeserializationConverter createInternalConverter(LogicalType type) {\n return super.createNullableInternalConverter(type);\n return super.createInternalConverter(type);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/flink/commit/2bbac78b9eaa812b113cfc34f57c14ef3a3c35bc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tgetBasicSourceOptions(),\n\t\t\tgetBasicSinkOptions(),\n\t\t\tgetBasicSourceOptions(),\n\t\t\tgetBasicSinkOptions(),\n\t\t\tgetBasicSourceOptions(),\n\t\t\tgetBasicSinkOptions(),\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/5fb6c0b30cfe30bd8f3a3bfc5aed815049e7c6b8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\tMap options1 = getModifiedOptions(\n\t\t\tgetBasicSourceOptions(),\n\t\tMap sinkOptions = getModifiedOptions(\n\t\t\tgetBasicSinkOptions(),\n\t\tcreateTableSink(pkSchema, options1);\n\t\tcreateTableSink(pkSchema, options1);\n\t\tcreateTableSink(pkSchema, sinkOptions);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/5fb6c0b30cfe30bd8f3a3bfc5aed815049e7c6b8", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tschedulerNG.setMainThreadExecutor(getMainThreadExecutor());\n\t\t\tschedulerNG.initialize(getMainThreadExecutor());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/b41296eb262a64c8011e79ff8997488b72d076a8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": "\tpublic void setMainThreadExecutor(ComponentMainThreadExecutor mainThreadExecutor) {\n\t\tsuper.setMainThreadExecutor(mainThreadExecutor);\n\tpublic void initialize(ComponentMainThreadExecutor mainThreadExecutor) {\n\t\tsuper.initialize(mainThreadExecutor);\n\t\t\tschedulerNG.setMainThreadExecutor(getMainThreadExecutor());\n\t\t\tschedulerNG.initialize(getMainThreadExecutor());\n\t\t\t\t\tnewScheduler.setMainThreadExecutor(getMainThreadExecutor());\n\t\t\t\t\tnewScheduler.initialize(getMainThreadExecutor());\n\tpublic void setMainThreadExecutor(final ComponentMainThreadExecutor mainThreadExecutor) {\n\tpublic void initialize(final ComponentMainThreadExecutor mainThreadExecutor) {\n * will be passed via {@link #setMainThreadExecutor(ComponentMainThreadExecutor)}.\n * will be passed via {@link #initialize(ComponentMainThreadExecutor)}.\n\tvoid setMainThreadExecutor(ComponentMainThreadExecutor mainThreadExecutor);\n\tvoid initialize(ComponentMainThreadExecutor mainThreadExecutor);\n\t\tscheduler.setMainThreadExecutor(mainThreadExecutor);\n\t\tscheduler.initialize(mainThreadExecutor);\n\t\tscheduler.setMainThreadExecutor(ComponentMainThreadExecutorServiceAdapter.forMainThread());\n\t\tscheduler.initialize(ComponentMainThreadExecutorServiceAdapter.forMainThread());\n\t\tscheduler.setMainThreadExecutor(ComponentMainThreadExecutorServiceAdapter.forMainThread());\n\t\tscheduler.initialize(ComponentMainThreadExecutorServiceAdapter.forMainThread());\n\t\tscheduler.setMainThreadExecutor(ComponentMainThreadExecutorServiceAdapter.forMainThread());\n\t\tscheduler.initialize(ComponentMainThreadExecutorServiceAdapter.forMainThread());\n\t\tscheduler.setMainThreadExecutor(mainThreadExecutor);\n\t\tscheduler.initialize(mainThreadExecutor);\n\t\tscheduler.setMainThreadExecutor(mainThreadExecutor);\n\t\tscheduler.initialize(mainThreadExecutor);\n\t\tscheduler.setMainThreadExecutor(ComponentMainThreadExecutorServiceAdapter.forMainThread());\n\t\tscheduler.initialize(ComponentMainThreadExecutorServiceAdapter.forMainThread());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/apache/flink/commit/b41296eb262a64c8011e79ff8997488b72d076a8", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": "\tvoid setMainThreadExecutor(ComponentMainThreadExecutor mainThreadExecutor);\n\tvoid initialize(ComponentMainThreadExecutor mainThreadExecutor);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8461538461538461, "commit_url": "https://github.com/apache/flink/commit/b41296eb262a64c8011e79ff8997488b72d076a8", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": "\t\tscheduler.setMainThreadExecutor(mainThreadExecutor);\n\t\tscheduler.initialize(mainThreadExecutor);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8461538461538461, "commit_url": "https://github.com/apache/flink/commit/b41296eb262a64c8011e79ff8997488b72d076a8", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12 ] }, { "input": "\t\tscheduler.setMainThreadExecutor(ComponentMainThreadExecutorServiceAdapter.forMainThread());\n\t\tscheduler.initialize(ComponentMainThreadExecutorServiceAdapter.forMainThread());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/apache/flink/commit/b41296eb262a64c8011e79ff8997488b72d076a8", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12 ] }, { "input": "\t\t\tProcess pythonProcess = PythonEnvUtils.startPythonProcess(pythonEnv, commands);\n\t\t\tProcess pythonProcess = PythonEnvUtils.startPythonProcess(pythonEnv, commands, false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/63aec82a83b5ff03cd539f7bea5c42841f8ae3d4", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 6 ] }, { "input": "\t\t\t\t\ttaskManagerConfig\n\t\t\t\t\ttaskManagerConfig,\n\t\t\t\t\tuserClassloader\n\t\t\t\t\ttaskManagerConfig\n\t\t\t\t\ttaskManagerConfig,\n\t\t\t\t\tuserClassloader\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/a8c7b50eaafa548b4cf71a7a04fd6e5311d2627f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tpublic void setNumberOfInputs(int numberOfInputs) {\n\t\tconfig.setInteger(NUMBER_OF_INPUTS, numberOfInputs);\n\tpublic void setNumberOfNetworkInputs(int numberOfInputs) {\n\t\tconfig.setInteger(NUMBER_OF_NETWORK_INPUTS, numberOfInputs);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/69449957058fc45da16144258ad48147f032b142", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 9, 10, 4 ] }, { "input": "\t\t\tnewEnv = Environment.enrich(env, Collections.singletonMap(key, value), Collections.emptyMap());\n\t\t\tnewEnv = Environment.enrich(env, Collections.singletonMap(key, value));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/02cdfe88d5e686bedb7461e8e0b5f60bf807e095", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\tDeadline deadline = Deadline.fromNow(Duration.ofSeconds(1));\n\t\tDeadline deadline = Deadline.fromNow(Duration.ofSeconds(30));\n\t\tDeadline deadline = Deadline.fromNow(Duration.ofSeconds(1));\n\t\tDeadline deadline = Deadline.fromNow(Duration.ofSeconds(30));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/773ad7d0aa6b507c6d003bb554ee45566741cede", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tif (hits.getTotalHits() == 0) {\n\t\t\t\tThread.sleep(100);\n\t\t\tif (hits.getTotalHits() < 1) {\n\t\t\t\tThread.sleep(200);\n\t\t\tif (hits.getTotalHits().value == 0) {\n\t\t\t\tThread.sleep(100);\n\t\t\tif (hits.getTotalHits().value < 1) {\n\t\t\t\tThread.sleep(200);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/773ad7d0aa6b507c6d003bb554ee45566741cede", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t} while (hits.getTotalHits() == 0 && deadline.hasTimeLeft());\n\t\t} while (hits.getTotalHits() < 1 && deadline.hasTimeLeft());\n\n\t\tif (hits.getTotalHits() < 1) {\n\t\t\tthrow new AssertionError(\"Could not retrieve results from Elasticsearch.\");\n\t\t}\n\t\t} while (hits.getTotalHits().value == 0 && deadline.hasTimeLeft());\n\t\t} while (hits.getTotalHits().value < 1 && deadline.hasTimeLeft());\n\n\t\tif (hits.getTotalHits().value < 1) {\n\t\t\tthrow new AssertionError(\"Could not retrieve results from Elasticsearch.\");\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/773ad7d0aa6b507c6d003bb554ee45566741cede", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\tgetOptionalObjectIdentifier().orElse(null),\n\t\t\tattributes.stream().map(StructuredAttribute::copy).collect(Collectors.toList()),\n\t\t\tgetObjectIdentifier().orElse(null),\n\t\t\tattributes,\n\t\tfinal Optional identifier = structuredType.getOptionalObjectIdentifier();\n\t\tfinal Optional identifier = structuredType.getObjectIdentifier();\n\t\tif (getOptionalObjectIdentifier().isPresent()) {\n\t\tif (getObjectIdentifier().isPresent()) {\n\tpublic Optional getOptionalObjectIdentifier() {\n\tpublic Optional getObjectIdentifier() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/96a02ab0d016f915cd6cc5c3952948bfc1387990", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 4, 6 ] }, { "input": "\t\tfinal Optional identifier = structuredType.getOptionalObjectIdentifier();\n\t\tfinal Optional identifier = structuredType.getObjectIdentifier();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/96a02ab0d016f915cd6cc5c3952948bfc1387990", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 4, 6 ] }, { "input": "\tprivate static final List TCPDS_TABLES = Arrays.asList(\n\tprivate static final List TPCDS_TABLES = Arrays.asList(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/39626e2129bf1a2064066e4931d036b29ec8fae9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tpublic static class TestAggFunctionWithoutResultType extends AggregateFunction {\n\tpublic static class TestAggFunctionWithoutResultType extends AggregateFunction {\n\tpublic static class TestTableAggFunctionWithoutResultType extends TableAggregateFunction {\n\tpublic static class TestTableAggFunctionWithoutResultType extends TableAggregateFunction {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/flink/commit/4563176fbf8d4f27d2ebd20d5fd42c8c085582b2", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\treturn flinkConfig.get(KubernetesConfigOptions.JOB_MANAGER_ANNOTATIONS);\n\t\treturn flinkConfig.getOptional(KubernetesConfigOptions.JOB_MANAGER_ANNOTATIONS).orElse(Collections.emptyMap());\n\t\treturn flinkConfig.get(KubernetesConfigOptions.TASK_MANAGER_ANNOTATIONS);\n\t\treturn flinkConfig.getOptional(KubernetesConfigOptions.TASK_MANAGER_ANNOTATIONS).orElse(Collections.emptyMap());\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/apache/flink/commit/f6312b84e025bad6812fd62d47f4c98381f1c36a", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "import static org.junit.Assert.assertNull;\nimport static org.junit.Assert.assertNull;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/apache/flink/commit/f6312b84e025bad6812fd62d47f4c98381f1c36a", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\t\t\ta.getAccumulatorType(),\n\t\t\t\ta.getResultType()\n\t\t\t\tUserDefinedFunctionHelper.getAccumulatorTypeOfAggregateFunction(a),\n\t\t\t\tUserDefinedFunctionHelper.getReturnTypeOfAggregateFunction(a)\n\t\t\t\ta.getAccumulatorType(),\n\t\t\t\ta.getResultType()\n\t\t\t\tUserDefinedFunctionHelper.getAccumulatorTypeOfAggregateFunction(a),\n\t\t\t\tUserDefinedFunctionHelper.getReturnTypeOfAggregateFunction(a)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/0362d200e3cd9ed86fd363f0c48f1a7d2d7e852f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tFunctionDefinition fd = FunctionDefinitionUtil.createFunctionDefinition(\n\t\tFunctionDefinition fd1 = FunctionDefinitionUtil.createFunctionDefinition(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/0362d200e3cd9ed86fd363f0c48f1a7d2d7e852f", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7, 8 ] }, { "input": "\t\ttestHarness.waitForTaskRunning();\n\t\ttestHarness.waitForTaskRunning();\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/e59194745d827117e57d8da0f1b490805ec23091", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tsuper(MetricType.counter, metricName, host, tags);\n\t\tsuper(MetricType.count, metricName, host, tags);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/7e1a0f446e018681cb537dd936ae54388b5a7523", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\"{\\\"metric\\\":\\\"testCounter\\\",\\\"type\\\":\\\"counter\\\",\\\"host\\\":\\\"localhost\\\",\\\"tags\\\":[\\\"tag1\\\",\\\"tag2\\\"],\\\"points\\\":[[123,1]]}\",\n\t\t\t\"{\\\"metric\\\":\\\"testCounter\\\",\\\"type\\\":\\\"count\\\",\\\"host\\\":\\\"localhost\\\",\\\"tags\\\":[\\\"tag1\\\",\\\"tag2\\\"],\\\"points\\\":[[123,1]]}\",\n\t\t\t\"{\\\"metric\\\":\\\"testCounter\\\",\\\"type\\\":\\\"counter\\\",\\\"tags\\\":[\\\"tag1\\\",\\\"tag2\\\"],\\\"points\\\":[[123,1]]}\",\n\t\t\t\"{\\\"metric\\\":\\\"testCounter\\\",\\\"type\\\":\\\"count\\\",\\\"tags\\\":[\\\"tag1\\\",\\\"tag2\\\"],\\\"points\\\":[[123,1]]}\",\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/7e1a0f446e018681cb537dd936ae54388b5a7523", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tMemoryUtils.createMemoryGcCleaner(offHeapBuffer, address);\n\t\treturn new HybridMemorySegment(offHeapBuffer, owner);\n\t\treturn new HybridMemorySegment(offHeapBuffer, owner, MemoryUtils.createMemoryGcCleaner(offHeapBuffer, address));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/676b53fe799374aa9e86ce65a12bc788a5b42f2f", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10, 6 ] }, { "input": "\t\treturn new HybridMemorySegment(memory, null);\n\t\treturn new HybridMemorySegment(memory, null, null);\n\t\tnew HybridMemorySegment((ByteBuffer) null, new Object());\n\t\tnew HybridMemorySegment(null, new Object(), () -> {});\n\t\tnew HybridMemorySegment(ByteBuffer.allocate(1024), new Object());\n\t\tnew HybridMemorySegment(ByteBuffer.allocate(1024), new Object(), () -> {});\n\t\treturn new HybridMemorySegment(memory, owner);\n\t\treturn new HybridMemorySegment(memory, owner, null);\n\t\tMemoryUtils.createMemoryGcCleaner(offHeapBuffer, address);\n\t\treturn new HybridMemorySegment(offHeapBuffer, owner);\n\t\treturn new HybridMemorySegment(offHeapBuffer, owner, MemoryUtils.createMemoryGcCleaner(offHeapBuffer, address));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/flink/commit/676b53fe799374aa9e86ce65a12bc788a5b42f2f", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10, 6, 7 ] }, { "input": "\t\tnew HybridMemorySegment(ByteBuffer.allocate(1024), new Object());\n\t\tnew HybridMemorySegment(ByteBuffer.allocate(1024), new Object(), () -> {});\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/flink/commit/676b53fe799374aa9e86ce65a12bc788a5b42f2f", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9, 6, 7 ] }, { "input": "\t\t\tsanityCheckShuffleMemory(config, shuffleMemorySize, totalFlinkMemorySize);\n\t\t\tsanityCheckShuffleMemoryWithExplicitlySetTotalFlinkAndHeapMemory(config, shuffleMemorySize, totalFlinkMemorySize);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/6132f811c652ea4d8740776064051bf4ca11f1b5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t.field(COUNT, DataTypes.DECIMAL(10, 3))\n\t\t\t.field(COUNT, DataTypes.DECIMAL(38, 18))\n\t\t\t.field(COUNT, DataTypes.DECIMAL(10, 3))\n\t\t\t.field(COUNT, DataTypes.DECIMAL(38, 18))\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/flink/commit/5249249d58814691fbd1fe93e56dc821e0c1f069", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tTableSchema tableSchema = TableSchema.builder()\n\t\t\t.field(NAME, DataTypes.STRING())\n\t\t\t.field(COUNT, DataTypes.DECIMAL(10, 3))\n\t\t\t.field(TIME, DataTypes.TIMESTAMP(3))\n\t\t\t.build();\n\t\tTableSchema tableSchema = TableSchema.builder()\n\t\t\t.field(NAME, DataTypes.STRING())\n\t\t\t.field(COUNT, DataTypes.DECIMAL(10, 3))\n\t\t\t.field(TIME, DataTypes.TIMESTAMP(3))\n\t\t\t.build();\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/apache/flink/commit/5249249d58814691fbd1fe93e56dc821e0c1f069", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\ttableSchema.toRowType()\n\t\t\tTableSchema.builder()\n\t\t\t\t.field(NAME, DataTypes.STRING())\n\t\t\t\t.field(COUNT, DataTypes.DECIMAL(38, 18))\n\t\t\t\t.field(TIME, DataTypes.TIMESTAMP(3))\n\t\t\t\t.build().toRowType()\n\t\t\ttableSchema.toRowType()\n\t\t\tTableSchema.builder()\n\t\t\t\t.field(NAME, DataTypes.STRING())\n\t\t\t\t.field(COUNT, DataTypes.DECIMAL(38, 18))\n\t\t\t\t.field(TIME, DataTypes.TIMESTAMP(3))\n\t\t\t\t.build().toRowType()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/5249249d58814691fbd1fe93e56dc821e0c1f069", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tTableSourceValidation.validateTableSource(expected, tableSchema);\n\t\tTableSourceValidation.validateTableSource(expected, schema);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/flink/commit/5249249d58814691fbd1fe93e56dc821e0c1f069", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": "\tprotected ExecutionEnvironment(final Configuration executorConfiguration) {\n\t\tthis(DefaultExecutorServiceLoader.INSTANCE, executorConfiguration);\n\tprotected ExecutionEnvironment(final Configuration configuration) {\n\t\tthis(DefaultExecutorServiceLoader.INSTANCE, configuration);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/aad1131551ba977903f10d6f682ce2e827c8b3ae", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": "\tprivate void runProgram(\n\tprivate void runProgram(\n\t\tfinal ClusterClientFactory clusterClientFactory = clusterClientServiceLoader.getClusterClientFactory(executorConfig);\n\t\tfinal ClusterClientFactory clusterClientFactory = clusterClientServiceLoader.getClusterClientFactory(executorConfig);\n\t\tfinal ClusterDescriptor clusterDescriptor = clusterClientFactory.createClusterDescriptor(executorConfig);\n\t\tfinal ClusterDescriptor clusterDescriptor = clusterClientFactory.createClusterDescriptor(executorConfig);\n\t\t\tfinal T clusterId = clusterClientFactory.getClusterId(executorConfig);\n\t\t\tfinal ClusterID clusterId = clusterClientFactory.getClusterId(executorConfig);\n\t\t\tfinal ClusterClient client;\n\t\t\tfinal ClusterClient client;\n\tprivate void listJobs(\n\t\t\tClusterClient clusterClient,\n\tprivate void listJobs(\n\t\t\tClusterClient clusterClient,\n\t * @param type of the cluster id\n\t * @param type of the cluster id\n\tprivate interface ClusterAction {\n\tprivate interface ClusterAction {\n\t\tvoid runAction(ClusterClient clusterClient) throws FlinkException;\n\t\tvoid runAction(ClusterClient clusterClient) throws FlinkException;\n * @param cluster id\n * @param cluster id\npublic class ExecutionContext {\npublic class ExecutionContext {\n\tprivate final ClusterClientFactory clusterClientFactory;\n\tprivate final ClusterClientFactory clusterClientFactory;\n\tprivate final T clusterId;\n\tprivate final ClusterID clusterId;\n\tpublic T getClusterId() {\n\tpublic ClusterID getClusterId() {\n\tpublic ClusterDescriptor createClusterDescriptor() {\n\tpublic ClusterDescriptor createClusterDescriptor() {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/20a00050653cd10607b5017ffbb74946053fa962", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "\t\t\tfinal T clusterId = clusterClientFactory.getClusterId(executorConfig);\n\t\t\tfinal ClusterID clusterId = clusterClientFactory.getClusterId(executorConfig);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/20a00050653cd10607b5017ffbb74946053fa962", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "\tprivate interface ClusterAction {\n\tprivate interface ClusterAction {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/20a00050653cd10607b5017ffbb74946053fa962", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "import org.apache.flink.util.Preconditions;\nimport org.apache.flink.util.Preconditions;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/b7d0abfe74088aaba55af03c0a44dc720d729cd8", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": "\tprivate final Configuration dynamicProperties;\n\n\tprivate final Configuration dynamicProperties;\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/b7d0abfe74088aaba55af03c0a44dc720d729cd8", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": "\n\t\tthis.dynamicProperties = Preconditions.checkNotNull(dynamicProperties);\n\n\t\tthis.dynamicProperties = Preconditions.checkNotNull(dynamicProperties);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/b7d0abfe74088aaba55af03c0a44dc720d729cd8", "target_edit_idx": 3, "propagatable_edit_idx": [ 9 ] }, { "input": "import javax.annotation.Nonnull;\n\nimport javax.annotation.Nonnull;\n\nimport javax.annotation.Nonnull;\n\nimport javax.annotation.Nonnull;\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/f387e50a2236ba49196ce0acfd8c9dfa68fa554e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 7 ] }, { "input": "\t\t@Nonnull RpcService rpcService,\n\t\t@Nonnull DispatcherId fencingToken,\n\t\t@Nonnull Collection recoveredJobs,\n\t\t@Nonnull PartialDispatcherServicesWithJobGraphStore partialDispatcherServicesWithJobGraphStore) throws Exception;\n\t\tRpcService rpcService,\n\t\tDispatcherId fencingToken,\n\t\tCollection recoveredJobs,\n\t\tPartialDispatcherServicesWithJobGraphStore partialDispatcherServicesWithJobGraphStore) throws Exception;\n\t\t\t@Nonnull RpcService rpcService,\n\t\t\t@Nonnull DispatcherId fencingToken,\n\t\t\t@Nonnull Collection recoveredJobs,\n\t\t\t@Nonnull PartialDispatcherServicesWithJobGraphStore partialDispatcherServicesWithJobGraphStore) throws Exception {\n\t\t\tRpcService rpcService,\n\t\t\tDispatcherId fencingToken,\n\t\t\tCollection recoveredJobs,\n\t\t\tPartialDispatcherServicesWithJobGraphStore partialDispatcherServicesWithJobGraphStore) throws Exception {\n\t\t\t@Nonnull RpcService rpcService,\n\t\t\t@Nonnull DispatcherId fencingToken,\n\t\t\t@Nonnull Collection recoveredJobs,\n\t\t\t@Nonnull PartialDispatcherServicesWithJobGraphStore partialDispatcherServicesWithJobGraphStore) throws Exception {\n\t\t\tRpcService rpcService,\n\t\t\tDispatcherId fencingToken,\n\t\t\tCollection recoveredJobs,\n\t\t\tPartialDispatcherServicesWithJobGraphStore partialDispatcherServicesWithJobGraphStore) throws Exception {\n\t\t\t@Nonnull RpcService rpcService,\n\t\t\t@Nonnull DispatcherId fencingToken,\n\t\t\t@Nonnull Collection recoveredJobs,\n\t\t\t@Nonnull PartialDispatcherServicesWithJobGraphStore partialDispatcherServicesWithJobGraphStore) throws Exception {\n\t\t\tRpcService rpcService,\n\t\t\tDispatcherId fencingToken,\n\t\t\tCollection recoveredJobs,\n\t\t\tPartialDispatcherServicesWithJobGraphStore partialDispatcherServicesWithJobGraphStore) throws Exception {\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/apache/flink/commit/f387e50a2236ba49196ce0acfd8c9dfa68fa554e", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 3, 6 ] }, { "input": "\t\treturn pipelineTranslator.translate(pipeline,\n\t\treturn pipelineTranslator.translateToJobGraph(pipeline,\n\tpublic JobGraph translate(\n\tpublic JobGraph translateToJobGraph(\n\tJobGraph translate(\n\tJobGraph translateToJobGraph(\n\tpublic JobGraph translate(\n\tpublic JobGraph translateToJobGraph(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/7084e07eaba0d967cb2474bb4ea9e80da5cca46e", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 2, 6 ] }, { "input": "\tpublic LeaderRetrievalService getWebMonitorLeaderRetriever() {\n\tpublic LeaderRetrievalService getClusterRestEndpointLeaderRetriever() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/a72b238b8eed8811a7b820dab0383ac19a347c2d", "target_edit_idx": 0, "propagatable_edit_idx": [ 5, 7, 10, 12, 13, 14 ] }, { "input": "\tpublic void setWebMonitorEndpointLeaderRetriever(final LeaderRetrievalService webMonitorEndpointLeaderRetriever) {\n\t\tthis.webMonitorEndpointLeaderRetriever = webMonitorEndpointLeaderRetriever;\n\tpublic void setClusterRestEndpointLeaderRetriever(final LeaderRetrievalService clusterRestEndpointLeaderRetriever) {\n\t\tthis.clusterRestEndpointLeaderRetriever = clusterRestEndpointLeaderRetriever;\n\tprivate volatile LeaderRetrievalService webMonitorEndpointLeaderRetriever;\n\tprivate volatile LeaderRetrievalService clusterRestEndpointLeaderRetriever;\n\t\ttestingHighAvailabilityServices.setWebMonitorEndpointLeaderRetriever(webMonitorEndpointLeaderRetriever);\n\t\ttestingHighAvailabilityServices.setClusterRestEndpointLeaderRetriever(webMonitorEndpointLeaderRetriever);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/flink/commit/a72b238b8eed8811a7b820dab0383ac19a347c2d", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 11 ] }, { "input": " *

The serialized string representation is {@code DOUBLE}.\n *

The serialized string representation is {@code DOUBLE}. {@code DOUBLE PRECISION} is a synonym\n * for this type.\n *

The serialized string representation is {@code INT}.\n *

The serialized string representation is {@code INT}. {@code INTEGER} is a synonym for this type.\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/178a7ea08cbff001375734a24e9e20fd94006fac", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " * If no precision is specified, {@code p} is equal to 0.\n * If no precision is specified, {@code p} is equal to 0. {@code TIME(p) WITHOUT TIME ZONE} is a synonym\n * for this type.\n * If no precision is specified, {@code p} is equal to 6.\n * If no precision is specified, {@code p} is equal to 6. {@code TIMESTAMP(p) WITHOUT TIME ZONE} is a\n * synonym for this type.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/178a7ea08cbff001375734a24e9e20fd94006fac", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "import org.apache.flink.runtime.executiongraph.ExecutionAttemptID;\nimport org.apache.flink.runtime.executiongraph.ExecutionAttemptID;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/flink/commit/739c496d2d5a9d12cc7ee7b021fed4a9cd0499ed", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tjava.time.LocalDate.class.getName());\n\t\tjava.time.LocalDate.class.getName(),\n\t\tInteger.class.getName());\n\t\tjava.time.LocalTime.class.getName());\n\t\tjava.time.LocalTime.class.getName(),\n\t\tInteger.class.getName(),\n\t\tLong.class.getName());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/7bf92f723c7e5834abffedfd900f2cac4325f13f", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": "\tprivate boolean filterRestoredPartitionsWithDiscovered = true;\n\tprivate boolean filterRestoredPartitionsWithCurrentTopicsDescriptor = true;\n\t\t\tif (filterRestoredPartitionsWithDiscovered) {\n\t\t\tif (filterRestoredPartitionsWithCurrentTopicsDescriptor) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/6a4f0124512a424510f1dcdbe7855c92617e78c6", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\trestoredTimersSnapshot.getKeySerializerConfigSnapshot(),\n\t\t\t\t\trestoredTimersSnapshot.getKeySerializerSnapshot(),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/3f9d9cf84ee6413c2076d3e69987bd24389659b2", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 12 ] }, { "input": "\tprivate TypeSerializerSnapshot namespaceSerializerConfigSnapshot;\n\tprivate TypeSerializerSnapshot namespaceSerializerSnapshot;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/3f9d9cf84ee6413c2076d3e69987bd24389659b2", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 7 ] }, { "input": "\tpublic TypeSerializerSnapshot getNamespaceSerializerConfigSnapshot() {\n\t\treturn namespaceSerializerConfigSnapshot;\n\tpublic TypeSerializerSnapshot getNamespaceSerializerSnapshot() {\n\t\treturn namespaceSerializerSnapshot;\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/3f9d9cf84ee6413c2076d3e69987bd24389659b2", "target_edit_idx": 10, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tif (offsetCommitMode == OffsetCommitMode.ON_CHECKPOINTS || offsetCommitMode == OffsetCommitMode.DISABLED) {\n\t\t\tproperties.setProperty(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, \"false\");\n\t\t}\n\t\tadjustAutoCommitConfig(properties, offsetCommitMode);\n\t\tif (offsetCommitMode == OffsetCommitMode.ON_CHECKPOINTS || offsetCommitMode == OffsetCommitMode.DISABLED) {\n\t\t\tproperties.setProperty(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, \"false\");\n\t\t}\n\t\tadjustAutoCommitConfig(properties, offsetCommitMode);\n\t\tif (offsetCommitMode == OffsetCommitMode.ON_CHECKPOINTS || offsetCommitMode == OffsetCommitMode.DISABLED) {\n\t\t\tproperties.setProperty(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, \"false\");\n\t\t}\n\t\tadjustAutoCommitConfig(properties, offsetCommitMode);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/a9ca80bbad96188d81a15dd7da5d7bc0814c0d1d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 6 ] }, { "input": "import akka.actor.ActorRef;\nimport akka.actor.ActorRef;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/dcacf0b5676f216806857269132ff3640d98ba3d", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "import org.apache.flink.runtime.akka.ListeningBehaviour;\nimport org.apache.flink.runtime.akka.ListeningBehaviour;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/dcacf0b5676f216806857269132ff3640d98ba3d", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\tprivate SubmittedJobGraph createSubmittedJobGraph(JobID jobId, long start) {\n\t\tfinal JobGraph jobGraph = new JobGraph(jobId, \"Test JobGraph\");\n\tprivate SubmittedJobGraph createSubmittedJobGraph(JobID jobId) {\n\t\treturn createSubmittedJobGraph(jobId, \"Test JobGraph\");\n\t}\n\n\tprivate SubmittedJobGraph createSubmittedJobGraph(JobID jobId, String jobName) {\n\t\tfinal JobGraph jobGraph = new JobGraph(jobId, jobName);\n\t\t\texpected.put(jobIds[0], createSubmittedJobGraph(jobIds[0], 0));\n\t\t\texpected.put(jobIds[1], createSubmittedJobGraph(jobIds[1], 1));\n\t\t\texpected.put(jobIds[2], createSubmittedJobGraph(jobIds[2], 2));\n\t\t\texpected.put(jobIds[0], createSubmittedJobGraph(jobIds[0]));\n\t\t\texpected.put(jobIds[1], createSubmittedJobGraph(jobIds[1]));\n\t\t\texpected.put(jobIds[2], createSubmittedJobGraph(jobIds[2]));\n\t\t\tSubmittedJobGraph jobGraph = createSubmittedJobGraph(new JobID(), 0);\n\t\t\tSubmittedJobGraph otherJobGraph = createSubmittedJobGraph(new JobID(), 0);\n\t\t\tSubmittedJobGraph jobGraph = createSubmittedJobGraph(new JobID());\n\t\t\tSubmittedJobGraph otherJobGraph = createSubmittedJobGraph(new JobID());\n\t\tSubmittedJobGraph jobGraph = createSubmittedJobGraph(new JobID(), 0);\n\t\tSubmittedJobGraph jobGraph = createSubmittedJobGraph(new JobID());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/dcacf0b5676f216806857269132ff3640d98ba3d", "target_edit_idx": 11, "propagatable_edit_idx": [ 8, 9, 10 ] }, { "input": "\t\thelpFormatter.printHelp(\"\", parserResultFactory.getOptions());\n\t\thelpFormatter.setLeftPadding(5);\n\t\thelpFormatter.setWidth(80);\n\t\thelpFormatter.printHelp(cmdLineSyntax, parserResultFactory.getOptions(), true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/fa3fba5cd3ab0acaed2537090e549e7ab70d8613", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4 ] }, { "input": "\t\t\tcommandLineParser.printHelp();\n\t\t\tcommandLineParser.printHelp(TaskManagerRunner.class.getSimpleName());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/fa3fba5cd3ab0acaed2537090e549e7ab70d8613", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": "\tprotected abstract void formatText(StringBuilder state, String format, String[] elements);\n\tprotected abstract void formatText(\n\t\tStringBuilder state,\n\t\tString format,\n\t\tString[] elements,\n\t\tEnumSet styles);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/30e8edb82f4be320e9ef9894874ffe9bddc5e4f7", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "\t\tlog.info(\"TM:remote keytab path obtained {}\", remoteKeytabPath);\n\n\t\tlog.info(\"TM:remote krb5 path obtained {}\", remoteKrb5Path);\n\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"TM:remote keytab path obtained {}\", remoteKeytabPath);\n\t\t\tlog.debug(\"TM:remote keytab principal obtained {}\", remoteKeytabPrincipal);\n\t\t\tlog.debug(\"TM:remote yarn conf path obtained {}\", remoteYarnConfPath);\n\t\t\tlog.debug(\"TM:remote krb5 path obtained {}\", remoteKrb5Path);\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/d5ec911f55784de57ca9d6421a0b3c947f1530f2", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "import static java.util.Objects.requireNonNull;\nimport static org.apache.flink.util.Preconditions.checkNotNull;\nimport static java.util.Objects.requireNonNull;\nimport static org.apache.flink.util.Preconditions.checkNotNull;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/87dcc890ffd1e52872129a2ec6c40668fd7e7184", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\tprotected abstract boolean sendValues(Iterable value, long timestamp) throws Exception;\n\tprotected abstract boolean sendValues(Iterable values, long checkpointId, long timestamp) throws Exception;\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/4d7d847d07e8355b5c63d11e9683fca8398fcae1", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 8, 2, 7 ] }, { "input": "\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t void collect(OutputTag outputTag, StreamRecord record);\n\t void collect(OutputTag outputTag, StreamRecord record);\n\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\t\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n\tpublic void collect(OutputTag outputTag, StreamRecord record) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.8181818181818182, "commit_url": "https://github.com/apache/flink/commit/9bdbe6071f1946391598709bfa637fd76a8c7396", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13 ] }, { "input": "\t\tString keytabPath = null;\n\t\tString localKeytabPath = null;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/640a149ea69c0fc2314c6d5b422500c6c9587f43", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "import java.io.Serializable;\n\nimport java.io.Serializable;\n\nimport java.io.Serializable;\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/be65f95dbd0b8334b5558103395909c91fd77170", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\tprivate void processCheckpointAbortBarrier(CancelCheckpointMarker barrier) throws Exception {\n\n\tprivate void processCheckpointAbortBarrier(CancelCheckpointMarker barrier, int channelIndex) throws Exception {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/5398809944c2cfbbfe628a5d64cff4558375d29e", "target_edit_idx": 12, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\t\tassertEquals(11L, entry.getValue().offset());\n\t\t\t\tassertEquals(12L, entry.getValue().offset());\n\t\t\t\tassertEquals(19L, entry.getValue().offset());\n\t\t\t\tassertEquals(20L, entry.getValue().offset());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/ae219a8c48210cc261ec0a6c7f5aaf261e3d2fd7", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tCounter splitCounter = ctx.getMetricGroup().counter(\"numSplitsProcessed\");\n\t\tCounter completedSplitsCounter = ctx.getMetricGroup().counter(\"numSplitsProcessed\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/5a0c268dbd4abdf39c7b9d8f25ea629dfd4681b1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\t\tString name = \"consumer-\" + metric.getKey().name();\n\t\t\t\t\tString name = consumerId + \"-consumer-\" + metric.getKey().name();\n\t\t\t\t\tString name = \"producer-\" + metric.getKey().name();\n\t\t\t\t\tString name = producerId + \"-producer-\" + metric.getKey().name();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/36d6572d16c17adf3ced31f7dbf531481509bdf8", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\tif (triggers.getKey() < time) {\n\t\t\tlong actualTime = triggers.getKey();\n\t\t\tif (actualTime <= time) {\n\t\t\tif (triggers.getKey() < time) {\n\t\t\tlong actualTime = triggers.getKey();\n\t\t\tif (actualTime <= time) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/flink/commit/3385fa3ab5584f74df93cb9597c0405d0be391f5", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\t\tTrigger.TriggerResult triggerResult = context.onProcessingTime(time);\n\t\t\t\t\tTrigger.TriggerResult triggerResult = context.onProcessingTime(actualTime);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/3385fa3ab5584f74df93cb9597c0405d0be391f5", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "import org.apache.flink.runtime.jobgraph.JobGraph;\nimport org.apache.flink.runtime.jobgraph.JobGraph;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/9c2eaa8dcc8ca4f2ce23e7869411a8bd4dccb35a", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": "\tprivate JobGraph jobGraph;\n\tprivate PackagedProgram packagedProgram;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/9c2eaa8dcc8ca4f2ce23e7869411a8bd4dccb35a", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tThrowable error;\n\t\tThrowable cause;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/93e960d8ba2a52bd070609fd6ded86b2731596eb", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 8, 9, 10, 11 ] }, { "input": "\t\t\t\t\t\tremoteAddr, error.error));\n\t\t\t\t\t\tremoteAddr, error.cause));\n\t\t\t\t\t\t\t\t\t\tremoteAddr, error.error));\n\t\t\t\t\t\t\t\t\t\tremoteAddr, error.cause));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/93e960d8ba2a52bd070609fd6ded86b2731596eb", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\t\tassertEquals(expected.error.getClass(), actual.error.getClass());\n\t\t\t\tassertEquals(expected.error.getMessage(), actual.error.getMessage());\n\t\t\t\tassertEquals(expected.cause.getClass(), actual.cause.getClass());\n\t\t\t\tassertEquals(expected.cause.getMessage(), actual.cause.getMessage());\n\t\tThrowable error;\n\t\tThrowable cause;\n\t\tErrorResponse(Throwable error) {\n\t\t\tthis.error = error;\n\t\tErrorResponse(Throwable cause) {\n\t\t\tthis.cause = cause;\n\t\tErrorResponse(Throwable error, InputChannelID receiverId) {\n\t\t\tthis.error = error;\n\t\tErrorResponse(Throwable cause, InputChannelID receiverId) {\n\t\t\tthis.cause = cause;\n\t\t\t\toos.writeObject(error);\n\t\t\t\toos.writeObject(cause);\n\t\t\t\t\terror = (Throwable) obj;\n\t\t\t\t\tcause = (Throwable) obj;\n\t\t\t\tassertEquals(expected.error.getClass(), actual.error.getClass());\n\t\t\t\tassertEquals(expected.error.getMessage(), actual.error.getMessage());\n\t\t\t\tassertEquals(expected.cause.getClass(), actual.cause.getClass());\n\t\t\t\tassertEquals(expected.cause.getMessage(), actual.cause.getMessage());\n\t\t\t\tassertEquals(expected.error.getClass(), actual.error.getClass());\n\t\t\t\tassertEquals(expected.error.getMessage(), actual.error.getMessage());\n\t\t\t\tassertEquals(expected.cause.getClass(), actual.cause.getClass());\n\t\t\t\tassertEquals(expected.cause.getMessage(), actual.cause.getMessage());\n\t\tassertTrue(err.error instanceof CancelTaskException);\n\t\tassertTrue(err.cause instanceof CancelTaskException);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5625, "commit_url": "https://github.com/apache/flink/commit/93e960d8ba2a52bd070609fd6ded86b2731596eb", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 9, 10, 11 ] }, { "input": "\t\t\t\tnew TestUserClass(rnd.nextInt(), \"foo\", rnd.nextDouble(), new int[]{1, 2, 3},\n\t\t\t\tnew TestUserClass(rnd.nextInt(), \"foo\", rnd.nextDouble(), new int[]{1, 2, 3}, new Date(),\n\t\t\t\tnew TestUserClass(rnd.nextInt(), \"bar\", rnd.nextDouble(), new int[]{4, 5, 6},\n\t\t\t\tnew TestUserClass(rnd.nextInt(), \"bar\", rnd.nextDouble(), new int[]{4, 5, 6}, null,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/0078c44e59a368f5564ef6a151aea2f351a2e2c8", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tfinal Buffer nextBuffer = reader.getNextBuffer();\n\t\t\tfinal Buffer nextBuffer = reader.getNextBufferBlocking();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.9090909090909091, "commit_url": "https://github.com/apache/flink/commit/c9709a849837ea4c2f0de48fb855d9e7abd05ea1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": " * Important: If {@link #getNextBuffer()} is used, it is\n * Important: If {@link #getNextBufferBlocking()} is used, it is\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/apache/flink/commit/c9709a849837ea4c2f0de48fb855d9e7abd05ea1", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": "\t * {@link #getNextBuffer()} requires the user to quickly recycle the\n\t * {@link #getNextBufferBlocking()} requires the user to quickly recycle the\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/apache/flink/commit/c9709a849837ea4c2f0de48fb855d9e7abd05ea1", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8, 9, 10 ] }, { "input": "\tpublic Buffer getNextBuffer() throws IOException, InterruptedException {\n\tpublic Buffer getNextBufferBlocking() throws IOException, InterruptedException {\n\t\t\tfinal Buffer nextBuffer = reader.getNextBuffer();\n\t\t\tfinal Buffer nextBuffer = reader.getNextBufferBlocking();\n\tpublic Buffer getNextBuffer() throws IOException, InterruptedException {\n\tpublic Buffer getNextBufferBlocking() throws IOException, InterruptedException {\n * {@link #getNextBuffer()} or {@link #getNextBuffer(Buffer)}.\n * {@link #getNextBufferBlocking()} or {@link #getNextBuffer(Buffer)}.\n * Important: If {@link #getNextBuffer()} is used, it is\n * Important: If {@link #getNextBufferBlocking()} is used, it is\n\tBuffer getNextBuffer() throws IOException, InterruptedException;\n\tBuffer getNextBufferBlocking() throws IOException, InterruptedException;\n\t * {@link #getNextBuffer()} requires the user to quickly recycle the\n\t * {@link #getNextBufferBlocking()} requires the user to quickly recycle the\n\t * {@link #getNextBuffer()} or {@link #getNextBuffer(Buffer)}.\n\t * {@link #getNextBufferBlocking()} or {@link #getNextBuffer(Buffer)}.\n\t\t\tBuffer buffer = currentReader.getNextBuffer();\n\t\t\tBuffer buffer = currentReader.getNextBufferBlocking();\n\t\treader.getNextBuffer();\n\t\treader.getNextBufferBlocking();\n\t\t\twhile ((buffer = reader.getNextBuffer()) != null) {\n\t\t\twhile ((buffer = reader.getNextBufferBlocking()) != null) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/flink/commit/c9709a849837ea4c2f0de48fb855d9e7abd05ea1", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10 ] }, { "input": "\t\t\twhile ((buffer = reader.getNextBuffer()) != null) {\n\t\t\twhile ((buffer = reader.getNextBufferBlocking()) != null) {\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/c9709a849837ea4c2f0de48fb855d9e7abd05ea1", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": "\t\t\tassertTrue(result1.isSuccess());\n\t\t\tassertTrue(result2.isSuccess());\n\t\t\tassertTrue(result1.getDescription(), result1.isSuccess());\n\t\t\tassertTrue(result2.getDescription(), result2.isSuccess());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/flink/commit/5e48fc95e298c5328d42411906bbdc3e4f03fd86", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "import java.util.Collection;\nimport java.util.Collection;\nimport java.util.Collection;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/flink/commit/0b100517f1a4f2a74cab06d2fbf00f96a45513f8", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 7 ] }, { "input": "import java.io.DataInput;\nimport java.io.DataOutput;\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/apache/flink/commit/49ca3edd9508f09040c35dfad056debc1072a58b", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "\t * \tthe value which should be represented by this node\n\t * the value which should be represented by this node\n\t * \tthe value which should be represented by this node\n\t * the value which should be represented by this node\n", "class": "clone", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/apache/flink/commit/bb6c3f408263861e92b404b17fc7a084b2d56b32", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\tprotected transient PactLong value;\n\tprivate transient PactLong value;\n\tprotected transient PactString value;\n\tprivate transient PactString value;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/flink/commit/bb6c3f408263861e92b404b17fc7a084b2d56b32", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " private long timeBucket;\n private long timestamp;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/skywalking/commit/f4a8f4aa99d606d7d9360da62e94abb8ea94d1ee", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " public static String recursiveParseMethodAnnotaion(Method method, Function parseFunc) {\n public static String recursiveParseMethodAnnotation(Method method, Function parseFunc) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/skywalking/commit/118e334e7c46e2475e0e7a616b185cdef63d5302", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " return ParsePathUtil.recursiveParseMethodAnnotaion(method, m -> {\n return ParsePathUtil.recursiveParseMethodAnnotation(method, m -> {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/skywalking/commit/118e334e7c46e2475e0e7a616b185cdef63d5302", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 4, 6 ] }, { "input": "import org.apache.skywalking.oap.server.telemetry.api.TelemetryRelatedContext;\nimport org.apache.skywalking.oap.server.telemetry.api.TelemetryRelatedContext;\nimport org.apache.skywalking.oap.server.telemetry.api.TelemetryRelatedContext;\nimport org.apache.skywalking.oap.server.telemetry.api.TelemetryRelatedContext;\nimport org.apache.skywalking.oap.server.telemetry.api.TelemetryRelatedContext;\nimport org.apache.skywalking.oap.server.telemetry.api.TelemetryRelatedContext;\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/apache/skywalking/commit/3df2e8ddcebb00eccb1747919f5352c9909c15df", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 6, 8, 10 ] }, { "input": " TelemetryRelatedContext.INSTANCE.setId(selfAddress.toString());\n TelemetryRelatedContext.INSTANCE.setId(selfAddress.toString());\n TelemetryRelatedContext.INSTANCE.setId(selfAddress.toString());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/skywalking/commit/3df2e8ddcebb00eccb1747919f5352c9909c15df", "target_edit_idx": 1, "propagatable_edit_idx": [ 11, 5 ] }, { "input": " sql.append(\" and \").append(AlarmRecord.SCOPE).append(\" = ?\");\n sql.append(\" and \").append(AlarmRecord.SCOPE).append(\" = ?\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/apache/skywalking/commit/24393f3b8dc2e3fcced224cd867fade60bf702f2", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " private static final String AGGREGATE_COMPONENT_SQL = \"select {0}, {1}, {2} from {3} where {4} >= ? and {4} <= ? group by {0}, {1}, {2} limit 100\";\n private static final String AGGREGATE_COMPONENT_SQL = \"select {0}, {1} from {2} where {3} >= ? and {3} <= ? group by {0}, {1} limit 100\";\n private static final String NODE_MAPPING_SQL = \"select {0}, {1}, {2} from {3} where {4} >= ? and {4} <= ? group by {0}, {1}, {2} limit 100\";\n private static final String NODE_MAPPING_SQL = \"select {0}, {1} from {2} where {3} >= ? and {3} <= ? group by {0}, {1} limit 100\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/skywalking/commit/bc4f1830ebe5a4acf13f159c3d25d873f5ce293f", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " @SuppressWarnings(\"unused\")\n @SuppressWarnings(\"unused\")\n @SuppressWarnings(\"unused\")\n @SuppressWarnings(\"unused\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/google/gson/commit/ff401f1545e71672e7090cbeab60e776cda0ac4d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "\t/** Experimental, whether to enable OpenGL ES 3 if supported. If not supported it will fall-back to OpenGL ES 2.0. When GL ES\n\t * 3* is enabled, {@link com.badlogic.gdx.Gdx#gl30} can be used to access its functionality. Requires at least Android 4.3 (API\n\t * level 18).\n\t * @deprecated this option is currently experimental and not yet fully supported, expect issues. */\n\t@Deprecated public boolean useGL30 = false;\n\t/** Whether to enable OpenGL ES 3.0 if supported. If not supported it will fall-back to OpenGL ES 2.0. When GL ES 3* is\n\t * enabled, {@link com.badlogic.gdx.Gdx#gl30} can be used to access its functionality. Requires at least Android 4.3 (API level\n\t * 18). */\n\tpublic boolean useGL30 = false;\n\t/** Experimental, whether to enable OpenGL ES 3 if supported. If not supported it will fall-back to OpenGL ES 2.0. When GL ES 3\n\t * is enabled, {@link com.badlogic.gdx.Gdx#gl30} can be used to access it's functionality.\n\t * @deprecated this option is currently experimental and not yet fully supported, expect issues. */\n\t@Deprecated public boolean useGL30 = false;\n\t/** Whether to enable OpenGL ES 3 if supported. If not supported it will fall-back to OpenGL ES 2.0. When GL ES 3 is enabled,\n\t * {@link com.badlogic.gdx.Gdx#gl30} can be used to access it's functionality. */\n\tpublic boolean useGL30 = false;\n\t/** Experimental, whether to enable OpenGL ES 3 if supported. If not supported it will fall-back to OpenGL ES 2.0. When GL ES 3\n\t * is enabled, {@link com.badlogic.gdx.Gdx#gl30} can be used to access it's functionality.\n\t * @deprecated this option is currently experimental and not yet fully supported, expect issues. */\n\t@Deprecated public boolean useGL30 = false;\n\t/** Whether to enable OpenGL ES 3 if supported. If not supported it will fall-back to OpenGL ES 2.0. When GL ES 3 is enabled,\n\t * {@link com.badlogic.gdx.Gdx#gl30} can be used to access it's functionality. */\n\tpublic boolean useGL30 = false;\n\t/** Experimental, whether to enable OpenGL ES 30 (aka WebGL2) if supported. If not supported it will fall-back to OpenGL ES\n\t * 2.0. When GL ES 30 is enabled, {@link com.badlogic.gdx.Gdx#gl30} can be used to access its functionality.\n\t * @deprecated this option is currently experimental and not yet fully supported, expect issues. */\n\t@Deprecated public boolean useGL30 = false;\n\t/** Whether to enable OpenGL ES 3.0 (aka WebGL2) if supported. If not supported it will fall-back to OpenGL ES 2.0. When GL ES\n\t * 3.0 is enabled, {@link com.badlogic.gdx.Gdx#gl30} can be used to access its functionality. */\n\tpublic boolean useGL30 = false;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/libgdx/libgdx/commit/ce9e6922519a7232dbefc8dd41694a9a923e9415", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\tpublic boolean openURI (String URI) {\n\tpublic boolean openURI (String uri) {\n\t\t\t\tDesktop.getDesktop().browse(new URI(URI));\n\t\t\t\tDesktop.getDesktop().browse(new URI(uri));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/libgdx/libgdx/commit/4594d4b5726e78b0b2e24c313f5c7ed0eb7981b2", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\t\t\tGdx.net.openURI(\"https://libgdx.badlogicgames.com/\");\n\t\t\t\t\t\tGdx.net.openURI(\"https://libgdx.com\");\n\t\tGdx.net.openURI(\"http://libgdx.badlogicgames.com\");\n\t\tGdx.net.openURI(\"https://libgdx.com\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/libgdx/libgdx/commit/4594d4b5726e78b0b2e24c313f5c7ed0eb7981b2", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\tput(key, value);\n\t\t\tputResize(key, value);\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/libgdx/libgdx/commit/cdce9c35822b1d00d68d73c0e42f670f19c2c4b4", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 6, 7 ] }, { "input": "\t\tjniCreateLoop(addr, verts, verts.length / 2);\n\t\tjniCreateLoop(addr, verts, 0, verts.length / 2);\n\t\tjniCreateLoop(addr, vertices, vertices.length / 2);\n\t\tjniCreateLoop(addr, vertices, 0, vertices.length / 2);\n\t\tisLooped = true;\n\t}\n\n\t/** Create a loop. This automatically adjusts connectivity.\n\t * @param vertices an array of floats of alternating x, y coordinates.\n\t * @param offset into the vertices array\n\t * @param length after offset (in floats, not float-pairs, so even number) */\n\tpublic void createLoop (float[] vertices, int offset, int length) {\n\t\tjniCreateLoop(addr, vertices, offset, length / 2);\n\tprivate native void jniCreateLoop (long addr, float[] verts, int numVertices); /*\n\tprivate native void jniCreateLoop (long addr, float[] verts, int offset, int numVertices); /*\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/libgdx/libgdx/commit/aadce57b735f4683ba1839254c3de87802e4e431", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6 ] }, { "input": "\tprivate native void jniCreateLoop (long addr, float[] verts, int numVertices); /*\n\tprivate native void jniCreateLoop (long addr, float[] verts, int offset, int numVertices); /*\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/libgdx/libgdx/commit/aadce57b735f4683ba1839254c3de87802e4e431", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\t\t\tverticesOut[i] = b2Vec2(verts[i<<1], verts[(i<<1)+1]);\n\t\t\tverticesOut[i] = b2Vec2(verts[offset+(i<<1)], verts[offset+(i<<1)+1]);\n\t\t\tverticesOut[i] = b2Vec2(verts[i<<1], verts[(i<<1)+1]);\n\t\t\tverticesOut[i] = b2Vec2(verts[offset+(i<<1)], verts[offset+(i<<1)+1]);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/libgdx/libgdx/commit/aadce57b735f4683ba1839254c3de87802e4e431", "target_edit_idx": 7, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\tjniCreateChain(addr, vertices, vertices.length / 2);\n\t\tjniCreateChain(addr, vertices, 0, vertices.length / 2);\n\t\tisLooped = false;\n\t}\n\n\t/** Create a chain with isolated end vertices.\n\t * @param vertices an array of floats of alternating x, y coordinates.\n\t * @param offset into the vertices array\n\t * @param length after offset (in floats, not float-pairs, so even number) */\n\tpublic void createChain (float[] vertices, int offset, int length) {\n\t\tjniCreateChain(addr, vertices, offset, length / 2);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/libgdx/libgdx/commit/aadce57b735f4683ba1839254c3de87802e4e431", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": "\tprivate native void jniCreateChain (long addr, float[] verts, int numVertices); /*\n\tprivate native void jniCreateChain (long addr, float[] verts, int offset, int numVertices); /*\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/libgdx/libgdx/commit/aadce57b735f4683ba1839254c3de87802e4e431", "target_edit_idx": 10, "propagatable_edit_idx": [ 8 ] }, { "input": "\tpublic AssetFileDescriptor getAssetFileDescriptor(String path) throws IOException {\n\t\treturn assets.openFd(path);\n\t/**\n\t * @return an AssetFileDescriptor for this file or null if the file is not of type Internal\n\t * @throws IOException - thrown by AssetManager.openFd()\n\t */\n\tpublic AssetFileDescriptor getAssetFileDescriptor() throws IOException {\n\t\treturn assets != null ? assets.openFd(path()) : null;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/libgdx/libgdx/commit/881d69488c7d26cf729aadb43ea3fd4a2f1bc3d1", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 6, 7 ] }, { "input": "\t\t\tFileHandle zipHandle = new AndroidZipFileHandle(path);\n\t\t\tif (zipHandle.exists())\n\t\t\t\thandle = zipHandle;\n\t\t\thandle = new AndroidZipFileHandle(path);\n\t\t\tFileHandle zipHandle = new AndroidZipFileHandle(path);\n\t\t\tif (zipHandle.exists())\n\t\t\t\thandle = zipHandle;\n\t\t\thandle = new AndroidZipFileHandle(path);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/libgdx/libgdx/commit/881d69488c7d26cf729aadb43ea3fd4a2f1bc3d1", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\tpublic AssetFileDescriptor getAssetFileDescriptor(String path) throws IOException {\n\t@Override\n\tpublic AssetFileDescriptor getAssetFileDescriptor() throws IOException {\n\t\t\t\tAssetFileDescriptor descriptor = aHandle.getAssetFileDescriptor(aHandle.path());\n\t\t\t\tAssetFileDescriptor descriptor = aHandle.getAssetFileDescriptor();\n\t\t\t\tAssetFileDescriptor descriptor = aHandle.getAssetFileDescriptor(aHandle.path());\n\t\t\t\tAssetFileDescriptor descriptor = aHandle.getAssetFileDescriptor();\n\tpublic AssetFileDescriptor getAssetFileDescriptor(String path) throws IOException {\n\t\treturn assets.openFd(path);\n\t/**\n\t * @return an AssetFileDescriptor for this file or null if the file is not of type Internal\n\t * @throws IOException - thrown by AssetManager.openFd()\n\t */\n\tpublic AssetFileDescriptor getAssetFileDescriptor() throws IOException {\n\t\treturn assets != null ? assets.openFd(path()) : null;\n\t\t\treturn getAssetFileDescriptor(\"\").getLength();\n\t\t\treturn getAssetFileDescriptor().getLength();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.18181818181818182, "commit_url": "https://github.com/libgdx/libgdx/commit/881d69488c7d26cf729aadb43ea3fd4a2f1bc3d1", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 7 ] }, { "input": "\t\t\treturn getAssetFileDescriptor(\"\").getLength();\n\t\t\treturn getAssetFileDescriptor().getLength();\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/libgdx/libgdx/commit/881d69488c7d26cf729aadb43ea3fd4a2f1bc3d1", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 6 ] }, { "input": "\t\t\t// Eat whitespace at start of line.\n\t\t\twhile (start < newLine) {\n\t\t\t\tif (!BitmapFont.isWhitespace(str.charAt(start))) break;\n\t\t\t\tstart++;\n\t\t\t}\n\t\t\t// Eat whitespace at start of line.\n\t\t\twhile (start < newLine) {\n\t\t\t\tif (!BitmapFont.isWhitespace(str.charAt(start))) break;\n\t\t\t\tstart++;\n\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/libgdx/libgdx/commit/9851bdc3a51e007fb5a7c3af3c1795642565b2de", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\t\t\telse if (isBreakChar(str.charAt(lineEnd - 1))) break;\n\t\t\t\t\tif (isBreakChar(str.charAt(lineEnd - 1))) break;\n\t\t\t\t\telse if (font.isBreakChar(str.charAt(lineEnd - 1))) break;\n\t\t\t\t\tif (font.isBreakChar(str.charAt(lineEnd - 1))) break;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/libgdx/libgdx/commit/9851bdc3a51e007fb5a7c3af3c1795642565b2de", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\n\t/**\n\t * Provide any additional characters that should act as break characters when the label is wrapped.\n\t * By default, only whitespace characters act as break chars.\n\t */\n\tpublic void setBreakChars(char[] breakChars) {\n\n\t/** Provide any additional characters that should act as break characters when the label is wrapped. By default, only whitespace\n\t * characters act as break chars. */\n\tpublic void setBreakChars (char[] breakChars) {\n\t\n\t/**\n\t * Provide any additional characters that should act as break characters when the label is wrapped.\n\t * By default, only whitespace characters act as break chars.\n\t */\n\tpublic void setBreakChars(char[] breakChars) {\n\n\t/** Provide any additional characters that should act as break characters when the label is wrapped. By default, only whitespace\n\t * characters act as break chars. */\n\tpublic void setBreakChars (char[] breakChars) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/libgdx/libgdx/commit/9851bdc3a51e007fb5a7c3af3c1795642565b2de", "target_edit_idx": 3, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\tif (globalState != null) globalState.execute(owner);\n\t\tif (globalState != null) globalState.update(owner);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/libgdx/libgdx/commit/df6b7b818d21082157d2cd37fb07a6929db19e07", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": "\tpublic void execute (E entity);\n\tpublic void update (E entity);\n\t\tif (globalState != null) globalState.execute(owner);\n\t\tif (globalState != null) globalState.update(owner);\n\t\tif (currentState != null) currentState.execute(owner);\n\t\tif (currentState != null) currentState.update(owner);\n\t\tpublic void execute (Bob bob) {\n\t\tpublic void update (Bob bob) {\n\t\tpublic void execute (Bob bob) {\n\t\tpublic void update (Bob bob) {\n\t\tpublic void execute (Bob bob) {\n\t\tpublic void update (Bob bob) {\n\t\tpublic void execute (Bob bob) {\n\t\tpublic void update (Bob bob) {\n\t\tpublic void execute (Bob bob) {\n\t\tpublic void update (Bob bob) {\n\t\tpublic void execute (Elsa elsa) {\n\t\tpublic void update (Elsa elsa) {\n\t\tpublic void execute (Elsa elsa) {\n\t\tpublic void update (Elsa elsa) {\n\t\tpublic void execute (Elsa elsa) {\n\t\tpublic void update (Elsa elsa) {\n\t\tpublic void execute (Elsa elsa) {\n\t\tpublic void update (Elsa elsa) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/libgdx/libgdx/commit/df6b7b818d21082157d2cd37fb07a6929db19e07", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": "\t\tpublic void execute (Bob bob) {\n\t\tpublic void update (Bob bob) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/libgdx/libgdx/commit/df6b7b818d21082157d2cd37fb07a6929db19e07", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": "\t\tpublic void execute (Elsa elsa) {\n\t\tpublic void update (Elsa elsa) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/libgdx/libgdx/commit/df6b7b818d21082157d2cd37fb07a6929db19e07", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11 ] }, { "input": "\tpublic void loadEmitterImages (TextureAtlas atlas) {\n\tpublic void loadEmitterImages (TextureAtlas atlas, String atlasPrefix) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/libgdx/libgdx/commit/d1bc56aee0f5be6a14f838a16866df8b2b25487d", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tT tmp = controlPoints[0].cpy();\n\t\tT tmp2 = controlPoints[0].cpy();\n\t\t\n\t\t\n\t\tT tmp = controlPoints[0].cpy();\n\t\tT tmp2 = controlPoints[0].cpy();\n\t\t\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/libgdx/libgdx/commit/d253b9b3741844edf30e2a5ae5ed7725fd67aaec", "target_edit_idx": 2, "propagatable_edit_idx": [ 10 ] }, { "input": "\t tmp.set(tmp2);\n\t valueAt(tmp2, ((float)i)/((float)samples-1));\n\t if(i>0) tempLength += tmp2.dst(tmp);\n\t tmp2.set(tmp3);\n\t valueAt(tmp3, ((float)i)/((float)samples-1));\n\t if(i>0) tempLength += tmp2.dst(tmp3);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/libgdx/libgdx/commit/d253b9b3741844edf30e2a5ae5ed7725fd67aaec", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\t\treturn StreamUtils.copyStreamToByteArray(getInputStream(), connection.getContentLength());\n\t\t\t\treturn StreamUtils.copyStreamToByteArray(input, connection.getContentLength());\n\t\t\t\treturn StreamUtils.copyStreamToString(getInputStream(), connection.getContentLength());\n\t\t\t\treturn StreamUtils.copyStreamToString(input, connection.getContentLength());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/libgdx/libgdx/commit/40eed1120284bf012715f68dbe2377b3de79ab75", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\t/** Copy the data from an {@link InputStream} to an {@link OutputStream}.\n\t/** Copy the data from an {@link InputStream} to an {@link OutputStream} without closing the stream.\n\t/** Copy the data from an {@link InputStream} to an {@link OutputStream}.\n\t/** Copy the data from an {@link InputStream} to an {@link OutputStream} without closing the stream.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/libgdx/libgdx/commit/40eed1120284bf012715f68dbe2377b3de79ab75", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\t/** Copy the data from an {@link InputStream} to a byte array.\n\t/** Copy the data from an {@link InputStream} to a byte array without closing the stream.\n\t/** Copy the data from an {@link InputStream} to a byte array.\n\t/** Copy the data from an {@link InputStream} to a byte array without closing the stream.\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/libgdx/libgdx/commit/40eed1120284bf012715f68dbe2377b3de79ab75", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\t\tzeroValue = (hasZeroValue ? zeroValue : defaultValue) + increment;\n\t\t\tif (!hasZeroValue) {\n\t\t\tif (hasZeroValue) {\n\t\t\t\tzeroValue += increment;\n\t\t\t} else {\n\t\t\tzeroValue = (hasZeroValue ? zeroValue : defaultValue) + increment;\n\t\t\tif (!hasZeroValue) {\n\t\t\tif (hasZeroValue) {\n\t\t\t\tzeroValue += increment;\n\t\t\t} else {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/libgdx/libgdx/commit/6dcd6ca3097c9b39aebced34590534f9f24d8922", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " underTest.checkClassExplicitlyAllowed(String.class);\n underTest.checkClassExplicitlyAllowed(String.class, \"str\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/35c48a48ea41fa194d5d91e3f4994824ca1906f8", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 6, 7 ] }, { "input": " SerializationException.class, () -> underTest.checkClassExplicitlyAllowed(Integer.class));\n SerializationException.class,\n () -> underTest.checkClassExplicitlyAllowed(Integer.class, 0));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/35c48a48ea41fa194d5d91e3f4994824ca1906f8", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 5, 7 ] }, { "input": " () -> underTest.getNewMemoizingContext().checkClassExplicitlyAllowed(String.class));\n () -> underTest.getNewMemoizingContext().checkClassExplicitlyAllowed(String.class, \"str\"));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/35c48a48ea41fa194d5d91e3f4994824ca1906f8", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 5, 6 ] }, { "input": " assertExpansionFails(\"unterminated $(location) expression\", \"//test\");\n assertExpansionFails(\"unterminated variable reference\", \"//test\");\n assertExpansionFails(\"unterminated $(locations) expression\", \"//test\");\n assertExpansionFails(\"unterminated variable reference\", \"//test\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/bazelbuild/bazel/commit/e8d32b7c922f65539b74357711d5ad6b70934115", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": "import com.google.common.collect.ImmutableList;\nimport com.google.common.collect.Iterables;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/bazelbuild/bazel/commit/cbb33478b223a424edfe95fca329e5ab9afa8127", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " public void dropConfiguredTargets() {\n skyframeBuildView.clearInvalidatedConfiguredTargets();\n skyframeBuildView.clearLegacyData();\n public void handleConfiguredTargetChange() {\n super.handleConfiguredTargetChange();\n skyframeExecutor.dropConfiguredTargets();\n skyframeExecutor.handleConfiguredTargetChange();\n skyframeExecutor.dropConfiguredTargets();\n skyframeExecutor.handleConfiguredTargetChange();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/f5c0e96b3f3daa47d0f2bb7e3c1ee45462375a1d", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 6 ] }, { "input": "import com.google.devtools.build.lib.syntax.Type;\nimport com.google.devtools.build.lib.syntax.Type;\n", "class": "clone", "binary_label": 1, "regression_label": 0.02631578947368421, "commit_url": "https://github.com/bazelbuild/bazel/commit/097eba7f5b687f3a3a6de3c1295569a972ed97d2", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": " .value(PythonVersion.defaultValue().toString())\n .value(PythonVersion.defaultTargetPythonVersion().toString())\n .allowedValues(new AllowedValueSet(PythonVersion.getTargetPythonValues()))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/ab2fd25e1d915f79af4ab9195602be4cb6652cb1", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " private final String flag;\n private final String flagFormatString;\n this.flag = Preconditions.checkNotNull(flag);\n this.flagFormatString = Preconditions.checkNotNull(flagFormatString);\n return Objects.hash(charset, flag, fileType, always);\n return Objects.hash(charset, flagFormatString, fileType, always);\n && flag.equals(other.flag)\n && flagFormatString.equals(other.flagFormatString)\n /** Sets a prefix to use for the flag that is passed to original command. */\n public Builder setFlag(@CompileTimeConstant String flag) {\n this.flag = flag;\n /**\n * Sets a format string to use for the flag that is passed to original command.\n *\n *

The format string must have a single \"%s\" that will be replaced by the execution path to\n * the param file.\n */\n public Builder setFlagFormatString(@CompileTimeConstant String flagFormatString) {\n this.flagFormatString = flagFormatString;\n return new ParamFileInfo(fileType, charset, flag, always);\n return new ParamFileInfo(fileType, charset, flagFormatString, always);\n String flag = (String) values[++i];\n result.add(flag + paramFile.getExecPathString());\n String flagFormatString = (String) values[++i];\n result.add(flagFormatString.replaceFirst(\"%s\", paramFile.getExecPathString()));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/7d67e02616c198f5cb8947cd813e313c819047ec", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 5, 7, 8, 9 ] }, { "input": " /** Sets a prefix to use for the flag that is passed to original command. */\n public Builder setFlag(@CompileTimeConstant String flag) {\n this.flag = flag;\n /**\n * Sets a format string to use for the flag that is passed to original command.\n *\n *

The format string must have a single \"%s\" that will be replaced by the execution path to\n * the param file.\n */\n public Builder setFlagFormatString(@CompileTimeConstant String flagFormatString) {\n this.flagFormatString = flagFormatString;\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/bazelbuild/bazel/commit/7d67e02616c198f5cb8947cd813e313c819047ec", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 2, 4, 5, 8, 9 ] }, { "input": " return new SkylarkNestedSet(Order.parse(order), items, loc);\n return new SkylarkNestedSet(\n Order.parse(order, /*forbidDeprecatedOrderNames=*/false),\n items, loc);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/dcf368372198c1a317f755f5ec6a25a158de6fda", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " LinkTargetType linkType = getStaticLinkType(context);\n LinkTargetType staticLinkType = getStaticLinkType(context);\n init(semantics, context, builder, linkType,\n init(semantics, context, builder, staticLinkType,\n LinkTargetType linkType,\n LinkTargetType staticLinkType,\n .setLinkType(linkType)\n .setLinkType(staticLinkType)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/ece0a14c1196a51828ff17c41bfa597c444b9717", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " \"expected type 'string' for 'symlinks' key \" + \"but got type 'int' instead\",\n \"expected type 'string' for 'symlinks' key but got type 'int' instead\",\n \"expected type 'string' for 'root_symlinks' key \" + \"but got type 'int' instead\",\n \"expected type 'string' for 'root_symlinks' key but got type 'int' instead\",\n \"expected type 'File' for 'root_symlinks' value \" + \"but got type 'int' instead\",\n \"expected type 'File' for 'root_symlinks' value but got type 'int' instead\",\n \"expected type 'File' for 'symlinks' value \" + \"but got type 'int' instead\",\n \"expected type 'File' for 'symlinks' value but got type 'int' instead\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/bazelbuild/bazel/commit/7f6d3a13b63b702a6c56010610c3f0018490dfec", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 7 ] }, { "input": " .contains(\"Object of type Target doesn't \" + \"contain declared provider unused_provider\");\n .contains(\" (rule 'foo_rule') doesn't contain \"\n + \"declared provider 'unused_provider'\");\n .contains(\"Object of type Target doesn't \" + \"contain declared provider unused_provider\");\n .contains(\" doesn't contain \"\n + \"declared provider 'unused_provider'\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/7f6d3a13b63b702a6c56010610c3f0018490dfec", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": " \"Type Target only supports indexing \" + \"by object constructors, got string instead\");\n \"Type Target only supports indexing by object constructors, got string instead\");\n \"Type Target only supports querying by object \" + \"constructors, got string instead\");\n \"Type Target only supports querying by object constructors, got string instead\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/bazelbuild/bazel/commit/7f6d3a13b63b702a6c56010610c3f0018490dfec", "target_edit_idx": 12, "propagatable_edit_idx": [ 14 ] }, { "input": " signature.toStringBuilder(builder, showNames, false, false, hasSelf);\n signature.toStringBuilder(builder, false, false, hasSelf);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/819e91ccd5ace635c33e0d14e50a6f485919c23a", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " getShortSignature(true),\n getShortSignature(),\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/819e91ccd5ace635c33e0d14e50a6f485919c23a", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " return toStringBuilder(sb, true, true, true, false);\n return toStringBuilder(sb, true, true, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/819e91ccd5ace635c33e0d14e50a6f485919c23a", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " if (showNames) {\n printer.append(names.get(i));\n }\n printer.append(names.get(i));\n if (showNames) {\n printer.append(names.get(iKwArg));\n }\n printer.append(names.get(iKwArg));\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/bazelbuild/bazel/commit/819e91ccd5ace635c33e0d14e50a6f485919c23a", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": "import com.google.devtools.build.lib.collect.nestedset.Order;\nimport com.google.devtools.build.lib.collect.nestedset.NestedSet;\n", "class": "clone", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/bazelbuild/bazel/commit/3c93e0e486ee93356acd0d5e02e65b20e71f31ac", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": " Artifact featureOfArtifact\n = ruleContext.attributes().isAttributeValueExplicitlySpecified(\"feature_of\")\n ? Iterables.getOnlyElement(\n ruleContext.getPrerequisite(\"feature_of\", Mode.TARGET, ApkProvider.class)\n .getTransitiveApks())\n Artifact featureOfArtifact =\n ruleContext.attributes().isAttributeValueExplicitlySpecified(\"feature_of\")\n ? ruleContext.getPrerequisite(\"feature_of\", Mode.TARGET, ApkProvider.class).getApk()\n Artifact featureAfterArtifact\n = ruleContext.attributes().isAttributeValueExplicitlySpecified(\"feature_after\")\n ? Iterables.getOnlyElement(\n ruleContext.getPrerequisite(\"feature_after\", Mode.TARGET, ApkProvider.class)\n .getTransitiveApks())\n Artifact featureAfterArtifact =\n ruleContext.attributes().isAttributeValueExplicitlySpecified(\"feature_after\")\n ? ruleContext\n .getPrerequisite(\"feature_after\", Mode.TARGET, ApkProvider.class)\n .getApk()\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/bazelbuild/bazel/commit/3c93e0e486ee93356acd0d5e02e65b20e71f31ac", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " return type.isOverwritable();\n return type.isOverwritable(this);\n public boolean isOverwritable();\n public boolean isOverwritable(FullyQualifiedName fqn);\n public boolean isOverwritable() {\n public boolean isOverwritable(FullyQualifiedName fqn) {\n public boolean isOverwritable() {\n public boolean isOverwritable(FullyQualifiedName fqn) {\n if (this == RESOURCES_ATTRIBUTE) {\n return !ResourcesAttribute.AttributeType.from(fqn.name()).isCombining();\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/cf623c32ee369efbced6f1558eb07d5979213228", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " if (!ext.containsKey(nameInLoadedFile)) {\n throw new LoadFailedException(importString, nameInLoadedFile, ext.allKeys());\n Map bindings = ext.getBindings();\n if (!bindings.containsKey(nameInLoadedFile)) {\n throw new LoadFailedException(importString, nameInLoadedFile, bindings.keySet());\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/357ed7a4c255bff1c0591d3074109c49d1b856be", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " LibraryToLinkValue.forDynamicLibrary(libName, inputIsWholeArchive));\n LibraryToLinkValue.forDynamicLibrary(libName));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/519ecb71da79b13af35f44a03231a40facf2819b", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 10, 11 ] }, { "input": " LibraryToLinkValue.forInterfaceLibrary(\n inputArtifact.getExecPathString(), inputIsWholeArchive));\n LibraryToLinkValue.forInterfaceLibrary(inputArtifact.getExecPathString()));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/519ecb71da79b13af35f44a03231a40facf2819b", "target_edit_idx": 9, "propagatable_edit_idx": [ 2 ] }, { "input": " LibraryToLinkValue.forDynamicLibrary(\"foo\", false)\n LibraryToLinkValue.forDynamicLibrary(\"foo\")\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/519ecb71da79b13af35f44a03231a40facf2819b", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 11, 7 ] }, { "input": " LibraryToLinkValue.forDynamicLibrary(\"foo\", false)\n LibraryToLinkValue.forDynamicLibrary(\"foo\")\n public static LibraryToLinkValue forDynamicLibrary(String name, boolean isWholeArchive) {\n return new LibraryToLinkValue(name, null, isWholeArchive, Type.DYNAMIC_LIBRARY);\n public static LibraryToLinkValue forDynamicLibrary(String name) {\n return new LibraryToLinkValue(name, null, false, Type.DYNAMIC_LIBRARY);\n LibraryToLinkValue.forDynamicLibrary(\"foo\", false)\n LibraryToLinkValue.forDynamicLibrary(\"foo\")\n LibraryToLinkValue.forDynamicLibrary(libName, inputIsWholeArchive));\n LibraryToLinkValue.forDynamicLibrary(libName));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/519ecb71da79b13af35f44a03231a40facf2819b", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 10, 7 ] }, { "input": " void clearValue(String optionName, Map clearedValues)\n OptionValueDescription clearValue(String optionName)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/0e02f53599487ef44188cfad3c0115261d7cc993", "target_edit_idx": 8, "propagatable_edit_idx": [ 5 ] }, { "input": " THINLTO_PARAM_FILE_VARIABLE, thinltoParamFile.getExecPathString());\n THINLTO_INDEXING_PARAM_FILE_VARIABLE, thinltoParamFile.getExecPathString());\n buildVariables.addStringVariable(THINLTO_PARAM_FILE_VARIABLE, \"\");\n buildVariables.addStringVariable(THINLTO_INDEXING_PARAM_FILE_VARIABLE, \"\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/bazelbuild/bazel/commit/ae1b706de9b324134e9aca74fecb6bcee53b0315", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " throw new LoadFailedException(importString, nameInLoadedFile);\n throw new LoadFailedException(importString, nameInLoadedFile, ext.allKeys());\n LoadFailedException(String importString, String symbolString) {\n super(String.format(\"file '%s' does not contain symbol '%s'\", importString, symbolString));\n LoadFailedException(String importString, String symbolString, Iterable allKeys) {\n super(\n String.format(\n \"file '%s' does not contain symbol '%s'%s\",\n importString, symbolString, SpellChecker.didYouMean(symbolString, allKeys)));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/a2501d5cda3bde4e20da6101d54b103f3ffa484d", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " // TODO(asmundak): once b/28640279 is fixed (that is, the native singlejar is released),\n // eliminate this check, allowing only native singlejar.\n // TODO(asmundak): once https://github.com/bazelbuild/bazel/issues/2241 is fixed (that is,\n // the native singlejar is used on windows) remove support for the Java implementation\n // TODO(asmundak): once b/28640279 is fixed (that is, the native singlejar is released),\n // eliminate this check, allowing only native singlejar.\n // TODO(asmundak): once https://github.com/bazelbuild/bazel/issues/2241 is fixed (that is,\n // the native singlejar is used on windows) remove support for the Java implementation\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/5db93ad39c6abbde04fd904e03e54b1e128a21c9", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " this.headerModuleSrcs.addAll(headers);\n this.modularHeaders.addAll(headers);\n /**\n * All header files that are compiled into this module.\n */\n private final ImmutableSet headerModuleSrcs;\n /** All header files that are compiled into this module. */\n private final ImmutableSet modularHeaders;\n\n /** All header files that are contained in this module. */\n private final ImmutableSet textualHeaders;\n ImmutableSet headerModuleSrcs,\n ImmutableSet modularHeaders,\n ImmutableSet textualHeaders,\n this.headerModuleSrcs = headerModuleSrcs;\n this.modularHeaders = modularHeaders;\n this.textualHeaders = textualHeaders;\n headerModuleSrcs.addAll(other.headerModuleSrcs);\n modularHeaders.addAll(other.modularHeaders);\n textualHeaders.addAll(other.textualHeaders);\n ImmutableSet headerModuleSrcs = ImmutableSet.copyOf(this.headerModuleSrcs);\n ImmutableSet modularHeaders = ImmutableSet.copyOf(this.modularHeaders);\n new TransitiveModuleHeaders(headerModule, headerModuleSrcs, transitiveModules));\n new TransitiveModuleHeaders(headerModule, modularHeaders, transitiveModules));\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/0ac7795efd5695a052b6ab0019945e6b4d9a5a99", "target_edit_idx": 9, "propagatable_edit_idx": [ 5, 6, 7, 11, 12, 13 ] }, { "input": " String firstAttribute = attributes.get(0);\n String currentAttribute = attributes.get(0);\n visitAttribute(firstAttribute, getAttributeType(firstAttribute));\n visitAttribute(currentAttribute, getAttributeType(currentAttribute));\n List restOfAttrs = attributes.subList(1, attributes.size());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/69d9b417534aae71728c5f6bcc67fe44bb4e4241", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " Integer hash = System.identityHashCode(object);\n return lockedItems.containsKey(hash);\n return lockedItems.containsKey(object);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/6d30fe9cb65f916fe0178da3c68ae17d19233010", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " + \"Object locked at the following locations: \"\n + \"Object locked at the following location(s): \"\n + \"Object locked at the following locations: /b:1\");\n + \"Object locked at the following location(s): /b:1\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/bazelbuild/bazel/commit/6d30fe9cb65f916fe0178da3c68ae17d19233010", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n ImmutableMap.of(),\n", "class": "clone", "binary_label": 1, "regression_label": 0.9090909090909091, "commit_url": "https://github.com/bazelbuild/bazel/commit/03b9cfd3f9117fc22bf8ae129c316cf606b46a00", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": " UUID.randomUUID(), ImmutableMap.of(),\n UUID.randomUUID(), ImmutableMap.of(),\n UUID.randomUUID(), ImmutableMap.of(),\n UUID.randomUUID(), ImmutableMap.of(),\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/bazelbuild/bazel/commit/03b9cfd3f9117fc22bf8ae129c316cf606b46a00", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " throws PackageRootResolutionException {\n throws PackageRootResolutionException, InterruptedException {\n throws PackageRootResolutionException {\n throws PackageRootResolutionException, InterruptedException {\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/bazelbuild/bazel/commit/ef5c5dd5c116b25f74ac90024ef63c7fad8f1bc5", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " public Map getArtifactRootsForFiles(final EventHandler eventHandler,\n Iterable execPaths) throws PackageRootResolutionException {\n public Map getArtifactRootsForFiles(\n final EventHandler eventHandler, Iterable execPaths)\n throws PackageRootResolutionException, InterruptedException {\n public Map getArtifactRoots(final EventHandler eventHandler,\n Iterable execPaths) throws PackageRootResolutionException {\n public Map getArtifactRoots(\n final EventHandler eventHandler, Iterable execPaths)\n throws PackageRootResolutionException, InterruptedException {\n private Map getArtifactRoots(final EventHandler eventHandler,\n Iterable execPaths, boolean forFiles) throws PackageRootResolutionException {\n private Map getArtifactRoots(\n final EventHandler eventHandler, Iterable execPaths, boolean forFiles)\n throws PackageRootResolutionException, InterruptedException {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/bazelbuild/bazel/commit/ef5c5dd5c116b25f74ac90024ef63c7fad8f1bc5", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " } catch (InterruptedException e) {\n throw new QueryException(\"interrupted\");\n } catch (InterruptedException e) {\n throw new QueryException(\"interrupted\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/71cdea44161e70215e9816ebdc2f559bad658822", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " public Iterable getPicStaticLibraries() {\n return LinkerInputs.opaqueLibrariesToLink(ArtifactCategory.STATIC_LIBRARY,\n FileType.filter(files, CppFileTypes.PIC_ARCHIVE,\n CppFileTypes.ALWAYS_LINK_PIC_LIBRARY));\n public Iterable getAlwayslinkStaticLibraries() {\n return FileType.filter(files, CppFileTypes.ALWAYS_LINK_LIBRARY);\n }\n\n public Iterable getPicStaticLibraries() {\n return FileType.filter(files, CppFileTypes.PIC_ARCHIVE);\n }\n\n public Iterable getPicAlwayslinkLibraries() {\n return FileType.filter(files, CppFileTypes.ALWAYS_LINK_PIC_LIBRARY);\n return FileType.filter(files, CppFileTypes.ARCHIVE, CppFileTypes.ALWAYS_LINK_LIBRARY);\n return FileType.filter(files, CppFileTypes.ARCHIVE);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/7c63f15e516f240b3ecc1642ae717e3b029dcfa6", "target_edit_idx": 13, "propagatable_edit_idx": [ 12 ] }, { "input": " if (targetName.substring(ii).startsWith(\"/../\")) {\n if (stringRegionMatch(targetName, \"/../\", ii)) {\n } else if (targetName.substring(ii).startsWith(\"/./\")) {\n } else if (stringRegionMatch(targetName, \"/./\", ii)) {\n } else if (targetName.substring(ii).startsWith(\"//\")) {\n } else if (stringRegionMatch(targetName, \"//\", ii)) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/b32eea7ee5c1f3bd4fc753fa72c99f1d5b8259ea", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " String.format(AppleSkylarkCommon.BAD_PROVIDERS_ITER_ERROR, toAdd.getClass()));\n String.format(\n AppleSkylarkCommon.BAD_PROVIDERS_ITER_ERROR, EvalUtils.getDataTypeName(toAdd)));\n String.format(AppleSkylarkCommon.BAD_PROVIDERS_ELEM_ERROR, toAddObject.getClass()));\n String.format(\n AppleSkylarkCommon.BAD_PROVIDERS_ELEM_ERROR,\n EvalUtils.getDataTypeName(toAddObject)));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/c15a90c8b21a8d9819c85806057df6bf3d74cdcc", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " SkyKey cycleKey1 = GraphTester.toSkyKey(\"cycleKey1\");\n SkyKey cycleKey2 = GraphTester.toSkyKey(\"cycleKey2\");\n // The cycle detection algorithm non-deterministically traverses into children nodes, so\n // use explicit determinism.\n makeGraphDeterministic();\n SkyKey cycleKey1 = GraphTester.toSkyKey(\"ZcycleKey1\");\n SkyKey cycleKey2 = GraphTester.toSkyKey(\"AcycleKey2\");\n final SkyKey cycleKey1 = GraphTester.toSkyKey(\"cycleKey1\");\n final SkyKey cycleKey2 = GraphTester.toSkyKey(\"cycleKey2\");\n makeGraphDeterministic();\n final SkyKey cycleKey1 = GraphTester.toSkyKey(\"ZcycleKey1\");\n final SkyKey cycleKey2 = GraphTester.toSkyKey(\"AcycleKey2\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/bazelbuild/bazel/commit/e97bba143bcb18eef62a18829542abf576f0856a", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " private final Collection targets;\n private final Collection topLevelTargets;\n * @param targets The set of active targets that remain.\n * @param topLevelTargets The set of active topLevelTargets that remain.\n public AnalysisPhaseCompleteEvent(Collection targets,\n public AnalysisPhaseCompleteEvent(Collection topLevelTargets,\n this.targets = ImmutableList.copyOf(targets);\n this.topLevelTargets = ImmutableList.copyOf(topLevelTargets);\n * @return The set of active targets remaining, which is a subset\n * of the targets we attempted to analyze.\n * @return The set of active topLevelTargets remaining, which is a subset\n * of the topLevelTargets we attempted to analyze.\n * @return The number of targets freshly visited during analysis\n * @return The number of topLevelTargets freshly visited during analysis\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/28f03b1ae859a730238cac3ef4a2aa42a2a7c7fb", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 6 ] }, { "input": " ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.ANDROID_LIBRARY_MANIFEST),\n ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.ANDROID_PROCESSED_MANIFEST),\n AndroidRuleClasses.ANDROID_LIBRARY_MANIFEST))\n AndroidRuleClasses.ANDROID_PROCESSED_MANIFEST))\n public static final ImplicitOutputsFunction ANDROID_LIBRARY_MANIFEST =\n fromTemplates(\"%{name}_library_manifest/AndroidManifest.xml\");\n public static final ImplicitOutputsFunction ANDROID_PROCESSED_MANIFEST =\n fromTemplates(\"%{name}_processed_manifest/AndroidManifest.xml\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/219150f8d2c0d595007fbfa9506702f86bb13a9c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " Artifact langtools = ruleContext.getPrerequisiteArtifact(\"$java_langtools\", Mode.HOST);\n builder.addTool(langtools);\n builder.addTool(javacJar);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/bazelbuild/bazel/commit/6c2af1a11f45773120080948baaeca7bd02eafd2", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " common.initializeJavacOpts();\n common.initializeJavacOpts();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/a00b99495dce0e8f353a9c858a2436cbe9b08047", "target_edit_idx": 2, "propagatable_edit_idx": [ 9 ] }, { "input": " return initCommon(Collections.emptySet());\n return initCommon(ImmutableList.of(), semantics.getExtraJavacOpts(ruleContext));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/a00b99495dce0e8f353a9c858a2436cbe9b08047", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 1 ] }, { "input": " public JavaTargetAttributes.Builder initCommon(Collection extraSrcs) {\n Preconditions.checkState(javacOpts != null);\n public JavaTargetAttributes.Builder initCommon(\n Collection extraSrcs, Iterable extraJavacOpts) {\n Preconditions.checkState(javacOpts == null);\n javacOpts = computeJavacOpts(extraJavacOpts);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/a00b99495dce0e8f353a9c858a2436cbe9b08047", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 7 ] }, { "input": " .add(JavaPluginInfoProvider.class, javaCommon.getTransitivePlugins())\n .add(JavaPluginInfoProvider.class, JavaCommon.getTransitivePlugins(ruleContext))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/c5d7a7fd23ec05acbe832840445bee119e721ccc", "target_edit_idx": 1, "propagatable_edit_idx": [ 11, 6 ] }, { "input": " helper.addProvidersToAttributes(common.compilationArgsFromSources(), /* isNeverLink */ false);\n helper.addProvidersToAttributes(\n JavaCommon.compilationArgsFromSources(ruleContext), /* isNeverLink */ false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/c5d7a7fd23ec05acbe832840445bee119e721ccc", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 8, 3 ] }, { "input": " public Iterable compilationArgsFromSources() {\n public static Iterable compilationArgsFromSources(\n RuleContext ruleContext) {\n helper.addProvidersToAttributes(javaCommon.compilationArgsFromSources(), asNeverLink);\n helper.addProvidersToAttributes(\n JavaCommon.compilationArgsFromSources(ruleContext), asNeverLink);\n helper.addProvidersToAttributes(common.compilationArgsFromSources(),\n JavaCommon.isNeverLink(ruleContext));\n Iterable compilationArgsFromSources =\n JavaCommon.compilationArgsFromSources(ruleContext);\n helper.addProvidersToAttributes(\n compilationArgsFromSources, JavaCommon.isNeverLink(ruleContext));\n helper.addProvidersToAttributes(common.compilationArgsFromSources(), /* isNeverLink */ false);\n helper.addProvidersToAttributes(\n JavaCommon.compilationArgsFromSources(ruleContext), /* isNeverLink */ false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06666666666666667, "commit_url": "https://github.com/bazelbuild/bazel/commit/c5d7a7fd23ec05acbe832840445bee119e721ccc", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 8, 2 ] }, { "input": " Iterable getPluginInfoProvidersForAttribute(String attribute,\n Mode mode) {\n private static Iterable getPluginInfoProvidersForAttribute(\n RuleContext ruleContext, String attribute, Mode mode) {\n Iterables.addAll(result, getPluginInfoProvidersForAttribute(\":java_plugins\", Mode.HOST));\n Iterables.addAll(result, getPluginInfoProvidersForAttribute(\"plugins\", Mode.HOST));\n Iterables.addAll(result, getPluginInfoProvidersForAttribute(\"deps\", Mode.TARGET));\n Iterables.addAll(result,\n getPluginInfoProvidersForAttribute(ruleContext, \":java_plugins\", Mode.HOST));\n Iterables.addAll(result, getPluginInfoProvidersForAttribute(ruleContext, \"plugins\", Mode.HOST));\n Iterables.addAll(result, getPluginInfoProvidersForAttribute(ruleContext, \"deps\", Mode.TARGET));\n getPluginInfoProvidersForAttribute(\"exported_plugins\", Mode.HOST),\n getPluginInfoProvidersForAttribute(\"exports\", Mode.TARGET)));\n getPluginInfoProvidersForAttribute(ruleContext, \"exported_plugins\", Mode.HOST),\n getPluginInfoProvidersForAttribute(ruleContext, \"exports\", Mode.TARGET)));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06666666666666667, "commit_url": "https://github.com/bazelbuild/bazel/commit/c5d7a7fd23ec05acbe832840445bee119e721ccc", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " \n public JavaPluginInfoProvider getTransitivePlugins() {\n\n public static JavaPluginInfoProvider getTransitivePlugins(RuleContext ruleContext) {\n .add(JavaPluginInfoProvider.class, javaCommon.getTransitivePlugins())\n .add(JavaPluginInfoProvider.class, JavaCommon.getTransitivePlugins(ruleContext))\n .add(JavaPluginInfoProvider.class, common.getTransitivePlugins())\n .add(JavaPluginInfoProvider.class, JavaCommon.getTransitivePlugins(ruleContext))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.06666666666666667, "commit_url": "https://github.com/bazelbuild/bazel/commit/c5d7a7fd23ec05acbe832840445bee119e721ccc", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 11 ] }, { "input": " helper.addProvidersToAttributes(common.compilationArgsFromSources(),\n JavaCommon.isNeverLink(ruleContext));\n Iterable compilationArgsFromSources =\n JavaCommon.compilationArgsFromSources(ruleContext);\n helper.addProvidersToAttributes(\n compilationArgsFromSources, JavaCommon.isNeverLink(ruleContext));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/c5d7a7fd23ec05acbe832840445bee119e721ccc", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " false, neverLink, common.compilationArgsFromSources(), false);\n false, neverLink, compilationArgsFromSources, false);\n true, neverLink, common.compilationArgsFromSources(), false);\n true, neverLink, compilationArgsFromSources, false);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/bazelbuild/bazel/commit/c5d7a7fd23ec05acbe832840445bee119e721ccc", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " .add(JavaPluginInfoProvider.class, common.getTransitivePlugins())\n .add(JavaPluginInfoProvider.class, JavaCommon.getTransitivePlugins(ruleContext))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/c5d7a7fd23ec05acbe832840445bee119e721ccc", "target_edit_idx": 11, "propagatable_edit_idx": [ 1, 6 ] }, { "input": " builder.setInstrumentationJars(getInstrumentationJars(semantics));\n builder.setInstrumentationJars(getInstrumentationJars());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/7eb5285352606537200decab5d36e08d1d4e1bed", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " JavaCompilationHelper helper,\n JavaCompilationHelper helper,\n", "class": "clone", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/bazelbuild/bazel/commit/5c1a40543c38c7c900e16912efe14bcf6fb7d513", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " helper, filesBuilder, builder);\n filesBuilder, builder);\n helper, filesBuilder, builder);\n filesBuilder, builder);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/bazelbuild/bazel/commit/5c1a40543c38c7c900e16912efe14bcf6fb7d513", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " this.environment = configuration.getDefaultShellEnvironment();\n this.environment = configuration.getLocalShellEnvironment();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/f14edbb12c800646028638e5a44aa3b93a0165cf", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 7, 8, 9, 10, 11 ] }, { "input": " private final ImmutableMap defaultShellEnvironment;\n private final ImmutableMap localShellEnvironment;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/f14edbb12c800646028638e5a44aa3b93a0165cf", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " this.defaultShellEnvironment = setupShellEnvironment();\n this.localShellEnvironment = setupShellEnvironment();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/f14edbb12c800646028638e5a44aa3b93a0165cf", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " StringLiteral path = parseStringLiteral();\n StringLiteral importString = parseStringLiteral();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/9201fda7dcc82d40ee47fadee31d6eb6923605db", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": " reportError(path.getLocation(), msg);\n reportError(importString.getLocation(), msg);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/bazelbuild/bazel/commit/9201fda7dcc82d40ee47fadee31d6eb6923605db", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": " private final List nonconfigurableAttributes;\n private final List nonConfigurableAttributes;\n if (nonconfigurableAttributes.contains(attributeName)) {\n if (nonConfigurableAttributes.contains(attributeName)) {\n .addAll(directMap.keySet()).addAll(nonconfigurableAttributes).build();\n .addAll(directMap.keySet()).addAll(nonConfigurableAttributes).build();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/cdd5b0ea601fb5636367d5e758b584362483212b", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " TargetPatternValue.keys(targetPatterns, FilteringPolicies.FILTER_MANUAL, \"\")) {\n TargetPatternValue.keys(targetPatterns, FilteringPolicies.FILTER_MANUAL, offset)) {\n TargetPatternValue.keys(targetPatterns, FilteringPolicies.FILTER_TESTS, \"\")) {\n TargetPatternValue.keys(targetPatterns, FilteringPolicies.FILTER_TESTS, offset)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/bazelbuild/bazel/commit/a33da62ad294f8c9483aa5685efae0bf3dfadb41", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " private final ImmutableMap skyFunctions;\n private final ImmutableMap skyFunctions;\n private final ImmutableMap skyFunctions;\n private final ImmutableMap skyFunctions;\n ImmutableMap skyFunctions,\n ImmutableMap skyFunctions,\n Map functions,\n Map functions,\n", "class": "clone", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/bazelbuild/bazel/commit/06568808db8ccb6ca4bb0d663da4e3e1a9b1a308", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 10, 11 ] }, { "input": " Map skyFunctions, Differencer differencer) {\n Map skyFunctions, Differencer differencer) {\n Map skyFunctions, Differencer differencer,\n Map skyFunctions,\n Differencer differencer,\n Map skyFunctions, Differencer differencer,\n Map skyFunctions,\n Differencer differencer,\n Map skyFunctions, Differencer differencer,\n Map skyFunctions,\n Differencer differencer,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/bazelbuild/bazel/commit/06568808db8ccb6ca4bb0d663da4e3e1a9b1a308", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 7 ] }, { "input": " EmittedEventState emittedEventState, boolean keepEdges) {\n EmittedEventState emittedEventState,\n boolean keepEdges) {\n EmittedEventState emittedEventState, boolean keepEdges);\n EmittedEventState emittedEventState,\n boolean keepEdges);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/bazelbuild/bazel/commit/06568808db8ccb6ca4bb0d663da4e3e1a9b1a308", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " builder.put(IOS_SDK_VERSION_ENV_NAME, iosSdkVersion);\n builder.put(APPLE_SDK_VERSION_ENV_NAME, iosSdkVersion);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/a9afb6969cb91c1c48dddc9b3992e715b418a263", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "import com.google.devtools.build.lib.pkgcache.PackageManager;\nimport com.google.devtools.build.lib.pkgcache.PackageManager;\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/bazelbuild/bazel/commit/b82a56c01853420fb85cadf99c0b323a67ab858f", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " Chart chart = new Chart(info.comment);\n Chart chart = new Chart();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/64228bfe646ab30d0361f43519f560e011d01509", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " return delegate.getxattr(adjustPath(path, delegate), name, followSymlinks);\n return delegate.getxattr(adjustPath(path, delegate), name);\n protected byte[] getxattr(Path path, String name, boolean followSymlinks) throws IOException {\n protected byte[] getxattr(Path path, String name) throws IOException {\n return fileSystem.getxattr(this, name, true);\n return fileSystem.getxattr(this, name);\n protected byte[] getxattr(Path path, String name, boolean followSymlinks) throws IOException {\n protected byte[] getxattr(Path path, String name) throws IOException {\n protected byte[] getxattr(Path path, String name, boolean followSymlinks) throws IOException {\n protected byte[] getxattr(Path path, String name) throws IOException {\n protected byte[] getxattr(Path path, String name, boolean followSymlinks) {\n protected byte[] getxattr(Path path, String name) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/e1f187a7bcaf13d03ee9570ca2874927c6c3d73f", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5, 7 ] }, { "input": " Set present = graph.getDoneValues(map.values()).keySet();\n Set present = graph.getSuccessfulValues(map.values()).keySet();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/458208743a09d19b844e8b41c3fe512c64ee5155", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 7, 9 ] }, { "input": " Collection current = graph.getDoneValues(files).keySet();\n Collection current = graph.getSuccessfulValues(files).keySet();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/bazelbuild/bazel/commit/458208743a09d19b844e8b41c3fe512c64ee5155", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 7, 9 ] }, { "input": " Map getDoneValues(Iterable keys);\n Map getSuccessfulValues(Iterable keys);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/bazelbuild/bazel/commit/458208743a09d19b844e8b41c3fe512c64ee5155", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 3, 4, 5, 7 ] }, { "input": " return ValueOrExceptionUtils.downcovert(voe);\n return ValueOrExceptionUtils.downconvert(voe);\n return ValueOrExceptionUtils.downcovert(voe, exceptionClass);\n return ValueOrExceptionUtils.downconvert(voe, exceptionClass);\n public static SkyValue downcovert(ValueOrException voe) {\n public static SkyValue downconvert(ValueOrException voe) {\n public static ValueOrException downcovert(\n public static ValueOrException downconvert(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/4bb8a39c84fd8f899e982d85b6d293711afeb87c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " public static ValueOrException downcovert(\n public static ValueOrException downconvert(\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/bazelbuild/bazel/commit/4bb8a39c84fd8f899e982d85b6d293711afeb87c", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " syscalls.set(new PerBuildSyscallCache());\n syscalls.set(newPerBuildSyscallCache());\n syscalls.set(new PerBuildSyscallCache());\n syscalls.set(newPerBuildSyscallCache());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/bazelbuild/bazel/commit/5c54bdcc5b6d686687120b19be710d08e5186da8", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " builder.addTransitiveTargets(ruleContext.getPrerequisites(\"deps\", Mode.TARGET));\n builder.addTransitiveLangTargets(\n ruleContext.getPrerequisites(\"deps\", Mode.TARGET),\n PyCcLinkParamsProvider.TO_LINK_PARAMS);\n builder.addTransitiveTargets(ruleContext.getPrerequisites(\"deps\", Mode.TARGET),\n PyCcLinkParamsProvider.TO_LINK_PARAMS,\n CcLinkParamsProvider.TO_LINK_PARAMS);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/2ef4ef41a1f38df3204f02f7f8742fa39daeccce", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " FilesystemValueChecker fsnc = new FilesystemValueChecker(memoizingEvaluator, tsgm, null);\n FilesystemValueChecker fsvc = new FilesystemValueChecker(memoizingEvaluator, tsgm, null);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/8e5d60a9811f18e5c57132fd5d6eb1ccf448e7fd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " return getNode(new FakeSubincludeTarget(label, pkg.getBuildFile().getLocation()));\n return getNode(new FakeSubincludeTarget(label, pkg));\n return new FakeSubincludeTarget(label, pkg.getBuildFile().getLocation());\n return new FakeSubincludeTarget(label, pkg);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/b817e3f70ed6278dd65ba01439309114a53cd8f0", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " private final Location location;\n private final Package pkg;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/b817e3f70ed6278dd65ba01439309114a53cd8f0", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " TargetPatternValue.TargetPattern targetPattern =\n ((TargetPatternValue.TargetPattern) patternKey.argument());\n TargetPatternValue.TargetPatternKey targetPatternKey =\n ((TargetPatternValue.TargetPatternKey) patternKey.argument());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/bazelbuild/bazel/commit/248f0448af4675ad72cfe4e05348cff8c6915717", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " TargetPatternValue.TargetPattern pattern =\n (TargetPatternValue.TargetPattern) key.argument();\n String rawPattern = pattern.getPattern();\n TargetPatternValue.TargetPatternKey patternKey =\n (TargetPatternValue.TargetPatternKey) key.argument();\n String rawPattern = patternKey.getPattern();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/bazelbuild/bazel/commit/248f0448af4675ad72cfe4e05348cff8c6915717", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 6, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " * A TargetPattern is a tuple of pattern (eg, \"foo/...\"), filtering policy, a relative pattern\n * A TargetPatternKey is a tuple of pattern (eg, \"foo/...\"), filtering policy, a relative pattern\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/bazelbuild/bazel/commit/248f0448af4675ad72cfe4e05348cff8c6915717", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 6, 7, 8, 9, 11, 12, 13, 14 ] }, { "input": " synchronized (execSettings.getManifest()) {\n synchronized (execSettings.getInputManifest()) {\n execSettings.getManifest().getPath().getMD5Digest())) {\n execSettings.getInputManifest().getPath().getMD5Digest())) {\n new SymlinkTreeHelper(execSettings.getManifest().getExecPath(),\n new SymlinkTreeHelper(execSettings.getInputManifest().getExecPath(),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/68ac06d203bd7e9abbd79a2b6dfc42b80d121311", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " new SymlinkTreeHelper(execSettings.getManifest().getExecPath(),\n new SymlinkTreeHelper(execSettings.getInputManifest().getExecPath(),\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/bazelbuild/bazel/commit/68ac06d203bd7e9abbd79a2b6dfc42b80d121311", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " public static void rethrowCause(Exception e) throws BuildFailedException, TestExecException {\n Throwable cause = e.getCause();\n public static void rethrow(Throwable cause) throws BuildFailedException, TestExecException {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/bazelbuild/bazel/commit/41c2f9ee09751a0709c02e2e8dfdca227ccc45b0", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " @SkylarkCallable(doc = \"\")\n @SkylarkCallable(doc = \"Experimental.\")\n @SkylarkCallable(doc = \"\")\n @SkylarkCallable(doc = \"Experimental.\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/bazelbuild/bazel/commit/52f0decfb89b9d57dd9d0bc93e47eab3793f43b8", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " syntaxError(token);\n expect(TokenKind.RPAREN);\n syntaxError(token);\n expect(TokenKind.RBRACE);\n syntaxError(token);\n expect(TokenKind.IDENTIFIER);\n syntaxError(token);\n expect(TokenKind.RBRACKET);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/bazelbuild/bazel/commit/723298692c2df735e7492469551cd3a8018be3e1", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 10, 7 ] }, { "input": " assertEquals(\"syntax error at \\'bar\\'\", event.getMessage());\n assertEquals(\"syntax error at \\'bar\\': expected newline\", event.getMessage());\n assertEquals(\"syntax error at '+'\", event.getMessage());\n assertEquals(\"syntax error at '+': expected expression\", event.getMessage());\n assertEquals(\"syntax error at '%'\", event.getMessage());\n assertEquals(\"syntax error at '%': expected expression\", event.getMessage());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/723298692c2df735e7492469551cd3a8018be3e1", "target_edit_idx": 11, "propagatable_edit_idx": [ 13, 14 ] }, { "input": " ActionInput getInputFromDigest(ByteString digest) throws IOException;\n\n /**\n * The absolute path that this input is located at. The usual {@link ActionInput} implementation\n * is {@link Artifact}, which currently embeds its full path, so implementations should just\n * return this path if {@code input} is an {@link Artifact}. Otherwise, implementations should\n * resolve the relative path into an absolute one and return that.\n */\n Path getInputPath(ActionInput input);\n File getFileFromDigest(ByteString digest) throws IOException;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/6f49384fb69744b0d7a3542b0534dfb85d17de23", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 13, 5 ] }, { "input": " public Artifact getInputFromDigest(ByteString digest) throws IOException {\n return reverseMap.get(digest);\n }\n\n @Override\n public Path getInputPath(ActionInput input) {\n if (input instanceof Artifact) {\n return ((Artifact) input).getPath();\n public File getFileFromDigest(ByteString digest) throws IOException {\n Artifact artifact = reverseMap.get(digest);\n if (artifact != null) {\n String relPath = artifact.getExecPathString();\n return relPath.startsWith(\"/\") ? new File(relPath) : new File(execRoot, relPath);\n public ActionInput getInputFromDigest(ByteString digest) throws IOException {\n ActionInput file = perActionCache.getInputFromDigest(digest);\n return file != null ? file : perBuildFileCache.getInputFromDigest(digest);\n }\n\n @Override\n public Path getInputPath(ActionInput input) {\n // Resolving an input only requires the execRoot, which the per-action cache has.\n return perActionCache.getInputPath(input);\n public File getFileFromDigest(ByteString digest) throws IOException {\n File file = perActionCache.getFileFromDigest(digest);\n return file != null ? file : perBuildFileCache.getFileFromDigest(digest);\n ActionInput getInputFromDigest(ByteString digest) throws IOException;\n\n /**\n * The absolute path that this input is located at. The usual {@link ActionInput} implementation\n * is {@link Artifact}, which currently embeds its full path, so implementations should just\n * return this path if {@code input} is an {@link Artifact}. Otherwise, implementations should\n * resolve the relative path into an absolute one and return that.\n */\n Path getInputPath(ActionInput input);\n File getFileFromDigest(ByteString digest) throws IOException;\n public ActionInput getInputFromDigest(ByteString digest) {\n return digestToPath.get(digest);\n }\n\n @Override\n public Path getInputPath(ActionInput input) {\n if (input instanceof Artifact) {\n return ((Artifact) input).getPath();\n }\n return fs.getPath(fullPath(input));\n public File getFileFromDigest(ByteString digest) {\n ActionInput relPath = digestToPath.get(digest);\n return relPath == null ? null : new File(fullPath(relPath));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/bazelbuild/bazel/commit/6f49384fb69744b0d7a3542b0534dfb85d17de23", "target_edit_idx": 9, "propagatable_edit_idx": [ 13, 3, 5 ] }, { "input": " VFS_LINK(\"VFS readlink\", 10000000, 0x99CCCC, 30),\n VFS_READLINK(\"VFS readlink\", 10000000, 0x99CCCC, 30),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/14c542c770b8b3d2a07467ad86e021501c710c5a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " profiler.logSimpleTask(startTime, ProfilerTask.VFS_LINK, name);\n profiler.logSimpleTask(startTime, ProfilerTask.VFS_READLINK, name);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/bazelbuild/bazel/commit/14c542c770b8b3d2a07467ad86e021501c710c5a", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " return EvalUtils.checkNotNull(this,\n function.call(posargs.build(), ImmutableMap.copyOf(kwargs), this, env));\n returnValue = function.call(\n posargs.build(), ImmutableMap.copyOf(kwargs), this, env);\n return EvalUtils.checkNotNull(this,\n function.call(posargs.build(), ImmutableMap.copyOf(kwargs), this, env));\n returnValue = function.call(\n posargs.build(), ImmutableMap.copyOf(kwargs), this, env);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bazelbuild/bazel/commit/a34d5071784ff51f68714b61f4100c35f1e4db3a", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " x.setExecutor(this);\n x.setExecutorWithoutCompleting(this);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jenkinsci/jenkins/commit/37d3a2e5ee48e1bf9242a79707973e6f074bcc38", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4, 6 ] }, { "input": " public synchronized final void setExecutor(@Nonnull Executor executor) {\n assert this.executor==null;\n\n public synchronized final void setExecutorWithoutCompleting(@Nonnull Executor executor) {\n assert this.executor == null;\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/jenkinsci/jenkins/commit/37d3a2e5ee48e1bf9242a79707973e6f074bcc38", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 3, 4 ] }, { "input": " x.setExecutor(this);\n x.setExecutorWithoutCompleting(this);\n * If {@link #completed} is called before {@link #setExecutor}, then either {@link #NULL} for success, or the error.\n * If {@link #completed} is called before {@link #setExecutorWithoutCompleting}, then either {@link #NULL} for success, or the error.\n * @return Associated Executor. May be {@code null} if {@link #setExecutor(hudson.model.Executor)} \n * @return Associated Executor. May be {@code null} if {@link #setExecutorWithoutCompleting(hudson.model.Executor)} \n public synchronized final void setExecutor(@Nonnull Executor executor) {\n assert this.executor==null;\n\n public synchronized final void setExecutorWithoutCompleting(@Nonnull Executor executor) {\n assert this.executor == null;\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jenkinsci/jenkins/commit/01b1f1ddbcad7ed8ea781e41ba4bd8d890f13c67", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4, 6 ] }, { "input": " for (HttpSessionListener listener : all()) {\n for (HttpSessionListener listener : HttpSessionListener.all()) {\n for (HttpSessionListener listener : all()) {\n for (HttpSessionListener listener : HttpSessionListener.all()) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jenkinsci/jenkins/commit/66351d671d502bb2e94e207a6b7e8fd15f1caadc", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "@Extension(ordinal = Integer.MAX_VALUE - 8)\n@Extension(ordinal = Integer.MAX_VALUE - 800)\n@Extension(ordinal = Integer.MAX_VALUE - 2)\n@Extension(ordinal = Integer.MAX_VALUE - 200)\n@Extension(ordinal = Integer.MAX_VALUE - 9)\n@Extension(ordinal = Integer.MAX_VALUE - 900)\n@Extension(ordinal = Integer.MAX_VALUE - 10)\n@Extension(ordinal = Integer.MAX_VALUE - 1000)\n@Extension(ordinal = Integer.MAX_VALUE - 4)\n@Extension(ordinal = Integer.MAX_VALUE - 400)\n@Extension(ordinal = Integer.MAX_VALUE - 3)\n@Extension(ordinal = Integer.MAX_VALUE - 300)\n@Extension(ordinal = Integer.MAX_VALUE - 7)\n@Extension(ordinal = Integer.MAX_VALUE - 700)\n@Extension(ordinal = Integer.MAX_VALUE - 5)\n@Extension(ordinal = Integer.MAX_VALUE - 500)\n@Extension(ordinal = Integer.MAX_VALUE - 6)\n@Extension(ordinal = Integer.MAX_VALUE - 600)\n", "class": "clone", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/jenkinsci/jenkins/commit/7639674b5952497dca4235712dba80beae901a01", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 5, 6, 7, 8, 9, 10 ] }, { "input": " if (!req.getMethod().equals(\"POST\")) {\n throw new Failure(\"Request must be a POST request\");\n }\n\n String name = req.getParameter(\"name\");\n if (!req.getMethod().equals(\"POST\")) {\n throw new Failure(\"Request must be a POST request\");\n }\n\n String name = req.getParameter(\"name\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jenkinsci/jenkins/commit/260ab071ba4f2eb777f37d2102b658da35c201ed", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " rsp.setStatus(HttpServletResponse.SC_OK);\n return HttpResponses.ok();\n rsp.setStatus(HttpServletResponse.SC_OK);\n return HttpResponses.ok();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jenkinsci/jenkins/commit/260ab071ba4f2eb777f37d2102b658da35c201ed", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " return current().node.getAttributeNames();\n return new AttributeNameIterator(this);\n return current().node.getAttributeName(index);\n return unescapeXmlName(current().node.getAttributeName(index));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jenkinsci/jenkins/commit/5d3d9d16efbe244088bf730c97b0806e11085c6c", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " Class clazz = Class.forName( \"org.jenkinsci.plugins.tokenmacro.MacroEvaluationException\" );\n Class clazz = Class.forName( \"org.jenkinsci.plugins.tokenmacro.TokenMacro\" );\n Class clazz = Class.forName( \"org.jenkinsci.plugins.tokenmacro.MacroEvaluationException\" );\n Class clazz = Class.forName( \"org.jenkinsci.plugins.tokenmacro.TokenMacro\" );\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jenkinsci/jenkins/commit/951580fb1854611ce4eee31f84e15849b4199643", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " ReflectionUtils.findMethod(clazz, \"expand\", new Class[]{ this.getClass(), listener.getClass(), String.class} );\n ReflectionUtils.findMethod(clazz, \"expand\", new Class[]{ AbstractBuild.class, TaskListener.class, String.class} );\n ReflectionUtils.findMethod(clazz, \"expand\", new Class[]{ this.getClass(), listener.getClass(), String.class} );\n ReflectionUtils.findMethod(clazz, \"expand\", new Class[]{ AbstractBuild.class, TaskListener.class, String.class} );\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jenkinsci/jenkins/commit/951580fb1854611ce4eee31f84e15849b4199643", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " Sounds.explosionbig.at(this);\n\n Sounds.explosionbig.at(this);\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Anuken/Mindustry/commit/49b6f417d27a8e417a39e09f754759c228d8b6e3", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " explodeEffect.at(x, y);\n explodeEffect.at(this);\n explodeSound.at(this);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Anuken/Mindustry/commit/49b6f417d27a8e417a39e09f754759c228d8b6e3", "target_edit_idx": 7, "propagatable_edit_idx": [ 3 ] }, { "input": " t.build.damage(team, type.crawlDamage * Time.delta);\n t.build.damage(team, type.areaDamage * Time.delta);\n public float crawlDamage = 0.5f;\n //used for tanks too\n public float areaDamage = 0.5f;\n crawlDamage = 2f;\n areaDamage = 2f;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Anuken/Mindustry/commit/f45e6e016d2904b32d14d5828e39707f3b4336b0", "target_edit_idx": 5, "propagatable_edit_idx": [ 10, 4 ] }, { "input": " if(build != null && build.team == unit.team\n if(build != null && state.teams.canInteract(unit.team, build.team)\n if(build != null && build.team == unit.team){\n if(build != null && state.teams.canInteract(unit.team, build.team)){\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Anuken/Mindustry/commit/9160ee546ceb3684bfc61e47eb914c7ec1a1a51b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " //zoom things\n if(Math.abs(Core.input.axisTap(Binding.zoom)) > 0 && !Core.input.keyDown(Binding.rotateplaced) && (block == null || !block.rotate) && selectRequests.isEmpty()){\n //zoom camera\n if(Math.abs(Core.input.axisTap(Binding.zoom)) > 0 && !Core.input.keyDown(Binding.rotateplaced) && (Core.input.keyDown(Binding.diagonal_placement) || ((block == null || !block.rotate) && selectRequests.isEmpty()))){\n //zoom things\n if(Math.abs(Core.input.axisTap(Binding.zoom)) > 0 && !Core.input.keyDown(Binding.rotateplaced) && (block == null || !block.rotate) && selectRequests.isEmpty()){\n //zoom camera\n if(Math.abs(Core.input.axisTap(Binding.zoom)) > 0 && !Core.input.keyDown(Binding.rotateplaced) && (Core.input.keyDown(Binding.diagonal_placement) || ((block == null || !block.rotate) && selectRequests.isEmpty()))){\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Anuken/Mindustry/commit/6ce013a1ebeb4374b482587bb78dad1ed25a32aa", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " public float tryMoveLiquid(Tile tile, Tile next, float leakrate, Liquid liquid){\n public float tryMoveLiquid(Tile tile, Tile next, float leakResistance, Liquid liquid){\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Anuken/Mindustry/commit/8f9a9ec3e5de7e4679f7aea8e6a1dfa52c53d002", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " protected float leakRate = 1.5f;\n protected float leakResistance = 1.5f;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Anuken/Mindustry/commit/8f9a9ec3e5de7e4679f7aea8e6a1dfa52c53d002", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "\t\t\tstream.writeByte(liquid == null ? -1 : liquid.ordinal());\n\t\t\tstream.writeByte(liquid == null ? -1 : liquid.id);\n\t\t\tstream.writeByte(liquid == null ? -1 : liquid.ordinal());\n\t\t\tstream.writeByte(liquid == null ? -1 : liquid.id);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Anuken/Mindustry/commit/8ed3b4dcf51c420f7da35593d45d8b9f4da23cb6", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\t\tbyte ordinal = stream.readByte();\n\t\t\tliquid = ordinal == -1 ? null : Liquid.values()[ordinal];\n\t\t\tbyte id = stream.readByte();\n\t\t\tliquid = id == -1 ? null : Liquid.liquids.get(id);\n\t\t\tbyte ordinal = stream.readByte();\n\t\t\tliquid = ordinal == -1 ? null : Liquid.values()[ordinal];\n\t\t\tbyte id = stream.readByte();\n\t\t\tliquid = id == -1 ? null : Liquid.liquids.get(id);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Anuken/Mindustry/commit/8ed3b4dcf51c420f7da35593d45d8b9f4da23cb6", "target_edit_idx": 11, "propagatable_edit_idx": [ 9 ] }, { "input": " /* startPositionUs= */ 0,\n /* startPositionUs= */ adPeriodDurationUs,\n /* startPositionUs= */ 0,\n /* startPositionUs= */ adPeriodDurationUs,\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/google/ExoPlayer/commit/b13b272695b02f1b72d425c8fbdb9accc1f23ad3", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " /* endPositionUs= */ 0,\n /* durationUs= */ 0,\n /* endPositionUs= */ adPeriodDurationUs,\n /* durationUs= */ adPeriodDurationUs,\n /* endPositionUs= */ 0,\n /* durationUs= */ 0,\n /* endPositionUs= */ adPeriodDurationUs,\n /* durationUs= */ adPeriodDurationUs,\n", "class": "clone", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/google/ExoPlayer/commit/b13b272695b02f1b72d425c8fbdb9accc1f23ad3", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " * the audio tracks are transmuxed if {@code transmuxAudio} is {@code true} and exporting the\n * first {@link MediaItem} doesn't require audio transcoding. Otherwise, they are all\n * transcoded. Transmuxed tracks must be compatible and must not overlap in time.\n * the audio tracks are transcoded by default. They are all transmuxed if {@code transmuxAudio}\n * is {@code true}. Transmuxed tracks must be compatible (typically, all the {@link MediaItem}\n * instances containing the track to transmux are concatenated in a single {@link\n * EditedMediaItemSequence} and have the same sample format for that track).\n * the video tracks are transmuxed if {@code transmuxVideo} is {@code true} and exporting the\n * first {@link MediaItem} doesn't require video transcoding. Otherwise, they are all\n * transcoded. Transmuxed tracks must be compatible and must not overlap in time.\n * the video tracks are transcoded by default. They are all transmuxed if {@code transmuxVideo}\n * is {@code true}. Transmuxed tracks must be compatible (typically, all the {@link MediaItem}\n * instances containing the track to transmux are concatenated in a single {@link\n * EditedMediaItemSequence} and have the same sample format for that track).\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/71fb4f9a5cc5a1e62ad68cf64d9446d9b44edc66", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " if (editedMediaItems.size() > 1 && !composition.transmuxAudio) {\n return true;\n if (composition.sequences.size() > 1 || editedMediaItems.size() > 1) {\n return !composition.transmuxAudio;\n if (editedMediaItems.size() > 1 && !composition.transmuxVideo) {\n return true;\n if (composition.sequences.size() > 1 || editedMediaItems.size() > 1) {\n return !composition.transmuxVideo;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/71fb4f9a5cc5a1e62ad68cf64d9446d9b44edc66", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " private final @C.TrackType int trackType;\n private final @C.TrackType int outputTrackType;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/c32794f0ccbf60a17078f02f7ffef5ee9607ea24", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " selectEncoderAndMuxerSupportedMimeType(requestedMimeType, muxerSupportedMimeTypes);\n findSupportedMimeTypeForEncoderAndMuxer(requestedMimeType, muxerSupportedMimeTypes);\n private static String selectEncoderAndMuxerSupportedMimeType(\n String requestedMimeType, List muxerSupportedMimeTypes) {\n if (!EncoderUtil.getSupportedEncoders(requestedMimeType).isEmpty()) {\n return requestedMimeType;\n private static String findSupportedMimeTypeForEncoderAndMuxer(\n String preferredMimeType, List muxerSupportedMimeTypes) {\n if (!EncoderUtil.getSupportedEncoders(preferredMimeType).isEmpty()) {\n return preferredMimeType;\n private static String selectEncoderAndMuxerSupportedMimeType(\n String requestedMimeType,\n private static String findSupportedMimeTypeForEncoderAndMuxer(\n String preferredMimeType,\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/83bc474f3c753642e8b8a945b8dda717c82f4681", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 10 ] }, { "input": " .setEnableHighQualityTargeting(true)\n .experimentalSetEnableHighQualityTargeting(true)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/e4695048a8e63c35420f62149a3a56735cd9b534", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " public Builder setEnableHighQualityTargeting(boolean enableHighQualityTargeting) {\n public Builder experimentalSetEnableHighQualityTargeting(boolean enableHighQualityTargeting) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/google/ExoPlayer/commit/e4695048a8e63c35420f62149a3a56735cd9b534", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " void onDurationMs(long durationMs);\n void onDurationUs(long durationUs);\n private long durationMs;\n private long durationUs;\n public void onDurationMs(long durationMs) {\n public void onDurationUs(long durationUs) {\n durationMs <= 0 || durationMs == C.TIME_UNSET\n durationUs <= 0 || durationUs == C.TIME_UNSET\n TransformerInternal.this.durationMs = durationMs;\n TransformerInternal.this.durationUs = durationUs;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/349144f65d557203f5bfd702507d8df045383f54", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 6, 7 ] }, { "input": " public Size getVideoSurfaceSize() {\n public Size getSurfaceSize() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/6108c053ce5d0090dbcd8c4ffa27cbbd8b53f8df", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " Size getVideoSurfaceSize();\n Size getSurfaceSize();\n public Size getVideoSurfaceSize() {\n public Size getSurfaceSize() {\n public Size getVideoSurfaceSize() {\n return player.getVideoSurfaceSize();\n public Size getSurfaceSize() {\n return player.getSurfaceSize();\n public final Size getVideoSurfaceSize() {\n public final Size getSurfaceSize() {\n public Size getVideoSurfaceSize() {\n public Size getSurfaceSize() {\n public Size getVideoSurfaceSize() {\n public Size getSurfaceSize() {\n return player.getVideoSurfaceSize();\n return player.getSurfaceSize();\n public Size getVideoSurfaceSize() {\n public Size getSurfaceSize() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/google/ExoPlayer/commit/6108c053ce5d0090dbcd8c4ffa27cbbd8b53f8df", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 5, 6, 7, 8 ] }, { "input": " return player.getVideoSurfaceSize();\n return player.getSurfaceSize();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/google/ExoPlayer/commit/6108c053ce5d0090dbcd8c4ffa27cbbd8b53f8df", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 8 ] }, { "input": " Size getVideoSurfaceSize();\n Size getSurfaceSize();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/google/ExoPlayer/commit/8438daca1f8cbea24aa414ee500044baf1a28367", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 5, 6, 7, 8 ] }, { "input": " protected void releaseOutputBuffer(VideoDecoderOutputBuffer buffer) {\n protected void releaseOutputBuffer(VideoDecoderOutputBuffer outputBuffer) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/14e23d34e17afa076cd912264bb60685961c58e3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " protected void releaseOutputBuffer(VideoDecoderOutputBuffer buffer) {\n protected void releaseOutputBuffer(VideoDecoderOutputBuffer outputBuffer) {\n if (buffer.mode == C.VIDEO_OUTPUT_MODE_SURFACE_YUV && !buffer.isDecodeOnly()) {\n gav1ReleaseFrame(gav1DecoderContext, buffer);\n if (outputBuffer.mode == C.VIDEO_OUTPUT_MODE_SURFACE_YUV && !outputBuffer.isDecodeOnly()) {\n gav1ReleaseFrame(gav1DecoderContext, outputBuffer);\n super.releaseOutputBuffer(buffer);\n super.releaseOutputBuffer(outputBuffer);\n protected void releaseOutputBuffer(VideoDecoderOutputBuffer buffer) {\n protected void releaseOutputBuffer(VideoDecoderOutputBuffer outputBuffer) {\n if (outputMode == C.VIDEO_OUTPUT_MODE_SURFACE_YUV && !buffer.isDecodeOnly()) {\n vpxReleaseFrame(vpxDecContext, buffer);\n if (outputMode == C.VIDEO_OUTPUT_MODE_SURFACE_YUV && !outputBuffer.isDecodeOnly()) {\n vpxReleaseFrame(vpxDecContext, outputBuffer);\n super.releaseOutputBuffer(buffer);\n super.releaseOutputBuffer(outputBuffer);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/cfbcf2c86cc4edc86650533b32e724c79d3227ce", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " * Video colorspaces. One of {@link Format#NO_VALUE}, {@link #COLOR_SPACE_BT709}, {@link\n * #COLOR_SPACE_BT601} or {@link #COLOR_SPACE_BT2020}.\n * Video colorspaces. One of {@link Format#NO_VALUE}, {@link #COLOR_SPACE_BT601}, {@link\n * #COLOR_SPACE_BT709} or {@link #COLOR_SPACE_BT2020}.\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/google/ExoPlayer/commit/810f451ec6ac83311f5ae902aba12428877bd809", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " /** Caused by a GL initialization failure. */\n public static final int ERROR_CODE_GL_INIT_FAILED = 5001;\n /** Caused by a failure while using or releasing a GL program. */\n public static final int ERROR_CODE_GL_PROCESSING_FAILED = 5002;\n /** Caused by a frame processing failure. */\n public static final int ERROR_CODE_FRAME_PROCESSING_FAILED = 5001;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/bac323d346c1d3118a0b904caf9926ecb96b912d", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " @Cue.TextSizeType private int textSizeType;\n private @Cue.TextSizeType int textSizeType;\n @Cue.TextSizeType private int defaultTextSizeType;\n private @Cue.TextSizeType int defaultTextSizeType;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/google/ExoPlayer/commit/e1d3f1b863ed195a2bbf9a40d05da97b193383f5", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": " TextureInfo inputTexture,\n long presentationTimeUs,\n long releaseTimeNs,\n boolean dropLateFrame) {\n TextureInfo inputTexture, long presentationTimeUs, long releaseTimeNs) {\n TextureInfo inputTexture, long presentationTimeUs, long releaseTimeNs, boolean dropLateFrame)\n TextureInfo inputTexture, long presentationTimeUs, long releaseTimeNs)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/efb7bf2fc255db1d60226af888d8a96c0c10d410", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " .isEqualTo(\"Tone-mapping requested but not supported by the decoder\");\n .isEqualTo(\"Tone-mapping requested but not supported by the decoder.\");\n .isEqualTo(\"Tone-mapping requested but not supported by the decoder\");\n .isEqualTo(\"Tone-mapping requested but not supported by the decoder.\");\n .isEqualTo(\"Tone-mapping requested but not supported by the decoder\");\n .isEqualTo(\"Tone-mapping requested but not supported by the decoder.\");\n \"Tone-mapping requested but not supported by the decoder\");\n \"Tone-mapping requested but not supported by the decoder.\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/google/ExoPlayer/commit/09776f3d7287fdebc65574b590f167e73f94dda8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " if (selectedEffects[4]) {\n if (selectedEffects[5]) {\n if (selectedEffects[5]) {\n if (selectedEffects[6]) {\n if (selectedEffects[6]) {\n if (selectedEffects[7]) {\n if (selectedEffects[6]) {\n if (selectedEffects[8]) {\n if (selectedEffects[7]) {\n if (selectedEffects[9]) {\n if (selectedEffects[8]) {\n if (selectedEffects[10]) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/google/ExoPlayer/commit/638d806a49bca6a7be545988cc4cc714c7300b8c", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7, 8, 9, 10 ] }, { "input": " /** Caused by a GL initialization failure. */\n public static final int ERROR_CODE_GL_INIT_FAILED = 5001;\n /** Caused by a failure while using or releasing a GL program. */\n public static final int ERROR_CODE_GL_PROCESSING_FAILED = 5002;\n /** Caused by a frame processing failure. */\n public static final int ERROR_CODE_FRAME_PROCESSING_FAILED = 5001;\n e, TransformationException.ERROR_CODE_GL_INIT_FAILED);\n e, TransformationException.ERROR_CODE_FRAME_PROCESSING_FAILED);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/0f96d8615d28cf50f3efa0c34fb31e01fa0d491c", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " public static EGLSurface getEglSurfaceBt2020(EGLDisplay eglDisplay, Object surface)\n public static EGLSurface getEglSurfaceRgba1010102(EGLDisplay eglDisplay, Object surface)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/5ab53d3dc1f11fc159ec43c40ed906ec3613b172", "target_edit_idx": 2, "propagatable_edit_idx": [ 11, 12 ] }, { "input": " : createPbufferSurface(eglDisplay, /* width= */ 1, /* height= */ 1);\n : createPbufferSurface(\n eglDisplay, /* width= */ 1, /* height= */ 1, EGL_CONFIG_ATTRIBUTES_RGBA_8888);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.11538461538461539, "commit_url": "https://github.com/google/ExoPlayer/commit/5ab53d3dc1f11fc159ec43c40ed906ec3613b172", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " EGLSurface eglSurface = createPbufferSurface(eglDisplay, /* width= */ 1, /* height= */ 1);\n EGLSurface eglSurface =\n createPbufferSurface(\n eglDisplay, /* width= */ 1, /* height= */ 1, EGL_CONFIG_ATTRIBUTES_RGBA_8888);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.11538461538461539, "commit_url": "https://github.com/google/ExoPlayer/commit/5ab53d3dc1f11fc159ec43c40ed906ec3613b172", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " EGLSurface eglSurface = createPbufferSurface(eglDisplay, /* width= */ 1, /* height= */ 1);\n EGLSurface eglSurface =\n createPbufferSurface(\n eglDisplay, /* width= */ 1, /* height= */ 1, EGL_CONFIG_ATTRIBUTES_RGBA_8888);\n private static EGLSurface createPbufferSurface(EGLDisplay eglDisplay, int width, int height)\n throws GlException {\n private static EGLSurface createPbufferSurface(\n EGLDisplay eglDisplay, int width, int height, int[] configAttributes) throws GlException {\n : createPbufferSurface(eglDisplay, /* width= */ 1, /* height= */ 1);\n : createPbufferSurface(\n eglDisplay, /* width= */ 1, /* height= */ 1, EGL_CONFIG_ATTRIBUTES_RGBA_8888);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.11538461538461539, "commit_url": "https://github.com/google/ExoPlayer/commit/065c12caf45b2ae1622f209226cf186c44abec75", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " transformerBuilder.setVideoFrameEffects(effects.build());\n transformerBuilder.setVideoEffects(effects.build());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/9ad2d7123e8bb363eb963ca251ae16ebfe348929", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " videoFrameEffects,\n videoEffects,\n videoFrameEffects,\n videoEffects,\n videoFrameEffects,\n videoEffects,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/google/ExoPlayer/commit/9ad2d7123e8bb363eb963ca251ae16ebfe348929", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 13 ] }, { "input": " ImmutableList videoFrameEffects,\n ImmutableList videoEffects,\n private ImmutableList videoFrameEffects;\n private ImmutableList videoEffects;\n videoFrameEffects = ImmutableList.of();\n videoEffects = ImmutableList.of();\n this.videoFrameEffects = transformer.videoFrameEffects;\n this.videoEffects = transformer.videoEffects;\n private final ImmutableList videoFrameEffects;\n private final ImmutableList videoEffects;\n this.videoFrameEffects = videoFrameEffects;\n this.videoEffects = videoEffects;\n private final ImmutableList videoFrameEffects;\n private final ImmutableList videoEffects;\n ImmutableList videoFrameEffects,\n ImmutableList videoEffects,\n this.videoFrameEffects = videoFrameEffects;\n this.videoEffects = videoEffects;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/9ad2d7123e8bb363eb963ca251ae16ebfe348929", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 2, 3, 6, 8, 10, 11, 12 ] }, { "input": " .addOverride(new TrackSelectionOverride(new TrackGroup(new Format.Builder().build())))\n .addOverride(\n new TrackSelectionOverride(\n new TrackGroup(new Format.Builder().build()), /* trackIndex= */ 0))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3958333333333333, "commit_url": "https://github.com/google/ExoPlayer/commit/6c6e256cfbeeca04d567925338f8742dc8a93df6", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 6, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " final ListBox streamList = new ListBox(128, AviExtractor.STRL, Collections.EMPTY_LIST);\n final ListBox streamList = new ListBox(128, ListBox.TYPE_STRL, Collections.EMPTY_LIST);\n final ListBox streamList = new ListBox(128, AviExtractor.STRL,\n final ListBox streamList = new ListBox(128, ListBox.TYPE_STRL,\n byteBuffer.putInt(AviExtractor.STRL);\n byteBuffer.putInt(ListBox.TYPE_STRL);\n byteBuffer.putInt(0x14, AviExtractor.STRL); //Overwrite header list with stream list\n byteBuffer.putInt(0x14, ListBox.TYPE_STRL); //Overwrite header list with stream list\n AviExtractor.STRL, list);\n ListBox.TYPE_STRL, list);\n AviExtractor.STRL, list);\n ListBox.TYPE_STRL, list);\n final ListBuilder listBuilder = new ListBuilder(AviExtractor.STRL);\n final ListBuilder listBuilder = new ListBuilder(ListBox.TYPE_STRL);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/89d10451ceba15527f09617157b69a6d91e67b61", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7, 8, 9, 10, 11 ] }, { "input": " byteBuffer.putInt(0x14, AviExtractor.STRL); //Overwrite header list with stream list\n byteBuffer.putInt(0x14, ListBox.TYPE_STRL); //Overwrite header list with stream list\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/google/ExoPlayer/commit/89d10451ceba15527f09617157b69a6d91e67b61", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 6, 7, 9, 10, 11 ] }, { "input": " AviExtractor.STRL, list);\n ListBox.TYPE_STRL, list);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/google/ExoPlayer/commit/89d10451ceba15527f09617157b69a6d91e67b61", "target_edit_idx": 10, "propagatable_edit_idx": [ 5, 6, 7, 8, 9, 11 ] }, { "input": " keyFrameOffsetsDiv2.getArray(), seekIndexes, moviOffset);\n keyFrameOffsetsDiv2.getArray(), seekIndexes, seekOffset);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/google/ExoPlayer/commit/9bd93ad98e307a1d8db22e7b0868692059f396ef", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8 ] }, { "input": " : TransformationException.ERROR_CODE_ENCODING_FORMAT_UNSUPPORTED);\n : TransformationException.ERROR_CODE_OUTPUT_FORMAT_UNSUPPORTED);\n .isEqualTo(TransformationException.ERROR_CODE_ENCODING_FORMAT_UNSUPPORTED);\n .isEqualTo(TransformationException.ERROR_CODE_OUTPUT_FORMAT_UNSUPPORTED);\n .isEqualTo(TransformationException.ERROR_CODE_ENCODING_FORMAT_UNSUPPORTED);\n .isEqualTo(TransformationException.ERROR_CODE_OUTPUT_FORMAT_UNSUPPORTED);\n /** Caused by requesting to encode content in a format that is not supported by the device. */\n public static final int ERROR_CODE_ENCODING_FORMAT_UNSUPPORTED = 4003;\n /**\n * Caused by the output format for a track not being supported.\n *\n *

Supported output formats are limited by the muxer's capabilities and the {@link\n * Codec.DecoderFactory encoders} available.\n */\n public static final int ERROR_CODE_OUTPUT_FORMAT_UNSUPPORTED = 4003;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/dbc4dcf0f2ca7ffbd3e6d8f202fb484d2b0ba4ba", "target_edit_idx": 0, "propagatable_edit_idx": [ 11, 10, 3 ] }, { "input": " TransformationException.ERROR_CODE_MUXER_SAMPLE_MIME_TYPE_UNSUPPORTED);\n TransformationException.ERROR_CODE_OUTPUT_FORMAT_UNSUPPORTED);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/google/ExoPlayer/commit/dbc4dcf0f2ca7ffbd3e6d8f202fb484d2b0ba4ba", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 12, 13 ] }, { "input": " .isEqualTo(TransformationException.ERROR_CODE_MUXER_SAMPLE_MIME_TYPE_UNSUPPORTED);\n .isEqualTo(TransformationException.ERROR_CODE_OUTPUT_FORMAT_UNSUPPORTED);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/google/ExoPlayer/commit/dbc4dcf0f2ca7ffbd3e6d8f202fb484d2b0ba4ba", "target_edit_idx": 13, "propagatable_edit_idx": [ 8, 9, 12 ] }, { "input": " * @return A metadata instance containing the processed tags.\n * @return A Metadata instance containing the parsed metadata entries. Null if there are no\n * valid metadata entries that can be parsed.\n * @return A metadata instance containing the processed tags.\n * @return A Metadata instance containing the parsed metadata entries. Null if there are no\n * valid metadata entries that can be parsed.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/google/ExoPlayer/commit/9597ecbb31fd93f6f62ba43cbe177b1bd00af72d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " public int inputBufferCount;\n public int queuedInputBufferCount;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/d0c59eb5f1359e7bd9788d515f835c7231e661a4", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5, 6 ] }, { "input": " decoderCounters.inputBufferCount++;\n decoderCounters.queuedInputBufferCount++;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/google/ExoPlayer/commit/d0c59eb5f1359e7bd9788d515f835c7231e661a4", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3, 5, 6 ] }, { "input": " public static final String MP4_ASSET_URI = \"asset:///media/mp4/sample.mp4\";\n public static final String SEF_ASSET_URI = \"asset:///media/mp4/sample_sef_slow_motion.mp4\";\n public static final String MP4_ASSET_URI_STRING = \"asset:///media/mp4/sample.mp4\";\n public static final String SEF_ASSET_URI_STRING = \"asset:///media/mp4/sample_sef_slow_motion.mp4\";\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/90cb02c942c91283a9019757971205bd0bc8e335", "target_edit_idx": 1, "propagatable_edit_idx": [ 12, 5, 7 ] }, { "input": "import static com.google.android.exoplayer2.transformer.AndroidTestUtil.MP4_ASSET_URI;\nimport static com.google.android.exoplayer2.transformer.AndroidTestUtil.MP4_ASSET_URI_STRING;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/90cb02c942c91283a9019757971205bd0bc8e335", "target_edit_idx": 12, "propagatable_edit_idx": [ 1, 5, 7 ] }, { "input": "import static androidx.media3.transformer.AndroidTestUtil.MP4_ASSET_URI;\nimport static androidx.media3.transformer.AndroidTestUtil.MP4_ASSET_URI_STRING;\n public static final String MP4_ASSET_URI = \"asset:///media/mp4/sample.mp4\";\n public static final String SEF_ASSET_URI = \"asset:///media/mp4/sample_sef_slow_motion.mp4\";\n public static final String MP4_ASSET_URI_STRING = \"asset:///media/mp4/sample.mp4\";\n public static final String SEF_ASSET_URI_STRING = \"asset:///media/mp4/sample_sef_slow_motion.mp4\";\nimport static androidx.media3.transformer.AndroidTestUtil.MP4_ASSET_URI;\nimport static androidx.media3.transformer.AndroidTestUtil.MP4_ASSET_URI_STRING;\nimport static androidx.media3.transformer.AndroidTestUtil.MP4_ASSET_URI;\nimport static androidx.media3.transformer.AndroidTestUtil.MP4_ASSET_URI_STRING;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/d6cddf9ac132ca089dbf5ae0b047b917c8d4b162", "target_edit_idx": 12, "propagatable_edit_idx": [ 1, 5, 7 ] }, { "input": " decoderInputBuffer.timeUs -= streamOffsetUs;\n decoderInputBuffer.timeUs -= streamOffsetUs;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/5a98c823fcf46699dd9757bdc4ac0f0d28a321d2", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " * ExoPlayer library, and will be inflated for use by PlayerControlView. The view identifies and\n * binds its children by looking for the following ids:\n * library, and will be inflated for use by PlayerControlView. The view identifies and binds its\n * children by looking for the following ids:\n * ExoPlayer library, and will be inflated for use by StyledPlayerView. The view identifies and\n * binds its children by looking for the following ids:\n * library, and will be inflated for use by StyledPlayerView. The view identifies and binds its\n * children by looking for the following ids:\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/google/ExoPlayer/commit/d45cf6028d908c991c9fa505cee18b6c6f841373", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": "import com.google.android.exoplayer2.ExoPlayer;\nimport com.google.android.exoplayer2.ExoPlayer;\n", "class": "clone", "binary_label": 1, "regression_label": 0.03125, "commit_url": "https://github.com/google/ExoPlayer/commit/d45cf6028d908c991c9fa505cee18b6c6f841373", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": " * {@link ExoPlayer.Builder#setSeekBackIncrementMs(long)}).\n * {@code ExoPlayer.Builder.setSeekBackIncrementMs(long)}).\n * {@link ExoPlayer.Builder#setSeekBackIncrementMs(long)}).\n * {@code ExoPlayer.Builder.setSeekBackIncrementMs(long)}).\n * {@link ExoPlayer.Builder#setSeekBackIncrementMs(long)}).\n * {@code ExoPlayer.Builder.setSeekBackIncrementMs(long)}).\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/google/ExoPlayer/commit/d45cf6028d908c991c9fa505cee18b6c6f841373", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 6 ] }, { "input": " FakePlayer player = new FakePlayer();\n FakePlayer player = new FakePlayer(ApplicationProvider.getApplicationContext());\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/google/ExoPlayer/commit/e5e8d9dc176f379fad7c32515b4ae8e3e187530d", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 4, 6, 7, 8 ] }, { "input": " * Parses a SPS NAL unit payload using the syntax defined in ITU-T Recommendation H.264 (2013)\n * Parses a SPS NAL unit using the syntax defined in ITU-T Recommendation H.264 (2013) subsection\n * 7.3.2.1.1.\n *\n * @param nalData A buffer containing escaped SPS data.\n * @param nalOffset The offset of the NAL unit header in {@code nalData}.\n * @param nalLimit The limit of the NAL unit in {@code nalData}.\n * @return A parsed representation of the SPS data.\n */\n public static SpsData parseSpsNalUnit(byte[] nalData, int nalOffset, int nalLimit) {\n return parseSpsNalUnitPayload(nalData, nalOffset + 1, nalLimit);\n }\n\n /**\n * Parses a SPS NAL unit payload (excluding the NAL unit header) using the syntax defined in ITU-T Recommendation H.264 (2013)\n * Parses a H.265 SPS NAL unit payload using the syntax defined in ITU-T Recommendation H.265 (2019)\n * Parses a H.265 SPS NAL unit using the syntax defined in ITU-T Recommendation H.265 (2019)\n * Parses a PPS NAL unit payload using the syntax defined in ITU-T Recommendation H.264 (2013)\n * Parses a PPS NAL unit using the syntax defined in ITU-T Recommendation H.264 (2013) subsection\n * 7.3.2.2.\n *\n * @param nalData A buffer containing escaped PPS data.\n * @param nalOffset The offset of the NAL unit header in {@code nalData}.\n * @param nalLimit The limit of the NAL unit in {@code nalData}.\n * @return A parsed representation of the PPS data.\n */\n public static PpsData parsePpsNalUnit(byte[] nalData, int nalOffset, int nalLimit) {\n return parsePpsNalUnitPayload(nalData, nalOffset + 1, nalLimit);\n }\n\n /**\n * Parses a PPS NAL unit payload (excluding the NAL unit header) using the syntax defined in ITU-T Recommendation H.264 (2013)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/google/ExoPlayer/commit/dbc708871670dccbf1face1de3c512dda90cbd08", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " * @param nalOffset The offset of the NAL unit in {@code nalData}.\n * @param nalOffset The offset of the NAL unit payload in {@code nalData}.\n * @param nalOffset The offset of the NAL unit in {@code nalData}.\n * @param nalOffset The offset of the NAL unit header in {@code nalData}.\n * @param nalLimit The limit of the NAL unit in {@code nalData}.\n * @return A parsed representation of the SPS data.\n */\n public static H265SpsData parseH265SpsNalUnit(byte[] nalData, int nalOffset, int nalLimit) {\n return parseH265SpsNalUnitPayload(nalData, nalOffset + 1, nalLimit);\n }\n\n /**\n * Parses a H.265 SPS NAL unit payload (excluding the NAL unit header) using the syntax defined in ITU-T Recommendation H.265 (2019)\n * subsection 7.3.2.2.1.\n *\n * @param nalData A buffer containing escaped SPS data.\n * @param nalOffset The offset of the NAL unit payload in {@code nalData}.\n * @param nalOffset The offset of the NAL unit in {@code nalData}.\n * @param nalOffset The offset of the NAL unit payload in {@code nalData}.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/google/ExoPlayer/commit/dbc708871670dccbf1face1de3c512dda90cbd08", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " NalUnitUtil.SpsData spsData = NalUnitUtil.parseSpsNalUnitPayload(sps.nalData, 4, sps.nalLength);\n NalUnitUtil.SpsData spsData = NalUnitUtil.parseSpsNalUnit(sps.nalData, 3, sps.nalLength);\n NalUnitUtil.PpsData ppsData = NalUnitUtil.parsePpsNalUnitPayload(pps.nalData, 4, pps.nalLength);\n NalUnitUtil.PpsData ppsData = NalUnitUtil.parsePpsNalUnit(pps.nalData, 3, pps.nalLength);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/dbc708871670dccbf1face1de3c512dda90cbd08", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " private float audioVolume;\n private float volume;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/google/ExoPlayer/commit/0c4bb23dd33cb4e2bc671a5d011fb9aa8715f5b6", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " this.audioVolume = audioVolume;\n this.volume = volume;\n public void setVolume(float audioVolume) {}\n public void setVolume(float volume) {}\n public void setVolume(float audioVolume) {\n player.setVolume(audioVolume);\n public void setVolume(float volume) {\n player.setVolume(volume);\n * @param audioVolume Linear output gain to apply to all audio channels.\n * @param volume Linear output gain to apply to all audio channels.\n void setVolume(@FloatRange(from = 0) float audioVolume);\n void setVolume(@FloatRange(from = 0) float volume);\n public void setVolume(float audioVolume) {}\n public void setVolume(float volume) {}\n private float audioVolume;\n private float volume;\n audioVolume = 1;\n volume = 1;\n public void setVolume(float audioVolume) {\n public void setVolume(float volume) {\n audioVolume = Util.constrainValue(audioVolume, /* min= */ 0, /* max= */ 1);\n if (this.audioVolume == audioVolume) {\n volume = Util.constrainValue(volume, /* min= */ 0, /* max= */ 1);\n if (this.volume == volume) {\n analyticsCollector.onVolumeChanged(audioVolume);\n analyticsCollector.onVolumeChanged(volume);\n listener.onVolumeChanged(audioVolume);\n listener.onVolumeChanged(volume);\n return audioVolume;\n return volume;\n float scaledVolume = audioVolume * audioFocusManager.getVolumeMultiplier();\n float scaledVolume = volume * audioFocusManager.getVolumeMultiplier();\n public void setVolume(float audioVolume) {\n public void setVolume(float volume) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4166666666666667, "commit_url": "https://github.com/google/ExoPlayer/commit/0c4bb23dd33cb4e2bc671a5d011fb9aa8715f5b6", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14 ] }, { "input": " Api29.getDirectPlaybackSupportedEncodingsV29(), DEFAULT_MAX_CHANNEL_COUNT);\n Api29.getDirectPlaybackSupportedEncodings(), DEFAULT_MAX_CHANNEL_COUNT);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/6157c615b21247658e48b322e63008180f587579", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " } else if (Util.SDK_INT >= 18\n && PlatformOperationsWrapperV18.isNotProvisionedException(exception)) {\n } else if (Util.SDK_INT >= 18 && Api18.isNotProvisionedException(exception)) {\n } else if (Util.SDK_INT >= 18\n && PlatformOperationsWrapperV18.isDeniedByServerException(exception)) {\n } else if (Util.SDK_INT >= 18 && Api18.isDeniedByServerException(exception)) {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/google/ExoPlayer/commit/6157c615b21247658e48b322e63008180f587579", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " SurfaceApi30.setFrameRate(surface, surfacePlaybackFrameRate);\n Api30.setSurfaceFrameRate(surface, surfacePlaybackFrameRate);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/google/ExoPlayer/commit/6157c615b21247658e48b322e63008180f587579", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 12, 13 ] }, { "input": " public static void setFrameRate(Surface surface, float frameRate) {\n public static void setSurfaceFrameRate(Surface surface, float frameRate) {\n SurfaceApi30.setFrameRate(surface, surfacePlaybackFrameRate);\n Api30.setSurfaceFrameRate(surface, surfacePlaybackFrameRate);\n SurfaceApi30.setFrameRate(surface, /* frameRate= */ 0);\n Api30.setSurfaceFrameRate(surface, /* frameRate= */ 0);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/google/ExoPlayer/commit/6157c615b21247658e48b322e63008180f587579", "target_edit_idx": 13, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " InvalidResponseCodeException exception =\n new InvalidResponseCodeException(\n responseCode,\n responseInfo.getHttpStatusText(),\n responseHeaders,\n dataSpec,\n responseBody);\n if (responseCode == 416) {\n exception.initCause(\n new DataSourceException(PlaybackException.ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE));\n }\n throw exception;\n @Nullable\n IOException cause =\n responseCode == 416\n ? new DataSourceException(PlaybackException.ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE)\n : null;\n throw new InvalidResponseCodeException(\n responseCode,\n responseInfo.getHttpStatusText(),\n cause,\n responseHeaders,\n dataSpec,\n responseBody);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/google/ExoPlayer/commit/d4975415f98047e475200618619d12b908a03a31", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " InvalidResponseCodeException exception =\n new InvalidResponseCodeException(\n responseCode, responseMessage, headers, dataSpec, errorResponseBody);\n if (responseCode == 416) {\n exception.initCause(\n new DataSourceException(PlaybackException.ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE));\n }\n throw exception;\n @Nullable\n IOException cause =\n responseCode == 416\n ? new DataSourceException(PlaybackException.ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE)\n : null;\n throw new InvalidResponseCodeException(\n responseCode, responseMessage, cause, headers, dataSpec, errorResponseBody);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/google/ExoPlayer/commit/d4975415f98047e475200618619d12b908a03a31", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " * @deprecated Use {@link #InvalidResponseCodeException(int, String, Map, DataSpec, byte[])}.\n * @deprecated Use {@link #InvalidResponseCodeException(int, String, IOException, Map, DataSpec,\n * byte[])}.\n * @deprecated Use {@link #InvalidResponseCodeException(int, String, Map, DataSpec, byte[])}.\n * @deprecated Use {@link #InvalidResponseCodeException(int, String, IOException, Map, DataSpec,\n * byte[])}.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/google/ExoPlayer/commit/d4975415f98047e475200618619d12b908a03a31", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " throw ExoPlaybackException.createForSource(new IOException());\n throw ExoPlaybackException.createForSource(\n new IOException(), PlaybackException.ERROR_CODE_IO_UNSPECIFIED);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/google/ExoPlayer/commit/72b416c6173992c498e4b571536b26d8b0f72289", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " .throwPlaybackException(ExoPlaybackException.createForSource(new IOException()))\n .throwPlaybackException(\n ExoPlaybackException.createForSource(\n new IOException(), PlaybackException.ERROR_CODE_IO_UNSPECIFIED))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/google/ExoPlayer/commit/72b416c6173992c498e4b571536b26d8b0f72289", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4, 6, 7, 8, 9, 10, 11 ] }, { "input": " .throwPlaybackException(ExoPlaybackException.createForSource(new IOException()))\n .throwPlaybackException(\n ExoPlaybackException.createForSource(\n new IOException(), PlaybackException.ERROR_CODE_IO_UNSPECIFIED))\n ExoPlaybackException anException = ExoPlaybackException.createForSource(new IOException());\n ExoPlaybackException anException =\n ExoPlaybackException.createForSource(\n new IOException(), PlaybackException.ERROR_CODE_IO_UNSPECIFIED);\n .throwPlaybackException(ExoPlaybackException.createForSource(new IOException()))\n .throwPlaybackException(\n ExoPlaybackException.createForSource(\n new IOException(), PlaybackException.ERROR_CODE_IO_UNSPECIFIED))\n throw ExoPlaybackException.createForSource(new IOException());\n throw ExoPlaybackException.createForSource(\n new IOException(), PlaybackException.ERROR_CODE_IO_UNSPECIFIED);\n .throwPlaybackException(ExoPlaybackException.createForSource(new IOException()))\n .throwPlaybackException(\n ExoPlaybackException.createForSource(\n new IOException(), PlaybackException.ERROR_CODE_IO_UNSPECIFIED))\n .throwPlaybackException(ExoPlaybackException.createForSource(new IOException()))\n .throwPlaybackException(\n ExoPlaybackException.createForSource(\n new IOException(), PlaybackException.ERROR_CODE_IO_UNSPECIFIED))\n .throwPlaybackException(ExoPlaybackException.createForSource(new IOException()))\n .throwPlaybackException(\n ExoPlaybackException.createForSource(\n new IOException(), PlaybackException.ERROR_CODE_IO_UNSPECIFIED))\n .throwPlaybackException(ExoPlaybackException.createForSource(new IOException()))\n .throwPlaybackException(\n ExoPlaybackException.createForSource(\n new IOException(), PlaybackException.ERROR_CODE_IO_UNSPECIFIED))\n .throwPlaybackException(ExoPlaybackException.createForSource(new IOException()))\n .throwPlaybackException(\n ExoPlaybackException.createForSource(\n new IOException(), PlaybackException.ERROR_CODE_IO_UNSPECIFIED))\n analyticsCollector.onPlayerError(ExoPlaybackException.createForSource(new IOException()));\n analyticsCollector.onPlayerError(\n ExoPlaybackException.createForSource(\n new IOException(), PlaybackException.ERROR_CODE_IO_UNSPECIFIED));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/google/ExoPlayer/commit/72b416c6173992c498e4b571536b26d8b0f72289", "target_edit_idx": 10, "propagatable_edit_idx": [ 1, 3, 4, 5, 6, 7, 8, 9, 11 ] }, { "input": " new IllegalStateException(), ExoPlayerTestRunner.AUDIO_FORMAT);\n new IllegalStateException(),\n ExoPlayerTestRunner.AUDIO_FORMAT,\n PlaybackException.ERROR_CODE_UNSPECIFIED);\n new IllegalStateException(), ExoPlayerTestRunner.AUDIO_FORMAT);\n new IllegalStateException(),\n ExoPlayerTestRunner.AUDIO_FORMAT,\n PlaybackException.ERROR_CODE_UNSPECIFIED);\n new IllegalStateException(), ExoPlayerTestRunner.AUDIO_FORMAT);\n new IllegalStateException(),\n ExoPlayerTestRunner.AUDIO_FORMAT,\n PlaybackException.ERROR_CODE_UNSPECIFIED);\n new IllegalStateException(), ExoPlayerTestRunner.AUDIO_FORMAT);\n new IllegalStateException(),\n ExoPlayerTestRunner.AUDIO_FORMAT,\n PlaybackException.ERROR_CODE_UNSPECIFIED);\n new IllegalStateException(), ExoPlayerTestRunner.AUDIO_FORMAT);\n new IllegalStateException(),\n ExoPlayerTestRunner.AUDIO_FORMAT,\n PlaybackException.ERROR_CODE_UNSPECIFIED);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/5bb2d0386febf20e4389cb09aa7ffb80c36f62c9", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10, 11 ] }, { "input": " ServiceStateListener listener = new ServiceStateListener();\n telephonyManager.listen(listener, PhoneStateListener.LISTEN_SERVICE_STATE);\n TelephonyManagerListener listener = new TelephonyManagerListener();\n if (Util.SDK_INT < 31) {\n telephonyManager.listen(listener, PhoneStateListener.LISTEN_SERVICE_STATE);\n } else {\n // Display info information can only be requested without permission from API 31.\n telephonyManager.listen(listener, PhoneStateListener.LISTEN_DISPLAY_INFO_CHANGED);\n }\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/e42004652a9011fd7b7d94a0a609bf910b70e6af", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " ? Util.scaleLargeTimestamp(playoutDuration, inputBytes, outputBytes)\n ? Util.scaleLargeTimestamp(playoutDuration, processedInputBytes, outputBytes)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/google/ExoPlayer/commit/0e4d3162eb1ab75342bdb4fbdaf8b1dd60d173da", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " if (variantsContainAudioCodecs\n if (numberOfAudioCodecs > 0\n } else if (variantsContainAudioCodecs) {\n } else /* numberOfAudioCodecs > 0 */ {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/da663aa0812f346d68b172ba6f7c59caa00b3523", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " boolean renditionsHaveCodecs = true;\n boolean codecStringsAllowChunklessPreparation = true;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/da663aa0812f346d68b172ba6f7c59caa00b3523", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " ByteBuffer buffer,\n @Nullable ByteBuffer buffer,\n ByteBuffer buffer,\n @Nullable ByteBuffer buffer,\n ByteBuffer buffer,\n @Nullable ByteBuffer buffer,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/google/ExoPlayer/commit/2cf9d9b0c07644622c56099877d41d03cb87d5a0", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 9 ] }, { "input": "import com.google.android.exoplayer2.extractor.SeekMap;\nimport com.google.android.exoplayer2.extractor.SeekMap;\n", "class": "clone", "binary_label": 1, "regression_label": 0.045454545454545456, "commit_url": "https://github.com/google/ExoPlayer/commit/c37af0b5433853edb8d4972a6e83ee0c76f4144e", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " private TrackOutput[] cea608TrackOutputs;\n private TrackOutput[] ceaTrackOutputs;\n if (cea608TrackOutputs == null) {\n cea608TrackOutputs = new TrackOutput[closedCaptionFormats.size()];\n for (int i = 0; i < cea608TrackOutputs.length; i++) {\n if (ceaTrackOutputs == null) {\n ceaTrackOutputs = new TrackOutput[closedCaptionFormats.size()];\n for (int i = 0; i < ceaTrackOutputs.length; i++) {\n cea608TrackOutputs[i] = output;\n ceaTrackOutputs[i] = output;\n CeaUtil.consume(sampleTimeUs, nalBuffer, cea608TrackOutputs);\n CeaUtil.consume(sampleTimeUs, nalBuffer, ceaTrackOutputs);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/0de9c007afcbc0fb6c753794afc902eb4aaa47b4", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": " queue.clear(/* keepFrontPeriodUid= */ !clearPlaylist);\n queue.clear();\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/23f316d67e2cb2f89ed2fb6a05264c6573436384", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " /**\n * Clears the queue.\n *\n * @param keepFrontPeriodUid Whether the queue should keep the id of the media period in the front\n * of queue (typically the playing one) for later reuse.\n */\n public void clear(boolean keepFrontPeriodUid) {\n /** Clears the queue. */\n public void clear() {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/google/ExoPlayer/commit/23f316d67e2cb2f89ed2fb6a05264c6573436384", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " * @param disableLoopFilter Disable the libvpx in-loop smoothing filter.\n * @param disableLoopFilter Disable the libvpx in-loop smoothing filter.\n * @param disableLoopFilter Disable the libvpx in-loop smoothing filter.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/8c848a2a53cf955d813df827ee6512501c127886", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 5 ] }, { "input": " disableLoopFilter,\n disableLoopFilter,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/8c848a2a53cf955d813df827ee6512501c127886", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " boolean disableLoopFilter,\n boolean disableLoopFilter,\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/google/ExoPlayer/commit/8c848a2a53cf955d813df827ee6512501c127886", "target_edit_idx": 6, "propagatable_edit_idx": [ 10 ] }, { "input": " * for reading data from the cache. If null then a {@link FileDataSourceFactory} will be used.\n * for reading data from the cache. If null then a {@link FileDataSource.Factory} will be\n * used.\n * for reading data from the cache. If null then a {@link FileDataSourceFactory} will be used.\n * for reading data from the cache. If null then a {@link FileDataSource.Factory} will be\n * used.\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/google/ExoPlayer/commit/8dcd1e53bcc9248b1d1fa05ac91896a738cfdb55", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " updateLastReportedPlayingMediaPeriod();\n lastReportedPlayingMediaPeriod = lastPlayingMediaPeriod;\n updateLastReportedPlayingMediaPeriod();\n lastReportedPlayingMediaPeriod = lastPlayingMediaPeriod;\n updateLastReportedPlayingMediaPeriod();\n lastReportedPlayingMediaPeriod = lastPlayingMediaPeriod;\n updateLastReportedPlayingMediaPeriod();\n lastReportedPlayingMediaPeriod = lastPlayingMediaPeriod;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/google/ExoPlayer/commit/074307dd4c4a591dd851afe3a7ce315505585ffc", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 7 ] }, { "input": " onInputFormatChanged(formatHolder.format);\n onInputFormatChanged(formatHolder);\n onInputFormatChanged(formatHolder.format);\n onInputFormatChanged(formatHolder);\n onInputFormatChanged(formatHolder.format);\n onInputFormatChanged(formatHolder);\n onInputFormatChanged(formatHolder.format);\n onInputFormatChanged(formatHolder);\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/google/ExoPlayer/commit/6796b179a6a0be7e85a9237bed7806e6d059b489", "target_edit_idx": 0, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": " protected void onInputFormatChanged(Format newFormat) throws ExoPlaybackException {\n protected void onInputFormatChanged(FormatHolder formatHolder) throws ExoPlaybackException {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/google/ExoPlayer/commit/6796b179a6a0be7e85a9237bed7806e6d059b489", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": " byte[] sessionId,\n @Nullable byte[] sessionId,\n byte[] sessionId,\n @Nullable byte[] sessionId,\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/google/ExoPlayer/commit/18f1b06a688dbfe6980f49b8358af7458f0d8b47", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " // FIXME: incompatible types in argument.\n @SuppressWarnings(\"nullness:argument.type.incompatible\")\n // FIXME: incompatible types in return.\n @SuppressWarnings(\"nullness:return.type.incompatible\")\n @Nullable\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/google/ExoPlayer/commit/18f1b06a688dbfe6980f49b8358af7458f0d8b47", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " .containsAllOf(\n .containsAtLeast(\n .containsAllOf(\n .containsAtLeast(\n .containsAllOf(\n .containsAtLeast(\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/d60b6d64abc6ae6a0900c1cdd1f98920f2a25cb6", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " return new ExoPlaybackException(TYPE_UNEXPECTED, cause, C.INDEX_UNSET);\n return new ExoPlaybackException(TYPE_UNEXPECTED, cause, /* rendererIndex= */ C.INDEX_UNSET);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/google/ExoPlayer/commit/2b67f2a6268daf1d05904db0be11c898f511e695", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " public ParametersBuilder setPreferredAudioLanguage(String preferredAudioLanguage) {\n public ParametersBuilder setPreferredAudioLanguage(@Nullable String preferredAudioLanguage) {\n public Builder setPreferredAudioLanguage(String preferredAudioLanguage) {\n public Builder setPreferredAudioLanguage(@Nullable String preferredAudioLanguage) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/google/ExoPlayer/commit/503c17d2ed9003562f0dd73716b7aace8970e0a5", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " public ParametersBuilder setPreferredTextLanguage(String preferredTextLanguage) {\n public ParametersBuilder setPreferredTextLanguage(@Nullable String preferredTextLanguage) {\n public Builder setPreferredTextLanguage(String preferredTextLanguage) {\n public Builder setPreferredTextLanguage(@Nullable String preferredTextLanguage) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/google/ExoPlayer/commit/503c17d2ed9003562f0dd73716b7aace8970e0a5", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " void onKeysLoaded();\n void onDrmKeysLoaded();\n eventListener.onKeysLoaded();\n eventListener.onDrmKeysLoaded();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/e652019bb3eb2041218ecf928c10b3166f728f78", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " private final MediaFormat mediaFormat;\n private final MediaFormat trackFormat;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/4b2991267e4fbea4b2230cd582f8af2b5047689b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " public static boolean parseOptionalBoolAttr(String line, Pattern pattern) {\n public static boolean parseOptionalBooleanAttr(String line, Pattern pattern) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/5a5935cb72857580803573f0d44703516d332558", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " Pattern.compile(AUTOSELECT_ATTR + \"=\\\"(.+?)\\\"\");\n HlsParserUtil.compileBooleanAttrPattern(AUTOSELECT_ATTR);\n Pattern.compile(DEFAULT_ATTR + \"=\\\"(.+?)\\\"\");\n HlsParserUtil.compileBooleanAttrPattern(DEFAULT_ATTR);\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/google/ExoPlayer/commit/5a5935cb72857580803573f0d44703516d332558", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " int unsupportedTagDepth = 0;\n int unsupportedNodeDepth = 0;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/google/ExoPlayer/commit/3b4409ae0b1627d2dd238d15e2723c029b1ee181", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 10, 6 ] }, { "input": "import java.util.Collections;\nimport java.util.Collections;\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/keycloak/keycloak/commit/dc9970f578144557d75e6e1e21f57dcdf6c70f38", "target_edit_idx": 2, "propagatable_edit_idx": [ 10 ] }, { "input": " session.getProvider(MapJpaUpdaterProvider.class).update(modelType, connection, config.get(\"schema\"));\n session.getProvider(MapJpaUpdaterProvider.class).update(modelType, connection, getSchema());\n lockedSession.getProvider(MapJpaUpdaterProvider.class).update(modelType, connection, config.get(\"schema\"));\n lockedSession.getProvider(MapJpaUpdaterProvider.class).update(modelType, connection, getSchema());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/keycloak/keycloak/commit/dc9970f578144557d75e6e1e21f57dcdf6c70f38", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "import org.keycloak.common.Profile;\nimport org.keycloak.common.Profile;\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/keycloak/keycloak/commit/4a8510f7d9ac36dd4a63971208221d63609dae99", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": "import org.keycloak.testsuite.arquillian.annotation.DisableFeature;\nimport org.keycloak.testsuite.arquillian.annotation.DisableFeature;\nimport org.keycloak.testsuite.arquillian.annotation.DisableFeature;\nimport org.keycloak.testsuite.arquillian.annotation.DisableFeature;\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/keycloak/keycloak/commit/4a8510f7d9ac36dd4a63971208221d63609dae99", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 3, 5 ] }, { "input": "@DisableFeature(value = Profile.Feature.ACCOUNT2, skipRestart = true) // TODO remove this (KEYCLOAK-16228)\n @DisableFeature(value = Profile.Feature.ACCOUNT2, skipRestart = true) // TODO remove this (KEYCLOAK-16228)\n@DisableFeature(value = Profile.Feature.ACCOUNT2, skipRestart = true) // TODO remove this (KEYCLOAK-16228)\n @DisableFeature(value = Profile.Feature.ACCOUNT2, skipRestart = true) // TODO remove this (KEYCLOAK-16228)\n @DisableFeature(value = Profile.Feature.ACCOUNT2, skipRestart = true) // TODO remove this (KEYCLOAK-16228)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/keycloak/keycloak/commit/4a8510f7d9ac36dd4a63971208221d63609dae99", "target_edit_idx": 2, "propagatable_edit_idx": [ 10, 4, 6, 7 ] }, { "input": " ResteasyProviderFactory.getInstance().injectProperties(resource);\n\n ResteasyProviderFactory.getInstance().injectProperties(resource);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keycloak/keycloak/commit/9e042b06b455ac2e5ef4081f8550efff85ecbf92", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " private Stream loadUserSessionsWithClientSessions(TypedQuery query, String offlineStr) {\n /**\n *\n * @param query\n * @param offlineStr\n * @param useExact If {@code true}, then only client sessions from the user sessions\n * obtained from the {@code query} are loaded. If {@code false}, then IDs of user sessions\n * returned by the query is taken as limits, and all client sessions are loaded that belong\n * to user sessions whose ID is in between the minimum and maximum ID from this result.\n * @return\n */\n private Stream loadUserSessionsWithClientSessions(TypedQuery query, String offlineStr, boolean useExact) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/keycloak/keycloak/commit/556146f961f7c8ddf64de15e2117a58d045f72b5", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " result.entrySet().forEach(t -> t.setValue(trimToMaxLength(t.getValue())));\n result.entrySet().forEach(t -> t.setValue(trimToMaxDetailLength(t.getValue())));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keycloak/keycloak/commit/791c457c32da32884ce723ed36a980f67bdfd4c1", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\n Assert.assertTrue(Profile.Feature.WEB_AUTHN.hasDifferentProductType());\n Assert.assertEquals(Profile.Feature.WEB_AUTHN.getTypeProject(), Profile.Type.DEFAULT);\n Assert.assertTrue(Profile.Feature.WEB_AUTHN.hasDifferentProductType());\n Assert.assertEquals(Profile.Feature.WEB_AUTHN.getTypeProduct(), Profile.Type.PREVIEW);\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/keycloak/keycloak/commit/8ee7ae24deaad3dbcf20859b69fa7c4709d65515", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "@EnableFeature(value = Profile.Feature.WEB_AUTHN, skipRestart = true, onlyForProduct = true)\n @EnableFeature(value = Profile.Feature.WEB_AUTHN, skipRestart = true, onlyForProduct = true)\n@EnableFeature(value = Profile.Feature.WEB_AUTHN, skipRestart = true, onlyForProduct = true)\n@EnableFeature(value = Profile.Feature.WEB_AUTHN, skipRestart = true, onlyForProduct = true)\n@EnableFeature(value = Profile.Feature.WEB_AUTHN, skipRestart = true, onlyForProduct = true)\n @EnableFeature(value = Profile.Feature.WEB_AUTHN, skipRestart = true, onlyForProduct = true)\n@EnableFeature(value = Profile.Feature.WEB_AUTHN, skipRestart = true, onlyForProduct = true)\n@EnableFeature(value = WEB_AUTHN, skipRestart = true, onlyForProduct = true)\n@EnableFeature(value = Profile.Feature.WEB_AUTHN, skipRestart = true, onlyForProduct = true)\n@EnableFeature(value = Profile.Feature.WEB_AUTHN, skipRestart = true, onlyForProduct = true)\n", "class": "clone", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/keycloak/keycloak/commit/8ee7ae24deaad3dbcf20859b69fa7c4709d65515", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7, 8, 9, 10, 12, 13, 14 ] }, { "input": "public class JpaClientAttributeEntity implements JpaChildEntity, Serializable {\npublic class JpaClientAttributeEntity implements JpaChildEntity {\npublic class JpaRoleAttributeEntity implements JpaChildEntity, Serializable {\npublic class JpaRoleAttributeEntity implements JpaChildEntity {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/keycloak/keycloak/commit/165791b1d7554b83fbb41fc62fb829930cec83ce", "target_edit_idx": 3, "propagatable_edit_idx": [ 13 ] }, { "input": " attr.setClientScope(null);\n attr.setClientScope(null);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keycloak/keycloak/commit/165791b1d7554b83fbb41fc62fb829930cec83ce", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " StaxUtil.writeDOMElement(writer, extensions.getElement());\n write(extensions);\n StaxUtil.writeDOMElement(writer, extensions.getElement());\n write(extensions);\n StaxUtil.writeDOMElement(writer, extensions.getElement());\n write(extensions);\n StaxUtil.writeDOMElement(writer, extensions.getElement());\n write(extensions);\n StaxUtil.writeDOMElement(writer, extensions.getElement());\n write(extensions);\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/keycloak/keycloak/commit/dc359e56d4801cf714a3845113dd357a38f6e9b3", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 6 ] }, { "input": " public String getTokenIntrospectionEndpoint() {\n return tokenIntrospectionEndpoint;\n public String getIntrospectionEndpoint() {\n return introspectionEndpoint;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keycloak/keycloak/commit/4cd5ace80070c970b859fd15cb4ba80cafddf1a5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 7, 9, 10 ] }, { "input": " final ArrayList strings = new ArrayList();\n final ArrayList strings = new ArrayList<>();\n final ArrayList strings = new ArrayList();\n final ArrayList strings = new ArrayList<>();\n final ArrayList strings = new ArrayList();\n final ArrayList strings = new ArrayList<>();\n final ArrayList strings = new ArrayList();\n final ArrayList strings = new ArrayList<>();\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/keycloak/keycloak/commit/5a41e5f8f15d22d956484136050d601a44b2efd3", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " public void testGenerateThumbprintBytesSha1() throws IOException, NoSuchAlgorithmException {\n public void testGenerateThumbprintBytesSha1() throws NoSuchAlgorithmException {\n public void testGenerateThumbprintBytesSha256() throws IOException, NoSuchAlgorithmException {\n public void testGenerateThumbprintBytesSha256() throws NoSuchAlgorithmException {\n public void testGenerateThumbprintSha1() throws IOException, NoSuchAlgorithmException {\n public void testGenerateThumbprintSha1() throws NoSuchAlgorithmException {\n public void testGenerateThumbprintSha256() throws IOException, NoSuchAlgorithmException {\n public void testGenerateThumbprintSha256() throws NoSuchAlgorithmException {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/keycloak/keycloak/commit/5a41e5f8f15d22d956484136050d601a44b2efd3", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11, 12 ] }, { "input": " driver.navigate().to(proxiedUrl);\n assertCurrentUrlStartsWith(loginPage);\n Retry.execute(() -> {\n driver.navigate().to(proxiedUrl);\n assertCurrentUrlStartsWith(loginPage);\n }, 10, 300);\n driver.navigate().to(proxiedUrl);\n assertCurrentUrlStartsWith(loginPage);\n Retry.execute(() -> {\n driver.navigate().to(proxiedUrl);\n assertCurrentUrlStartsWith(loginPage);\n }, 10, 300);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/keycloak/keycloak/commit/a63efd872d9dbcf23e7be39c66bcf404bc525f0e", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " navigateToUri(getPublicServerUrl().toString(), true);\n navigateToUri(getPublicServerUrl().toString());\n navigateToUri(getPublicServerUrl().toString(), true);\n navigateToUri(getPublicServerUrl().toString());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/keycloak/keycloak/commit/2efc7ebb48ba324d12f1253c7ec9027d7fdc220b", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " Cache> localClientSessionCache = CacheDecorators.localCache(clientSessionCache);\n\n Cache> localCacheStoreIgnoreClientSessionCache = CacheDecorators.localCache(localClientSessionCache);\n Cache> localClientSessionCache = CacheDecorators.localCache(offlineClientSessionCache);\n Cache> localClientSessionCacheStoreIgnore = CacheDecorators.skipCacheLoaders(localClientSessionCache);\n Cache> localCacheStoreIgnoreClientSessionCache = CacheDecorators.localCache(localClientSessionCache);\n Cache> localClientSessionCache = CacheDecorators.localCache(clientSessionCache);\n Cache> localClientSessionCacheStoreIgnore = CacheDecorators.skipCacheLoaders(localClientSessionCache);\n Cache> localClientSessionCache = CacheDecorators.localCache(offlineClientSessionCache);\n", "class": "clone", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/keycloak/keycloak/commit/c64ecb1ab84e66fcb486423c1978d3b83852e8d2", "target_edit_idx": 1, "propagatable_edit_idx": [ 11, 4, 7 ] }, { "input": " localCacheStoreIgnoreClientSessionCache\n localClientSessionCacheStoreIgnore\n localCacheStoreIgnoreClientSessionCache\n localClientSessionCacheStoreIgnore\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keycloak/keycloak/commit/c64ecb1ab84e66fcb486423c1978d3b83852e8d2", "target_edit_idx": 5, "propagatable_edit_idx": [ 12 ] }, { "input": " Future future = localClientSessionCache.removeAsync(clientSessionEntity.getId());\n Future future = offlineClientSessionCache.removeAsync(clientSessionEntity.getId());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/keycloak/keycloak/commit/c64ecb1ab84e66fcb486423c1978d3b83852e8d2", "target_edit_idx": 13, "propagatable_edit_idx": [ 9 ] }, { "input": " return exportRealm(session, realm, opts);\n return exportRealm(session, realm, opts, internal);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2222222222222222, "commit_url": "https://github.com/keycloak/keycloak/commit/27b5e1aae2a895e28ac79aeb4da028e33769d069", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6 ] }, { "input": " public static RealmRepresentation exportRealm(KeycloakSession session, RealmModel realm, ExportOptions options) {\n RealmRepresentation rep = ModelToRepresentation.toRepresentation(realm, false);\n public static RealmRepresentation exportRealm(KeycloakSession session, RealmModel realm, ExportOptions options, boolean internal) {\n RealmRepresentation rep = ModelToRepresentation.toRepresentation(realm, internal);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2222222222222222, "commit_url": "https://github.com/keycloak/keycloak/commit/27b5e1aae2a895e28ac79aeb4da028e33769d069", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6 ] }, { "input": " .setTemplateValues(\"mposolda\", \"password\", value).buildUri()).request().get();\n .setTemplateValues(value).buildUri()).request().header(\"Authorization\", BasicAuthHelper.createHeader(\"mposolda\", \"password\")).get();\n public BasicAuth setTemplateValues(String user, String password, String value) {\n setUriParameter(\"user\", user);\n setUriParameter(\"password\", password);\n public BasicAuth setTemplateValues(String value) {\n .setTemplateValues(\"invalid-user\", \"password\", value).buildUri()).request().get();\n .setTemplateValues(value).buildUri()).request().header(\"Authorization\", BasicAuthHelper.createHeader(\"invalid-user\", \"password\")).get();\n .setTemplateValues(\"admin\", \"invalid-password\", value).buildUri()).request().get();\n .setTemplateValues(value).buildUri()).request().header(\"Authorization\", BasicAuthHelper.createHeader(\"admin\", \"invalid-password\")).get();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/keycloak/keycloak/commit/d30bf938ee7af6fbd52751a1ba3b7511d905093e", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": " .setTemplateValues(\"invalid-user\", \"password\", value).buildUri()).request().get();\n .setTemplateValues(value).buildUri()).request().header(\"Authorization\", BasicAuthHelper.createHeader(\"invalid-user\", \"password\")).get();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/keycloak/keycloak/commit/d30bf938ee7af6fbd52751a1ba3b7511d905093e", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": " .setTemplateValues(\"admin\", \"invalid-password\", value).buildUri()).request().get();\n .setTemplateValues(value).buildUri()).request().header(\"Authorization\", BasicAuthHelper.createHeader(\"admin\", \"invalid-password\")).get();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/keycloak/keycloak/commit/d30bf938ee7af6fbd52751a1ba3b7511d905093e", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": "import org.keycloak.representations.VersionRepresentation;\nimport org.keycloak.representations.VersionRepresentation;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/keycloak/keycloak/commit/a4d9aaf9168189c852d99155b6becb9d0b046772", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "\n writeVersion(\"version.json\", VersionRepresentation.SINGLETON);\n writeVersion(\"version.json\", VersionRepresentation.SINGLETON);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keycloak/keycloak/commit/a4d9aaf9168189c852d99155b6becb9d0b046772", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " assertEquals(federatedUser.getUsername(), federatedIdentityModel.getIdentityProvider() + \".\" + federatedIdentityModel.getUserName());\n assertEquals(federatedUser.getUsername(), federatedIdentityModel.getUserName());\n assertEquals(federatedUser.getUsername(), federatedIdentityModel.getIdentityProvider() + \".\" + federatedIdentityModel.getUserName());\n assertEquals(federatedUser.getUsername(), federatedIdentityModel.getUserName());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keycloak/keycloak/commit/933265511032f44d3317ed76d82da5ef3bb62d7e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " assertFederatedUser(getProviderId() + \".test-user\", \"test-user@localhost\", \"test-user\", getProviderId());\n assertFederatedUser(\"test-user\", \"test-user@localhost\", \"test-user\", getProviderId());\n assertFederatedUser(getProviderId() + \".test-user\", \"test-user@localhost\", \"test-user\", getProviderId());\n assertFederatedUser(\"test-user\", \"test-user@localhost\", \"test-user\", getProviderId());\n assertFederatedUser(getProviderId() + \".test-user\", \"test-user@localhost\", \"test-user\", getProviderId());\n assertFederatedUser(\"test-user\", \"test-user@localhost\", \"test-user\", getProviderId());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/keycloak/keycloak/commit/933265511032f44d3317ed76d82da5ef3bb62d7e", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " String brokerId = userSession.getNote(IdentityBrokerService.BROKER_PROVIDER_ID);\n String brokerId = userSession.getNote(Details.IDENTITY_PROVIDER);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.18181818181818182, "commit_url": "https://github.com/keycloak/keycloak/commit/733ca539834cacf2347dcd127b29cab5f4a15ce7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " HttpGet get = new HttpGet(AdapterUtils.getOrigin(req.getRequestURL().toString(), session) + \"/auth/admin/realms/demo/roles\");\n HttpGet get = new HttpGet(AdapterUtils.getOriginForRestCalls(req.getRequestURL().toString(), session) + \"/auth/admin/realms/demo/roles\");\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/keycloak/keycloak/commit/2e04ac549e1dee6246bc6b7a085f7c88823969f7", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " public static String getOrigin(String browserRequestURL, KeycloakSecurityContext session) {\n /**\n * Best effort to find origin for REST request calls from web UI application to REST application. In case of relative or absolute\n * \"auth-server-url\" is returned the URL from request. In case of \"auth-server-url-for-backend-request\" used in configuration, it returns\n * the origin of auth server.\n *\n * This may be the optimization in cluster, so if you have keycloak and applications on same host, the REST request doesn't need to\n * go through loadbalancer, but can be sent directly to same host.\n *\n * @param browserRequestURL\n * @param session\n * @return\n */\n public static String getOriginForRestCalls(String browserRequestURL, KeycloakSecurityContext session) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/keycloak/keycloak/commit/2e04ac549e1dee6246bc6b7a085f7c88823969f7", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 3, 4 ] }, { "input": " String accepts = getAccept(openAPI, operation);\n String accepts = getAccepts(openAPI, operation);\n private static String getAccept(OpenAPI openAPI, Operation operation) {\n String accepts = null;\n String defaultContentType = \"application/json\";\n Set producesInfo = getProducesInfo(openAPI, operation);\n private static String getAccepts(OpenAPI openAPIArg, Operation operation) {\n final Set producesInfo = getProducesInfo(openAPIArg, operation);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/OpenAPITools/openapi-generator/commit/e384201416f48a79e7f640e5f00b57ecb7fff07b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "from typing import Any, ClassVar, Dict, List, Optional, Union\nfrom typing import Any, ClassVar, Dict, List, Optional\nfrom typing import Any, ClassVar, Dict, List, Optional, Union\nfrom typing import Any, ClassVar, Dict, List, Optional\nfrom typing import Any, ClassVar, Dict, List, Optional, Union\nfrom typing import Any, ClassVar, Dict, List, Optional\nfrom typing import Any, ClassVar, Dict, List, Optional, Union\nfrom typing import Any, ClassVar, Dict, List, Optional\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/OpenAPITools/openapi-generator/commit/5e7f2f274c2f98b3cbc5445dd47708ca05a7c5ec", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 5, 7 ] }, { "input": " if (useBeanValidation) {\n writePropertyBack(USE_BEANVALIDATION, useBeanValidation);\n }\n writePropertyBack(USE_BEANVALIDATION, useBeanValidation);\n if (useBeanValidation) {\n writePropertyBack(USE_BEANVALIDATION, useBeanValidation);\n }\n\n if (useBeanValidation) {\n writePropertyBack(USE_BEANVALIDATION, useBeanValidation);\n }\n writePropertyBack(USE_BEANVALIDATION, useBeanValidation);\n\n if (useBeanValidation) {\n writePropertyBack(USE_BEANVALIDATION, useBeanValidation);\n }\n writePropertyBack(USE_BEANVALIDATION, useBeanValidation);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/OpenAPITools/openapi-generator/commit/7efda597cc3177704e15a266b79909d85b1b1211", "target_edit_idx": 3, "propagatable_edit_idx": [ 12, 5, 7 ] }, { "input": " cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, \"Use BeanValidation API annotations\"));\n cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, \"Use BeanValidation API annotations\",useBeanValidation));\n cliOptions.add(CliOption.newBoolean(INTERFACE_ONLY, \"Whether to generate only API interface stubs without the server files.\"));\n cliOptions.add(CliOption.newBoolean(DELEGATE_PATTERN, \"Whether to generate the server files using the delegate pattern\"));\n cliOptions.add(CliOption.newBoolean(SINGLE_CONTENT_TYPES, \"Whether to select only one produces/consumes content-type by operation.\"));\n cliOptions.add(CliOption.newBoolean(JAVA_8, \"use java8 default interface\"));\n cliOptions.add(CliOption.newBoolean(ASYNC, \"use async Callable controllers\"));\n cliOptions.add(CliOption.newBoolean(REACTIVE, \"wrap responses in Mono/Flux Reactor types (spring-boot only)\"));\n cliOptions.add(CliOption.newBoolean(INTERFACE_ONLY, \"Whether to generate only API interface stubs without the server files.\",interfaceOnly));\n cliOptions.add(CliOption.newBoolean(DELEGATE_PATTERN, \"Whether to generate the server files using the delegate pattern\",delegatePattern));\n cliOptions.add(CliOption.newBoolean(SINGLE_CONTENT_TYPES, \"Whether to select only one produces/consumes content-type by operation.\",singleContentTypes));\n cliOptions.add(CliOption.newBoolean(JAVA_8, \"use java8 default interface\",java8));\n cliOptions.add(CliOption.newBoolean(ASYNC, \"use async Callable controllers\",async));\n cliOptions.add(CliOption.newBoolean(REACTIVE, \"wrap responses in Mono/Flux Reactor types (spring-boot only)\",reactive));\n cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, \"Use BeanValidation API annotations\"));\n cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, \"Use BeanValidation API annotations\",useBeanValidation));\n cliOptions.add(CliOption.newBoolean(USE_TAGS, \"use tags for creating interface and controller classnames\"));\n cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, \"Use BeanValidation API annotations\"));\n cliOptions.add(CliOption.newBoolean(IMPLICIT_HEADERS, \"Use of @ApiImplicitParams for headers.\"));\n cliOptions.add(CliOption.newBoolean(OPENAPI_DOCKET_CONFIG, \"Generate Spring OpenAPI Docket configuration class.\"));\n cliOptions.add(CliOption.newBoolean(USE_OPTIONAL,\n \"Use Optional container for optional parameters\"));\n cliOptions.add(CliOption.newBoolean(USE_TAGS, \"use tags for creating interface and controller classnames\",useTags));\n cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, \"Use BeanValidation API annotations\",useBeanValidation));\n cliOptions.add(CliOption.newBoolean(IMPLICIT_HEADERS, \"Use of @ApiImplicitParams for headers.\",implicitHeaders));\n cliOptions.add(CliOption.newBoolean(OPENAPI_DOCKET_CONFIG, \"Generate Spring OpenAPI Docket configuration class.\",openapiDocketConfig));\n cliOptions.add(CliOption.newBoolean(USE_OPTIONAL,\"Use Optional container for optional parameters\",useOptional));\n cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, \"Use BeanValidation API annotations\"));\n cliOptions.add(CliOption.newBoolean(GENERATE_JBOSS_DEPLOYMENT_DESCRIPTOR, \"Generate Jboss Deployment Descriptor\"));\n cliOptions.add(CliOption.newBoolean(USE_SWAGGER_FEATURE, \"Use dynamic Swagger generator\"));\n cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, \"Use BeanValidation API annotations\",useBeanValidation));\n cliOptions.add(CliOption.newBoolean(GENERATE_JBOSS_DEPLOYMENT_DESCRIPTOR, \"Generate Jboss Deployment Descriptor\",generateJbossDeploymentDescriptor));\n cliOptions.add(CliOption.newBoolean(USE_SWAGGER_FEATURE, \"Use dynamic Swagger generator\",useSwaggerFeature));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.9, "commit_url": "https://github.com/OpenAPITools/openapi-generator/commit/7efda597cc3177704e15a266b79909d85b1b1211", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 2, 10, 6 ] }, { "input": " cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, \"Use BeanValidation API annotations\"));\n cliOptions.add(CliOption.newBoolean(GENERATE_JBOSS_DEPLOYMENT_DESCRIPTOR, \"Generate Jboss Deployment Descriptor\"));\n cliOptions.add(CliOption.newBoolean(USE_SWAGGER_FEATURE, \"Use dynamic Swagger generator\"));\n cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, \"Use BeanValidation API annotations\",useBeanValidation));\n cliOptions.add(CliOption.newBoolean(GENERATE_JBOSS_DEPLOYMENT_DESCRIPTOR, \"Generate Jboss Deployment Descriptor\",generateJbossDeploymentDescriptor));\n cliOptions.add(CliOption.newBoolean(USE_SWAGGER_FEATURE, \"Use dynamic Swagger generator\",useSwaggerFeature));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.9, "commit_url": "https://github.com/OpenAPITools/openapi-generator/commit/7efda597cc3177704e15a266b79909d85b1b1211", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 2, 10, 4 ] }, { "input": " cliOptions.add(CliOption.newBoolean(INTERFACE_ONLY, \"Whether to generate only API interface stubs without the server files.\"));\n cliOptions.add(CliOption.newBoolean(DELEGATE_PATTERN, \"Whether to generate the server files using the delegate pattern\"));\n cliOptions.add(CliOption.newBoolean(SINGLE_CONTENT_TYPES, \"Whether to select only one produces/consumes content-type by operation.\"));\n cliOptions.add(CliOption.newBoolean(JAVA_8, \"use java8 default interface\"));\n cliOptions.add(CliOption.newBoolean(ASYNC, \"use async Callable controllers\"));\n cliOptions.add(CliOption.newBoolean(REACTIVE, \"wrap responses in Mono/Flux Reactor types (spring-boot only)\"));\n cliOptions.add(CliOption.newBoolean(INTERFACE_ONLY, \"Whether to generate only API interface stubs without the server files.\",interfaceOnly));\n cliOptions.add(CliOption.newBoolean(DELEGATE_PATTERN, \"Whether to generate the server files using the delegate pattern\",delegatePattern));\n cliOptions.add(CliOption.newBoolean(SINGLE_CONTENT_TYPES, \"Whether to select only one produces/consumes content-type by operation.\",singleContentTypes));\n cliOptions.add(CliOption.newBoolean(JAVA_8, \"use java8 default interface\",java8));\n cliOptions.add(CliOption.newBoolean(ASYNC, \"use async Callable controllers\",async));\n cliOptions.add(CliOption.newBoolean(REACTIVE, \"wrap responses in Mono/Flux Reactor types (spring-boot only)\",reactive));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/OpenAPITools/openapi-generator/commit/7efda597cc3177704e15a266b79909d85b1b1211", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 10, 4, 6 ] }, { "input": " cliOptions.add(CliOption.newBoolean(USE_TAGS, \"use tags for creating interface and controller classnames\"));\n cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, \"Use BeanValidation API annotations\"));\n cliOptions.add(CliOption.newBoolean(IMPLICIT_HEADERS, \"Use of @ApiImplicitParams for headers.\"));\n cliOptions.add(CliOption.newBoolean(OPENAPI_DOCKET_CONFIG, \"Generate Spring OpenAPI Docket configuration class.\"));\n cliOptions.add(CliOption.newBoolean(USE_OPTIONAL,\n \"Use Optional container for optional parameters\"));\n cliOptions.add(CliOption.newBoolean(USE_TAGS, \"use tags for creating interface and controller classnames\",useTags));\n cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, \"Use BeanValidation API annotations\",useBeanValidation));\n cliOptions.add(CliOption.newBoolean(IMPLICIT_HEADERS, \"Use of @ApiImplicitParams for headers.\",implicitHeaders));\n cliOptions.add(CliOption.newBoolean(OPENAPI_DOCKET_CONFIG, \"Generate Spring OpenAPI Docket configuration class.\",openapiDocketConfig));\n cliOptions.add(CliOption.newBoolean(USE_OPTIONAL,\"Use Optional container for optional parameters\",useOptional));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/OpenAPITools/openapi-generator/commit/7efda597cc3177704e15a266b79909d85b1b1211", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 2, 4, 6 ] }, { "input": " else if (\"java8\".equals(dateLibrary)) {\n else if (dateLibrary.startsWith(\"java8\")) {\n } else if ( \"java8\".equals(dateLibrary) ) {\n } else if ( dateLibrary.startsWith(\"java8\") ) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/OpenAPITools/openapi-generator/commit/b4d521ca7b63eff61cd651f22d40d61519e7facd", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " if (additionalProperties.containsKey(\"dateLibrary\")) {\n setDateLibrary(additionalProperties.get(\"dateLibrary\").toString());\n additionalProperties.put(dateLibrary, \"true\");\n }\n\n if (additionalProperties.containsKey(\"dateLibrary\")) {\n setDateLibrary(additionalProperties.get(\"dateLibrary\").toString());\n additionalProperties.put(dateLibrary, \"true\");\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/OpenAPITools/openapi-generator/commit/b4d521ca7b63eff61cd651f22d40d61519e7facd", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " ensureUniqueParams = true;\n ensureUniqueParams = true;\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/OpenAPITools/openapi-generator/commit/5a7bb600d639d71322d093b1befec64cf5c7a6b3", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " protected String invokerPackage = \"io.swagger.handler\";\n protected String groupId = \"io.swagger\";\n protected String artifactId = \"swagger-inflector-server\";\n protected String artifactVersion = \"1.0.0\";\n protected String invokerPackage = \"io.swagger.api\";\n protected String groupId = \"io.swagger\";\n protected String artifactId = \"swagger-jaxrs-server\";\n protected String artifactVersion = \"1.0.0\";\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/OpenAPITools/openapi-generator/commit/43b3acf550a06e98c12990e8929bcc4a3e57dfc7", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " public int getTopicConfigCacheExpiredInSeconds() {\n return topicConfigCacheExpiredInSeconds;\n public int getTopicConfigCacheRefreshSeconds() {\n return topicConfigCacheRefreshSeconds;\n }\n\n public void setTopicConfigCacheRefreshSeconds(int topicConfigCacheRefreshSeconds) {\n this.topicConfigCacheRefreshSeconds = topicConfigCacheRefreshSeconds;\n }\n\n public int getTopicConfigCacheExpiredSeconds() {\n return topicConfigCacheExpiredSeconds;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/rocketmq/commit/7e018520ef707a841c66c55d621f6560d03b631b", "target_edit_idx": 5, "propagatable_edit_idx": [ 9 ] }, { "input": " .refreshAfterWrite(config.getSubscriptionGroupConfigCacheExpiredInSeconds(), TimeUnit.SECONDS)\n .expireAfterAccess(config.getSubscriptionGroupConfigCacheExpiredSeconds(), TimeUnit.SECONDS)\n .refreshAfterWrite(config.getSubscriptionGroupConfigCacheRefreshSeconds(), TimeUnit.SECONDS)\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/rocketmq/commit/7e018520ef707a841c66c55d621f6560d03b631b", "target_edit_idx": 10, "propagatable_edit_idx": [ 7 ] }, { "input": " eventListener.fireEvent(new RenewEvent(messageReceiptHandle, proxyConfig.getInvisibleTimeMillisWhenClear(), future));\n eventListener.fireEvent(new RenewEvent(messageReceiptHandle, proxyConfig.getInvisibleTimeMillisWhenClear(), RenewEvent.EventType.CLEAR_GROUP, future));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/rocketmq/commit/e0f5295fed8791d93bfa5b8420074c00b651ddfe", "target_edit_idx": 7, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " private static final int ISOLATED_BIT = 1 << 5;\n private static final int FENCED_BIT = 1 << 5;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/rocketmq/commit/e73a9aa8a71a05b70970939dd2036ee89355d75f", "target_edit_idx": 6, "propagatable_edit_idx": [ 10 ] }, { "input": " public void makeIsolated(boolean isolated) {\n if (isolated) {\n this.flagBits |= ISOLATED_BIT;\n public void makeFenced(boolean fenced) {\n if (fenced) {\n this.flagBits |= FENCED_BIT;\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/apache/rocketmq/commit/e73a9aa8a71a05b70970939dd2036ee89355d75f", "target_edit_idx": 9, "propagatable_edit_idx": [ 11, 12, 13, 14 ] }, { "input": " final String brokerIdSetToClean = requestHeader.getBrokerIdSetToClean();\n final String brokerControllerIdsToClean = requestHeader.getBrokerControllerIdsToClean();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/rocketmq/commit/e14158c7ff6df980695dc6a40d3803568c4780c2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " String brokerName, String brokerAddr) throws RemotingException, InterruptedException, MQBrokerException {\n return this.defaultMQAdminExtImpl.electMaster(controllerAddr, clusterName, brokerName, brokerAddr);\n String brokerName, Long brokerId) throws RemotingException, InterruptedException, MQBrokerException {\n return this.defaultMQAdminExtImpl.electMaster(controllerAddr, clusterName, brokerName, brokerId);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/rocketmq/commit/11b2cb84a61781e5f4b339831eded773dc524597", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " this.expectInvisibleTime = receiptHandle.getInvisibleTime();\n this.timestamp = receiptHandle.getRetrieveTime();\n this.consumeTimestamp = receiptHandle.getRetrieveTime();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/apache/rocketmq/commit/6f115385bbc37a837f11b6999e1b05d1c487ba93", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " extFields = new HashMap<>();\n extFields = new HashMap<>(256);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/rocketmq/commit/d070d467a6e69f810c8f078a30ccfb44cf76afd5", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 6 ] }, { "input": " HashMap map = new HashMap<>();\n HashMap map = new HashMap<>(128);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/rocketmq/commit/d070d467a6e69f810c8f078a30ccfb44cf76afd5", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " if (TopicValidator.isSystemTopic(topic)) {\n response.setCode(ResponseCode.SYSTEM_ERROR);\n response.setRemark(\"The topic[\" + topic + \"] is conflict with system topic.\");\n return response;\n if (brokerController.getBrokerConfig().isValidateSystemTopicWhenUpdateTopic()) {\n if (TopicValidator.isSystemTopic(topic)) {\n response.setCode(ResponseCode.SYSTEM_ERROR);\n response.setRemark(\"The topic[\" + topic + \"] is conflict with system topic.\");\n return response;\n }\n if (TopicValidator.isSystemTopic(topic)) {\n response.setCode(ResponseCode.SYSTEM_ERROR);\n response.setRemark(\"The topic[\" + topic + \"] is conflict with system topic.\");\n return response;\n if (brokerController.getBrokerConfig().isValidateSystemTopicWhenUpdateTopic()) {\n if (TopicValidator.isSystemTopic(topic)) {\n response.setCode(ResponseCode.SYSTEM_ERROR);\n response.setRemark(\"The topic[\" + topic + \"] is conflict with system topic.\");\n return response;\n }\n if (TopicValidator.isSystemTopic(topic)) {\n response.setCode(ResponseCode.SYSTEM_ERROR);\n response.setRemark(\"The topic[\" + topic + \"] is conflict with system topic.\");\n return response;\n if (brokerController.getBrokerConfig().isValidateSystemTopicWhenUpdateTopic()) {\n if (TopicValidator.isSystemTopic(topic)) {\n response.setCode(ResponseCode.SYSTEM_ERROR);\n response.setRemark(\"The topic[\" + topic + \"] is conflict with system topic.\");\n return response;\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/rocketmq/commit/62a959691ced2165c496b5a543b5d0955dad7fd1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " RegisterBrokerBody decodeRegisterBrokerBody = RegisterBrokerBody.decode(compareEncode, true);\n RegisterBrokerBody decodeRegisterBrokerBody = RegisterBrokerBody.decode(compareEncode, true, MQVersion.Version.V5_0_0);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/rocketmq/commit/da5a5b62927d041ad858bc4dd973e1bf68abcb1b", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " result.setCodeAndRemark(ResponseCode.CONTROLLER_INVALID_REQUEST, err);\n result.setCodeAndRemark(ResponseCode.CONTROLLER_ALTER_SYNC_STATE_SET_FAILED, err);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/apache/rocketmq/commit/7067305aa69abc0dcd8f4c06656859899dce3a85", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " result.setCodeAndRemark(ResponseCode.CONTROLLER_INVALID_REQUEST, \"Broker metadata is not existed\");\n result.setCodeAndRemark(ResponseCode.CONTROLLER_ELECT_MASTER_FAILED, \"Broker metadata is not existed\");\n assertEquals(cResult1.getResponseCode(), ResponseCode.CONTROLLER_INVALID_REQUEST);\n assertEquals(cResult1.getResponseCode(), ResponseCode.CONTROLLER_ELECT_MASTER_FAILED);\n result.setCodeAndRemark(ResponseCode.CONTROLLER_INVALID_REQUEST, err);\n result.setCodeAndRemark(ResponseCode.CONTROLLER_ELECT_MASTER_FAILED, err);\n assertEquals(ResponseCode.CONTROLLER_INVALID_REQUEST, cResult.getResponseCode());\n assertEquals(ResponseCode.CONTROLLER_ELECT_MASTER_FAILED, cResult.getResponseCode());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/rocketmq/commit/7067305aa69abc0dcd8f4c06656859899dce3a85", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 4, 7 ] }, { "input": " ConsumeMessageDirectlyResult result =\n defaultMQAdminExt.consumeMessageDirectly(consumerGroup, clientId, msgId);\n System.out.printf(\"%s\", result);\n ConsumerRunningInfo consumerRunningInfo = defaultMQAdminExt.getConsumerRunningInfo(consumerGroup, clientId, false, false);\n if (ConsumerRunningInfo.isPushType(consumerRunningInfo)) {\n ConsumeMessageDirectlyResult result =\n defaultMQAdminExt.consumeMessageDirectly(consumerGroup, clientId, msgId);\n System.out.printf(\"%s\", result);\n } else {\n System.out.printf(\"this %s client is not push consumer ,not support direct push \\n\", clientId);\n }\n ConsumeMessageDirectlyResult result =\n defaultMQAdminExt.consumeMessageDirectly(consumerGroup, clientId, topic, msgId);\n System.out.printf(\"%s\", result);\n ConsumerRunningInfo consumerRunningInfo = defaultMQAdminExt.getConsumerRunningInfo(consumerGroup, clientId, false, false);\n if (ConsumerRunningInfo.isPushType(consumerRunningInfo)) {\n ConsumeMessageDirectlyResult result =\n defaultMQAdminExt.consumeMessageDirectly(consumerGroup, clientId, topic, msgId);\n System.out.printf(\"%s\", result);\n } else {\n System.out.printf(\"this %s client is not push consumer ,not support direct push \\n\", clientId);\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/rocketmq/commit/17634d3317b857b1f784aa59af458da1d3f5206c", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " TransactionData transactionData = this.transactionDataManager.pollFirstNoExpireTransactionData(producerGroup, transactionId);\n TransactionData transactionData = this.transactionDataManager.pollNoExpireTransactionData(producerGroup, transactionId);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/rocketmq/commit/d42a7f92cf42df6f9d771c200640a96ffb573566", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 6 ] }, { "input": " Map messageProperty = this.buildMessageProperty(protoMessage, producerGroup);\n Map messageProperty = this.buildMessageProperty(context, protoMessage, producerGroup);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/rocketmq/commit/461151c6f5c9e8824352a4075f03b7c01fff44d4", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " protected Map buildMessageProperty(apache.rocketmq.v2.Message message, String producerGroup) {\n protected Map buildMessageProperty(ProxyContext context, apache.rocketmq.v2.Message message, String producerGroup) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/rocketmq/commit/461151c6f5c9e8824352a4075f03b7c01fff44d4", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " this.cleanCommitLogService.excuteDeleteFilesManualy();\n this.cleanCommitLogService.executeDeleteFilesManually();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/rocketmq/commit/f1b2c4f360fdac3c4205d7275f389c4dbff44748", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " private static final AtomicInteger producerNum = new AtomicInteger(0);\n private static final AtomicInteger PRODUCER_NUM = new AtomicInteger(0);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/rocketmq/commit/73db2970ff9fc5bfa018af3715b9cf641346cbe3", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " boolean result = this.commitLog.appendData(startOffset, data);\n boolean result = this.commitLog.appendData(startOffset, data, dataStart, dataLength);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/rocketmq/commit/3183122c01cc2d0dc005634d028ccbcb62495bf6", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 7 ] }, { "input": " HAService.this.defaultMessageStore.appendToCommitLog(masterPhyOffset, bodyData);\n HAService.this.defaultMessageStore.appendToCommitLog(\n masterPhyOffset, bodyData, dataStart, bodySize);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/rocketmq/commit/3183122c01cc2d0dc005634d028ccbcb62495bf6", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 3, 6 ] }, { "input": " private static final int GET_AVALIABLE_CHANNEL_RETRY_COUNT = 3;\n private static final int GET_AVAILABLE_CHANNEL_RETRY_COUNT = 3;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/rocketmq/commit/f07bc79daa49e258a13335b1234b0c25cf4a589f", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " Assert.assertEquals(AclUtils.v6ipProcess(remoteAddr, strArray, 3), \"0005:0000:0000:0000:0007:0006\");\n Assert.assertEquals(AclUtils.v6ipProcess(remoteAddr), \"0005:0000:0000:0000:0007:0006\");\n// Assert.assertEquals(AclUtils.v6ipProcess(remoteAddr, strArray, 3), \"0005:0000:0000:0000:0007:0006\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/rocketmq/commit/064d4c33d299f653c480c79acc666d5c3608b3de", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5 ] }, { "input": " Assert.assertEquals(AclUtils.v6ipProcess(remoteAddr, strArray, 3), \"0005:0000:0000:0000:0000:0007:0006\");\n Assert.assertEquals(AclUtils.v6ipProcess(remoteAddr), \"0005:0000:0000:0000:0000:0007:0006\");\n// Assert.assertEquals(AclUtils.v6ipProcess(remoteAddr, strArray, 3), \"0005:0000:0000:0000:0000:0007:0006\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/rocketmq/commit/064d4c33d299f653c480c79acc666d5c3608b3de", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5 ] }, { "input": " Assert.assertEquals(AclUtils.v6ipProcess(remoteAddr, strArray, 3), \"0005:0007:0006\");\n Assert.assertEquals(AclUtils.v6ipProcess(remoteAddr), \"0005:0007:0006\");\n// Assert.assertEquals(AclUtils.v6ipProcess(remoteAddr, strArray, 3), \"0005:0007:0006\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/rocketmq/commit/064d4c33d299f653c480c79acc666d5c3608b3de", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4 ] }, { "input": " RemotingCommand request = RemotingCommand.createRequestCommand(RequestCode.GET_ROUTEINTO_BY_TOPIC, requestHeader);\n RemotingCommand request = RemotingCommand.createRequestCommand(RequestCode.GET_ROUTEINFO_BY_TOPIC, requestHeader);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/rocketmq/commit/bca05f7b5ce349717b4cdf820484a46b74217df4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " * Lower bound on memory size.\n * Lower bound on memory size (in pages of 64 kiB).\n * Upper bound on memory size.\n * Upper bound on memory size (in pages of 64 kiB).\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/7b622f63a306665c9d482155a94886aac27aa35e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " private WasmMemory memory(WasmInstance instance) {\n return memory(instance, 0);\n private WasmMemory memory0(WasmInstance instance) {\n return memory(instance, 0).checkSize(module.memoryInitialSize(0));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/7b622f63a306665c9d482155a94886aac27aa35e", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " \"mxversion\": \"7.5.2\",\n \"mxversion\": \"7.27.0\",\n \"mxversion\": \"7.13.2\",\n \"mxversion\": \"7.27.0\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.9090909090909091, "commit_url": "https://github.com/oracle/graal/commit/5a484cbe1479ca117c2e47c07a1cd5947ecc7e48", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " \"mxversion\": \"6.44.0\",\n \"mxversion\": \"7.27.0\",\n \"mxversion\": \"6.41.0\",\n \"mxversion\": \"7.27.0\",\n \"mxversion\": \"6.41.0\",\n \"mxversion\": \"7.27.0\",\n \"mxversion\": \"6.43.0\",\n \"mxversion\": \"7.27.0\",\n \"mxversion\": \"6.41.0\",\n \"mxversion\": \"7.27.0\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.17307692307692307, "commit_url": "https://github.com/oracle/graal/commit/5a484cbe1479ca117c2e47c07a1cd5947ecc7e48", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 10, 5, 6 ] }, { "input": " \"mxversion\": \"6.27.1\",\n \"mxversion\": \"7.27.0\",\n \"mxversion\": \"6.27.1\",\n \"mxversion\": \"7.27.0\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.38461538461538464, "commit_url": "https://github.com/oracle/graal/commit/5a484cbe1479ca117c2e47c07a1cd5947ecc7e48", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": " primitives[slot] = extend(frame.getIntStatic(slot));\n primitives[slot] = zeroExtend(frame.getIntStatic(slot));\n primitives[slot] = extend(Float.floatToRawIntBits(frame.getFloatStatic(slot)));\n primitives[slot] = zeroExtend(Float.floatToRawIntBits(frame.getFloatStatic(slot)));\n static long extend(int value) {\n static long zeroExtend(int value) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/861ec35e422c64cbcd1c752bfb16aeecb9de39c0", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " return ConstantNode.forIntegerKind(stamp.getStackKind(), 0);\n return ConstantNode.forIntegerBits(PrimitiveStamp.getBits(stamp), 0);\n return ConstantNode.forIntegerKind(stamp.getStackKind(), 0);\n return ConstantNode.forIntegerBits(PrimitiveStamp.getBits(stamp), 0);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/9e468f57f2912f57db9e91c82acc40a4a508bbde", "target_edit_idx": 1, "propagatable_edit_idx": [ 9 ] }, { "input": " * Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/9e468f57f2912f57db9e91c82acc40a4a508bbde", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " return ConstantNode.forIntegerKind(stamp.getStackKind(), xStamp.lowerBound() >> amount);\n return ConstantNode.forIntegerBits(xStamp.getBits(), xStamp.lowerBound() >> amount);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.18181818181818182, "commit_url": "https://github.com/oracle/graal/commit/9e468f57f2912f57db9e91c82acc40a4a508bbde", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " return ConstantNode.forIntegerKind(stamp.getStackKind(), -1L);\n return ConstantNode.forIntegerBits(istamp.getBits(), -1L);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/oracle/graal/commit/9e468f57f2912f57db9e91c82acc40a4a508bbde", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " controller.resumeAll(false);\n controller.resumeAll();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/064bccac177dc8420a0f7df5566dd84178bd2a22", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " controller.forceResumeAll(true);\n controller.forceResumeAll();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/064bccac177dc8420a0f7df5566dd84178bd2a22", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " if (isSpeciesReachable(speciesData)) {\n if (isSpeciesTypeInstantiated(speciesData)) {\n private boolean isSpeciesReachable(Object speciesData) {\n private boolean isSpeciesTypeInstantiated(Object speciesData) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/5a2d13a311ee267f223b89b2832f68fc1d225a5f", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " return populateInfoObjects(imageHeap.countDynamicHubs());\n return populateInfoObjects(imageHeap.countDynamicHubs(), pageSize);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/10bd882478a0aa517d8ed5c23eaa770310220eab", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " this.zeroWidthTermEnclosedCGLow[i] = group.getEnclosedCaptureGroupsLow();\n offset += 2 * (group.getEnclosedCaptureGroupsHigh() - group.getEnclosedCaptureGroupsLow());\n this.zeroWidthTermEnclosedCGLow[i] = group.getCaptureGroupsLow();\n offset += 2 * (group.getCaptureGroupsHigh() - group.getCaptureGroupsLow());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/oracle/graal/commit/c4bdc53c11ff0faebfe05c51121b2ac42633eede", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "import jdk.vm.ci.code.site.Infopoint;\nimport jdk.vm.ci.code.site.InfopointReason;\nimport jdk.vm.ci.code.site.Infopoint;\nimport jdk.vm.ci.code.site.InfopointReason;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/82b36828c30f24040fd51cd00385dce8a8d0f049", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " Call call = (Call) infopoint;\n if (call.debugInfo != null && call.reason == InfopointReason.CALL) {\n if (call.debugInfo != null) {\n Call call = (Call) infopoint;\n if (call.debugInfo != null && call.reason == InfopointReason.CALL) {\n if (call.debugInfo != null) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/82b36828c30f24040fd51cd00385dce8a8d0f049", "target_edit_idx": 6, "propagatable_edit_idx": [ 10 ] }, { "input": " * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/e6310a6f5d1f0c4b499eaa1208c0828c6f3b7a9f", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " testPreserveOrder(signExtend(StampFactory.forKind(JavaKind.Byte), 32), 8, BT, true);\n testPreserveOrder(signExtend(StampFactory.forKind(JavaKind.Byte), 32), 8, BT, false);\n testPreserveOrder(signExtend(StampFactory.forKind(JavaKind.Short), 32), 16, BT, true);\n testPreserveOrder(signExtend(StampFactory.forKind(JavaKind.Short), 32), 16, BT, false);\n testPreserveOrder(signExtend(StampFactory.forKind(JavaKind.Int), 64), 32, BT, true);\n testPreserveOrder(signExtend(StampFactory.forKind(JavaKind.Int), 64), 32, BT, false);\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/e6310a6f5d1f0c4b499eaa1208c0828c6f3b7a9f", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " return validateArrayValue(element);\n return checkExpectedValue(element);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/c9bc676d5e5dd98fc91379e1f352f4cb6f4ba9ee", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " object = nullCheckedValue(object);\n object = addNonNullCast(object, InvalidateReprofile);\n object = nullCheckedValue(object);\n object = addNonNullCast(object, InvalidateReprofile);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/020b17fe9492d371d89c97c58e4b861d3659cc97", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " test(b -> b.addLabel(1, 0, WasmType.REF_COMMON_TYPE), new byte[]{Bytecode.SKIP_LABEL_U8, Bytecode.LABEL_U8, (byte) 0xC0});\n test(b -> b.addLabel(1, 0, WasmType.OBJ_COMMON_TYPE), new byte[]{Bytecode.SKIP_LABEL_U8, Bytecode.LABEL_U8, (byte) 0xC0});\n assert commonResultType == WasmType.NONE_COMMON_TYPE || commonResultType == WasmType.NUM_COMMON_TYPE || commonResultType == WasmType.REF_COMMON_TYPE ||\n assert commonResultType == WasmType.NONE_COMMON_TYPE || commonResultType == WasmType.NUM_COMMON_TYPE || commonResultType == WasmType.OBJ_COMMON_TYPE ||\n test(b -> b.addLabel(2, 0, WasmType.REF_COMMON_TYPE), new byte[]{Bytecode.SKIP_LABEL_U16, Bytecode.LABEL_U16, (byte) 0x82, 0x00});\n test(b -> b.addLabel(2, 0, WasmType.OBJ_COMMON_TYPE), new byte[]{Bytecode.SKIP_LABEL_U16, Bytecode.LABEL_U16, (byte) 0x82, 0x00});\n test(b -> b.addLabel(64, 0, WasmType.REF_COMMON_TYPE), new byte[]{Bytecode.SKIP_LABEL_I32, Bytecode.LABEL_I32, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00});\n test(b -> b.addLabel(64, 0, WasmType.OBJ_COMMON_TYPE), new byte[]{Bytecode.SKIP_LABEL_I32, Bytecode.LABEL_I32, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00});\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/6e675bd6da834648b72eec0af790191af541381e", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 1, 2 ] }, { "input": " if (executable == null) {\n throw new NullPointerException(\"Cannot register null value as executable for reflection. \" +\n \"Please ensure that all values you register are not null.\");\n }\n if (field == null) {\n throw new NullPointerException(\"Cannot register null value as field for reflection. \" +\n \"Please ensure that all values you register are not null.\");\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/f94551abad61ae492d9a0b266a07564ab8aff92e", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " return DarwinLinker.LD_NAME.equals(linker) || DarwinLinker.LLD.equals(linker);\n return DarwinLinker.LD64_LLD.equals(linker) || DarwinLinker.LLD.equals(linker);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/c1e1077837dc74567e071b1d7320f00c8970be1e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " final double noProgressStartDetectionPriod = noProgressStartPeriod.get() * 1000;\n final double noProgressStartDetectionPeriod = noProgressStartPeriod.get() * 1000;\n final boolean noProgressForPeriodStartDetection = timeDiff > noProgressStartDetectionPriod;\n final boolean noProgressForPeriodStartDetection = timeDiff > noProgressStartDetectionPeriod;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/15e7e2309cefdfa4d26622d7363b38dd554cc126", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " Map applicationModules = new HashMap<>();\n LinkedHashMap mrefs = new LinkedHashMap<>();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/77deacbc5f7713d70c743f1c685233cb3c5506ea", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": "import com.oracle.truffle.api.nodes.RootNode;\nimport com.oracle.truffle.api.RootCallTarget;\nimport com.oracle.truffle.api.nodes.RootNode;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/390d306681aa35d7a0d44dbc008ca52c18e21819", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": " List programArgs = new ArrayList<>();\n List launchArgs = new ArrayList<>();\n programArgs.add(\"-agentlib:native-image-agent=config-output-dir=\" + externalAuxiliaryOutputDir);\n launchArgs.add(\"-agentlib:native-image-agent=config-output-dir=\" + externalAuxiliaryOutputDir);\n return programArgs;\n return launchArgs;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/6b1455981d3216cc6ef02fec91cb485862488425", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " return programArgs;\n return launchArgs;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/6b1455981d3216cc6ef02fec91cb485862488425", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "mx_sdk_vm.register_graalvm_component(mx_sdk_vm.GraalVmJreComponent(\ngraal_sdk_compiler_component = mx_sdk_vm.GraalVmJreComponent(\nmx_sdk_vm.register_graalvm_component(mx_sdk_vm.GraalVmJreComponent(\ngraalvm_sdk_native_image_component = mx_sdk_vm.GraalVmJreComponent(\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/5f5aa9d4cff79d3d58a250bcbd5d7b56fbdd93d6", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " @Input(InputType.Guard) protected ValueNode value;\n\n @Input(InputType.Guard)\n private ValueNode value;\n @Input(InputType.Value) protected ValueNode value;\n @Input(InputType.Value)\n private ValueNode value;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/55829f12cfda47d89e35c08ae8d1292d3cfc2fc5", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " private static boolean handleGetSystemResources(JNIEnvironment jni, JNIObjectHandle thread, Breakpoint bp, boolean returnsEnumeration, InterceptedState state) {\n private static boolean handleGetSystemResources(JNIEnvironment jni, JNIObjectHandle thread, Breakpoint bp, InterceptedState state) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/f73109ac64f730b1e70c18c6773e9dc0cb5880de", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " memories[i] = WebAssembly.memAlloc(32767, 32767);\n memories[i] = WebAssembly.memAlloc(32767, 32767, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/58776e1279e089def9cf4cae02d1f0e42bf903bd", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 10, 11 ] }, { "input": " WebAssembly.memAlloc(32768, 32770);\n WebAssembly.memAlloc(32768, 32770, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/58776e1279e089def9cf4cae02d1f0e42bf903bd", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 10, 11 ] }, { "input": " WebAssembly.memAlloc(2, 1);\n WebAssembly.memAlloc(2, 1, false);\n final WasmMemory memory = WebAssembly.memAlloc(4, 8);\n final WasmMemory memory = WebAssembly.memAlloc(4, 8, false);\n memories[i] = WebAssembly.memAlloc(32767, 32767);\n memories[i] = WebAssembly.memAlloc(32767, 32767, false);\n WebAssembly.memAlloc(32768, 32770);\n WebAssembly.memAlloc(32768, 32770, false);\n WasmMemory memory = WebAssembly.memAlloc(1, 1);\n WasmMemory memory = WebAssembly.memAlloc(1, 1, false);\n WasmMemory memory = WebAssembly.memAlloc(1, 1);\n WasmMemory memory = WebAssembly.memAlloc(1, 1, false);\n final WasmMemory m = WebAssembly.memAlloc(1, 1);\n final WasmMemory m = WebAssembly.memAlloc(1, 1, false);\n return memAlloc(initialSize, maximumSize);\n final boolean shared;\n if (args.length > 2) {\n try {\n shared = lib.asBoolean(args[2]);\n } catch (UnsupportedMessageException e) {\n throw new WasmJsApiException(WasmJsApiException.Kind.TypeError, \"Shared flag must be convertible to boolean\");\n }\n } else {\n shared = false;\n }\n return memAlloc(initialSize, maximumSize, shared);\n public static WasmMemory memAlloc(int initial, int maximum) {\n public static WasmMemory memAlloc(int initial, int maximum, boolean shared) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/58776e1279e089def9cf4cae02d1f0e42bf903bd", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 10, 11 ] }, { "input": " WasmMemory memory = WebAssembly.memAlloc(1, 1);\n WasmMemory memory = WebAssembly.memAlloc(1, 1, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/58776e1279e089def9cf4cae02d1f0e42bf903bd", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 10, 11 ] }, { "input": " final WasmMemory m = WebAssembly.memAlloc(1, 1);\n final WasmMemory m = WebAssembly.memAlloc(1, 1, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/58776e1279e089def9cf4cae02d1f0e42bf903bd", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 10, 11 ] }, { "input": " public static WasmMemory memAlloc(int initial, int maximum) {\n public static WasmMemory memAlloc(int initial, int maximum, boolean shared) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.019867549668874173, "commit_url": "https://github.com/oracle/graal/commit/58776e1279e089def9cf4cae02d1f0e42bf903bd", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 10 ] }, { "input": " if (specialization.isGuardBindsCache() && FlatNodeGenFactory.guardUseInstanceField(specialization)) {\n if (specialization.isGuardBindsExclusiveCache() && FlatNodeGenFactory.guardUseInstanceField(specialization)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/802e5f461be30f46d97551e3b2b3e8c55a41d246", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 8, 9, 10 ] }, { "input": " final boolean useDuplicateFlag = specialization.isGuardBindsCache() && !useSpecializationClass;\n final boolean useDuplicateFlag = specialization.isGuardBindsExclusiveCache() && !useSpecializationClass;\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/oracle/graal/commit/802e5f461be30f46d97551e3b2b3e8c55a41d246", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 8, 9, 10 ] }, { "input": " if (isCacheParameterBound(guard)) {\n if (isExclusiveCacheParameterBound(guard)) {\n private boolean isCacheParameterBound(GuardExpression guard) {\n private boolean isExclusiveCacheParameterBound(GuardExpression guard) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/802e5f461be30f46d97551e3b2b3e8c55a41d246", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " return new FileSystemConfig(patch.ioAccess, preInitFs, preInitInternalFs, patch.hostTmpDir);\n return new FileSystemConfig(patch.ioAccess, preInitFs, preInitInternalFs);\n FileSystemConfig(IOAccess ioAccess, FileSystem publicFileSystem, FileSystem internalFileSystem, String hostTmpDir) {\n FileSystemConfig(IOAccess ioAccess, FileSystem publicFileSystem, FileSystem internalFileSystem) {\n final FileSystemConfig fileSystemConfig = new FileSystemConfig(IOAccess.ALL, new PreInitializeContextFileSystem(tmpDir), new PreInitializeContextFileSystem(tmpDir), tmpDir);\n final FileSystemConfig fileSystemConfig = new FileSystemConfig(IOAccess.ALL, new PreInitializeContextFileSystem(tmpDir), new PreInitializeContextFileSystem(tmpDir));\n fileSystemConfig = new FileSystemConfig(ioAccess, fs, fs, tmpDir);\n fileSystemConfig = new FileSystemConfig(ioAccess, fs, fs);\n fileSystemConfig = new FileSystemConfig(ioAccess, fs, fs, tmpDir);\n fileSystemConfig = new FileSystemConfig(ioAccess, fs, fs);\n fileSystemConfig = new FileSystemConfig(ioAccess, customFileSystem, customFileSystem, tmpDir);\n fileSystemConfig = new FileSystemConfig(ioAccess, customFileSystem, customFileSystem);\n fileSystemConfig = new FileSystemConfig(ioAccess, FileSystems.newNoIOFileSystem(), FileSystems.newLanguageHomeFileSystem(tmpDir), tmpDir);\n fileSystemConfig = new FileSystemConfig(ioAccess, FileSystems.newNoIOFileSystem(), FileSystems.newLanguageHomeFileSystem());\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/oracle/graal/commit/4c81ea321902ea86dc28e9b88fdc2bb80ee431e3", "target_edit_idx": 7, "propagatable_edit_idx": [ 5, 8, 9, 10, 11, 12 ] }, { "input": " protected abstract OptimizedCallTarget createOptimizedCallTarget(EngineData engine);\n protected abstract OptimizedCallTarget createInitializationCallTarget(EngineData engine);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/37c2cbdaa910f231d570140ae3a3a2fc4142a5f9", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " protected OptimizedCallTarget createOptimizedCallTarget(EngineData engine) {\n OptimizedCallTarget target = new HotSpotOptimizedCallTarget(engine);\n ensureInitialized(target);\n return target;\n protected OptimizedCallTarget createInitializationCallTarget(EngineData engine) {\n return new HotSpotOptimizedCallTarget(engine);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/37c2cbdaa910f231d570140ae3a3a2fc4142a5f9", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " if (stackSize + pushedValueCount + Bytecodes.stackEffectOf(opcode) < 0) {\n int pushedSlotCount = 0;\n if (pushedSlotKinds != null) {\n for (JavaKind pushedKind : pushedSlotKinds) {\n pushedSlotCount += pushedKind.getSlotCount();\n }\n }\n if (stackSize + pushedSlotCount + Bytecodes.stackEffectOf(opcode) < 0) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/620ba62e721af01ba9de6d29262c99334dfbbbd3", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " public Optional findSubstitution(ResolvedJavaType type) {\n public Optional findFullSubstitution(ResolvedJavaType type) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/c6de5ab238dacc98595da9798a8f399ec35561ab", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " return warningsAreWhiteListed(type) || isAliased(type) || findSubstitutionType(type) != null;\n return warningsAreWhiteListed(type) || isAliased(type) || findFullSubstitutionType(type) != null;\n ResolvedJavaType substitutionType = findSubstitutionType(type);\n msg += \"is substituted by \" + substitutionType.toJavaName();\n ResolvedJavaType substitutionType = findFullSubstitutionType(type);\n msg += \"is fully substituted by \" + substitutionType.toJavaName();\n private ResolvedJavaType findSubstitutionType(ResolvedJavaType type) {\n Optional substTypeOptional = annotationSubstitutions.findSubstitution(type);\n private ResolvedJavaType findFullSubstitutionType(ResolvedJavaType type) {\n Optional substTypeOptional = annotationSubstitutions.findFullSubstitution(type);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/c6de5ab238dacc98595da9798a8f399ec35561ab", "target_edit_idx": 6, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " if t: unittest(['--suite', 'tools', '--enable-timing', '--verbose', '--fail-fast'])\n if t: unittest(['--suite', 'tools', '--enable-timing', '--verbose', '--max-class-failures=25'])\n if t: unittest(list(['--suite', 'truffle', '--enable-timing', '--verbose', '--fail-fast']))\n if t: unittest(list(['--suite', 'truffle', '--enable-timing', '--verbose', '--max-class-failures=25']))\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/90e21c4f01bbda226860f39608196cbd684cba00", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " suspend(null, eventThread, SuspendStrategy.EVENT_THREAD, Collections.singletonList(callBack), null, true);\n suspend(eventThread, SuspendStrategy.EVENT_THREAD, Collections.singletonList(callBack), true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/2e329771479bbf28367231959620ec1bd8af6da8", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 14 ] }, { "input": " suspend(null, eventThread, SuspendStrategy.EVENT_THREAD, Collections.singletonList(callBack), null, true);\n suspend(eventThread, SuspendStrategy.EVENT_THREAD, Collections.singletonList(callBack), true);\n controller.suspend(null, context.asGuestThread(Thread.currentThread()), SuspendStrategy.EVENT_THREAD, Collections.singletonList(job), null, true);\n controller.suspend(context.asGuestThread(Thread.currentThread()), SuspendStrategy.EVENT_THREAD, Collections.singletonList(job), true);\n suspend(null, eventThread, SuspendStrategy.EVENT_THREAD, Collections.singletonList(callBack), null, true);\n suspend(eventThread, SuspendStrategy.EVENT_THREAD, Collections.singletonList(callBack), true);\n suspend(null, context.asGuestThread(Thread.currentThread()), SuspendStrategy.EVENT_THREAD, Collections.emptyList(), null, true);\n suspend(context.asGuestThread(Thread.currentThread()), SuspendStrategy.EVENT_THREAD, Collections.emptyList(), true);\n public void suspend(CallFrame currentFrame, Object thread, byte suspendPolicy, List> jobs, SteppingInfo steppingInfo, boolean forceSuspend) {\n public void suspend(Object thread, byte suspendPolicy, List> jobs, boolean forceSuspend) {\n suspend(callFrames[0], currentThread, suspendPolicy, jobs, steppingInfo, hit || steppingInfo != null);\n suspend(currentThread, suspendPolicy, jobs, hit || steppingInfo != null);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/2e329771479bbf28367231959620ec1bd8af6da8", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 14 ] }, { "input": " private void suspendEventThread(CallFrame currentFrame, Object thread, SteppingInfo info, boolean forceSuspend) {\n private void suspendEventThread(Object thread, boolean forceSuspend, List> jobs) {\n runJobs(jobs);\n suspendEventThread(currentFrame, thread, steppingInfo, forceSuspend);\n suspendEventThread(thread, forceSuspend, jobs);\n suspendEventThread(currentFrame, thread, steppingInfo, forceSuspend);\n suspendEventThread(thread, forceSuspend, jobs);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/2e329771479bbf28367231959620ec1bd8af6da8", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " private void lockThread(Object thread, boolean forceSuspend, boolean isFirstCall, SteppingInfo info, CallFrame currentFrame) {\n private void lockThread(Object thread, boolean forceSuspend, boolean isFirstCall, List> jobs) {\n lockThread(thread, forceSuspend, true, info, currentFrame);\n lockThread(thread, forceSuspend, true, jobs);\n lockThread(thread, forceSuspend, false, null, null);\n lockThread(thread, forceSuspend, false, Collections.emptyList());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/2e329771479bbf28367231959620ec1bd8af6da8", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 12 ] }, { "input": " suspend(callFrames[0], currentThread, suspendPolicy, jobs, steppingInfo, hit || steppingInfo != null);\n suspend(currentThread, suspendPolicy, jobs, hit || steppingInfo != null);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/2e329771479bbf28367231959620ec1bd8af6da8", "target_edit_idx": 14, "propagatable_edit_idx": [ 0, 1, 2, 3, 4 ] }, { "input": " unsupported(\"Accessing an URL protocol that was not enabled. The URL protocol \" + protocol +\n unsupported(\"Accessing a URL protocol that was not enabled. The URL protocol \" + protocol +\n unsupported(\"Accessing an URL protocol that was not enabled. The URL protocol \" + protocol +\n unsupported(\"Accessing a URL protocol that was not enabled. The URL protocol \" + protocol +\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/e9ff3088ba1c83f2c65d8209d221a9b91acac19f", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " private Map dynamicModuleForGeneratedProxies = new ConcurrentHashMap<>();\n private Map dynamicModuleForGeneratedProxies = new ConcurrentHashMap<>();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.011111111111111112, "commit_url": "https://github.com/oracle/graal/commit/8d96b05f21fccb2b6c685ba743fdc07655d7fb2b", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " mf.checkMem(2, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(3, Case.MSG, \"MSG_NoRevokableToken\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"MSG_NoRevokableToken\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/aa43ae56aa701db60cff732985ad2c40b783f8f0", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7 ] }, { "input": " mf.checkMem(4, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(5, Case.MSG, \"GDSRESTConnector.revokeToken:\" + MOCK_TOKEN_DEFAULT);\n mf.checkMem(6, Case.MSG, \"MSG_AcceptRevoke\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"GDSRESTConnector.revokeToken:\" + MOCK_TOKEN_DEFAULT);\n mf.checkMem( Case.MSG, \"MSG_AcceptRevoke\");\n mf.checkMem(0, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(1, Case.MSG, \"MSG_NoRevokableToken\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"MSG_NoRevokableToken\");\n mf.checkMem(2, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(3, Case.MSG, \"MSG_NoRevokableToken\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"MSG_NoRevokableToken\");\n mf.checkMem(7, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(8, Case.MSG, \"GDSRESTConnector.revokeToken:\" + MOCK_TOKEN_DEFAULT);\n mf.checkMem(9, Case.MSG, \"MSG_AcceptRevoke\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"GDSRESTConnector.revokeToken:\" + MOCK_TOKEN_DEFAULT);\n mf.checkMem( Case.MSG, \"MSG_AcceptRevoke\");\n mf.checkMem(10, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(11, Case.MSG, \"MSG_NoGDSAddress\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"MSG_NoGDSAddress\");\n mf.checkMem(12, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(13, Case.MSG, \"MSG_NoGDSAddress\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"MSG_NoGDSAddress\");\n mf.checkMem(14, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(15, Case.MSG, \"MSG_NoGDSAddress\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"MSG_NoGDSAddress\");\n mf.checkMem(16, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(17, Case.MSG, \"MSG_NoGDSAddress\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"MSG_NoGDSAddress\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/aa43ae56aa701db60cff732985ad2c40b783f8f0", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7 ] }, { "input": " mf.checkMem(7, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(8, Case.MSG, \"GDSRESTConnector.revokeToken:\" + MOCK_TOKEN_DEFAULT);\n mf.checkMem(9, Case.MSG, \"MSG_AcceptRevoke\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"GDSRESTConnector.revokeToken:\" + MOCK_TOKEN_DEFAULT);\n mf.checkMem( Case.MSG, \"MSG_AcceptRevoke\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/aa43ae56aa701db60cff732985ad2c40b783f8f0", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7 ] }, { "input": " mf.checkMem(10, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(11, Case.MSG, \"MSG_NoGDSAddress\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"MSG_NoGDSAddress\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/aa43ae56aa701db60cff732985ad2c40b783f8f0", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7 ] }, { "input": " mf.checkMem(12, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(13, Case.MSG, \"MSG_NoGDSAddress\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"MSG_NoGDSAddress\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/aa43ae56aa701db60cff732985ad2c40b783f8f0", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7 ] }, { "input": " mf.checkMem(14, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(15, Case.MSG, \"MSG_NoGDSAddress\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"MSG_NoGDSAddress\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/aa43ae56aa701db60cff732985ad2c40b783f8f0", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7 ] }, { "input": " mf.checkMem(16, Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem(17, Case.MSG, \"MSG_NoGDSAddress\");\n mf.checkMem( Case.MSG, \"GDSTokenStorage.makeConnector\");\n mf.checkMem( Case.MSG, \"MSG_NoGDSAddress\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/aa43ae56aa701db60cff732985ad2c40b783f8f0", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6 ] }, { "input": " public void validateMethod(ConstantPool pool, boolean allowClinit) {\n public void validateMethod(ConstantPool pool, boolean allowClinit, boolean checkVoidInitOrClinit) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/2137d4079e2d035b71752fbaadb65750804ad76f", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5 ] }, { "input": " return AMD64MOp.INC;\n result = AMD64MOp.INC;\n return AMD64MOp.DEC;\n result = AMD64MOp.DEC;\n return AMD64MOp.INC;\n result = AMD64MOp.INC;\n return AMD64MOp.DEC;\n result = AMD64MOp.DEC;\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/oracle/graal/commit/6a6be0bfe88627590921f2469347cf7c4e8b1e98", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 7 ] }, { "input": " AMD64MOp mop = getMOp(op, constant);\n AMD64MOp mop = getMOp(op, size, constant);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/634c7c4b82957166522a01b6609d85a7d6423fb7", "target_edit_idx": 4, "propagatable_edit_idx": [ 11, 5 ] }, { "input": " public static AMD64MOp getMOp(AMD64BinaryArithmetic op, int constant) {\n public static AMD64MOp getMOp(AMD64BinaryArithmetic op, OperandSize size, int constant) {\n AMD64MOp result = null;\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/oracle/graal/commit/634c7c4b82957166522a01b6609d85a7d6423fb7", "target_edit_idx": 5, "propagatable_edit_idx": [ 11, 4 ] }, { "input": " AMD64Assembler.AMD64MOp mop = AMD64ArithmeticLIRGenerator.getMOp(arithmeticOp, (int) valueCst);\n AMD64Assembler.AMD64MOp mop = AMD64ArithmeticLIRGenerator.getMOp(arithmeticOp, size, (int) valueCst);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/634c7c4b82957166522a01b6609d85a7d6423fb7", "target_edit_idx": 11, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " public abstract boolean allowsHostFileAccess(IOAccess ioAccess);\n public abstract boolean hasHostFileAccess(IOAccess ioAccess);\n boolean allowsHostFileAccess() {\n boolean hasHostFileAccess() {\n public boolean allowsHostFileAccess(IOAccess ioAccess) {\n return ioAccess.allowsHostFileAccess();\n public boolean hasHostFileAccess(IOAccess ioAccess) {\n return ioAccess.hasHostFileAccess();\n final boolean allowHostFileAccess = getImpl().getIO().allowsHostFileAccess(ioAccess);\n final boolean allowHostFileAccess = getImpl().getIO().hasHostFileAccess(ioAccess);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/29d4d7870534429e64f48e5022fff748aa320369", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 14 ] }, { "input": " boolean allowsHostFileAccess() {\n boolean hasHostFileAccess() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/29d4d7870534429e64f48e5022fff748aa320369", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4, 14 ] }, { "input": " public boolean allowsHostFileAccess(IOAccess ioAccess) {\n return ioAccess.allowsHostFileAccess();\n public boolean hasHostFileAccess(IOAccess ioAccess) {\n return ioAccess.hasHostFileAccess();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/29d4d7870534429e64f48e5022fff748aa320369", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 14 ] }, { "input": " return engineAccess().hasAllAccess(ctx.fileSystem);\n return engineAccess().hasSocketAccess(ctx.engineObject);\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/29d4d7870534429e64f48e5022fff748aa320369", "target_edit_idx": 7, "propagatable_edit_idx": [ 6, 9, 10, 11, 12 ] }, { "input": " public abstract boolean hasAllAccess(Object fileSystemContext);\n public abstract boolean hasSocketAccess(Object fileSystemContext);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/29d4d7870534429e64f48e5022fff748aa320369", "target_edit_idx": 9, "propagatable_edit_idx": [ 6, 7, 10, 11, 12 ] }, { "input": " if (!ALLOW_IO || !SourceAccessor.hasAllAccess(fileSystemContext)) {\n if (!ALLOW_IO || !SourceAccessor.hasSocketAccess(fileSystemContext)) {\n public boolean hasAllAccess(Object fileSystemContext) {\n public boolean hasSocketAccess(Object fileSystemContext) {\n return engineAccess().hasAllAccess(ctx.fileSystem);\n return engineAccess().hasSocketAccess(ctx.engineObject);\n public abstract boolean hasAllAccess(Object fileSystemContext);\n public abstract boolean hasSocketAccess(Object fileSystemContext);\n if (ALLOW_IO && SourceAccessor.hasAllAccess(useFileSystemContext)) {\n if (ALLOW_IO && SourceAccessor.hasSocketAccess(useFileSystemContext)) {\n static boolean hasAllAccess(Object fileSystemContext) {\n return ACCESSOR.languageSupport().hasAllAccess(fileSystemContext);\n static boolean hasSocketAccess(Object fileSystemContext) {\n return ACCESSOR.languageSupport().hasSocketAccess(fileSystemContext);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/29d4d7870534429e64f48e5022fff748aa320369", "target_edit_idx": 11, "propagatable_edit_idx": [ 6, 7, 9, 10, 12 ] }, { "input": " public void initAllClasses() {\n public void loadAllClasses() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/f15cbf45c484f92c5273eac2ba2856347aa07eaa", "target_edit_idx": 0, "propagatable_edit_idx": [ 10, 1, 2, 3 ] }, { "input": " public void initAllClasses(ForkJoinPool executor, ImageClassLoader imageClassLoader) {\n new ClassInit(executor, imageClassLoader).init();\n public void loadAllClasses(ForkJoinPool executor, ImageClassLoader imageClassLoader) {\n new LoadClassHandler(executor, imageClassLoader).run();\n public void initAllClasses() {\n public void loadAllClasses() {\n classLoaderSupport.initAllClasses(executor, this);\n classLoaderSupport.loadAllClasses(executor, this);\n * {@link com.oracle.svm.hosted.ImageClassLoader#initAllClasses()} gets called.\n * {@link com.oracle.svm.hosted.ImageClassLoader#loadAllClasses()} gets called.\n classLoader.initAllClasses();\n classLoader.loadAllClasses();\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/f15cbf45c484f92c5273eac2ba2856347aa07eaa", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 10 ] }, { "input": " StructuredGraph graph = parseGraph(\"addSnippet\", false, false);\n StructuredGraph graph = parseGraph(\"addSnippet\", false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/57f5a273d2b6a21719a2c877fca8db4fd3f747a8", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 3 ] }, { "input": " private StructuredGraph parseGraph(String methodName, boolean enableOptimizationLog, boolean setCompilationListener) {\n private StructuredGraph parseGraph(String methodName, boolean enableOptimizationLog) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/57f5a273d2b6a21719a2c877fca8db4fd3f747a8", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " PolyglotThreadLocalActions.TL_HANDSHAKE.setChangeAllowActions(safepoint, true);\n boolean prevChangeAllowActions = PolyglotThreadLocalActions.TL_HANDSHAKE.setChangeAllowActions(safepoint, true);\n PolyglotThreadLocalActions.TL_HANDSHAKE.setChangeAllowActions(safepoint, false);\n PolyglotThreadLocalActions.TL_HANDSHAKE.setChangeAllowActions(safepoint, prevChangeAllowActions);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/5e22c13bc4704eb744e33a8e68fdddeacf970706", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " breakpointSpecifications = new BreakpointSpecification[BREAKPOINT_SPECIFICATIONS.length + REFLECTION_QUERIES_BREAKPOINT_SPECIFICATIONS.length];\n breakpointSpecifications = new BreakpointSpecification[BREAKPOINT_SPECIFICATIONS.length + REFLECTION_ACCESS_BREAKPOINT_SPECIFICATIONS.length];\n System.arraycopy(REFLECTION_QUERIES_BREAKPOINT_SPECIFICATIONS, 0, breakpointSpecifications, BREAKPOINT_SPECIFICATIONS.length, REFLECTION_QUERIES_BREAKPOINT_SPECIFICATIONS.length);\n System.arraycopy(REFLECTION_ACCESS_BREAKPOINT_SPECIFICATIONS, 0, breakpointSpecifications, BREAKPOINT_SPECIFICATIONS.length, REFLECTION_ACCESS_BREAKPOINT_SPECIFICATIONS.length);\n private static final BreakpointSpecification[] REFLECTION_QUERIES_BREAKPOINT_SPECIFICATIONS = {\n brk(\"java/lang/Class\", \"getMethods\", \"()[Ljava/lang/reflect/Method;\", BreakpointInterceptor::getMethods),\n brk(\"java/lang/Class\", \"getConstructors\", \"()[Ljava/lang/reflect/Constructor;\", BreakpointInterceptor::getConstructors),\n brk(\"java/lang/Class\", \"getDeclaredMethods\", \"()[Ljava/lang/reflect/Method;\", BreakpointInterceptor::getDeclaredMethods),\n brk(\"java/lang/Class\", \"getDeclaredConstructors\", \"()[Ljava/lang/reflect/Constructor;\", BreakpointInterceptor::getDeclaredConstructors),\n\n brk(\"java/lang/Class\", \"getMethod\", \"(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;\", BreakpointInterceptor::getMethod),\n brk(\"java/lang/Class\", \"getConstructor\", \"([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;\", BreakpointInterceptor::getConstructor),\n brk(\"java/lang/Class\", \"getDeclaredMethod\", \"(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;\", BreakpointInterceptor::getDeclaredMethod),\n brk(\"java/lang/Class\", \"getDeclaredConstructor\", \"([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;\", BreakpointInterceptor::getConstructor),\n private static final BreakpointSpecification[] REFLECTION_ACCESS_BREAKPOINT_SPECIFICATIONS = {\n brk(\"java/lang/reflect/Method\", \"invoke\", \"(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;\", BreakpointInterceptor::invokeMethod),\n brk(\"sun/reflect/misc/MethodUtil\", \"invoke\", \"(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;\", BreakpointInterceptor::invokeMethod),\n brk(\"java/lang/reflect/Constructor\", \"newInstance\", \"([Ljava/lang/Object;)Ljava/lang/Object;\", BreakpointInterceptor::invokeConstructor),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/7c737ce70ef965c3fe9bbe7b2e1e24e755c4226a", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " breakpointSpecifications = new BreakpointSpecification[BREAKPOINT_SPECIFICATIONS.length + REFLECTION_QUERIES_BREAKPOINT_SPECIFICATIONS.length];\n breakpointSpecifications = new BreakpointSpecification[BREAKPOINT_SPECIFICATIONS.length + REFLECTION_ACCESS_BREAKPOINT_SPECIFICATIONS.length];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/240ac57c9c75a42a0ea2d68041adeaad148d81f4", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " return ServiceLoader.load(AbstractPolyglotImpl.class).iterator();\n Class lookupClass = AbstractPolyglotImpl.class;\n ModuleLayer moduleLayer = lookupClass.getModule().getLayer();\n Iterable services;\n if (moduleLayer != null) {\n services = ServiceLoader.load(moduleLayer, AbstractPolyglotImpl.class);\n } else {\n services = ServiceLoader.load(AbstractPolyglotImpl.class, lookupClass.getClassLoader());\n }\n Iterator iterator = services.iterator();\n if (!iterator.hasNext()) {\n services = ServiceLoader.load(AbstractPolyglotImpl.class);\n iterator = services.iterator();\n }\n return iterator;\n return ServiceLoader.load(service);\n Class lookupClass = TruffleRuntimeServices.class;\n ModuleLayer moduleLayer = lookupClass.getModule().getLayer();\n Iterable services;\n if (moduleLayer != null) {\n services = ServiceLoader.load(moduleLayer, service);\n } else {\n services = ServiceLoader.load(service, lookupClass.getClassLoader());\n }\n if (!services.iterator().hasNext()) {\n services = ServiceLoader.load(service);\n }\n return services;\n final ServiceLoader serviceLoader = ServiceLoader.load(HomeFinder.class);\n final Iterator iterator = serviceLoader.iterator();\n Class lookupClass = HomeFinder.class;\n ModuleLayer moduleLayer = lookupClass.getModule().getLayer();\n Iterable services;\n if (moduleLayer != null) {\n services = ServiceLoader.load(moduleLayer, HomeFinder.class);\n } else {\n services = ServiceLoader.load(HomeFinder.class, lookupClass.getClassLoader());\n }\n Iterator iterator = services.iterator();\n if (!iterator.hasNext()) {\n services = ServiceLoader.load(HomeFinder.class);\n iterator = services.iterator();\n }\n List> loaders = Collections.singletonList(ServiceLoader.load(TruffleRuntimeAccess.class));\n TruffleRuntimeAccess access = selectTruffleRuntimeAccess(loaders);\n Class lookupClass = Truffle.class;\n ModuleLayer moduleLayer = lookupClass.getModule().getLayer();\n TruffleRuntimeAccess access;\n if (moduleLayer != null) {\n access = selectTruffleRuntimeAccess(List.of(ServiceLoader.load(moduleLayer, TruffleRuntimeAccess.class)));\n } else {\n access = selectTruffleRuntimeAccess(List.of(ServiceLoader.load(TruffleRuntimeAccess.class, lookupClass.getClassLoader())));\n }\n if (access == null) {\n access = selectTruffleRuntimeAccess(List.of(ServiceLoader.load(TruffleRuntimeAccess.class)));\n }\n return ServiceLoader.load(service);\n ModuleLayer moduleLayer = truffleModule.getLayer();\n Iterable services;\n if (moduleLayer != null) {\n services = ServiceLoader.load(moduleLayer, service);\n } else {\n services = ServiceLoader.load(service, DefaultTruffleRuntime.class.getClassLoader());\n }\n if (!services.iterator().hasNext()) {\n services = ServiceLoader.load(service);\n }\n return services;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/02220df6f9c82454eaa67cc5b54783c1d028d2ed", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 6, 7 ] }, { "input": " List> loaders = Collections.singletonList(ServiceLoader.load(TruffleRuntimeAccess.class));\n TruffleRuntimeAccess access = selectTruffleRuntimeAccess(loaders);\n Class lookupClass = Truffle.class;\n ModuleLayer moduleLayer = lookupClass.getModule().getLayer();\n TruffleRuntimeAccess access;\n if (moduleLayer != null) {\n access = selectTruffleRuntimeAccess(List.of(ServiceLoader.load(moduleLayer, TruffleRuntimeAccess.class)));\n } else {\n access = selectTruffleRuntimeAccess(List.of(ServiceLoader.load(TruffleRuntimeAccess.class, lookupClass.getClassLoader())));\n }\n if (access == null) {\n access = selectTruffleRuntimeAccess(List.of(ServiceLoader.load(TruffleRuntimeAccess.class)));\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/02220df6f9c82454eaa67cc5b54783c1d028d2ed", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 3, 7 ] }, { "input": " return ServiceLoader.load(service);\n ModuleLayer moduleLayer = truffleModule.getLayer();\n Iterable services;\n if (moduleLayer != null) {\n services = ServiceLoader.load(moduleLayer, service);\n } else {\n services = ServiceLoader.load(service, DefaultTruffleRuntime.class.getClassLoader());\n }\n if (!services.iterator().hasNext()) {\n services = ServiceLoader.load(service);\n }\n return services;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/02220df6f9c82454eaa67cc5b54783c1d028d2ed", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 2, 3, 6 ] }, { "input": " ((LoopBeginNode) merge).removeExits();\n ((LoopBeginNode) merge).removeExits(forKillCFG);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/86b09edb20e485b3408f1f507b7e9779fd7f4e8f", "target_edit_idx": 8, "propagatable_edit_idx": [ 0 ] }, { "input": " return ServiceLoader.load(AbstractPolyglotImpl.class).iterator();\n ModuleLayer moduleLayer = AbstractPolyglotImpl.class.getModule().getLayer();\n Iterable services;\n if (moduleLayer != null) {\n services = ServiceLoader.load(moduleLayer, AbstractPolyglotImpl.class);\n } else {\n services = ServiceLoader.load(AbstractPolyglotImpl.class, AbstractPolyglotImpl.class.getClassLoader());\n }\n return services.iterator();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/32dd8bcc7b62868da37ea781e82afefb1f9144f3", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 6 ] }, { "input": " return ServiceLoader.load(service);\n ModuleLayer moduleLayer = truffleModule.getLayer();\n if (moduleLayer != null) {\n return ServiceLoader.load(moduleLayer, service);\n } else {\n return ServiceLoader.load(service, DefaultTruffleRuntime.class.getClassLoader());\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/32dd8bcc7b62868da37ea781e82afefb1f9144f3", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": " Object executeBody(VirtualFrame frame) {\n public Object execute(VirtualFrame frame) {\n Object executeBody(VirtualFrame frame) {\n public Object execute(VirtualFrame frame) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5555555555555556, "commit_url": "https://github.com/oracle/graal/commit/0ba56086eb94347cdb76398b55af92ebe15c12ca", "target_edit_idx": 1, "propagatable_edit_idx": [ 10 ] }, { "input": " void initializeBody(VirtualFrame frame) {\n // nop\n }\n\n @Override\n public Object executeBody(VirtualFrame frame) {\n public Object execute(VirtualFrame frame) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/0ba56086eb94347cdb76398b55af92ebe15c12ca", "target_edit_idx": 9, "propagatable_edit_idx": [ 12 ] }, { "input": "import static com.oracle.svm.hosted.xml.XMLParsersRegistration.SchemaFactoryClasses;\nimport static com.oracle.svm.hosted.xml.XMLParsersRegistration.SchemaDVFactoryClasses;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/61982399c18cd443d906986d55468090e1f01ce3", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " /** See {@link JVM#setSampleThreads}. */\n /** See {@code JVM#setSampleThreads}. */\n /** See {@link JVM#setSampleThreads}. */\n /** See {@code JVM#setSampleThreads}. */\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/oracle/graal/commit/759ed31be55fa07d8aee5082dff4313e2f82bf80", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/oracle/graal/commit/b9c711ec18b96e8061ae8cf4c24e64c8b6167643", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 11 ] }, { "input": " public void printCreationEnd(int imageSize, int numHeapObjects, long imageHeapSize, int codeCacheSize,\n public void printCreationEnd(int imageSize, int numHeapObjects, long imageHeapSize, int codeAreaSize,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/b9c711ec18b96e8061ae8cf4c24e64c8b6167643", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "import java.lang.reflect.Proxy;\nimport java.lang.reflect.Proxy;\n", "class": "clone", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/oracle/graal/commit/825b65a242a9b22e01bad3b5a9ae86ec58129ae8", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " protected AllocatableRegisters createAllocatableRegisters(RegisterArray registers, PlatformKind kind) {\n private static AllocatableRegisters createAllocatableRegisters(RegisterArray registers) {\n if (registers.size() == 0) {\n return null;\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/2d2dda9f49de64f54c8b22269912a6706fa2c849", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " loops.detectedCountedLoops();\n loops.detectCountedLoops();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/0e1e440e89919e32775b56d4be1be559b3e64288", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " dataCounted.detectedCountedLoops();\n dataCounted.detectCountedLoops();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7777777777777778, "commit_url": "https://github.com/oracle/graal/commit/0e1e440e89919e32775b56d4be1be559b3e64288", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9 ] }, { "input": " public void detectedCountedLoops() {\n public void detectCountedLoops() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/oracle/graal/commit/0e1e440e89919e32775b56d4be1be559b3e64288", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " private ZipFile zipFile;\n\n Archive(File file) {\n Archive(File file, ZipFile zipFile) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/8698da1771a5252a7b3759de5969cf52719f2100", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": " throw new IOException(\"\\\"\" + name + \"\\\" is not an image file\");\n throw new NotAnImageFile();\n throw new IOException(\"\\\"\" + name + \"\\\" is not an image file\");\n throw new NotAnImageFile();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/8698da1771a5252a7b3759de5969cf52719f2100", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": " protected final CoreLocation arrayLocation;\n\n protected ArrayLocation(int index, CoreLocation arrayLocation) {\n protected ArrayLocation(int index) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/fd737ca8a72723389de54516f9622a9c00a5ce62", "target_edit_idx": 5, "propagatable_edit_idx": [ 10, 11, 7 ] }, { "input": " return ((Object[]) getArray(store, guard))[index];\n return getArray(store)[index];\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/fd737ca8a72723389de54516f9622a9c00a5ce62", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 13, 14 ] }, { "input": " ((Object[]) getArray(store, guard))[index] = value;\n getArray(store)[index] = value;\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/fd737ca8a72723389de54516f9622a9c00a5ce62", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 13, 14 ] }, { "input": " protected LongArrayLocation(int index, CoreLocation arrayLocation, boolean allowInt) {\n super(index, arrayLocation);\n protected LongArrayLocation(int index, boolean allowInt) {\n super(index);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/fd737ca8a72723389de54516f9622a9c00a5ce62", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 5, 7 ] }, { "input": " protected LongArrayLocation(int index, CoreLocation arrayLocation) {\n this(index, arrayLocation, false);\n protected LongArrayLocation(int index) {\n this(index, false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/fd737ca8a72723389de54516f9622a9c00a5ce62", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 5, 7 ] }, { "input": " private static final String ALWAYS_VALID_NAME = new String(\"\");\n private static final Object ALWAYS_VALID_NAME = new Object();\n private static final String ALWAYS_VALID = new String(\"\");\n private static final Object ALWAYS_VALID = new Object();\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/35033de3ebc32ea401b117a94bcf733943b75e3b", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": " Assumption NEVER_VALID = createNeverInvalid();\n Assumption NEVER_VALID = createNeverValid();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/35033de3ebc32ea401b117a94bcf733943b75e3b", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " ResourceStorageEntry entry = Resources.get(module.getName(), canonicalResourceName);\n addURLEntries(resourcesURLs, entry, module.getName(), canonicalResourceName);\n ResourceStorageEntry entry = Resources.get(module.getName(), resourceName);\n addURLEntries(resourcesURLs, entry, module.getName(), resourceName);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/oracle/graal/commit/aadd2fd2620f9e70bf8f57b076c16bab9008bad6", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 12, 13 ] }, { "input": " if (firstTier) {\n if (firstTier || SubstrateOptions.DevMode.getValue()) {\n if (firstTier) {\n if (firstTier || SubstrateOptions.DevMode.getValue()) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/7da9c2590ddf6a2c50d9b07903f5f4e93e02278d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " private DFACaptureGroupPartialTransition getCGTransitionToSelf2() {\n private DFACaptureGroupPartialTransition getCGTransitionToSelf() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/887ea395bc414bea7286939f97635ec516dacc94", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " subtract(indexUpdates, other.indexUpdates),\n subtract(indexClears, other.indexClears),\n lastGroupUpdates,\n subtract(indexUpdates, other.indexUpdates, IndexOperation[]::new, EMPTY_INDEX_OPS),\n subtract(indexClears, other.indexClears, IndexOperation[]::new, EMPTY_INDEX_OPS),\n subtract(lastGroupUpdates, other.lastGroupUpdates, LastGroupUpdate[]::new, EMPTY_LAST_GROUP_UPDATES),\n private static IndexOperation[] subtract(IndexOperation[] a, IndexOperation[] b) {\n if (b == EMPTY_INDEX_OPS) {\n private static T[] subtract(T[] a, T[] b, IntFunction arraySupplier, T[] emptyInstance) {\n if (b == emptyInstance) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/887ea395bc414bea7286939f97635ec516dacc94", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " private static IndexOperation[] subtract(IndexOperation[] a, IndexOperation[] b) {\n if (b == EMPTY_INDEX_OPS) {\n private static T[] subtract(T[] a, T[] b, IntFunction arraySupplier, T[] emptyInstance) {\n if (b == emptyInstance) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0379746835443038, "commit_url": "https://github.com/oracle/graal/commit/887ea395bc414bea7286939f97635ec516dacc94", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " return new Object[]{a1, fromIndex1, a2, fromIndex2, withMask ? mask(mask) : null, mask.length(), expected};\n return new Object[]{a1, fromIndex1, a2, fromIndex2, withMask ? mask(mask) : null, mask.length(), expected, expected};\n return new Object[]{a1, fromIndex1, a2, fromIndex2, withMask ? mask(maskLength) : null, maskLength, expected};\n return new Object[]{a1, fromIndex1, a2, fromIndex2, withMask ? mask(maskLength) : null, maskLength, expected, expected};\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/0ae71724d8f60d97b8f44df4b77633ec330853d9", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " public ArrayUtilsRegionEqualsWithMaskTest(String a1, int fromIndex1, String a2, int fromIndex2, String mask, int length, boolean expected) {\n public ArrayUtilsRegionEqualsWithMaskTest(String a1, int fromIndex1, String a2, int fromIndex2, String mask, int length, boolean expectedByte, boolean expectedChar) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/0ae71724d8f60d97b8f44df4b77633ec330853d9", "target_edit_idx": 10, "propagatable_edit_idx": [ 2 ] }, { "input": " public URI getCovarageUri() {\n public URI getCoverageUri() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/c5a45ed5d64add9649b349f162f9d6788842a26e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " public URI getCovarageUri() {\n public URI getCoverageUri() {\n return coverageDataObjects == null ? null : coverageDataObjects.stream().map(coverageData -> coverageData.getCovarageUri()).collect(Collectors.toSet());\n return coverageDataObjects == null ? null : coverageDataObjects.stream().map(coverageData -> coverageData.getCoverageUri()).collect(Collectors.toSet());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/01f0fdf45923a16e7b58aac3c64ebebe449cda8f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " List vmArgs = SubprocessUtil.getVMCommandLine();\n List vmArgs = SubprocessUtil.getVMCommandLine(true);\n public static List getVMCommandLine() {\n public static List getVMCommandLine(boolean removeDebuggerArguments) {\n List vmArgs = SubprocessUtil.getVMCommandLine();\n List vmArgs = SubprocessUtil.getVMCommandLine(true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/907d3968d5f9eacc5bf7ca14c2ecebb32804c995", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 5 ] }, { "input": " protected SingleImplementorSnapshot getImplementor() {\n protected SingleImplementorSnapshot readSingleImplementor() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/31d8991b9317b4589b3e6479c96d1fd2170fa850", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " @Specialization(assumptions = \"maybeImplementor.hasImplementor()\")\n @Specialization(assumptions = \"maybeSingleImplementor.hasImplementor()\", guards = \"implementor != null\")\n @Specialization(assumptions = \"maybeImplementor.hasImplementor()\")\n @Specialization(assumptions = \"maybeSingleImplementor.hasImplementor()\", guards = \"implementor != null\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/31d8991b9317b4589b3e6479c96d1fd2170fa850", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " @Cached(\"getImplementor()\") SingleImplementorSnapshot maybeImplementor) {\n return maybeSubtype == maybeImplementor.getImplementor();\n @SuppressWarnings(\"unused\") @Cached(\"readSingleImplementor()\") SingleImplementorSnapshot maybeSingleImplementor,\n @Cached(\"maybeSingleImplementor.getImplementor()\") ObjectKlass implementor) {\n return maybeSubtype == implementor;\n @Cached(\"getImplementor()\") SingleImplementorSnapshot maybeImplementor) {\n return maybeSubtype == maybeImplementor.getImplementor();\n @SuppressWarnings(\"unused\") @Cached(\"readSingleImplementor()\") SingleImplementorSnapshot maybeSingleImplementor,\n @Cached(\"maybeSingleImplementor.getImplementor()\") ObjectKlass implementor) {\n return maybeSubtype == implementor;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/31d8991b9317b4589b3e6479c96d1fd2170fa850", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " @Cached(\"methodLookup(resolutionSeed, receiver)\") Method.MethodVersion resolvedMethod,\n @Cached(\"methodLookup(resolutionSeed, cachedKlass)\") Method.MethodVersion resolvedMethod,\n @Cached(\"methodLookup(resolutionSeed, receiver)\") Method.MethodVersion resolvedMethod,\n @Cached(\"methodLookup(resolutionSeed, cachedKlass)\") Method.MethodVersion resolvedMethod,\n @Cached(\"methodLookup(resolutionSeed, receiver)\") Method.MethodVersion resolvedMethod,\n @Cached(\"methodLookup(resolutionSeed, receiver.getKlass())\") Method.MethodVersion resolvedMethod,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/5686fce1cada35a96ca41e0ba33c3e42ade81c26", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " Method.MethodVersion target = methodLookup(resolutionSeed, receiver);\n Method.MethodVersion target = methodLookup(resolutionSeed, receiver.getKlass());\n Method.MethodVersion target = methodLookup(resolutionSeed, receiver);\n Method.MethodVersion target = methodLookup(resolutionSeed, receiver.getKlass());\n Method.MethodVersion target = methodLookup(resolutionSeed, receiver);\n Method.MethodVersion target = methodLookup(resolutionSeed, receiver.getKlass());\n Method.MethodVersion target = methodLookup(resolutionSeed, receiver);\n Method.MethodVersion target = methodLookup(resolutionSeed, receiver.getKlass());\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/oracle/graal/commit/5686fce1cada35a96ca41e0ba33c3e42ade81c26", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 14, 6 ] }, { "input": " static Method.MethodVersion methodLookup(Method resolutionSeed, StaticObject receiver) {\n assert !receiver.getKlass().isArray();\n static Method.MethodVersion methodLookup(Method resolutionSeed, Klass receiverKlass) {\n assert !receiverKlass.isArray();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/oracle/graal/commit/5686fce1cada35a96ca41e0ba33c3e42ade81c26", "target_edit_idx": 2, "propagatable_edit_idx": [ 10 ] }, { "input": " return ClassRedefinition.handleRemovedMethod(resolutionSeed, receiver.getKlass()).getMethodVersion();\n return ClassRedefinition.handleRemovedMethod(resolutionSeed, receiverKlass).getMethodVersion();\n return ClassRedefinition.handleRemovedMethod(resolutionSeed, receiver.getKlass()).getMethodVersion();\n return ClassRedefinition.handleRemovedMethod(resolutionSeed, receiverKlass).getMethodVersion();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/5686fce1cada35a96ca41e0ba33c3e42ade81c26", "target_edit_idx": 3, "propagatable_edit_idx": [ 11 ] }, { "input": " Meta meta = receiver.getKlass().getMeta();\n Meta meta = receiverKlass.getMeta();\n Meta meta = receiver.getKlass().getMeta();\n Meta meta = receiverKlass.getMeta();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/5686fce1cada35a96ca41e0ba33c3e42ade81c26", "target_edit_idx": 5, "propagatable_edit_idx": [ 13 ] }, { "input": " final class LeafTypeAssumptionAccessor {\n protected LeafTypeAssumptionAccessor() {\n final class ClassHierarchyAccessor {\n protected ClassHierarchyAccessor() {\n protected static final LeafTypeAssumptionAccessor assumptionAccessor = new LeafTypeAssumptionAccessor();\n protected static final ClassHierarchyAccessor classHierarchyInfoAccessor = new ClassHierarchyAccessor();\nimport com.oracle.truffle.espresso.analysis.hierarchy.ClassHierarchyOracle.LeafTypeAssumptionAccessor;\nimport com.oracle.truffle.espresso.analysis.hierarchy.ClassHierarchyOracle.ClassHierarchyAccessor;\n public LeafTypeAssumption getLeafTypeAssumption(LeafTypeAssumptionAccessor assumptionAccessor) {\n public LeafTypeAssumption getLeafTypeAssumption(ClassHierarchyAccessor assumptionAccessor) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/oracle/graal/commit/cb7373a756049292ec1dc590fe04f8e33eb67ff0", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 7 ] }, { "input": " return hostedMethod.getModifiers();\n return getOriginalModifiers(hostedMethod);\n return hostedMethod.getModifiers();\n return getOriginalModifiers(hostedMethod);\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/oracle/graal/commit/1722528eace0abb5659cc46f46d0b2e1baf4872b", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " public boolean hasSideEffect() {\n public final boolean hasSideEffect() {\n public boolean hasSideEffect() {\n public final boolean hasSideEffect() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/b24fd0b3c3228f04b0d24b2211e167445d4f2cbd", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " public static void logValues() {\n public static void logValues(Log log) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.058823529411764705, "commit_url": "https://github.com/oracle/graal/commit/45a67d3bb50fe84af4ed54c9e387232000b207eb", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 9, 2 ] }, { "input": " SVGSamplerOutput.printSamplingFlameGraph(out, sampler);\n SVGSamplerOutput.printSamplingFlameGraph(out, data);\n this.sampler = sampler;\n this.data = data;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/f5484e39a3e0f5db48e7da13b5f09514fbc46dd8", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " if (descriptor != null) {\n if (descriptor != null && descriptor.isDeprecated()) {\n Log log = Log.log();\n log.string(\"Warning: Option '\").string(descriptor.getName()).string(\"' is deprecated and might be removed from future versions\");\n if (descriptor != null) {\n if (descriptor != null && descriptor.isDeprecated()) {\n String message = \"Warning: Option '\" + descriptor.getName() + \"' is deprecated and might be removed from future versions\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/c31924e4917aa148ba9e5738fde080afa83f86a0", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " private void collectMethodImplementations(BigBang bb) {\n private void collectMethodImplementations(BigBang unused) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/abcb28fb243cf4db2f818e5919e964a27ce75e44", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " public void noteMerge(BigBang bb) {\n public void noteMerge(BigBang unused) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/abcb28fb243cf4db2f818e5919e964a27ce75e44", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " public interface stat64 extends PointerBase {\n public interface stat extends PointerBase {\n public static native int fstat64(int fd, stat64 buf);\n public static native int fstat(int fd, stat buf);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.46153846153846156, "commit_url": "https://github.com/oracle/graal/commit/db33eeb0a81ec9096d3b1124b94a5485c6d5fb39", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " try {\n context2.getPolyglotBindings().putMember(\"foo\", nonSharableObject);\n fail();\n } catch (PolyglotException e) {\n assertTrue(e.getMessage(), e.getMessage().contains(\"cannot be passed from one context to another\"));\n }\n context2.getPolyglotBindings().putMember(\"foo\", nonSharableObject);\n\n try {\n context2.asValue(executable).execute(nonSharableObject);\n fail();\n } catch (PolyglotException e) {\n assertTrue(e.getMessage(), e.getMessage().contains(\"cannot be passed from one context to another\"));\n }\n context2.asValue(executable).execute(nonSharableObject);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/41bc0b29fe06e4807c68ba119c285675bc015384", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " private LocalVariableTable parseLocalVariableAttribute(Symbol name, byte[] code, int maxLocals) {\n private LocalVariableTable parseLocalVariableAttribute(Symbol name, int codeLength, int maxLocals) {\n private LocalVariableTable parseLocalVariableTypeAttribute(Symbol name, byte[] code, int maxLocals) {\n private LocalVariableTable parseLocalVariableTypeAttribute(Symbol name, int codeLength, int maxLocals) {\n private LocalVariableTable parseLocalVariableTable(Symbol name, byte[] code, int maxLocals) {\n private LocalVariableTable parseLocalVariableTable(Symbol name, int codeLength, int maxLocals) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/5a6303de9d4c641c581473cb1391913a89e5d102", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " return parseLocalVariableTable(name, code, maxLocals);\n return parseLocalVariableTable(name, codeLength, maxLocals);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/5a6303de9d4c641c581473cb1391913a89e5d102", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 3, 7 ] }, { "input": " codeAttributes[i] = parseLocalVariableTypeAttribute(attributeName, code, maxLocals);\n codeAttributes[i] = parseLocalVariableTypeAttribute(attributeName, codeLength, maxLocals);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/5a6303de9d4c641c581473cb1391913a89e5d102", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 3, 7 ] }, { "input": " attr = LLVM.LLVMCreateEnumAttribute(context, kind, TRUE);\n attr = LLVM.LLVMCreateEnumAttribute(context, kind, ENUM_ATTRIBUTE_VALUE);\n attr = LLVM.LLVMCreateEnumAttribute(context, kind, TRUE);\n attr = LLVM.LLVMCreateEnumAttribute(context, kind, ENUM_ATTRIBUTE_VALUE);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/oracle/graal/commit/1ccab6b3934f83b5545e2b7fb50d854deea95a70", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "import static com.oracle.svm.hosted.NativeImageOptions.DiagnosticMode;\nimport static com.oracle.svm.hosted.NativeImageOptions.DiagnosticsMode;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/5b865355495bb2e15bb5d20625c5a1c48fc8d531", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": " private static final Method SHAPE_GENERATOR_METHOD = ReflectionUtil.lookupMethod(SHAPE_GENERATOR_CLASS, \"getShapeGenerator\", GENERATOR_CLASS_LOADER_CLASS, Class.class, Class.class, boolean.class);\n private static final Field SHAPE_GENERATOR_BAO_FIELD = ReflectionUtil.lookupField(SHAPE_GENERATOR_CLASS, \"byteArrayOffset\");\n private static final Field SHAPE_GENERATOR_OAO_FIELD = ReflectionUtil.lookupField(SHAPE_GENERATOR_CLASS, \"objectArrayOffset\");\n private static final Field SHAPE_GENERATOR_SO_FIELD = ReflectionUtil.lookupField(SHAPE_GENERATOR_CLASS, \"shapeOffset\");\n private static final Method GET_SHAPE_GENERATOR_METHOD = ReflectionUtil.lookupMethod(SHAPE_GENERATOR_CLASS, \"getShapeGenerator\", GENERATOR_CLASS_LOADER_CLASS, Class.class, Class.class, boolean.class);\n private static final Method PATCH_OFFSETS_METHOD = ReflectionUtil.lookupMethod(SHAPE_GENERATOR_CLASS, \"patchOffsets\", int.class, int.class, int.class);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/31b8fe2b38d751c3f103b8344467cca76d2c126e", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " methodEntry.setInRange(debugInfoBase, debugRangeInfo);\n methodEntry.setInRangeAndUpdateFileEntry(debugInfoBase, debugRangeInfo);\n if (methodEntry.fileEntry != null) {\n /* Ensure that the methodEntry's fileEntry is present in the localsFileIndex */\n indexLocalFileEntry(methodEntry.fileEntry);\n }\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/37e5cbe57d553a104e01a65c0ed2b1d0ba9c7ac9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return String.format(\"Range(lo=0x%05x hi=0x%05x %s %s:%d)\", lo, hi, constructClassAndMethodNameWithParams(), fileEntry.getFullName(), line);\n return String.format(\"Range(lo=0x%05x hi=0x%05x %s %s:%d)\", lo, hi, constructClassAndMethodNameWithParams(), methodEntry.getFullFileName(), line);\n return fileEntry.getFileName();\n return methodEntry.getFileName();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/oracle/graal/commit/a658b95d63a93b1980e4ac81fd4c034c70b9d9cb", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " jdk_internal_module_ModuleLoaderMap_platformModules = jdk_internal_module_ModuleLoaderMap.requireDeclaredMethod(Name.platformModules, Signature.java_util_Set);\n jdk_internal_module_ModuleLoaderMap_bootModules = jdk_internal_module_ModuleLoaderMap.requireDeclaredMethod(Name.bootModules, Signature.java_util_Set);\n jdk_internal_module_ModuleLoaderMap_platformModules = null;\n jdk_internal_module_ModuleLoaderMap_bootModules = null;\n public final Method jdk_internal_module_ModuleLoaderMap_platformModules;\n public final Method jdk_internal_module_ModuleLoaderMap_bootModules;\n public static @Host(Set.class) StaticObject platformModules(\n public static @Host(Set.class) StaticObject bootModules(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/425ddade124e97da1f50b6f8594b5c223fe0e5c4", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 7 ] }, { "input": " // only inject on JDK 8\n if (isJava8) {\n Path hotswapJar = espressoHome.resolve(\"lib\").resolve(\"hotswap.jar\");\n if (Files.isReadable(hotswapJar)) {\n TruffleLogger.getLogger(EspressoLanguage.ID).fine(\"Adding HotSwap API to the boot classpath: \" + hotswapJar);\n bootClasspath.add(hotswapJar);\n } else {\n TruffleLogger.getLogger(EspressoLanguage.ID).warning(\"hotswap.jar (HotSwap API) not found at \" + espressoHome.resolve(\"lib\"));\n }\n Path hotswapJar = espressoHome.resolve(\"lib\").resolve(\"hotswap.jar\");\n if (Files.isReadable(hotswapJar)) {\n TruffleLogger.getLogger(EspressoLanguage.ID).fine(\"Adding HotSwap API to the boot classpath: \" + hotswapJar);\n bootClasspath.add(hotswapJar);\n } else {\n TruffleLogger.getLogger(EspressoLanguage.ID).warning(\"hotswap.jar (HotSwap API) not found at \" + espressoHome.resolve(\"lib\"));\n // only inject on JDK 8.\n if (isJava8) {\n Path polyglotJar = espressoHome.resolve(\"lib\").resolve(\"polyglot.jar\");\n if (Files.isReadable(polyglotJar)) {\n TruffleLogger.getLogger(EspressoLanguage.ID).fine(\"Adding Polyglot API to the boot classpath: \" + polyglotJar);\n bootClasspath.add(polyglotJar);\n } else {\n TruffleLogger.getLogger(EspressoLanguage.ID).warning(\"polyglot.jar (Polyglot API) not found at \" + espressoHome.resolve(\"lib\"));\n }\n Path polyglotJar = espressoHome.resolve(\"lib\").resolve(\"polyglot.jar\");\n if (Files.isReadable(polyglotJar)) {\n TruffleLogger.getLogger(EspressoLanguage.ID).fine(\"Adding Polyglot API to the boot classpath: \" + polyglotJar);\n bootClasspath.add(polyglotJar);\n } else {\n TruffleLogger.getLogger(EspressoLanguage.ID).warning(\"polyglot.jar (Polyglot API) not found at \" + espressoHome.resolve(\"lib\"));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/425ddade124e97da1f50b6f8594b5c223fe0e5c4", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " RTLD_DEFAULT, // Linux Max/Darwin\n RTLD_OPEN_DEFAULT, // Linux Max/Darwin\n return RTLDFlags.RTLD_DEFAULT.isActive(rtldFlags);\n return RTLDFlags.RTLD_OPEN_DEFAULT.isActive(rtldFlags);\n RTLDFlags localOrGlobal = RTLDFlags.RTLD_DEFAULT;\n RTLDFlags localOrGlobal = RTLDFlags.RTLD_OPEN_DEFAULT;\n if (RTLDFlags.RTLD_DEFAULT.isActive(localOrGlobal)) {\n if (RTLDFlags.RTLD_OPEN_DEFAULT.isActive(localOrGlobal)) {\n if (RTLDFlags.RTLD_DEFAULT.isActive(localOrGlobal)) {\n if (RTLDFlags.RTLD_OPEN_DEFAULT.isActive(localOrGlobal)) {\n if (RTLDFlags.RTLD_DEFAULT.isActive(localOrGlobal)) {\n if (RTLDFlags.RTLD_OPEN_DEFAULT.isActive(localOrGlobal)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/a4f4a5b360e048391f99c8e4c19c607bdd2433d7", "target_edit_idx": 0, "propagatable_edit_idx": [ 5, 6, 7, 8, 9 ] }, { "input": " if (RTLDFlags.RTLD_DEFAULT.isActive(localOrGlobal)) {\n if (RTLDFlags.RTLD_OPEN_DEFAULT.isActive(localOrGlobal)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/a4f4a5b360e048391f99c8e4c19c607bdd2433d7", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 5, 6, 7, 9 ] }, { "input": " builder.property(property);\n builder.build();\n try {\n // You cannot add the same property twice\n builder.property(property);\n Assert.fail();\n } catch (IllegalArgumentException e) {\n // You cannot add the same property twice\n Assert.assertEquals(\"This builder already contains a property named 'property'\", e.getMessage());\n }\n builder.property(p2);\n builder.build();\n try {\n // You cannot add two properties with the same name\n builder.property(p2);\n Assert.fail();\n } catch (IllegalArgumentException e) {\n Assert.assertEquals(\"This builder already contains a property named 'property'\", e.getMessage());\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/e050c6079c79b257245a6d0d81b4a17b68f961e2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " throw new RuntimeException(\"Attempt to reinitialize the offset of static property '\" + this + \"' of kind '\" + StaticPropertyKind.valueOf(getInternalKind()).name() + \"'.\\n\" +\n throw new RuntimeException(\"Attempt to reinitialize the offset of static property '\" + getId() + \"' of kind '\" + StaticPropertyKind.valueOf(getInternalKind()).name() + \"'.\\n\" +\n throw new RuntimeException(\"Attempt to reinitialize the shape of static property '\" + this + \"' of kind '\" + StaticPropertyKind.valueOf(getInternalKind()).name() + \"'.\\n\" +\n throw new RuntimeException(\"Attempt to reinitialize the shape of static property '\" + getId() + \"' of kind '\" + StaticPropertyKind.valueOf(getInternalKind()).name() + \"'.\\n\" +\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/e050c6079c79b257245a6d0d81b4a17b68f961e2", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " return property + \"@\" + System.identityHashCode(property);\n if (property instanceof DefaultStaticProperty) {\n return ((DefaultStaticProperty) property).getId();\n } else {\n try {\n Method getId = StaticProperty.class.getDeclaredMethod(\"getId\");\n getId.setAccessible(true);\n return (String) getId.invoke(property);\n } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {\n throw new RuntimeException(e);\n }\n }\n return property.toString() + \"@\" + System.identityHashCode(property);\n return property.getId();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/cef64c5d0eff864c9f034bf32df288a6bfa67ae4", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " private final String name;\n private final String id;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/cef64c5d0eff864c9f034bf32df288a6bfa67ae4", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " for (Class p : m.getParameterTypes()) {\n int loadOpcode = Type.getType(p).getOpcode(ILOAD);\n mv.visitVarInsn(loadOpcode, var++);\n constructorDescriptor.append(Type.getDescriptor(p));\n Class[] params = m.getParameterTypes();\n for (int i = 0; i < params.length; i++) {\n int loadOpcode = Type.getType(params[i]).getOpcode(ILOAD);\n mv.visitVarInsn(loadOpcode, i + 1);\n constructorDescriptor.append(Type.getDescriptor(params[i]));\n maxStack++;\n for (Class p : m.getParameterTypes()) {\n int loadOpcode = Type.getType(p).getOpcode(ILOAD);\n mv.visitVarInsn(loadOpcode, var++);\n constructorDescriptor.append(Type.getDescriptor(p));\n Class[] params = m.getParameterTypes();\n for (int i = 0; i < params.length; i++) {\n int loadOpcode = Type.getType(params[i]).getOpcode(ILOAD);\n mv.visitVarInsn(loadOpcode, i + 1);\n constructorDescriptor.append(Type.getDescriptor(params[i]));\n maxStack++;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/493a14c70ec84d933f1dc960939578ed33436d72", "target_edit_idx": 1, "propagatable_edit_idx": [ 10 ] }, { "input": " mv.visitMaxs(var, 1);\n mv.visitMaxs(maxStack, maxLocals);\n mv.visitMaxs(var, 1);\n mv.visitMaxs(maxStack, maxStack - 1);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/493a14c70ec84d933f1dc960939578ed33436d72", "target_edit_idx": 5, "propagatable_edit_idx": [ 11 ] }, { "input": " ClassWriter factoryWriter = new ClassWriter(ClassWriter.COMPUTE_MAXS);\n ClassWriter factoryWriter = new ClassWriter(0);\n ClassWriter factoryWriter = new ClassWriter(ClassWriter.COMPUTE_MAXS);\n ClassWriter factoryWriter = new ClassWriter(0);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/493a14c70ec84d933f1dc960939578ed33436d72", "target_edit_idx": 7, "propagatable_edit_idx": [ 13 ] }, { "input": " * Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/d5ec6c894350b4b8c927f877f4e6994a6cd7e8b6", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " protected abstract ValueNode createReadArrayComponentHub(StructuredGraph graph, ValueNode arrayHub, FixedNode anchor);\n protected abstract ValueNode createReadArrayComponentHub(StructuredGraph graph, ValueNode arrayHub, boolean isKnownObjectArray, FixedNode anchor);\n protected ValueNode createReadArrayComponentHub(StructuredGraph graph, ValueNode arrayHub, FixedNode anchor) {\n /*\n * Anchor the read of the element klass to the cfg, because it is only valid when arrayClass\n * is an object class, which might not be the case in other parts of the compiled method.\n */\n protected ValueNode createReadArrayComponentHub(StructuredGraph graph, ValueNode arrayHub, boolean isKnownObjectArray, FixedNode anchor) {\n GuardingNode guard = null;\n if (!isKnownObjectArray) {\n /*\n * Anchor the read of the element klass to the cfg, because it is only valid when\n * arrayClass is an object class, which might not be the case in other parts of the\n * compiled method.\n */\n guard = AbstractBeginNode.prevBegin(anchor);\n }\n ValueNode componentHub = createReadArrayComponentHub(graph, arrayClass, storeIndexed);\n boolean isKnownObjectArray = arrayType != null && !arrayType.getType().getComponentType().isPrimitive();\n ValueNode componentHub = createReadArrayComponentHub(graph, arrayClass, isKnownObjectArray, storeIndexed);\n ValueNode hub = createReadArrayComponentHub(graph, loadHub.getValue(), loadHub);\n ValueNode hub = createReadArrayComponentHub(graph, loadHub.getValue(), false, loadHub);\n protected ValueNode createReadArrayComponentHub(StructuredGraph graph, ValueNode arrayHub, FixedNode anchor) {\n protected ValueNode createReadArrayComponentHub(StructuredGraph graph, ValueNode arrayHub, boolean isKnownObjectArray, FixedNode anchor) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/c6d417a3160b011f782438bfdf23d970758605f2", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4, 6 ] }, { "input": " public void g1ArrayRangePreWriteBarrier(Address address, int length, @ConstantParameter int elementStride) {\n public void g1ArrayRangePreWriteBarrier(Address address, long length, @ConstantParameter int elementStride) {\n public void serialArrayRangeWriteBarrier(Address address, int length, @ConstantParameter int elementStride) {\n public void serialArrayRangeWriteBarrier(Address address, long length, @ConstantParameter int elementStride) {\n public void g1ArrayRangePostWriteBarrier(Address address, int length, @ConstantParameter int elementStride) {\n public void g1ArrayRangePostWriteBarrier(Address address, long length, @ConstantParameter int elementStride) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/0e7748580a54a4e4c4cbeae879a029542cc7a4a8", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 6 ] }, { "input": " protected static Word getPointerToFirstArrayElement(Address address, int length, int elementStride) {\n protected static Word getPointerToFirstArrayElement(Address address, long length, int elementStride) {\n protected static Word getPointerToLastArrayElement(Address address, int length, int elementStride) {\n protected static Word getPointerToLastArrayElement(Address address, long length, int elementStride) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/0e7748580a54a4e4c4cbeae879a029542cc7a4a8", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " void onHotSwap();\n void fire();\n postHotSwapActions.forEach(HotSwapAction::onHotSwap);\n postHotSwapActions.forEach(HotSwapAction::fire);\n actions.forEach(HotSwapAction::onHotSwap);\n actions.forEach(HotSwapAction::fire);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/9d34ec1ae9cd294de62bec1b3daa28bc30dd6f58", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " plugin.postHotSwap();\n plugin.postHotSwap(changedClasses);\n void postHotSwap();\n void postHotSwap(Class[] changedClasses);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/9d34ec1ae9cd294de62bec1b3daa28bc30dd6f58", "target_edit_idx": 7, "propagatable_edit_idx": [ 11 ] }, { "input": " plugin.postHotSwap();\n plugin.postHotSwap(changedClasses);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/631166a5f860b4c617dfc27717fabe1e9e37659f", "target_edit_idx": 7, "propagatable_edit_idx": [ 11 ] }, { "input": " private final ArrayList created = new ArrayList<>();\n private final ArrayList activeEnvironments = new ArrayList<>();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/57ba5b776fd8401db88865be1efc8158ca7e64e1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " created.remove(env);\n activeEnvironments.remove(env);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/oracle/graal/commit/57ba5b776fd8401db88865be1efc8158ca7e64e1", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4 ] }, { "input": "class BaseDaCapoBenchmarkSuite(mx_benchmark.JavaBenchmarkSuite, mx_benchmark.AveragingBenchmarkMixin, TemporaryWorkdirMixin):\nclass BaseDaCapoBenchmarkSuite(mx_benchmark.JavaBenchmarkSuite, mx_benchmark.AveragingBenchmarkMixin, mx_benchmark.TemporaryWorkdirMixin):\nclass RenaissanceBenchmarkSuite(mx_benchmark.JavaBenchmarkSuite, mx_benchmark.AveragingBenchmarkMixin, TemporaryWorkdirMixin):\nclass RenaissanceBenchmarkSuite(mx_benchmark.JavaBenchmarkSuite, mx_benchmark.AveragingBenchmarkMixin, mx_benchmark.TemporaryWorkdirMixin):\nclass RenaissanceLegacyBenchmarkSuite(mx_benchmark.JavaBenchmarkSuite, mx_benchmark.AveragingBenchmarkMixin, TemporaryWorkdirMixin):\nclass RenaissanceLegacyBenchmarkSuite(mx_benchmark.JavaBenchmarkSuite, mx_benchmark.AveragingBenchmarkMixin, mx_benchmark.TemporaryWorkdirMixin):\nclass SparkSqlPerfBenchmarkSuite(mx_benchmark.JavaBenchmarkSuite, mx_benchmark.AveragingBenchmarkMixin, TemporaryWorkdirMixin):\nclass SparkSqlPerfBenchmarkSuite(mx_benchmark.JavaBenchmarkSuite, mx_benchmark.AveragingBenchmarkMixin, mx_benchmark.TemporaryWorkdirMixin):\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/38f2ee9ac172cd81802e205138e14a86ff4dbd47", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " return getCallTarget(false);\n return getCallTarget(false, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/74e56f898d53db0a84b9633a87863601388636ff", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " public CallTarget getCallTarget(boolean initKlass) {\n public CallTarget getCallTargetNoSubstitution() {\n return getCallTarget(true, true);\n }\n\n private CallTarget getCallTarget(boolean initKlass, boolean noSubstitution) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/74e56f898d53db0a84b9633a87863601388636ff", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " public static RuleNode generateFromModules(String[] includedModuleNames, RuleNode.Inclusion inclusion, boolean reduce) {\n public static RuleNode generateFromModules(String[] moduleNames, RuleNode.Inclusion rootInclusion, RuleNode.Inclusion exportedInclusion, RuleNode.Inclusion unexportedInclusion, boolean reduce) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/c0dc15dd902d5812ec93f4c53092faca1b2a9ab2", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 6 ] }, { "input": " // String starting with + or - should have been enforced by option parsing.\n throw EspressoError.shouldNotReachHere();\n throw EspressoError.shouldNotReachHere(\"Option parsing should have enforced the string to start with '+' or '-': \", agent);\n throw EspressoError.shouldNotReachHere();\n throw EspressoError.shouldNotReachHere(e);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/143334df373ffa8358a941ac4e670f26131a003f", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " public static TruffleFile locateAbsolute(LLVMContext context, String lib, Path libPath) {\n public static TruffleFile locateAbsolute(LLVMContext context, Path libPath) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/d260d6834c9e52adbf26b8f2fe477d4b78e400c1", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " SubstrateAllocationSnippets.TLAB_TOP_IDENTITY, SubstrateAllocationSnippets.TLAB_END_IDENTITY);\n SubstrateAllocationSnippets.ALLOCATION_KILLED_LOCATION_IDENTITIES);\n SubstrateAllocationSnippets.TLAB_TOP_IDENTITY, SubstrateAllocationSnippets.TLAB_END_IDENTITY);\n SubstrateAllocationSnippets.ALLOCATION_KILLED_LOCATION_IDENTITIES);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/0329a4a1ac40501ba055c41bbb5989ae5c4186a9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " public static final Object[] ALLOCATION_LOCATION_IDENTITIES = new Object[]{TLAB_TOP_IDENTITY, TLAB_END_IDENTITY, AllocationCounter.COUNT_FIELD, AllocationCounter.SIZE_FIELD};\n public static final Object[] ALLOCATION_LOCATIONS = new Object[]{TLAB_TOP_IDENTITY, TLAB_END_IDENTITY, AllocationCounter.COUNT_FIELD, AllocationCounter.SIZE_FIELD};\n public static final LocationIdentity[] ALLOCATION_KILLED_LOCATION_IDENTITIES = new LocationIdentity[]{TLAB_TOP_IDENTITY, TLAB_END_IDENTITY};\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/0329a4a1ac40501ba055c41bbb5989ae5c4186a9", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " if (handler != null && !runtimeAccess().isOSRRootNode(rootNode)) {\n if (handler != null) {\n if (handler != null && !runtimeAccess().isOSRRootNode(rootNode)) {\n if (handler != null) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/eca22a26bc59160a842537a28ed3c0a97bca5c94", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\n @Override\n public int getOpcode() {\n return Bytecodes.INVOKEINTERFACE;\n }\n\n @Override\n public int getOpcode() {\n return Bytecodes.INVOKESTATIC;\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/c1b9e424e2b3d40295e2370bac7fe1633b008998", "target_edit_idx": 5, "propagatable_edit_idx": [ 10 ] }, { "input": " private final int opcode;\n private final int opcode;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/c1b9e424e2b3d40295e2370bac7fe1633b008998", "target_edit_idx": 6, "propagatable_edit_idx": [ 11 ] }, { "input": " this.opcode = opcode;\n this.opcode = opcode;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/c1b9e424e2b3d40295e2370bac7fe1633b008998", "target_edit_idx": 8, "propagatable_edit_idx": [ 13 ] }, { "input": "\n @Override\n public int getOpcode() {\n return opcode;\n }\n\n @Override\n public int getOpcode() {\n return opcode;\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/c1b9e424e2b3d40295e2370bac7fe1633b008998", "target_edit_idx": 9, "propagatable_edit_idx": [ 14 ] }, { "input": " private TruffleFile createTruffleFile(String libName, LibraryLocator locator, String reason) {\n private TruffleFile createTruffleFile(String libName, String libPath, LibraryLocator locator, String reason) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/26352c8872a6dfa23490d36dce812fd0fad79c77", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 7 ] }, { "input": " index = getDeclaredMethodIndex(thisKlass.getDeclaredMethods(), im, mname, sig);\n index = getMethodTableIndex(thisKlass.getDeclaredMethods(), im, mname, sig);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/04d688afc3bd271a0cc1b0cb9add0b4b167bf41c", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " private void createValues(ValueNode[] locals, ValueNode[] stack, ValueNode[] locks) {\n private static int computeSize(JavaKind[] slotKinds) {\n int result = 0;\n if (slotKinds != null) {\n for (JavaKind slotKind : slotKinds) {\n result += slotKind.getSlotCount();\n }\n }\n return result;\n }\n\n private void createValues(ValueNode[] locals, ValueNode[] stack, int initialStackSize, JavaKind[] pushedSlotKinds, ValueNode[] pushedValues, ValueNode[] locks) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.08695652173913043, "commit_url": "https://github.com/oracle/graal/commit/f8b8ab3e4ecf9f9236c96ffaa5b4c4d0435e91bb", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " info.leave(engine, this, !closed);\n info.leave(engine, this);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/9bff9c2e257cd51ab335477bba83892e64d695cd", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 3 ] }, { "input": " info.enter(this, context, true);\n info.enter(this, context);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/9bff9c2e257cd51ab335477bba83892e64d695cd", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 5 ] }, { "input": " info.leave(this, polyglotContext, true);\n info.leave(this, polyglotContext);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/9bff9c2e257cd51ab335477bba83892e64d695cd", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 1 ] }, { "input": "\n if (notify) {\n /*\n * Notify might be false if the context was closed already.\n */\n EngineAccessor.INSTRUMENT.notifyEnter(engine.instrumentationHandler, profiledContext.creatorTruffleContext);\n }\n EngineAccessor.INSTRUMENT.notifyEnter(engine.instrumentationHandler, profiledContext.creatorTruffleContext);\n if (notify) {\n /*\n * Notify might be false if the context was closed already.\n */\n EngineAccessor.INSTRUMENT.notifyLeave(engine.instrumentationHandler, profiledContext.creatorTruffleContext);\n }\n /*\n * Notify might be false if the context was closed already on a second thread.\n */\n EngineAccessor.INSTRUMENT.notifyLeave(engine.instrumentationHandler, profiledContext.creatorTruffleContext);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/9bff9c2e257cd51ab335477bba83892e64d695cd", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " void leave(PolyglotEngineImpl engine, PolyglotContextImpl profiledContext, boolean notify) {\n void leave(PolyglotEngineImpl engine, PolyglotContextImpl profiledContext) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/9bff9c2e257cd51ab335477bba83892e64d695cd", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " inspect.setMessageListener(this);\n inspect.open(this);\n iss.setMessageListener(new MessageEndpoint() {\n iss.open(new MessageEndpoint() {\n iss.setMessageListener(this);\n iss.open(this);\n }\n\n public void resetSessionEndpoint() {\n iss.clearMessageEndpoint();\n this.iss.setMessageListener(this);\n this.iss.open(this);\n iss.setMessageListener(new MessageEndpoint() {\n iss.open(new MessageEndpoint() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/oracle/graal/commit/8c730a35dbe8afa8ef46d71c2384895563a921b4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 10, 12, 9 ] }, { "input": " iss.setMessageListener(this);\n iss.open(this);\n }\n\n public void resetSessionEndpoint() {\n iss.clearMessageEndpoint();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/8c730a35dbe8afa8ef46d71c2384895563a921b4", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 12, 9 ] }, { "input": " this.iss.setMessageListener(null);\n assert this.iss.isClosed();\n iss.setMessageListener(null);\n iss.dispose();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/8c730a35dbe8afa8ef46d71c2384895563a921b4", "target_edit_idx": 11, "propagatable_edit_idx": [ 14 ] }, { "input": " @Specialization(guards = {\"foreigns.isForeign(obj)\", \"nativeTypes.hasNativeType(obj)\"})\n @Specialization(guards = {\"foreigns.isForeign(obj)\", \"nativeTypes.hasNativeType(obj) || typeFromMethodSignature == null\"})\n @Specialization(guards = {\"foreigns.isForeign(obj)\", \"!nativeTypes.hasNativeType(obj)\"})\n @Specialization(guards = {\"foreigns.isForeign(obj)\", \"!nativeTypes.hasNativeType(obj)\", \"typeFromMethodSignature != null\"})\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/76d05f2b57c1be74595b88b5fb7fa4c8882e2c86", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " controller.getEventListener().vmStarted(suspend);\n connection.doProcessCommands(suspend, activeThreads);\n // The VM started event must be sent when we're ready to process commands\n // doProcessCommands method will control when events can be fired without\n // causing races, so pass on a Callable\n Callable vmStartedJob = new Callable() {\n @Override\n public Void call() {\n controller.getEventListener().vmStarted(suspend);\n return null;\n }\n };\n connection.doProcessCommands(suspend, activeThreads, vmStartedJob);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/7c28f43ba17c1bcdc9e9fa71e752eb0204fa5bdf", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " boolean validEventContext() {\n boolean validEventContextOnWrapperInsert() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/deee82d0082328979ad4c14426b1fb9e23e036c4", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " long compilerIdleDelay = runtime.getCompilerIdleDelay();\n long compilerIdleDelay = runtime.getCompilerIdleDelay(callTarget);\n protected long getCompilerIdleDelay() {\n return -1;\n protected long getCompilerIdleDelay(@SuppressWarnings(\"unused\") OptimizedCallTarget callTarget) {\n return 0;\n protected long getCompilerIdleDelay() {\n // TODO: introduce a polyglot option (GR-23129)\n return 1000L;\n protected long getCompilerIdleDelay(OptimizedCallTarget callTarget) {\n return callTarget.getOptionValue(CompilerIdleDelay);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/9290bfb406d47c594a36d3d9bfdecc26c3aeb5b7", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 3 ] }, { "input": " long compilerIdleDelay = runtime.getCompilerIdleDelay();\n long compilerIdleDelay = runtime.getCompilerIdleDelay(callTarget);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/09d30911d6ae3db3b563ba2be9a84877eca6c94e", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 3 ] }, { "input": " private final boolean resourceLimit;\n private final boolean resourceExhausted;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/7e0c91dc9bd04a3fc8cc75691da9ed0eb6eb700d", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " pos += putByte((byte) getPCIdx(), scratch, 0);\n pos += putByte((byte) getReturnPCIdx(), scratch, 0);\n public int getPCIdx() {\n public int getReturnPCIdx() {\n pos = putByte((byte) getPCIdx(), buffer, pos);\n pos = putByte((byte) getReturnPCIdx(), buffer, pos);\n protected abstract int getPCIdx();\n protected abstract int getReturnPCIdx();\n public int getPCIdx() {\n return DW_CFA_PC_IDX;\n public int getReturnPCIdx() {\n return DW_CFA_LR_IDX;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/d6005ebeeb20f9973979c8e7028acfa2a860dc67", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 2, 3, 5 ] }, { "input": " public int getPCIdx() {\n return DW_CFA_PC_IDX;\n public int getReturnPCIdx() {\n return DW_CFA_LR_IDX;\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/d6005ebeeb20f9973979c8e7028acfa2a860dc67", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 9 ] }, { "input": " assert (mode & ISOLATED_NAMESPACE_FLAG) == 0;\n assert (mode & isolatedNamespaceFlag) == 0;\n return PosixTruffleNFISupport.ISOLATED_NAMESPACE_FLAG;\n return PosixTruffleNFISupport.isolatedNamespaceFlag;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/d395a0600ef3660cfc5eb684a082663ad7d351d0", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " static PolyglotException guestToHostException(PolyglotLanguageContext context, T e) {\n static PolyglotException guestToHostException(PolyglotLanguageContext languageContext, T e) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/34ff14922afb78e88699f25f8c44710a13569369", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " * Copyright (c) 2016, 2019, Oracle and/or its affiliates.\n * Copyright (c) 2016, 2020, Oracle and/or its affiliates.\n * Copyright (c) 2016, 2019, Oracle and/or its affiliates.\n * Copyright (c) 2016, 2020, Oracle and/or its affiliates.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/4ce223a1dc9f1a5c2c2e51b6282c001c097b5360", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " int value = readFloatAsInt32();\n state.useIntConstant(value);\n read4();\n long value = readFloatAsInt64();\n state.useLongConstant(value);\n read8();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/6e9f1918160173047945b087c6e775fe4f1e6753", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " protected static int peek4(byte[] data, int offset) {\n public static int peek4(byte[] data, int offset) {\n protected static long peek8(byte[] data, int offset) {\n public static long peek8(byte[] data, int offset) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/6e9f1918160173047945b087c6e775fe4f1e6753", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " int value = codeEntry().intConstant(intConstantOffset);\n intConstantOffset++;\n int value = BinaryStreamParser.peek4(codeEntry().data(), offset);\n long value = codeEntry().longConstant(longConstantOffset);\n longConstantOffset++;\n long value = BinaryStreamParser.peek8(codeEntry().data(), offset);\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/oracle/graal/commit/6e9f1918160173047945b087c6e775fe4f1e6753", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " * Copyright (c) 2016, 2019, Oracle and/or its affiliates.\n * Copyright (c) 2016, 2020, Oracle and/or its affiliates.\n * Copyright (c) 2019, Oracle and/or its affiliates.\n * Copyright (c) 2019, 2020, Oracle and/or its affiliates.\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/6d7a0774092071048f410a2469639cfdaa333c3a", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " return CEntryPointErrors.MAP_HEAP_FAILED;\n return CEntryPointErrors.RESERVE_ADDRESS_SPACE_FAILED;\n return CEntryPointErrors.MAP_HEAP_FAILED;\n return CEntryPointErrors.RESERVE_ADDRESS_SPACE_FAILED;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6428571428571429, "commit_url": "https://github.com/oracle/graal/commit/27bfb6b3e5beeba6d322736f7f0e7c2032d873f4", "target_edit_idx": 0, "propagatable_edit_idx": [ 9 ] }, { "input": " return CEntryPointErrors.MAP_HEAP_FAILED;\n return CEntryPointErrors.PROTECT_HEAP_FAILED;\n return CEntryPointErrors.MAP_HEAP_FAILED;\n return CEntryPointErrors.PROTECT_HEAP_FAILED;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/27bfb6b3e5beeba6d322736f7f0e7c2032d873f4", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " return CEntryPointErrors.MAP_HEAP_FAILED;\n return CEntryPointErrors.RESERVE_ADDRESS_SPACE_FAILED;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.36363636363636365, "commit_url": "https://github.com/oracle/graal/commit/27bfb6b3e5beeba6d322736f7f0e7c2032d873f4", "target_edit_idx": 9, "propagatable_edit_idx": [ 0 ] }, { "input": " @CompilationFinal public boolean traceFailedSplits;\n @CompilationFinal public boolean traceSplits;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/b7d694c4e1ae4dd50c01e3814b974cec237e41f3", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 6 ] }, { "input": " if (monitorContendedEnterCallback != null) {\n monitorContendedEnterCallback.run();\n }\n if (monitorContendedEnteredCallback != null) {\n monitorContendedEnteredCallback.run();\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/b8465836dfbd4ce2894302fabd4f7a3d1cf5adae", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " static CommandResult createReply(Packet packet, JDWPContext context) {\n static CommandResult createReply(Packet packet, DebuggerController controller) {\n static CommandResult createReply(Packet packet, JDWPContext context) {\n static CommandResult createReply(Packet packet, DebuggerController controller) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.02127659574468085, "commit_url": "https://github.com/oracle/graal/commit/1b0c8aca4c04d6831efe19710b32b4b8577f93a8", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " throw VMError.unimplemented();\n return WindowsUtils.getpid(process);\n throw VMError.unimplemented();\n try (CTypeConversion.CCharPointerHolder symbolHolder = CTypeConversion.toCString(symbol)) {\n WinBase.HMODULE builtinHandle = WinBase.GetModuleHandleA(WordFactory.nullPointer());\n PointerBase symbolAddress = WinBase.GetProcAddress(builtinHandle, symbolHolder.get());\n if (symbolAddress.isNonNull()) {\n return getObjectFile(symbolAddress);\n }\n }\n return null;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/172b830765ff6e82a7991668bca9e10e0555ec81", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " while (state.stackSize() > state.getStackState(0) + state.getContinuationReturnLength(0)) {\n state.pop();\n }\n state.setStackSize(state.getStackState(0) + state.getContinuationReturnLength(0));\n while (state.stackSize() > targetStackSize + continuationReturnLength) {\n state.pop();\n }\n state.setStackSize(targetStackSize + continuationReturnLength);\n while (state.stackSize() > targetStackSize + continuationReturnLength) {\n state.pop();\n }\n state.setStackSize(targetStackSize + continuationReturnLength);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/beb5c71e1cf947ce8706a7e4a6c90a7b793f601a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " state.setStackPointer(returnTypeId != ValueTypes.VOID_TYPE ? initialStackPointer + 1 : initialStackPointer);\n state.setStackSize(returnTypeId != ValueTypes.VOID_TYPE ? initialStackPointer + 1 : initialStackPointer);\n state.setStackPointer(blockTypeId != ValueTypes.VOID_TYPE ? initialStackPointer : initialStackPointer - 1);\n state.setStackSize(blockTypeId != ValueTypes.VOID_TYPE ? initialStackPointer : initialStackPointer - 1);\n state.setStackPointer(initialStackPointer);\n state.setStackSize(initialStackPointer);\n public void setStackPointer(int stackPointer) {\n stackSize = stackPointer;\n public void setStackSize(int stackSize) {\n this.stackSize = stackSize;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/beb5c71e1cf947ce8706a7e4a6c90a7b793f601a", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " public void setStackPointer(int stackPointer) {\n stackSize = stackPointer;\n public void setStackSize(int stackSize) {\n this.stackSize = stackSize;\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/beb5c71e1cf947ce8706a7e4a6c90a7b793f601a", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " @ExpectError(\"Found invisible exported elements in super type 'ErrorOtherPackageBaseObject1': %n\" +\n \" - ErrorOtherPackageBaseObject1.m0()%n\" +\n @ExpectError(\"Found invisible exported elements in super type 'ErrorOtherPackageBaseObject1': \\n\" +\n \" - com.oracle.truffle.api.library.test.otherPackage.ErrorOtherPackageBaseObject1.m0()\\n\" +\n @ExpectError(\"Found invisible exported elements in super type 'ErrorOtherPackageBaseObject2': %n\" +\n \" - M0.doDefault(ErrorOtherPackageBaseObject2)%n\" +\n @ExpectError(\"Found invisible exported elements in super type 'ErrorOtherPackageBaseObject2': \\n\" +\n \" - com.oracle.truffle.api.library.test.otherPackage.ErrorOtherPackageBaseObject2.M0.doDefault(ErrorOtherPackageBaseObject2)\\n\" +\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/88b3beef113294424ae78506ac2114b750888ba1", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " parent = getReadableReference(element.getEnclosingElement(), qualifiedType);\n parent = getReadableReference(relativeTo, element.getEnclosingElement());\n parent = getReadableReference(element.getEnclosingElement(), qualifiedType);\n parent = getReadableReference(relativeTo, element.getEnclosingElement());\n parent = getReadableReference(element.getEnclosingElement(), qualifiedType);\n parent = getReadableReference(relativeTo, element.getEnclosingElement());\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/88b3beef113294424ae78506ac2114b750888ba1", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " private boolean callerFilterIncludes(String qualifiedClass) {\n if (callerFilter != null && qualifiedClass != null) {\n assert qualifiedClass.indexOf('/') == -1 : \"expecting Java-format qualifiers, not internal format\";\n return callerFilter.treeIncludes(qualifiedClass);\n }\n return false;\n private boolean filterExcludesCaller(String qualifiedClass) {\n assert qualifiedClass == null || qualifiedClass.indexOf('/') == -1 : \"expecting Java-format qualifiers, not internal format\";\n return qualifiedClass != null && !callerFilter.treeIncludes(qualifiedClass);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/fdb401ca6d4c1799dcacd4087d3be4a99f098595", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " final WasmModule module = context.modules().get(\"env\");\n final WasmModule envModule = context.modules().get(\"env\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/3178f8fc85f894fe37b4edca8fdc9be530fca491", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " public StepInfo(int size, int depth, Object thread) {\n public StepInfo(int size, int depth, Object guestThread) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/7a58d6afa8f16587c6d5b91a4b7baf0fb6a820b9", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "import static org.graalvm.compiler.nodes.graphbuilderconf.IntrinsicContext.CompilationContext.ENCODING;\nimport static org.graalvm.compiler.nodes.graphbuilderconf.IntrinsicContext.CompilationContext.ROOT_COMPILATION_ENCODING;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/6340392f51fb219e68a780d853822d174f5992c6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": " KlassRef klass = getContext().getKlassFromRootNode(root);\n MethodRef method = getContext().getMethodFromRootNode(root);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/oracle/graal/commit/1c437edb6eadcefa70be3f405f8f9b7bffd7256f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " VMError.unimplemented();\n throw VMError.unsupportedFeature(\"The deprecated method Thread.stop is not supported\");\n VMError.unimplemented();\n throw VMError.unsupportedFeature(\"The deprecated method Thread.suspend is not supported\");\n VMError.unimplemented();\n throw VMError.unsupportedFeature(\"The deprecated method Thread.resume is not supported\");\n }\n\n @Substitute\n @SuppressWarnings({\"static-method\"})\n private int countStackFrames() {\n throw VMError.unsupportedFeature(\"The deprecated method Thread.countStackFrames is not supported\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/2db617a07396bbf35f515b9615f2a1bdf3fdd19e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " body.setSourceLocation(location);\n body.setSourceLocation(LLVMSourceLocation.orDefault(location));\n body.setSourceLocation(location);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/68e4b80c56edcf5200c184de5af8a5f6be3127f6", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " LLVMExpressionNode node = nodeFactory.createLLVMBuiltin(target, argNodes, argTypes, argCount);\n LLVMExpressionNode result = nodeFactory.createLLVMBuiltin(target, argNodes, argTypes, argCount);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/68e4b80c56edcf5200c184de5af8a5f6be3127f6", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " node = CommonNodeFactory.createFunctionCall(function, argNodes, functionType);\n result = CommonNodeFactory.createFunctionCall(function, argNodes, functionType);\n LLVMExpressionNode node = nodeFactory.createLLVMBuiltin(target, argNodes, argTypes, argCount);\n LLVMExpressionNode result = nodeFactory.createLLVMBuiltin(target, argNodes, argTypes, argCount);\n if (node == null) {\n if (result == null) {\n node = createInlineAssemblerNode(inlineAsmConstant, argNodes, argTypes, call.getType());\n assignSourceLocation(node, call);\n result = createInlineAssemblerNode(inlineAsmConstant, argNodes, argTypes, call.getType());\n assignSourceLocation(result, call);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/oracle/graal/commit/68e4b80c56edcf5200c184de5af8a5f6be3127f6", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " replaceHelper.execute(context.getGlobalStorage(), descriptor, value);\n DynamicObject global = context.getGlobalStorage();\n synchronized (global) {\n replaceHelper.execute(global, descriptor, value);\n }\n writeHelper.execute(context.getGlobalStorage(), descriptor, value);\n DynamicObject global = context.getGlobalStorage();\n synchronized (global) {\n writeHelper.execute(global, descriptor, value);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/4e5cd6e3ded266f207c6ee879e1507288177f2d0", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " synchronized (loc) {\n loc.set(object, value);\n }\n loc.set(object, value);\n synchronized (loc) {\n loc.set(object, value);\n }\n loc.set(object, value);\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/4e5cd6e3ded266f207c6ee879e1507288177f2d0", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " synchronized (object) {\n object.set(descriptor, value);\n }\n object.set(descriptor, value);\n synchronized (object) {\n object.define(descriptor, value);\n }\n object.define(descriptor, value);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/4e5cd6e3ded266f207c6ee879e1507288177f2d0", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " Server server = startServer(serverDir, 0, classpath, bootClasspath, javaArgs);\n Server server = startServer(javaExePath, serverDir, 0, classpath, bootClasspath, javaArgs);\n private Server startServer(Path serverDir, int serverPort, LinkedHashSet classpath, LinkedHashSet bootClasspath, List javaArgs) {\n private Server startServer(Path javaExePath, Path serverDir, int serverPort, LinkedHashSet classpath, LinkedHashSet bootClasspath, List javaArgs) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/dc7c03a98641f7663b343ac4fff6863580c0017d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " private Server startServer(Path serverDir, int serverPort, LinkedHashSet classpath, LinkedHashSet bootClasspath, List javaArgs) {\n private Server startServer(Path javaExePath, Path serverDir, int serverPort, LinkedHashSet classpath, LinkedHashSet bootClasspath, List javaArgs) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/dc7c03a98641f7663b343ac4fff6863580c0017d", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " private static String imageServerUID(List vmArgs, List> builderPaths) {\n private static String imageServerUID(Path javaExecutable, List vmArgs, List> builderPaths) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/dc7c03a98641f7663b343ac4fff6863580c0017d", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " E profileExceptionType(E ex) {\n Class cachedClass = exceptionType;\n // if cachedClass is null and we are not in the interpreter we don't want to deoptimize\n // This usually happens only if the call target was compiled using compile without ever\n // calling it.\n if (cachedClass != Object.class) {\n if (cachedClass != null && cachedClass == ex.getClass()) {\n return (E) cachedClass.cast(ex);\n }\n CompilerDirectives.transferToInterpreterAndInvalidate();\n if (cachedClass == null) {\n exceptionType = ex.getClass();\n T profileExceptionType(T value) {\n Class clazz = exceptionType;\n if (clazz != Throwable.class) {\n if (clazz != null && value.getClass() == clazz) {\n if (CompilerDirectives.inInterpreter()) {\n return value;\n } else {\n return (T) CompilerDirectives.castExact(value, clazz);\n }\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/oracle/graal/commit/fbcb21a3615be8c76e450d2411cab1f7f3e441ac", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " TruffleSplittingStrategy.beforeCall(this);\n TruffleSplittingStrategy.beforeCall(this, target);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/41877b041ef8e9c33b9a3a9b2b226c311b413f6f", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " public boolean sameOrOuterLoop(Block block) {\n /**\n * Checks whether {@code this} block is in the same loop or an outer loop of the block given as\n * parameter.\n */\n public boolean isInSameOrOuterLoopOf(Block block) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/13c7c2eb0ef53cda5e827376b63d87ed5851cc5c", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " reader.resetMemoryState();\n reader.resetMemoryState(zeroMemory);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/fdfd2eed573e97588dd0e366890f4e8f6d47e2af", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " public void memcopy(long src, long dst, long n) {\n public void copy(long src, long dst, long n) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/fdfd2eed573e97588dd0e366890f4e8f6d47e2af", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 11 ] }, { "input": " resetModuleState();\n boolean zeroMemory = (boolean) frame.getArguments()[0];\n resetModuleState(zeroMemory);\n public void resetModuleState(WasmModule module, byte[] data) {\n public void resetModuleState(WasmModule module, byte[] data, boolean zeroMemory) {\n private void resetModuleState() {\n private void resetModuleState(boolean zeroMemory) {\n contextReference().get().linker().resetModuleState(module, module.data());\n contextReference().get().linker().resetModuleState(module, module.data(), zeroMemory);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/fdfd2eed573e97588dd0e366890f4e8f6d47e2af", "target_edit_idx": 12, "propagatable_edit_idx": [ 4, 13, 14 ] }, { "input": " contextReference().get().linker().resetModuleState(module, module.data());\n contextReference().get().linker().resetModuleState(module, module.data(), zeroMemory);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/fdfd2eed573e97588dd0e366890f4e8f6d47e2af", "target_edit_idx": 14, "propagatable_edit_idx": [ 13, 12, 4 ] }, { "input": " final boolean preserveFramePointer;\n final boolean useStandardFrameProlog;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/25173f4645d2a5525c69df86c4ad811a107e3eaa", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " if (preserveFramePointer) {\n if (useStandardFrameProlog) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/oracle/graal/commit/25173f4645d2a5525c69df86c4ad811a107e3eaa", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " AMD64HotSpotRegisterAllocationConfig(RegisterConfig registerConfig, String[] allocationRestrictedTo, boolean useBasePointer) {\n AMD64HotSpotRegisterAllocationConfig(RegisterConfig registerConfig, String[] allocationRestrictedTo, boolean useStandardFrameProlog) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/25173f4645d2a5525c69df86c4ad811a107e3eaa", "target_edit_idx": 7, "propagatable_edit_idx": [ 6, 8, 9, 10, 11, 12 ] }, { "input": " public boolean preserveBasePointer() {\n return useBasePointer;\n public boolean useStandardFrameProlog() {\n return useStandardFrameProlog;\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/25173f4645d2a5525c69df86c4ad811a107e3eaa", "target_edit_idx": 13, "propagatable_edit_idx": [ 5 ] }, { "input": " state.popBlockReturnLength();\n state.popBlockReturnLength();\n state.popBlockReturnLength();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/1f0b93fb421d04af1f9ac6b6e15ef01739d5041c", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " state.pushStackState();\n state.pushBlockReturnLength(currentBlock.returnTypeLength());\n // Save the current block's stack pointer, in case we branch out of\n // the nested block (continuation stack pointer).\n state.pushStackState(state.stackSize());\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/1f0b93fb421d04af1f9ac6b6e15ef01739d5041c", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 1, 5 ] }, { "input": " state.pushStackState();\n state.pushBlockReturnLength(currentBlock.returnTypeLength());\n // Save the current block's stack pointer, in case we branch out of\n // the nested block (continuation stack pointer).\n // For the if block, we save the stack size reduced by 1, because of the\n // condition value that will be popped before executing the if statement.\n state.pushStackState(state.stackSize() - 1);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/1f0b93fb421d04af1f9ac6b6e15ef01739d5041c", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 1, 3 ] }, { "input": " private static Path getJreDir() {\n Path jreDir = Engine.findHome();\n if (isJdk8) {\n jreDir = jreDir.resolve(\"jre\");\n private static Path getRuntimeDir() {\n Path runtimeDir = Engine.findHome();\n if (hasJreDir) {\n runtimeDir = runtimeDir.resolve(\"jre\");\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/6eba954ebc4fdd0631b343e6de3925d5e3ac71ae", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " public static void assertLess(int n1, int n2, String message) throws BinaryReaderException {\n public static void assertLessEqual(int n1, int n2, String message) throws BinaryReaderException {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/d5a25bfc5f5c0c65cbd304832867a4eac604abe8", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 5, 6, 7, 8 ] }, { "input": " fail(format(\"%s: should be less: %d > %d\", message, n1, n2));\n fail(format(\"%s: should be less or equal: %d > %d\", message, n1, n2));\n fail(format(\"%s: should be less: %d > %d\", message, n1, n2));\n fail(format(\"%s: should be less or equal: %d > %d\", message, n1, n2));\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/oracle/graal/commit/d5a25bfc5f5c0c65cbd304832867a4eac604abe8", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " Assert.assertLess(localIndex, codeEntry.numLocals(), \"Invalid local index for local.tee\");\n Assert.assertLessEqual(localIndex, codeEntry.numLocals(), \"Invalid local index for local.tee\");\n public static void assertLess(int n1, int n2, String message) throws BinaryReaderException {\n public static void assertLessEqual(int n1, int n2, String message) throws BinaryReaderException {\n public static void assertLess(long n1, long n2, String message) throws BinaryReaderException {\n public static void assertLessEqual(long n1, long n2, String message) throws BinaryReaderException {\n Assert.assertLess(localIndex, codeEntry.numLocals(), \"Invalid local index for local.get\");\n Assert.assertLessEqual(localIndex, codeEntry.numLocals(), \"Invalid local index for local.get\");\n Assert.assertLess(localIndex, codeEntry.numLocals(), \"Invalid local index for local.set\");\n Assert.assertLessEqual(localIndex, codeEntry.numLocals(), \"Invalid local index for local.set\");\n Assert.assertLess(globalIndex, wasmModule.globals().size(), \"Invalid global index for global.get\");\n Assert.assertLessEqual(globalIndex, wasmModule.globals().size(), \"Invalid global index for global.get\");\n Assert.assertLess(globalIndex, wasmModule.globals().size(), \"Invalid global index for global.set\");\n Assert.assertLessEqual(globalIndex, wasmModule.globals().size(), \"Invalid global index for global.set\");\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/d5a25bfc5f5c0c65cbd304832867a4eac604abe8", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 4, 5, 7, 8 ] }, { "input": " int subroutineBCI;\n int jsrBCI;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/100a72bf7c3b643e8ded04bbeb1b80d442f26394", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 12 ] }, { "input": " *\n * @since 19.3\n *\n * @since 19.3\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/eef5826f59432a9d0df2e970b461b16bee3b39cf", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "import org.graalvm.nativeimage.Platform.DARWIN;\nimport org.graalvm.nativeimage.Platform.LINUX;\nimport org.graalvm.nativeimage.Platform.DARWIN;\nimport org.graalvm.nativeimage.Platform.LINUX;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/2b0e09f71a30af20f99244a9c1ac32872c46837c", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "import static org.graalvm.compiler.truffle.compiler.TruffleCompilerOptions.TrufflePENodeLimit;\nimport static org.graalvm.compiler.truffle.compiler.TruffleCompilerOptions.TruffleMaximumGraalNodeCount;\n InlineInvokePlugin inlineInvokePlugin = new PEInlineInvokePlugin(inliningDecision, graph, TruffleCompilerOptions.getValue(TrufflePENodeLimit));\n InlineInvokePlugin inlineInvokePlugin = new PEInlineInvokePlugin(inliningDecision, graph, TruffleCompilerOptions.getValue(TruffleMaximumGraalNodeCount));\n try (TruffleCompilerOptions.TruffleOptionsOverrideScope scope = TruffleCompilerOptions.overrideOptions(TruffleCompilerOptions.TrufflePENodeLimit, nodeLimit)) {\n try (TruffleCompilerOptions.TruffleOptionsOverrideScope scope = TruffleCompilerOptions.overrideOptions(TruffleCompilerOptions.TruffleMaximumGraalNodeCount, nodeLimit)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/4c10b0987423d91ce8bb72dbed4e791524317bf5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " System.err.println(String.format(\"\\uD83D\\uDCA5\\u001B[31m %d/%d Wasm tests passed.\\u001B[0m\", testCases.size() - skipped - errors.size(), testCases.size() - skipped));\n System.err.println(String.format(\"\\uD83D\\uDCA5\\u001B[31m %d/%d Wasm tests passed.\\u001B[0m\", qualifyingTestCases.size() - errors.size(), qualifyingTestCases.size()));\n System.out.println(String.format(\"\\uD83C\\uDF40\\u001B[32m %d/%d Wasm tests passed.\\u001B[0m\", testCases.size() - skipped - errors.size(), testCases.size() - skipped));\n System.out.println(String.format(\"\\uD83C\\uDF40\\u001B[32m %d/%d Wasm tests passed.\\u001B[0m\", qualifyingTestCases.size() - errors.size(), qualifyingTestCases.size()));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/daef4b4421291504771ee562caaf5cc48bc26e2f", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " public void addDefault(List successors) {\n public int addDefault(List successors) {\n void addDefault(List successors);\n /**\n * adds the default branch to the successors, and returns the index at which it is.\n */\n int addDefault(List successors);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/9f896baf4f4b90c0d89ae51a680a363b5f35edc6", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": " public void addDefault(List successors) {\n successors.add(falseSuccessor());\n public int addDefault(List successors) {\n int index = successors.indexOf(falseSuccessor());\n if (index == -1) {\n successors.add(falseSuccessor());\n return successors.size() - 1;\n }\n return index;\n public void addDefault(List newSuccessors) {\n newSuccessors.add(defaultSuccessor());\n public int addDefault(List newSuccessors) {\n int index = successors.indexOf(defaultSuccessor());\n if (index == -1) {\n successors.add(defaultSuccessor());\n return successors.size() - 1;\n }\n return index;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/9f896baf4f4b90c0d89ae51a680a363b5f35edc6", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "import jdk.vm.ci.amd64.AMD64;\nimport jdk.vm.ci.amd64.AMD64;\n", "class": "clone", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/oracle/graal/commit/14b7ebd4f3f0ebc56ee33a091a8f860f3271f521", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " rsrc = src;\n rdst = dst;\n rlen = len;\n rsrcTemp = rsrc = src;\n rdstTemp = rdst = dst;\n rlenTemp = rlen = len;\n rsrc = src;\n rdst = dst;\n rlen = len;\n rsrcTemp = rsrc = src;\n rdstTemp = rdst = dst;\n rlenTemp = rlen = len;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/14b7ebd4f3f0ebc56ee33a091a8f860f3271f521", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": "final class ModuleSupport {\npublic final class ModuleSupport {\nfinal class ModuleSupport {\npublic final class ModuleSupport {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/6739361e919c06e1e676abf8387df83df99ee609", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": "import org.graalvm.nativeimage.c.constant.CEnumValue;\nimport org.graalvm.nativeimage.c.constant.CEnumValue;\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/oracle/graal/commit/adece6ebcc37d7582175c31ed7433cc23c66f447", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " ExceptionHandler resolved = null;\n ExceptionHandler handler = null;\n resolved = handler1;\n handler = handler1;\n ExceptionHandler resolved = null;\n ExceptionHandler handler = null;\n resolved = handler1;\n handler = handler1;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/oracle/graal/commit/e54725ad09f2ccabce582fc0ebe8cd1e41b6051c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": " ExceptionHandler handler = resolved;\n ExceptionHandler handler = resolved;\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/oracle/graal/commit/e54725ad09f2ccabce582fc0ebe8cd1e41b6051c", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " addImageProvidedClasspath(Paths.get(\".\"));\n addImageClasspath(Paths.get(\".\"));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/oracle/graal/commit/e3f312a2d47ceb0a123a63c0d4a4f06ca1e3c398", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " * Copyright (c) 2016, 2018, Oracle and/or its affiliates.\n * Copyright (c) 2016, 2019, Oracle and/or its affiliates.\n * Copyright (c) 2016, 2018, Oracle and/or its affiliates.\n * Copyright (c) 2016, 2019, Oracle and/or its affiliates.\n * Copyright (c) 2016, 2018, Oracle and/or its affiliates.\n * Copyright (c) 2016, 2019, Oracle and/or its affiliates.\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/oracle/graal/commit/25711e21babbdb5da6a006b66420d1e41a361ac0", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " return LLVMNativePointer.create(LLVMStack.allocateStackMemory(frame, memory, getStackPointerSlot(), getSize() * nr, getAlignment()));\n return LLVMNativePointer.create(LLVMStack.allocateStackMemory(frame, memory, getStackPointerSlot(), getSize() * (long) nr, getAlignment()));\n return LLVMNativePointer.create(LLVMStack.allocateStackMemory(frame, memory, getStackPointerSlot(), (int) (getSize() * nr), getAlignment()));\n return LLVMNativePointer.create(LLVMStack.allocateStackMemory(frame, memory, getStackPointerSlot(), getSize() * nr, getAlignment()));\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/25711e21babbdb5da6a006b66420d1e41a361ac0", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " * Copyright (c) 2016, 2018, Oracle and/or its affiliates.\n * Copyright (c) 2016, 2019, Oracle and/or its affiliates.\n * Copyright (c) 2018, Oracle and/or its affiliates.\n * Copyright (c) 2018, 2019, Oracle and/or its affiliates.\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/fca52d07f3a6aac88e766fdad2497e9302165851", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " @Specialization(guards = {\"libA.isPointer(a)\", \"libB.isPointer(b)\"}, limit = \"3\")\n @Specialization(guards = {\"libA.isPointer(a)\", \"libB.isPointer(b)\"}, limit = \"8\")\n @Specialization(guards = \"!libA.isPointer(a) || !libB.isPointer(b)\", limit = \"3\")\n @Specialization(guards = \"!libA.isPointer(a) || !libB.isPointer(b)\", limit = \"8\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/fca52d07f3a6aac88e766fdad2497e9302165851", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " TruffleLanguage.ContextReference ctxRef = LLVMLanguage.getLLVMContextReference();\n TruffleLanguage.ContextReference ctxRef = lookupContextReference(LLVMLanguage.class);\n ContextReference ctxRef = LLVMLanguage.getLLVMContextReference();\n ContextReference ctxRef = lookupContextReference(LLVMLanguage.class);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/fca52d07f3a6aac88e766fdad2497e9302165851", "target_edit_idx": 9, "propagatable_edit_idx": [ 13 ] }, { "input": " if (Options.FallbackThreshold.getValue() == NoFallback) {\n if (Options.FallbackThreshold.getValue() == Options.NoFallback) {\n if (Options.FallbackThreshold.getValue() == NoFallback ||\n if (Options.FallbackThreshold.getValue() == Options.NoFallback ||\n if (Options.FallbackThreshold.getValue() == ForceFallback) {\n if (Options.FallbackThreshold.getValue() == Options.ForceFallback) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/840181af41d05ca10b1a06039ac165d7f2ed79d8", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " return new Attributes(map);\n return new Attributes(useAttributes, map);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/a2e7ffa59f2cfa7bf4f4584a7150502a459a9661", "target_edit_idx": 8, "propagatable_edit_idx": [ 2 ] }, { "input": " frameState.addParametersTo(boundaryMethod, Integer.MAX_VALUE, STATE_VALUE, FRAME_VALUE,\n frameState.addParametersTo(boundaryMethod, Integer.MAX_VALUE, STATE_VALUE, includeFrameParameter,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0625, "commit_url": "https://github.com/oracle/graal/commit/646f05410e7827ce8709467844f670d4f1c31faa", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " @TruffleBoundary\n @TruffleBoundary\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/oracle/graal/commit/4edec84e164832dd29c4dc923adc0df502045657", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " CodeTreeBuilder builder;\n CodeTreeBuilder constructorBuilder;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/d92e6afb1d3d8c74886907a3e570057e8e758aff", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " private boolean forceConstantTrueInSlowPath;\n private boolean libraryAcceptsGuard;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/2c0a10cc407f0214969956603dc0a8dab2e320ef", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " PlatformNativeLibrarySupport nativeLibraraySupport = PlatformNativeLibrarySupport.singleton();\n PlatformNativeLibrarySupport nativeLibrarySupport = PlatformNativeLibrarySupport.singleton();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/b4edd54aed13b7497c6971e21ec126b028540c2b", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " public abstract Object executeNaked(VirtualFrame frame);\n public abstract Object invokeNaked(VirtualFrame frame);\n return executeNaked(frame);\n return invokeNaked(frame);\n return executeNaked(frame);\n return invokeNaked(frame);\n public Object executeNaked(VirtualFrame frame) {\n public Object invokeNaked(VirtualFrame frame) {\n public final Object executeNaked(VirtualFrame frame) {\n public final Object invokeNaked(VirtualFrame frame) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/a505f0f17b7f36ec11a2b1bf5eed65130ba787bc", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": " public Object executeNaked(VirtualFrame frame) {\n public Object invokeNaked(VirtualFrame frame) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/a505f0f17b7f36ec11a2b1bf5eed65130ba787bc", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3, 5 ] }, { "input": " public static Object unwrap(StaticObject object) {\n public static Object unwrapArrayOrNull(StaticObject object) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/f1c9576f177a9f4b231d4c4b3530e5816db84c47", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": " return System.identityHashCode(MetaUtil.unwrap(object));\n return System.identityHashCode(MetaUtil.maybeUnwrapNull(object));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/oracle/graal/commit/f1c9576f177a9f4b231d4c4b3530e5816db84c47", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " MetaUtil.unwrap(self).notifyAll();\n self.notifyAll();\n MetaUtil.unwrap(self).notify();\n self.notify();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/f1c9576f177a9f4b231d4c4b3530e5816db84c47", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "import org.graalvm.nativeimage.c.type.CIntPointer;\nimport org.graalvm.nativeimage.c.type.CIntPointer;\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/oracle/graal/commit/05184fad5421d5e5e440fcdcd72506796880bfe1", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " dev = 0;\n devToken = 0;\n dev = (dev << 4) + (b - '0');\n devToken = (devToken << 4) + (b - '0');\n dev = (dev << 4) + (b - 'a' + 10);\n devToken = (devToken << 4) + (b - 'a' + 10);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/05184fad5421d5e5e440fcdcd72506796880bfe1", "target_edit_idx": 6, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " public static byte[] toBytes(char[] value, int off, int len) {\n if (probability(SLOW_PATH_PROBABILITY, len < 0) || probability(SLOW_PATH_PROBABILITY, len > MAX_LENGTH)) {\n DeoptimizeNode.deopt(DeoptimizationAction.None, DeoptimizationReason.RuntimeConstraint);\n public static byte[] toBytes(char[] value, int srcBegin, int length) {\n if (probability(SLOW_PATH_PROBABILITY, srcBegin < 0) ||\n probability(SLOW_PATH_PROBABILITY, length < 0) ||\n probability(SLOW_PATH_PROBABILITY, length > MAX_LENGTH) ||\n probability(SLOW_PATH_PROBABILITY, srcBegin > value.length - length)) {\n DeoptimizeNode.deopt(DeoptimizationAction.None, DeoptimizationReason.BoundsCheckException);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/ad23c3d10581481f3f9e1aa4acdb8e92815c4709", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " @Override\n public int getTier() {\n return 1;\n }\n\n @Override\n public int getTier() {\n return tier;\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/aabeb3e4e652fae657b2d0c6cae49658ba135614", "target_edit_idx": 3, "propagatable_edit_idx": [ 11 ] }, { "input": " InvokeNode invokeNode = graph().add(new InvokeNode(callTarget, bci, stamp, getLocationIdentity()));\n InvokeNode newInvoke = graph().add(new InvokeNode(callTarget, bci, stamp, getLocationIdentity()));\n newInvoke.setStateAfter(stateAfter);\n newInvoke.setStateDuring(stateDuring);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/c4d9f0c350ffef6a5b94ac11df477470bf0b0f92", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " return (TruffleObject) ForeignAccess.sendExecute(executeNode, foreignCompiler, source.getPattern(), source.getGeneralFlags());\n return (TruffleObject) ForeignAccess.sendExecute(executeNode, foreignCompiler, source.getPattern(), source.getFlags());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.9166666666666666, "commit_url": "https://github.com/oracle/graal/commit/67f947b99620c4dd8d2989eeca13b3493f64336f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " RegexFlags flags = RegexFlags.parseFlags(regexSource.getGeneralFlags());\n RegexFlags flags = RegexFlags.parseFlags(regexSource.getFlags());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/oracle/graal/commit/67f947b99620c4dd8d2989eeca13b3493f64336f", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " dump.append(source.getGeneralFlags());\n dump.append(source.getFlags());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7272727272727273, "commit_url": "https://github.com/oracle/graal/commit/67f947b99620c4dd8d2989eeca13b3493f64336f", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 7, 8, 9, 10, 11 ] }, { "input": " this.flags = RegexFlags.parseFlags(source.getGeneralFlags());\n this.flags = RegexFlags.parseFlags(source.getFlags());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5454545454545454, "commit_url": "https://github.com/oracle/graal/commit/67f947b99620c4dd8d2989eeca13b3493f64336f", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 10, 11 ] }, { "input": " \"version\": \"e03edeb4898836b20148f074c9143087c25cd431\",\n \"version\": \"6d260d9fdb3db18a0e4b1035d5485fde13c95702\",\n \"version\": \"e03edeb4898836b20148f074c9143087c25cd431\",\n \"version\": \"6d260d9fdb3db18a0e4b1035d5485fde13c95702\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/67f947b99620c4dd8d2989eeca13b3493f64336f", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": " } catch (Throwable throwable) {\n } catch (Throwable e) {\n throw EspressoError.shouldNotReachHere(throwable);\n throw EspressoError.shouldNotReachHere(e);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/7e28be0fd7f849fea58d2375b7d4f158461131ca", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " private static final String OTHER_DIR = TestOptions.TEST_SUITE_PATH;\n private static final String OTHER_DIR = Paths.get(TestOptions.TEST_SUITE_PATH, \"..\", \"tests\", \"other\").toString();\n private static final String OTHER_DIR = TestOptions.TEST_SUITE_PATH;\n private static final String OTHER_DIR = Paths.get(TestOptions.TEST_SUITE_PATH, \"..\", \"tests\", \"other\").toString();\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/f55468ee4301759ed38c34abb58b732a63a49588", "target_edit_idx": 5, "propagatable_edit_idx": [ 13 ] }, { "input": " private static final Path GCC_SUITE_DIR = new File(TestOptions.TEST_SUITE_PATH).toPath();\n private static final Path GCC_SUITE_DIR = new File(TestOptions.EXTERNAL_TEST_SUITE_PATH).toPath();\n private static final Path NWCC_SUITE_DIR = new File(TestOptions.TEST_SUITE_PATH).toPath();\n private static final Path NWCC_SUITE_DIR = new File(TestOptions.EXTERNAL_TEST_SUITE_PATH).toPath();\n private static final Path GCC_SUITE_DIR = new File(TestOptions.TEST_SUITE_PATH).toPath();\n private static final Path GCC_SUITE_DIR = new File(TestOptions.EXTERNAL_TEST_SUITE_PATH).toPath();\n String dir = TestOptions.TEST_SUITE_PATH + SHOOTOUTS_SUITE_SUBDIR;\n String dir = TestOptions.EXTERNAL_TEST_SUITE_PATH + SHOOTOUTS_SUITE_SUBDIR;\n private static final Path LLVM_SUITE_DIR = new File(TestOptions.TEST_SUITE_PATH).toPath();\n private static final Path LLVM_SUITE_DIR = new File(TestOptions.EXTERNAL_TEST_SUITE_PATH).toPath();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/oracle/graal/commit/f55468ee4301759ed38c34abb58b732a63a49588", "target_edit_idx": 6, "propagatable_edit_idx": [ 10, 11, 12, 7 ] }, { "input": " private static final Path GCC_SUITE_DIR = new File(TestOptions.TEST_SUITE_PATH).toPath();\n private static final Path GCC_SUITE_DIR = new File(TestOptions.EXTERNAL_TEST_SUITE_PATH).toPath();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/oracle/graal/commit/f55468ee4301759ed38c34abb58b732a63a49588", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 12, 6, 7 ] }, { "input": " def get_build_args(self, prepare=True):\n def get_build_args(self):\n def get_build_args(self, prepare=True):\n def get_build_args(self):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/058c632aa67f5eda352cdd9e84c380e7498126e8", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " for (int i = 0; i < ITERATIONS; i++) {\n for (int i = 0; i < GC_TEST_ITERATIONS; i++) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/bc353ec954af6856b71a2961483e834b55a4a472", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " for (int i = 0; i < 15; i++) {\n for (int i = 0; i < PolyglotCachingTest.GC_TEST_ITERATIONS; i++) {\n for (int i = 0; i < 15; i++) {\n for (int i = 0; i < PolyglotCachingTest.GC_TEST_ITERATIONS; i++) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/bc353ec954af6856b71a2961483e834b55a4a472", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/bc3eb16a6e95ceba42daf40ff7014fd1f8c54031", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " private static JavaConstant readObjectConstant(Constant baseConstant, long displacement, CompressEncoding compressedEncoding) {\n private static JavaConstant readObjectConstant(Constant baseConstant, long displacement, CompressEncoding compressedEncoding, boolean isVolatile) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/bc3eb16a6e95ceba42daf40ff7014fd1f8c54031", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 5, 7 ] }, { "input": " private static JavaConstant readObjectConstant(Constant baseConstant, long displacement, CompressEncoding compressedEncoding) {\n private static JavaConstant readObjectConstant(Constant baseConstant, long displacement, CompressEncoding compressedEncoding, boolean isVolatile) {\n return readObjectConstant(base, displacement);\n return readObjectConstant(base, displacement, null, isVolatile);\n return readObjectConstant(baseConstant, displacement, null);\n return readObjectConstant(baseConstant, displacement, null, false);\n return readObjectConstant(baseConstant, displacement, encoding);\n return readObjectConstant(baseConstant, displacement, encoding, false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/b1603f224f6368221c1cdd955f9253477cfab326", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 5, 6 ] }, { "input": " emitOperandHelper(dst, src, 0, EVEXTuple.FVM.getSIBDispScalingFactor(AVXSize.ZMM));\n emitEVEXOperandHelper(dst, src, 0, EVEXTuple.FVM.getDisp8ScalingFactor(AVXSize.ZMM));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/123c052d94de29a605487afddb43c60cb9cc6623", "target_edit_idx": 0, "propagatable_edit_idx": [ 10, 1, 2, 3 ] }, { "input": " emitOperandHelper(kdst, src, 0, EVEXTuple.FVM.getSIBDispScalingFactor(AVXSize.ZMM));\n emitEVEXOperandHelper(kdst, src, 0, EVEXTuple.FVM.getDisp8ScalingFactor(AVXSize.ZMM));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/oracle/graal/commit/123c052d94de29a605487afddb43c60cb9cc6623", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 10, 3 ] }, { "input": " private void emitOperandHelper(int reg, AMD64Address addr, boolean force4Byte, int additionalInstructionSize, int dispScale) {\n private void emitOperandHelper(int reg, AMD64Address addr, boolean force4Byte, int additionalInstructionSize, int evexDisp8Scale) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/123c052d94de29a605487afddb43c60cb9cc6623", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 7, 8, 9 ] }, { "input": " String implementationName = language.getImplementationName();\n if (implementationName == null || implementationName.length() == 0) {\n String languageImplementationName = language.getImplementationName();\n if (languageImplementationName == null || languageImplementationName.length() == 0) {\n implementationName = \"Graal \" + languageName;\n languageImplementationName = \"Graal \" + languageName;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/650b22294af9229f0d7f0053f4c4cbba995ff7aa", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return stackTrace;\n return superFrames;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/a540553235cac7110bc6e16c1ad9f9c4a2ca6565", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " TTY.println(getInliningLog().formatAsTree());\n String formattedTree = getInliningLog().formatAsTree(true);\n if (formattedTree != null) {\n TTY.println(formattedTree);\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/fe5145ddfcd9dd7a7038fac38eee6b2410bbd358", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " if (singleThread.isNull()) {\n if (thread.isNull()) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/e5f78de7d4d6a5de2b06f95c302a7b6b95e273d0", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " if (debug.isLogEnabled() && TraceBytecodeParserLevel.getValue(options) >= TRACELEVEL_STATE) {\n if (TraceBytecodeParserLevel.getValue(options) >= TRACELEVEL_STATE) {\n if (debug.isLogEnabled() && TraceBytecodeParserLevel.getValue(options) >= TRACELEVEL_INSTRUCTIONS) {\n if (TraceBytecodeParserLevel.getValue(options) >= TRACELEVEL_INSTRUCTIONS) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/7e9701b998550924265bc64f56173ddf3b547f8f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " debug.log(\"%s\", sb);\n TTY.println(\"%s\", sb);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/oracle/graal/commit/7e9701b998550924265bc64f56173ddf3b547f8f", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": " if (closingThread != null && closingThread != current) {\n if (closing != null && closing != current) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.23076923076923078, "commit_url": "https://github.com/oracle/graal/commit/759ccfd90028359c4af8d3832a26be88d518f884", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " append(new AMD64Move.CompressPointer(result, asAllocatable(pointer), getProviders().getRegisters().getHeapBaseRegister().asValue(), encoding, nonNull, getLIRKindTool()));\n append(new AMD64Move.CompressPointerOp(result, asAllocatable(pointer), getProviders().getRegisters().getHeapBaseRegister().asValue(), encoding, nonNull, getLIRKindTool()));\n append(new AMD64Move.CompressPointer(result, asAllocatable(pointer), base, encoding, nonNull, getLIRKindTool()));\n append(new AMD64Move.CompressPointerOp(result, asAllocatable(pointer), base, encoding, nonNull, getLIRKindTool()));\n append(new AMD64Move.CompressPointer(result, asAllocatable(pointer), getHeapBaseRegister().asValue(), encoding, nonNull, getLIRKindTool()));\n append(new AMD64Move.CompressPointerOp(result, asAllocatable(pointer), getHeapBaseRegister().asValue(), encoding, nonNull, getLIRKindTool()));\n public static final class CompressPointer extends Pointer {\n public static final LIRInstructionClass TYPE = LIRInstructionClass.create(CompressPointer.class);\n public static final class CompressPointerOp extends PointerCompressionOp {\n public static final LIRInstructionClass TYPE = LIRInstructionClass.create(CompressPointerOp.class);\n public CompressPointer(AllocatableValue result, AllocatableValue input, AllocatableValue baseRegister, CompressEncoding encoding, boolean nonNull, LIRKindTool lirKindTool) {\n public CompressPointerOp(AllocatableValue result, AllocatableValue input, AllocatableValue baseRegister, CompressEncoding encoding, boolean nonNull, LIRKindTool lirKindTool) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/be72bec73159fba6f39defc70bc03ecb853c50c4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 10, 6, 7 ] }, { "input": " append(new AMD64Move.UncompressPointer(result, asAllocatable(pointer), base, encoding, nonNull, lirKindTool));\n append(new AMD64Move.UncompressPointerOp(result, asAllocatable(pointer), base, encoding, nonNull, lirKindTool));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/be72bec73159fba6f39defc70bc03ecb853c50c4", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 9, 2, 11 ] }, { "input": " launcher.launch(args, options);\n launcher.launch(args, options, false);\n launch(new ArrayList<>(Arrays.asList(args)), null);\n launch(new ArrayList<>(Arrays.asList(args)), null, true);\n final void launch(List args, Map defaultOptions) {\n final void launch(List args, Map defaultOptions, boolean doNativeSetup) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/6f5a8c56057fce5eaed07d1fd3bc330a230aa841", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " emit(ExtractElementInstruction.fromSymbols(function.getSymbols(), type, vector, index));\n final Type elementType = ((VectorType) vectorType).getElementType();\n emit(ExtractElementInstruction.fromSymbols(function.getSymbols(), elementType, vector, index));\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/675ee2fdf34c41f79eca3c025f6f1b070fad12ad", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " type = types.get(i++);\n aggregateType = types.get(args[i++]);\n type = types.get(i++);\n type = types.get(args[i++]);\n type = types.get(i++);\n type = types.get(args[i++]);\n vectorType = types.get(i++);\n vectorType = types.get(args[i++]);\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/oracle/graal/commit/675ee2fdf34c41f79eca3c025f6f1b070fad12ad", "target_edit_idx": 2, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": " void setVolatileValue(DynamicObject object, int value);\n Thread getVolatileThread(DynamicObject object);\n int getAndSetVolatileValue(DynamicObject object, int value);\n void setVolatileThread(DynamicObject object, Thread value);\n\n boolean compareAndSetVolatileInt(DynamicObject object, int expectedValue, int value);\n\n boolean compareAndSetVolatileThread(DynamicObject object, Thread expectedValue, Thread value);\n\n int getAndSetVolatileInt(DynamicObject object, int value);\n\n Thread getAndSetVolatileThread(DynamicObject object, Thread value);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/6073019c0e6850761a00189c5c1d21f84be14122", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " final DynamicObject object = LAYOUT.createVolatileTest(14);\n Assert.assertEquals(14, LAYOUT.getVolatileValue(object));\n LAYOUT.setVolatileValue(object, 22);\n Assert.assertEquals(22, LAYOUT.getVolatileValue(object));\n final DynamicObject object = LAYOUT.createVolatileTest(14, null);\n Assert.assertEquals(14, LAYOUT.getVolatileInt(object));\n LAYOUT.setVolatileInt(object, 22);\n Assert.assertEquals(22, LAYOUT.getVolatileInt(object));\n\n Assert.assertNull(LAYOUT.getVolatileThread(object));\n LAYOUT.setVolatileThread(object, Thread.currentThread());\n Assert.assertEquals(Thread.currentThread(), LAYOUT.getVolatileThread(object));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/6073019c0e6850761a00189c5c1d21f84be14122", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 6, 8, 9, 10 ] }, { "input": " final DynamicObject object = LAYOUT.createVolatileTest(14);\n Assert.assertEquals(14, LAYOUT.getVolatileValue(object));\n Assert.assertTrue(LAYOUT.compareAndSetVolatileValue(object, 14, 22));\n Assert.assertEquals(22, LAYOUT.getVolatileValue(object));\n final DynamicObject object = LAYOUT.createVolatileTest(14, null);\n Assert.assertEquals(14, LAYOUT.getVolatileInt(object));\n Assert.assertTrue(LAYOUT.compareAndSetVolatileInt(object, 14, 22));\n Assert.assertEquals(22, LAYOUT.getVolatileInt(object));\n\n Assert.assertNull(LAYOUT.getVolatileThread(object));\n Assert.assertTrue(LAYOUT.compareAndSetVolatileThread(object, null, Thread.currentThread()));\n Assert.assertEquals(Thread.currentThread(), LAYOUT.getVolatileThread(object));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/6073019c0e6850761a00189c5c1d21f84be14122", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 6, 7, 9, 10 ] }, { "input": " final DynamicObject object = LAYOUT.createVolatileTest(14);\n Assert.assertEquals(14, LAYOUT.getVolatileValue(object));\n Assert.assertFalse(LAYOUT.compareAndSetVolatileValue(object, 44, 22));\n final DynamicObject object = LAYOUT.createVolatileTest(14, null);\n Assert.assertEquals(14, LAYOUT.getVolatileInt(object));\n Assert.assertFalse(LAYOUT.compareAndSetVolatileInt(object, 44, 22));\n\n Assert.assertNull(LAYOUT.getVolatileThread(object));\n Assert.assertFalse(LAYOUT.compareAndSetVolatileThread(object, Thread.currentThread(), Thread.currentThread()));\n Assert.assertNull(LAYOUT.getVolatileThread(object));\n DynamicObject createVolatileTest(@Volatile int volatileValue);\n DynamicObject createVolatileTest(\n @Volatile int volatileInt,\n @Nullable @Volatile Thread volatileThread);\n final DynamicObject object = LAYOUT.createVolatileTest(14);\n Assert.assertEquals(14, LAYOUT.getVolatileValue(object));\n final DynamicObject object = LAYOUT.createVolatileTest(14, null);\n Assert.assertEquals(14, LAYOUT.getVolatileInt(object));\n Assert.assertNull(LAYOUT.getVolatileThread(object));\n final DynamicObject object = LAYOUT.createVolatileTest(14);\n Assert.assertEquals(14, LAYOUT.getVolatileValue(object));\n LAYOUT.setVolatileValue(object, 22);\n Assert.assertEquals(22, LAYOUT.getVolatileValue(object));\n final DynamicObject object = LAYOUT.createVolatileTest(14, null);\n Assert.assertEquals(14, LAYOUT.getVolatileInt(object));\n LAYOUT.setVolatileInt(object, 22);\n Assert.assertEquals(22, LAYOUT.getVolatileInt(object));\n\n Assert.assertNull(LAYOUT.getVolatileThread(object));\n LAYOUT.setVolatileThread(object, Thread.currentThread());\n Assert.assertEquals(Thread.currentThread(), LAYOUT.getVolatileThread(object));\n final DynamicObject object = LAYOUT.createVolatileTest(14);\n Assert.assertEquals(14, LAYOUT.getVolatileValue(object));\n Assert.assertTrue(LAYOUT.compareAndSetVolatileValue(object, 14, 22));\n Assert.assertEquals(22, LAYOUT.getVolatileValue(object));\n final DynamicObject object = LAYOUT.createVolatileTest(14, null);\n Assert.assertEquals(14, LAYOUT.getVolatileInt(object));\n Assert.assertTrue(LAYOUT.compareAndSetVolatileInt(object, 14, 22));\n Assert.assertEquals(22, LAYOUT.getVolatileInt(object));\n\n Assert.assertNull(LAYOUT.getVolatileThread(object));\n Assert.assertTrue(LAYOUT.compareAndSetVolatileThread(object, null, Thread.currentThread()));\n Assert.assertEquals(Thread.currentThread(), LAYOUT.getVolatileThread(object));\n final DynamicObject object = LAYOUT.createVolatileTest(14);\n Assert.assertEquals(14, LAYOUT.getVolatileValue(object));\n Assert.assertEquals(14, LAYOUT.getAndSetVolatileValue(object, 22));\n Assert.assertEquals(22, LAYOUT.getVolatileValue(object));\n final DynamicObject object = LAYOUT.createVolatileTest(14, null);\n Assert.assertEquals(14, LAYOUT.getVolatileInt(object));\n Assert.assertEquals(14, LAYOUT.getAndSetVolatileInt(object, 22));\n Assert.assertEquals(22, LAYOUT.getVolatileInt(object));\n\n Assert.assertNull(LAYOUT.getVolatileThread(object));\n Assert.assertEquals(null, LAYOUT.getAndSetVolatileThread(object, Thread.currentThread()));\n Assert.assertEquals(Thread.currentThread(), LAYOUT.getVolatileThread(object));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/6073019c0e6850761a00189c5c1d21f84be14122", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 6, 7, 8, 10 ] }, { "input": " * result. The tutorial \n * result. The tutorial\n * \n * function a Java type. The tutorial \n * function a Java type. The tutorial\n * \n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/cc8a01bcfed78b5e99938c215b99ef68ecef07b2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " private final ArrayList postCodeInstallationTasks;\n private final ArrayList codeInstallationTaskFactories;\n this.postCodeInstallationTasks = new ArrayList<>();\n this.codeInstallationTaskFactories = new ArrayList<>();\n protected final Backend.PostCodeInstallationTask postCodeInstallationTask;\n protected final Backend.CodeInstallationTaskFactory codeInstallationTaskFactory;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/717462622b299c26a8b8b9d332ba65742830486c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 9 ] }, { "input": " for (PostCodeInstallationTask task : postCodeInstallationTasks) {\n for (CodeInstallationTask task : tasks) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/oracle/graal/commit/717462622b299c26a8b8b9d332ba65742830486c", "target_edit_idx": 6, "propagatable_edit_idx": [ 11, 5, 7 ] }, { "input": " this.postCodeInstallationTask = new TrufflePostCodeInstallationTask();\n this.codeInstallationTaskFactory = new TrufflePostCodeInstallationTaskFactory();\n backend.addCodeInstallationTask(codeInstallationTaskFactory);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/717462622b299c26a8b8b9d332ba65742830486c", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": " long address = entryPoint;\n if (address == 0) {\n long seenEntryPoint = entryPoint;\n if (seenEntryPoint == 0) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/ea612b290288c00b7ffb402a17dd28bf9a4e5823", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " if (!allocator.isProcessed(operand)) {\n return;\n }\n if (!allocator.isProcessed(operand)) {\n return;\n }\n if (!allocator.isProcessed(operand)) {\n return;\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/c12a4ac038e20de64282f2272608510a1e91869b", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " addFixedUse(asRegisterValue(operand), from, to);\n RegisterValue reg = asRegisterValue(operand);\n if (allocator.isAllocatable(reg)) {\n addFixedUse(reg, from, to);\n }\n addFixedDef(asRegisterValue(operand), op);\n RegisterValue reg = asRegisterValue(operand);\n if (allocator.isAllocatable(reg)) {\n addFixedDef(reg, op);\n }\n addFixedTemp(asRegisterValue(operand), tempPos);\n RegisterValue reg = asRegisterValue(operand);\n if (allocator.isAllocatable(reg)) {\n addFixedTemp(reg, tempPos);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/c12a4ac038e20de64282f2272608510a1e91869b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " void profileIndirectCall() {\n void profileCall() {\n public void profileIndirectCall() {\n public void profileCall() {\n super.profileIndirectCall();\n super.profileCall();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/39a6f084ea2fd90dad8c37a58a7fe57b64ca14dd", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " GlobalLivenessInfo rematInfo = info;\n GlobalLivenessInfo livenessInfo = info;\n return rematInfo;\n return livenessInfo;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/84e0436c5373100b74372e225a1c5698b6095cac", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " assert storesIncoming(block);\n assert storesIncoming(block) || info.blockToVarOut[block.getPredecessors()[0].getId()] == varsIn;\n assert storesOutgoing(block);\n assert storesOutgoing(block) || info.blockToVarIn[block.getSuccessors()[0].getId()] == varsOut;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/84e0436c5373100b74372e225a1c5698b6095cac", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " if (storesOutgoing(block)) {\n return blockToVarOut[block.getId()];\n }\n assert blockToVarOut[block.getId()] == null : String.format(\"Var out for block %s is not empty: %s\", block, Arrays.toString(blockToVarOut[block.getId()]));\n assert block.getSuccessorCount() == 1 : String.format(\"More then one successor: %s -> %s\", block, Arrays.toString(block.getSuccessors()));\n return blockToVarIn[block.getSuccessors()[0].getId()];\n return blockToVarOut[block.getId()];\n if (storesIncoming(block)) {\n return blockToVarIn[block.getId()];\n }\n assert blockToVarIn[block.getId()] == null : String.format(\"Var in for block %s is not empty: %s\", block, Arrays.toString(blockToVarIn[block.getId()]));\n assert block.getPredecessorCount() == 1 : String.format(\"More then one predecessor: %s -> %s\", block, Arrays.toString(block.getPredecessors()));\n return blockToVarOut[block.getPredecessors()[0].getId()];\n return blockToVarIn[block.getId()];\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/84e0436c5373100b74372e225a1c5698b6095cac", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " @SuppressWarnings(\"unused\")\n private void registerIntegerSwitch(AbstractBeginNode beginNode, Node predecessor, IntegerSwitchNode integerSwitchNode) {\n }\n\n @SuppressWarnings(\"unused\")\n private void registerTypeSwitch(AbstractBeginNode beginNode, Node predecessor, TypeSwitchNode typeSwitch) {\n private void registerIntegerSwitch(AbstractBeginNode beginNode, IntegerSwitchNode integerSwitchNode) {\n registerNewValueStamp(integerSwitchNode.value(), integerSwitchNode.getValueStampForSuccessor(beginNode));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/fd006365d35c4fb539465fc422a1cfea0b58c204", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": " if (newGuard == newlyCreatedGuard) {\n // Register guard such that it will be processed by subsequent\n // conditional elimination.\n blockToNodes.get(b).add(newGuard);\n }\n if (newGuard == newlyCreatedGuard) {\n // Register guard such that it will be processed by subsequent\n // conditional elimination.\n blockToNodes.get(b).add(newGuard);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/0f75d70df46940ef95a68a08e842581273200e82", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "import java.util.List;\nimport java.util.List;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/9085352ea2337a4e49bab6f02e6a5e56fd5b2567", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/1843d3746b92e3ba7b7ccbc6f81657a4c232a814", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "import com.oracle.graal.compiler.common.bailout.RetryableBailoutException;\nimport com.oracle.graal.compiler.common.bailout.PermanentBailoutException;\nimport com.oracle.graal.compiler.common.bailout.RetryableBailoutException;\nimport com.oracle.graal.compiler.common.bailout.PermanentBailoutException;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/98ec0efc29dd6a21fcde6699ac5554310c38269a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 5, 7 ] }, { "input": " public static LLVMParserResult getMain(Source source, LLVMContext context, NodeFactoryFacade factoryFacade) {\n public static LLVMParserResult parse(Source source, LLVMContext context, NodeFactoryFacade factoryFacade) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/f2d81ea27de732dae5f629b2363d9844bb3cbd0b", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " setStamp(foldStamp(x.stamp(), y.stamp()));\n setStamp(x.stamp().unrestricted());\n setStamp(foldStamp(x.stamp(), y.stamp()));\n setStamp(x.stamp().unrestricted());\n setStamp(foldStamp(x.stamp(), y.stamp()));\n setStamp(x.stamp().unrestricted());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/772941d212e3f752b0c946427e599f7840f45b90", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " try (Indent indent2 = Debug.logAndIndent(\"handle op %d: %s\", op.id(), op)) {\n try (Indent indent2 = Debug.logAndIndent(LOG_LEVEL, \"handle op %d: %s\", op.id(), op)) {\n try (Indent indent = Debug.logAndIndent(\"handle block %s\", b)) {\n try (Indent indent = Debug.logAndIndent(Debug.INFO_LOG_LEVEL, \"handle block %s\", b)) {\n try (Indent indent = Debug.logAndIndent(\"compute local live sets for block %s\", block)) {\n try (Indent indent = Debug.logAndIndent(LOG_LEVEL, \"compute local live sets for block %s\", block)) {\n try (Indent indent = Debug.logAndIndent(\"compute global live sets\")) {\n try (Indent indent = Debug.logAndIndent(LOG_LEVEL, \"compute global live sets\")) {\n try (Indent indent2 = Debug.logAndIndent(\"new iteration %d\", iterationCount)) {\n try (Indent indent2 = Debug.logAndIndent(LOG_LEVEL, \"new iteration %d\", iterationCount)) {\n try (Indent indent = Debug.logAndIndent(\"Finish Block %s\", block)) {\n try (Indent indent = Debug.logAndIndent(LOG_LEVEL, \"Finish Block %s\", block)) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/e18d5e5bff3a1cb21de49418203ab33e1cd69534", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 8, 9, 12 ] }, { "input": " Debug.log(\"liveGen B%d %s\", block.getId(), blockSets.liveGen);\n Debug.log(\"liveKill B%d %s\", block.getId(), blockSets.liveKill);\n Debug.log(LOG_LEVEL, \"liveGen B%d %s\", block.getId(), blockSets.liveGen);\n Debug.log(LOG_LEVEL, \"liveKill B%d %s\", block.getId(), blockSets.liveKill);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/e18d5e5bff3a1cb21de49418203ab33e1cd69534", "target_edit_idx": 5, "propagatable_edit_idx": [ 10, 3, 6, 7 ] }, { "input": " try (Indent indent = Debug.logAndIndent(\"compute global live sets\")) {\n try (Indent indent = Debug.logAndIndent(LOG_LEVEL, \"compute global live sets\")) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/e18d5e5bff3a1cb21de49418203ab33e1cd69534", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 2, 4, 9, 12 ] }, { "input": " Debug.log(\"block %d: livein = %s, liveout = %s\", block.getId(), liveIn, blockSets.liveOut);\n Debug.log(LOG_LEVEL, \"block %d: livein = %s, liveout = %s\", block.getId(), liveIn, blockSets.liveOut);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/e18d5e5bff3a1cb21de49418203ab33e1cd69534", "target_edit_idx": 10, "propagatable_edit_idx": [ 3, 5, 6, 7 ] }, { "input": " writeCanonicalGraphExpressionString2((ValueNode) input, checkConstants, writer);\n writeCanonicalGraphExpressionString((ValueNode) input, checkConstants, removeIdentities, writer);\n writeCanonicalGraphExpressionString2(node, checkConstants, writer);\n writeCanonicalGraphExpressionString(node, checkConstants, removeIdentities, writer);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/00e61da3c70ab342a78a41f7f4778789f7a24f73", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " protected Node handleFloatingNodeAfterAdd(MethodScope s, LoopScope loopScope, Node node) {\n protected Node handleFloatingNodeAfterAdd(MethodScope s, LoopScope loopScope, Node node, boolean isNewlyAdded) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/01463e78f34b52b2478f0df862a0ee1ce81a4451", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 5, 6 ] }, { "input": "import com.oracle.truffle.api.instrumentation.InstrumentationHandler.LanguageInstrumenter;\nimport com.oracle.truffle.api.instrumentation.InstrumentationHandler.LanguageClientInstrumenter;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/87b26edd89bd82a2932add75e1b2229ffe63f713", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 1, 3, 9 ] }, { "input": " return new LanguageInstrumenter<>(language, context);\n return new LanguageClientInstrumenter<>(language, context);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/oracle/graal/commit/87b26edd89bd82a2932add75e1b2229ffe63f713", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 8, 9 ] }, { "input": " private boolean initialized;\n private volatile boolean initialized;\n private boolean initialized;\n private volatile boolean initialized;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/d7006cb7201729b8075b00de8ce313cfd361d125", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " initialized = true;\n this.initialized = true;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/d7006cb7201729b8075b00de8ce313cfd361d125", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " } else if (isByte(disp)) {\n } else if (isByte(disp) && !force4Byte) {\n } else if (isByte(disp)) {\n } else if (isByte(disp) && !force4Byte) {\n } else if (isByte(disp)) {\n } else if (isByte(disp) && !force4Byte) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/e227f583685e13eff673c19b9508a0dd5692bc8d", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " @Input(InputType.Association) LoopExitNode proxyPoint;\n @Input(InputType.Association) LoopExitNode loopExit;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/687969c49a7cef0f9520453e9b144695c37e6b5f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": " public ValueProxyNode(ValueNode value, LoopExitNode proxyPoint) {\n super(TYPE, value.stamp(), proxyPoint);\n public ValueProxyNode(ValueNode value, LoopExitNode loopExit) {\n super(TYPE, value.stamp(), loopExit);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/687969c49a7cef0f9520453e9b144695c37e6b5f", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": "import com.oracle.graal.phases.common.RemoveValueProxyPhase;\nimport com.oracle.graal.phases.common.RemoveValueProxyPhase;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/oracle/graal/commit/b337c4ac4f10fd88b59437f92230fb7904b644be", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " appendPhase(new RemoveValueProxyPhase());\n appendPhase(new RemoveValueProxyPhase());\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/b337c4ac4f10fd88b59437f92230fb7904b644be", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " List workaround = new ArrayList<>(src);\n List workaround = new ArrayList(src);\n List workaround = new ArrayList<>(src);\n List workaround = new ArrayList(src);\n List workaround = new ArrayList<>(src);\n List workaround = new ArrayList(src);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/oracle/graal/commit/31a8211d0db890c60964f0db6bd5770835190eca", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " public void probeAST(Instrumenter inst, Node node) {\n node.accept(this);\n public void probeAST(Instrumenter inst, RootNode rootNode) {\n rootNode.accept(this);\n public void probeAST(final Instrumenter instrumenter, Node startNode) {\n public void probeAST(final Instrumenter instrumenter, RootNode startNode) {\n public void probeAST(final Instrumenter instrumenter, Node startNode) {\n public void probeAST(final Instrumenter instrumenter, RootNode startNode) {\nimport com.oracle.truffle.api.nodes.Node;\nimport com.oracle.truffle.api.nodes.RootNode;\n void probeAST(Instrumenter instrumenter, Node node);\n void probeAST(Instrumenter instrumenter, RootNode rootNode);\n public void probeAST(final Instrumenter instrumenter, Node startNode) {\n public void probeAST(final Instrumenter instrumenter, RootNode startNode) {\n public void probeAST(final Instrumenter instrumenter, Node startNode) {\n public void probeAST(final Instrumenter instrumenter, RootNode startNode) {\n public void probeAST(final Instrumenter instrumenter, final Node startNode) {\n public void probeAST(final Instrumenter instrumenter, final RootNode startNode) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/fa6a367b02b695eeebf04a2e9c126a07a2837eff", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5, 9, 11, 12, 14 ] }, { "input": " public Variable emitAddress(VirtualStackSlot address) {\n public Variable emitAddress(AllocatableValue stackslot) {\n Variable emitAddress(VirtualStackSlot slot);\n Variable emitAddress(AllocatableValue stackslot);\n append(new StackLeaOp(result, address));\n append(new StackLeaOp(result, stackslot));\n public Variable emitAddress(VirtualStackSlot address) {\n public Variable emitAddress(AllocatableValue stackslot) {\n append(new StackLoadAddressOp(result, address));\n append(new StackLoadAddressOp(result, stackslot));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/509f68e7e35e14d92ebac149d2f36d75f44841c0", "target_edit_idx": 0, "propagatable_edit_idx": [ 10, 1, 2, 3 ] }, { "input": " if (original.getAnnotation(TruffleBoundary.class) != null) {\n return InlineInfo.DO_NOT_INLINE;\n TruffleBoundary truffleBoundary = original.getAnnotation(TruffleBoundary.class);\n if (truffleBoundary != null) {\n return truffleBoundary.throwsControlFlowException() ? InlineInfo.DO_NOT_INLINE_WITH_EXCEPTION : InlineInfo.DO_NOT_INLINE_NO_EXCEPTION;\n if (original.getAnnotation(TruffleBoundary.class) != null) {\n return InlineInfo.DO_NOT_INLINE;\n TruffleBoundary truffleBoundary = original.getAnnotation(TruffleBoundary.class);\n if (truffleBoundary != null) {\n return truffleBoundary.throwsControlFlowException() ? InlineInfo.DO_NOT_INLINE_WITH_EXCEPTION : InlineInfo.DO_NOT_INLINE_NO_EXCEPTION;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/cd17946884d5405eab05da678660d28dfff68b1e", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " return InlineInfo.DO_NOT_INLINE;\n return InlineInfo.DO_NOT_INLINE_NO_EXCEPTION;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/cd17946884d5405eab05da678660d28dfff68b1e", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 10, 11 ] }, { "input": " return maxTripCountNode(false);\n return maxTripCountNode(false, iv.strideNode(), iv.initNode());\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/79c608264d576fc969168d25098947cf5004f0fb", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " return copy(name);\n return copy(name, null);\n }\n\n /**\n * Creates a copy of this graph.\n *\n * @param duplicationMapCallback consumer of the duplication map created during the copying\n */\n public Graph copy(Consumer> duplicationMapCallback) {\n return copy(name, duplicationMapCallback);\n mutableCopy = readonlyCopy.copy();\n mutableCopy = readonlyCopy.copy(duplicationMapCallback);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/aba3dc2f04926da0d60e97281edc9985d4c6db16", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": "public final class OrNode extends BinaryArithmeticNode implements BinaryCommutative {\npublic final class OrNode extends BinaryArithmeticNode implements BinaryCommutative, NarrowableArithmeticNode {\npublic final class XorNode extends BinaryArithmeticNode implements BinaryCommutative {\npublic final class XorNode extends BinaryArithmeticNode implements BinaryCommutative, NarrowableArithmeticNode {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/888cf6d2385c14575a89546f9a8d412e7d0e5183", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " MembarNode.memoryBarrier(STORE_LOAD);\n byte cardByteReload = cardAddress.readByte(0);\n MembarNode.memoryBarrier(STORE_LOAD, GC_CARD_LOCATION);\n byte cardByteReload = cardAddress.readByte(0, GC_CARD_LOCATION);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/813ccc5894b9274415d2e4e9fc303e289dfaf387", "target_edit_idx": 6, "propagatable_edit_idx": [ 4 ] }, { "input": " int nodeCount = splitTarget.countNonTrivialNodes();\n int nodeCount = splitTarget.getNonTrivialNodeCount();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/c27d03123d17c9056f046d04972692d59b4b4a42", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 6, 7, 8 ] }, { "input": " multithreadedMerge(TestNodeFactory.getInstance(), new Executions(1, 1L << 32, 1.0), 1, 2, 3);\n for (int i = 0; i < 100; i++) {\n multithreadedMerge(TestNodeFactory.getInstance(), new Executions(1, 1L << 32, 1.0), 1, 2, 3);\n }\n multithreadedMerge(TestNodeFactory.getInstance(), new Executions(1.0, 1L << 32, 1), 3, 2, 1);\n for (int i = 0; i < 100; i++) {\n multithreadedMerge(TestNodeFactory.getInstance(), new Executions(1.0, 1L << 32, 1), 3, 2, 1);\n }\n multithreadedMerge(TestCachedNodeFactory.getInstance(), new Executions(1, 1L << 32, 1.0), 1, 2, 3);\n for (int i = 0; i < 100; i++) {\n multithreadedMerge(TestCachedNodeFactory.getInstance(), new Executions(1, 1L << 32, 1.0), 1, 2, 3);\n }\n multithreadedMerge(TestCachedNodeFactory.getInstance(), new Executions(1, 2, 1.0), 1, 1, 3);\n for (int i = 0; i < 100; i++) {\n multithreadedMerge(TestCachedNodeFactory.getInstance(), new Executions(1, 2, 1.0), 1, 1, 3);\n }\n multithreadedMerge(TestCachedNodeFactory.getInstance(), new Executions(1, 2, 3), 1, 1, 1);\n for (int i = 0; i < 100; i++) {\n multithreadedMerge(TestCachedNodeFactory.getInstance(), new Executions(1, 2, 3), 1, 1, 1);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/357712d3525ecb91cb11dfecbe78415c38e1fc82", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " trueSucc.setNext(exception);\n falseSucc.setNext(exception);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/ad956b0ee33b5d2137bb68d93290b95c8d9d266c", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " writeModifiers(f.getModifiers());\n writeModifiers(f.getModifiers(), true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/0fe51d4266627ec47180482bec980542fe59dc5a", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5, 6 ] }, { "input": " writeModifiers(e.getModifiers());\n writeModifiers(e.getModifiers(), !e.getEnclosingClass().getModifiers().contains(Modifier.FINAL));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/0fe51d4266627ec47180482bec980542fe59dc5a", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4, 6 ] }, { "input": " private void writeModifiers(Set modifiers) {\n if (modifiers != null) {\n for (Modifier modifier : modifiers) {\n write(modifier.toString());\n private void writeModifiers(Set modifiers, boolean includeFinal) {\n if (modifiers != null && !modifiers.isEmpty()) {\n Modifier[] modArray = modifiers.toArray(new Modifier[modifiers.size()]);\n Arrays.sort(modArray);\n for (Modifier mod : modArray) {\n if (mod == Modifier.FINAL && !includeFinal) {\n continue;\n }\n write(mod.toString());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/0fe51d4266627ec47180482bec980542fe59dc5a", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " throw new BailoutException(\"Number of iterations in ConditionalEliminationPhase phase exceeds \" + MAX_ITERATIONS);\n throw new BailoutException(\"Number of iterations in ConditionalEliminationPhase phase exceeds %d\", MAX_ITERATIONS);\n throw new BailoutException(\"Code installation failed: \" + result);\n throw new BailoutException(result != CodeInstallResult.DEPENDENCIES_FAILED, \"Code installation failed: %s\", result);\n throw new BailoutException(\"OSR with stack entries not supported: \" + osr.stateAfter().toString(Verbosity.Debugger));\n throw new BailoutException(\"OSR with stack entries not supported: %s\", osr.stateAfter().toString(Verbosity.Debugger));\n throw new BailoutException(\"Unsupported opcode \" + opcode + \" (\" + nameOf(opcode) + \") [bci=\" + bci + \"]\");\n throw new BailoutException(\"Unsupported opcode %d (%s) [bci=%d]\", opcode, nameOf(opcode), bci);\n throw new BailoutException(String.format(\"Frame size (%d) exceeded maximum allowed frame size (%d).\", frameSize, registerConfig.getMaximumFrameSize()));\n throw new BailoutException(\"Frame size (%d) exceeded maximum allowed frame size (%d).\", frameSize, registerConfig.getMaximumFrameSize());\n throw new BailoutException(\"Number of iterations in FlowSensitiveReductionPhase exceeds \" + MAX_ITERATIONS);\n throw new BailoutException(\"Number of iterations in FlowSensitiveReductionPhase exceeds %d\", MAX_ITERATIONS);\n throw new BailoutException(\"Truffle compilation is exceeding maximum node count: \" + graph.getNodeCount());\n throw new BailoutException(\"Truffle compilation is exceeding maximum node count: %d\", graph.getNodeCount());\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.23076923076923078, "commit_url": "https://github.com/oracle/graal/commit/d210e88da5fb832aaf74832cdf0d0a23ab0c4b11", "target_edit_idx": 11, "propagatable_edit_idx": [ 7, 8, 9, 10, 12, 14 ] }, { "input": " throw new BailoutException(\"Number of iterations in FlowSensitiveReductionPhase exceeds \" + MAX_ITERATIONS);\n throw new BailoutException(\"Number of iterations in FlowSensitiveReductionPhase exceeds %d\", MAX_ITERATIONS);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.23076923076923078, "commit_url": "https://github.com/oracle/graal/commit/d210e88da5fb832aaf74832cdf0d0a23ab0c4b11", "target_edit_idx": 12, "propagatable_edit_idx": [ 7, 8, 9, 10, 11, 14 ] }, { "input": " if (phase != null) {\n TTY.println(\"\");\n } else {\n TTY.println(\"\");\n }\n TTY.println(\"\");\n if (phase != null) {\n TTY.println(\"\");\n } else {\n TTY.println(\"\");\n }\n TTY.println(\"\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/8579e11eb6b62745c612d6d65e3c1a3fdb86ba0e", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " debugValuesPrinter.printDebugValues(ResetDebugValuesAfterBootstrap.getValue() ? \"application\" : null, false);\n debugValuesPrinter.printDebugValues();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/8579e11eb6b62745c612d6d65e3c1a3fdb86ba0e", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " byte[] initializeBytecode(long metaspaceMethod);\n byte[] getBytecode(long metaspaceMethod);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/7fcefadfe17d17e947597036b0bcdc423436a7ca", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " public static void optimize(LIR lir) {\n List> blocks = lir.codeEmittingOrder();\n ControlFlowOptimizer.deleteEmptyBlocks(lir, blocks);\n public static > void optimize(LIR lir, List codeEmittingOrder) {\n ControlFlowOptimizer.deleteEmptyBlocks(lir, codeEmittingOrder);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/9f754849de50bff6741464ccd3dc9e6d364a7b89", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " public HotSpotNmethod(HotSpotResolvedJavaMethod method, boolean isDefault, boolean isExternal) {\n public HotSpotNmethod(HotSpotResolvedJavaMethod method, String name, boolean isDefault, boolean isExternal) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/b9abcea2520ab86a3ad30f8b1da6a49ed98addb7", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": " * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/4276d13f981c3afe3d509ea40bf69591bd554764", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " public StructuredGraph makeGraph(ResolvedJavaMethod method, ResolvedJavaMethod original, SnippetInliningPolicy policy) {\n return createGraphMaker(method, original).makeGraph(policy);\n public StructuredGraph makeGraph(ResolvedJavaMethod method, ResolvedJavaMethod original, SnippetInliningPolicy policy, boolean removeAllFrameStates) {\n return createGraphMaker(method, original).makeGraph(policy, removeAllFrameStates);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/65a79f830ba83553d07ee268dae957f8bf410570", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 8 ] }, { "input": " public StructuredGraph makeGraph(final SnippetInliningPolicy policy) {\n public StructuredGraph makeGraph(final SnippetInliningPolicy policy, final boolean removeAllFrameStates) {\n StructuredGraph calleeGraph = repl.makeGraph(method, null, null);\n StructuredGraph calleeGraph = repl.makeGraph(method, null, null, false);\n return installer.makeGraph(resolvedMethod, null, inliningPolicy.get());\n return installer.makeGraph(resolvedMethod, null, inliningPolicy.get(), false);\n return installer.makeGraph(resolvedMethod, null, inliningPolicy.get());\n return installer.makeGraph(resolvedMethod, null, inliningPolicy.get(), false);\n return installer.makeGraph(resolvedMethod, null, inliningPolicy.get());\n return installer.makeGraph(resolvedMethod, null, inliningPolicy.get(), false);\n graphs.putIfAbsent(method, makeGraph(method, null, inliningPolicy(method)));\n graphs.putIfAbsent(method, makeGraph(method, null, inliningPolicy(method), method.getAnnotation(Snippet.class).removeAllFrameStates()));\n graphs.putIfAbsent(substitute, makeGraph(substitute, original, inliningPolicy(substitute)));\n graphs.putIfAbsent(substitute, makeGraph(substitute, original, inliningPolicy(substitute), false));\n public StructuredGraph makeGraph(ResolvedJavaMethod method, ResolvedJavaMethod original, SnippetInliningPolicy policy) {\n return createGraphMaker(method, original).makeGraph(policy);\n public StructuredGraph makeGraph(ResolvedJavaMethod method, ResolvedJavaMethod original, SnippetInliningPolicy policy, boolean removeAllFrameStates) {\n return createGraphMaker(method, original).makeGraph(policy, removeAllFrameStates);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/65a79f830ba83553d07ee268dae957f8bf410570", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7 ] }, { "input": " protected void finalizeGraph(StructuredGraph graph) {\n protected void finalizeGraph(StructuredGraph graph, boolean removeAllFrameStates) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/65a79f830ba83553d07ee268dae957f8bf410570", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": "import static com.oracle.graal.hotspot.HotSpotGraalRuntime.*;\nimport static com.oracle.graal.hotspot.HotSpotGraalRuntime.*;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/e773a0c9728bbd2083b20f13cdb1ef88587fd10a", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " return enabled || graalRuntime().getConfig().cAssertions;\n return enabled || cAssertionsEnabled();\n return enabled || graalRuntime().getConfig().cAssertions;\n return enabled || cAssertionsEnabled();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/e773a0c9728bbd2083b20f13cdb1ef88587fd10a", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " for (Node proxyUsage : usage.usages()) {\n for (Node proxyUsage : usage.usages().snapshot()) {\n for (Node piUsage : usage.usages()) {\n for (Node piUsage : usage.usages().snapshot()) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/2e6a4581126de0d59fc8235c1fa8725c06024e65", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " GraalOptions.PEAReadCache = true;\n GraalOptions.OptEarlyReadElimination = true;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/3b6f1b3528da20d26df8b0186a688f22c07fbaf2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": " if (GraalOptions.PEAReadCache) {\n if (GraalOptions.OptEarlyReadElimination) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/oracle/graal/commit/3b6f1b3528da20d26df8b0186a688f22c07fbaf2", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": " ExceptionObjectNode exceptionEdge = invokeWithException.exceptionEdge();\n ExceptionObjectNode exceptionEdge = (ExceptionObjectNode) invokeWithException.exceptionEdge();\n ExceptionObjectNode obj = invokeWithException.exceptionEdge();\n ExceptionObjectNode obj = (ExceptionObjectNode) invokeWithException.exceptionEdge();\n ExceptionObjectNode exceptionEdge = invokeWithExceptionNode.exceptionEdge();\n ExceptionObjectNode exceptionEdge = (ExceptionObjectNode) invokeWithExceptionNode.exceptionEdge();\n ExceptionObjectNode exceptionEdge = invokeWithException.exceptionEdge();\n ExceptionObjectNode exceptionEdge = (ExceptionObjectNode) invokeWithException.exceptionEdge();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/b8dee7b38d81a0e00803f5335eb8536c1a6dcca2", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": " private final HashMap nameToSlotMap;\n private final HashMap identifierToSlotMap;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/64851bc953a010d14b1b38f7312e87e9cc741ea3", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 9, 10, 12 ] }, { "input": " public FrameSlot addFrameSlot(String name, Class type) {\n assert !nameToSlotMap.containsKey(name);\n FrameSlotImpl slot = new FrameSlotImpl(this, name, slots.size(), type);\n public FrameSlot addFrameSlot(Object identifier, Class type) {\n assert !identifierToSlotMap.containsKey(identifier);\n FrameSlotImpl slot = new FrameSlotImpl(this, identifier, slots.size(), type);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/oracle/graal/commit/64851bc953a010d14b1b38f7312e87e9cc741ea3", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " public FrameSlot findFrameSlot(String name) {\n return nameToSlotMap.get(name);\n public FrameSlot findFrameSlot(Object identifier) {\n return identifierToSlotMap.get(identifier);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/64851bc953a010d14b1b38f7312e87e9cc741ea3", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " private final String name;\n private final Object identifier;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/64851bc953a010d14b1b38f7312e87e9cc741ea3", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13 ] }, { "input": "import com.oracle.graal.graph.*;\nimport com.oracle.graal.graph.*;\n", "class": "clone", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/oracle/graal/commit/738a2e468a983ea7ee8bdc1f224aaaab86ba348d", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " String formatterString = success ? \"inlining invoke at %s@%d (size %f <= %f): %s\" : \"not inlining invoke at %s@%d (too large %f > %f): %s\";\n Debug.log(formatterString, CiUtil.format(\"%H.%n(%p):%r\", info.invoke.stateAfter().method()), info.invoke.bci(), info.weight, maxSize, info);\n String formatterString = success ? \"inlining %s (size %f <= %f)\" : \"not inlining %s (too large %f > %f)\";\n Debug.log(formatterString, InliningUtil.methodName(info), info.weight, maxSize);\n Debug.log(\"not inlining invoke at %s@%d (CompiledCodeSize %d > %d): %s\", CiUtil.format(\"%H.%n(%p):%r\", info.invoke.stateAfter().method()), info.invoke.bci(), info.compiledCodeSize(), GraalOptions.SmallCompiledCodeSize, info);\n Debug.log(\"not inlining %s (CompiledCodeSize %d > %d)\", InliningUtil.methodName(info), info.compiledCodeSize(), GraalOptions.SmallCompiledCodeSize);\n Debug.log(\"inlining cut off by MaximumDesiredSize\");\n Debug.scope(\"InliningDecisions\", new Runnable() {\n public void run() {\n for (InlineInfo info : inlineCandidates) {\n Debug.log(\"not inlining %s because inlining cut off by MaximumDesiredSize\", InliningUtil.methodName(info));\n }\n }\n });\n\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/32dad3e49c6710e508e23675e33cccb282a1ba68", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 2 ] }, { "input": " StructuredGraph calleeGraph = getGraph(concretes.get(i), callback);\n RiResolvedMethod concrete = concretes.get(i);\n StructuredGraph calleeGraph = getGraph(concrete, callback);\n assert !IntrinsificationPhase.canIntrinsify(invokeForInlining, concrete, runtime);\n StructuredGraph calleeGraph = getGraph(concretes.get(0), callback);\n RiResolvedMethod concrete = concretes.get(0);\n StructuredGraph calleeGraph = getGraph(concrete, callback);\n assert !IntrinsificationPhase.canIntrinsify(invoke, concrete, runtime);\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/b9f11f54ee72d37eaf1972e61b60164d66fc66e2", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " private void inlineSingleMethod(StructuredGraph graph, InliningCallback callback) {\n private void inlineSingleMethod(StructuredGraph graph, GraalRuntime runtime, InliningCallback callback) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/b9f11f54ee72d37eaf1972e61b60164d66fc66e2", "target_edit_idx": 10, "propagatable_edit_idx": [ 7 ] }, { "input": " throw new RuntimeException(e);\n printer = null;\n throw new RuntimeException(e);\n TTY.println(\"Could not connect to the IGV on port %d: %s\", port, e);\n printer = null;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/8ca7710bf64eaeb5f9dd7a9dbdd5114699d0c22b", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " setOperandsForLocals(ir.getHIRStartBlock().end().stateAfter());\n setOperandsForLocals();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/oracle/graal/commit/48271dcbe8b0fcd3dd31f6ccfc575b70276e2b2d", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " if (exactType == null && receiver instanceof Local && ((Local) receiver).javaIndex() == 0) {\n if (exactType == null && receiver instanceof Local && ((Local) receiver).index() == 0) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/oracle/graal/commit/48271dcbe8b0fcd3dd31f6ccfc575b70276e2b2d", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 9, 10, 7 ] }, { "input": " int tc = totalConnections.decrementAndGet();\n int tc = totalConnections.decrementAndGet();\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/brettwooldridge/HikariCP/commit/0182489c7b623acbca2987efad87ef17a0d51bc9", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " if (tc < 0 && !isShutdown) {\n final int tc = totalConnections.decrementAndGet();\n if (tc < 0) {\n if (tc < 0 && !isShutdown) {\n final int tc = totalConnections.decrementAndGet();\n if (tc < 0) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/brettwooldridge/HikariCP/commit/0182489c7b623acbca2987efad87ef17a0d51bc9", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " public static ThreadPoolExecutor createThreadPoolExecutor(final int queueSize, final String threadName, ThreadFactory threadFactory)\n public static ThreadPoolExecutor createThreadPoolExecutor(final int queueSize, final String threadName, ThreadFactory threadFactory, RejectedExecutionHandler policy)\n addConnectionExecutor = createThreadPoolExecutor(configuration.getMaximumPoolSize(), \"HikariCP connection filler (pool \" + configuration.getPoolName() + \")\", configuration.getThreadFactory());\n closeConnectionExecutor = createThreadPoolExecutor(configuration.getMaximumPoolSize(), \"HikariCP connection closer (pool \" + configuration.getPoolName() + \")\", configuration.getThreadFactory());\n addConnectionExecutor = createThreadPoolExecutor(configuration.getMaximumPoolSize(), \"HikariCP connection filler (pool \" + configuration.getPoolName() + \")\", configuration.getThreadFactory(), new ThreadPoolExecutor.DiscardPolicy());\n closeConnectionExecutor = createThreadPoolExecutor(4, \"HikariCP connection closer (pool \" + configuration.getPoolName() + \")\", configuration.getThreadFactory(), new ThreadPoolExecutor.CallerRunsPolicy());\n ExecutorService assassinExecutor = createThreadPoolExecutor(configuration.getMaximumPoolSize(), \"HikariCP connection assassin\", configuration.getThreadFactory());\n ExecutorService assassinExecutor = createThreadPoolExecutor(configuration.getMaximumPoolSize(), \"HikariCP connection assassin\", configuration.getThreadFactory(), new ThreadPoolExecutor.CallerRunsPolicy());\n addConnectionExecutor = createThreadPoolExecutor(configuration.getMaximumPoolSize(), \"HikariCP connection filler (pool \" + configuration.getPoolName() + \")\", configuration.getThreadFactory());\n closeConnectionExecutor = createThreadPoolExecutor(configuration.getMaximumPoolSize(), \"HikariCP connection closer (pool \" + configuration.getPoolName() + \")\", configuration.getThreadFactory());\n addConnectionExecutor = createThreadPoolExecutor(configuration.getMaximumPoolSize(), \"HikariCP connection filler (pool \" + configuration.getPoolName() + \")\", configuration.getThreadFactory(), new ThreadPoolExecutor.DiscardPolicy());\n closeConnectionExecutor = createThreadPoolExecutor(4, \"HikariCP connection closer (pool \" + configuration.getPoolName() + \")\", configuration.getThreadFactory(), new ThreadPoolExecutor.CallerRunsPolicy());\n ExecutorService assassinExecutor = createThreadPoolExecutor(configuration.getMaximumPoolSize(), \"HikariCP connection assassin\", configuration.getThreadFactory());\n ExecutorService assassinExecutor = createThreadPoolExecutor(configuration.getMaximumPoolSize(), \"HikariCP connection assassin\", configuration.getThreadFactory(), new ThreadPoolExecutor.CallerRunsPolicy());\n public static ThreadPoolExecutor createThreadPoolExecutor(final int queueSize, final String threadName, ThreadFactory threadFactory)\n public static ThreadPoolExecutor createThreadPoolExecutor(final int queueSize, final String threadName, ThreadFactory threadFactory, RejectedExecutionHandler policy)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/brettwooldridge/HikariCP/commit/b140c9ed687d62ccf5d6d01ce91c8ae4c0618e54", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 7, 8, 10 ] }, { "input": " ThreadPoolExecutor executor = new ThreadPoolExecutor(processors, processors, 5, TimeUnit.SECONDS, queue, threadFactory,\n new ThreadPoolExecutor.DiscardPolicy());\n ThreadPoolExecutor executor = new ThreadPoolExecutor(processors, processors, 5, TimeUnit.SECONDS, queue, threadFactory, policy);\n ThreadPoolExecutor executor = new ThreadPoolExecutor(processors, processors, 5, TimeUnit.SECONDS, queue, threadFactory,\n new ThreadPoolExecutor.DiscardPolicy());\n ThreadPoolExecutor executor = new ThreadPoolExecutor(processors, processors, 5, TimeUnit.SECONDS, queue, threadFactory, policy);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/brettwooldridge/HikariCP/commit/b140c9ed687d62ccf5d6d01ce91c8ae4c0618e54", "target_edit_idx": 6, "propagatable_edit_idx": [ 11 ] }, { "input": " public static ThreadPoolExecutor createThreadPoolExecutor(final int queueSize, final String threadName, ThreadFactory threadFactory)\n public static ThreadPoolExecutor createThreadPoolExecutor(final int queueSize, final String threadName, ThreadFactory threadFactory, RejectedExecutionHandler policy)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/brettwooldridge/HikariCP/commit/b140c9ed687d62ccf5d6d01ce91c8ae4c0618e54", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 3, 5, 7, 8 ] }, { "input": " sleepBackoff = Math.min(1000L, (long) ((double) sleepBackoff * 1.5));\n sleepBackoff = Math.min(connectionTimeout / 2, (long) ((double) sleepBackoff * 1.5));\n sleepBackoff = Math.min(1000L, (long) ((double) sleepBackoff * 1.5));\n sleepBackoff = Math.min(connectionTimeout / 2, (long) ((double) sleepBackoff * 1.5));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/brettwooldridge/HikariCP/commit/fd156489794dbc4c2ec803db39336265348b9c4f", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " int processors = Math.max(1, Runtime.getRuntime().availableProcessors() / 2);\n int processors = Math.max(1, Runtime.getRuntime().availableProcessors() / 4);\n int processors = Math.max(1, Runtime.getRuntime().availableProcessors() / 2);\n int processors = Math.max(1, Runtime.getRuntime().availableProcessors() / 4);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/brettwooldridge/HikariCP/commit/fd156489794dbc4c2ec803db39336265348b9c4f", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " ThreadPoolExecutor executor = new ThreadPoolExecutor(processors, processors, 2, TimeUnit.SECONDS, queue, threadFactory,\n ThreadPoolExecutor executor = new ThreadPoolExecutor(processors, processors, 5, TimeUnit.SECONDS, queue, threadFactory,\n ThreadPoolExecutor executor = new ThreadPoolExecutor(processors, processors, 2, TimeUnit.SECONDS, queue, threadFactory,\n ThreadPoolExecutor executor = new ThreadPoolExecutor(processors, processors, 5, TimeUnit.SECONDS, queue, threadFactory,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/brettwooldridge/HikariCP/commit/fd156489794dbc4c2ec803db39336265348b9c4f", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " for (String propertyName : PropertyBeanSetter.getPropertyNames(HikariConfig.class)) {\n RefAddr ra = ref.get(propertyName);\n if (ra != null) {\n String propertyValue = ra.getContent().toString();\n properties.setProperty(propertyName, propertyValue);\n Enumeration enumeration = ref.getAll();\n while (enumeration.hasMoreElements()) {\n RefAddr element = enumeration.nextElement();\n String type = element.getType();\n if (type.startsWith(\"dataSource.\") || hikariPropSet.contains(type)) {\n properties.setProperty(type, element.getContent().toString());\n for (String propertyName : PropertyBeanSetter.getPropertyNames(HikariConfig.class)) {\n RefAddr ra = ref.get(propertyName);\n if (ra != null) {\n String propertyValue = ra.getContent().toString();\n properties.setProperty(propertyName, propertyValue);\n Enumeration enumeration = ref.getAll();\n while (enumeration.hasMoreElements()) {\n RefAddr element = enumeration.nextElement();\n String type = element.getType();\n if (type.startsWith(\"dataSource.\") || hikariPropSet.contains(type)) {\n properties.setProperty(type, element.getContent().toString());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/brettwooldridge/HikariCP/commit/2f712702354cc0d57eb1628190847b0aea32bb15", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " boolean containsSchemaName = false;\n boolean containsDatabaseName = false;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/e207fd0d942a8b8e0737bf3ebe7e590874596eea", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " } finally {\n ConnectionSavepointManager.getInstance().transactionFinished(each);\n } finally {\n ConnectionSavepointManager.getInstance().transactionFinished(each);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/2d5553e396a6761a00f7f272d5c5c6582b0165ef", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "import org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSet;\nimport org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSet;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/apache/shardingsphere/commit/aafd90c836ced91cd004b8a55f825da02303c056", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " result.add(new LocalDataQueryResultRow(Arrays.asList(key, dataSourceConfig.getName(), dataSourceConfig.getProductionDataSourceName(), dataSourceConfig.getShadowDataSourceName(),\n algorithmConfig.getType(), PropertiesConverter.convert(algorithmConfig.getProps()))));\n result.add(new LocalDataQueryResultRow(key, dataSourceConfig.getName(), dataSourceConfig.getProductionDataSourceName(), dataSourceConfig.getShadowDataSourceName(),\n algorithmConfig.getType(), PropertiesConverter.convert(algorithmConfig.getProps())));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/apache/shardingsphere/commit/9e22577e51f56f183f2b4c6b65869749448e73d5", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " List row = Collections.singletonList(\"value\");\n LocalDataMergedResult actual = new LocalDataMergedResult(Collections.singletonList(new LocalDataQueryResultRow(row)));\n LocalDataMergedResult actual = new LocalDataMergedResult(Collections.singletonList(new LocalDataQueryResultRow(\"value\")));\n List row = Collections.singletonList(\"value\");\n LocalDataMergedResult actual = new LocalDataMergedResult(Collections.singletonList(new LocalDataQueryResultRow(row)));\n LocalDataMergedResult actual = new LocalDataMergedResult(Collections.singletonList(new LocalDataQueryResultRow(\"value\")));\n List row = Collections.singletonList(\"value\");\n LocalDataMergedResult actual = new LocalDataMergedResult(Collections.singletonList(new LocalDataQueryResultRow(row)));\n LocalDataMergedResult actual = new LocalDataMergedResult(Collections.singletonList(new LocalDataQueryResultRow(\"value\")));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/9e22577e51f56f183f2b4c6b65869749448e73d5", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " private Map initShadowDataSources(final Collection dataSourceConfigurations) {\n private Map initShadowDataSources(final Collection dataSourceConfigs) {\n for (ShadowDataSourceConfiguration each : dataSourceConfigurations) {\n for (ShadowDataSourceConfiguration each : dataSourceConfigs) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/0082ae14f485b73a1e041b28f01173dc34d070c1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " Collection tableMeta = shardingRule.getTableRules().values().stream().filter(each -> !dropTables.contains(each.getLogicTable()))\n .flatMap(each -> each.getActualDataNodes().stream().map(DataNode::getTableName)).collect(Collectors.toSet());\n // TODO check actual tables not be used in multi rules, and remove this check logic\n Collection otherRuleActualTables = shardingRule.getTableRules().values().stream().filter(each -> !dropTables.contains(each.getLogicTable()))\n .flatMap(each -> each.getActualDataNodes().stream().map(DataNode::getTableName)).collect(Collectors.toCollection(CaseInsensitiveSet::new));\n if (otherRuleActualTables.isEmpty()) {\n return;\n }\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/92dc6d92d2d0aaf349b3c8a64c63eaa3b630ec38", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "import org.apache.shardingsphere.infra.yaml.config.pojo.rule.YamlRuleConfiguration;\nimport org.apache.shardingsphere.infra.yaml.config.pojo.rule.YamlRuleConfiguration;\n", "class": "clone", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/apache/shardingsphere/commit/c71caac6840fc6a7c6883a12b376b649d932227f", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " GenericSchemaBuilderMaterial material = new GenericSchemaBuilderMaterial(mock(DatabaseType.class), Collections.emptyMap(), mockDataSourceMap(),\n GenericSchemaBuilderMaterial material = new GenericSchemaBuilderMaterial(mock(DatabaseType.class), mockStorageTypes(), mockDataSourceMap(),\n GenericSchemaBuilderMaterial material = new GenericSchemaBuilderMaterial(mock(DatabaseType.class), Collections.emptyMap(), mockDataSourceMap(),\n GenericSchemaBuilderMaterial material = new GenericSchemaBuilderMaterial(mock(DatabaseType.class), mockStorageTypes(), mockDataSourceMap(),\n GenericSchemaBuilderMaterial material = new GenericSchemaBuilderMaterial(mock(DatabaseType.class), Collections.emptyMap(), mockDataSourceMap(),\n GenericSchemaBuilderMaterial material = new GenericSchemaBuilderMaterial(mock(DatabaseType.class), mockStorageTypes(), mockDataSourceMap(),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/shardingsphere/commit/10473fb909335110d7c37d032d8ee3cfa6652550", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 12 ] }, { "input": "import org.apache.shardingsphere.infra.util.exception.external.server.ShardingSphereServerException;\nimport org.apache.shardingsphere.infra.util.exception.external.ShardingSphereExternalException;\nimport org.apache.shardingsphere.infra.util.exception.external.server.ShardingSphereServerException;\nimport org.apache.shardingsphere.infra.util.exception.external.ShardingSphereExternalException;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/apache/shardingsphere/commit/15afb61ea4ede2acc832920e715bfdcd597c929e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " private static final String PG_CATALOG = \"pg_catalog\";\n private static final Collection SYSTEM_SCHEMAS = new HashSet<>(Arrays.asList(\"information_schema\", \"performance_schema\", \"mysql\", \"sys\", \"shardingsphere\", \"pg_catalog\"));\n private static final String PG_CATALOG = \"pg_catalog\";\n private static final Collection SYSTEM_SCHEMAS = new HashSet<>(Arrays.asList(\"information_schema\", \"performance_schema\", \"mysql\", \"sys\", \"shardingsphere\", \"pg_catalog\"));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/6d4b2a7f1f22fa61be58dac39e9836545f84ae33", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " if (PG_CATALOG.equalsIgnoreCase(each)) {\n if (SYSTEM_SCHEMAS.contains(each.toLowerCase())) {\n if (PG_CATALOG.equalsIgnoreCase(each)) {\n if (SYSTEM_SCHEMAS.contains(each.toLowerCase())) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/6d4b2a7f1f22fa61be58dac39e9836545f84ae33", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " + \" ALL_CONS_COLUMNS B ON A.CONSTRAINT_NAME = B.CONSTRAINT_NAME WHERE CONSTRAINT_TYPE = 'P' AND A.OWNER = ?\";\n + \" ALL_CONS_COLUMNS B ON A.CONSTRAINT_NAME = B.CONSTRAINT_NAME WHERE CONSTRAINT_TYPE = 'P' AND A.OWNER = '%s'\";\n + \" INNER JOIN ALL_CONS_COLUMNS B ON A.CONSTRAINT_NAME = B.CONSTRAINT_NAME WHERE CONSTRAINT_TYPE = 'P' AND A.OWNER = ?\";\n + \" INNER JOIN ALL_CONS_COLUMNS B ON A.CONSTRAINT_NAME = B.CONSTRAINT_NAME WHERE CONSTRAINT_TYPE = 'P' AND A.OWNER = 'TEST'\";\n + \" INNER JOIN ALL_CONS_COLUMNS B ON A.CONSTRAINT_NAME = B.CONSTRAINT_NAME WHERE CONSTRAINT_TYPE = 'P' AND A.OWNER = ? AND A.TABLE_NAME IN ('tbl')\";\n + \" INNER JOIN ALL_CONS_COLUMNS B ON A.CONSTRAINT_NAME = B.CONSTRAINT_NAME WHERE CONSTRAINT_TYPE = 'P' AND A.OWNER = 'TEST' AND A.TABLE_NAME IN ('tbl')\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/shardingsphere/commit/8547e2fb496c0c0c3d7ed89dc802f4300f815777", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " return (!dataNodeContainedRule.isPresent() || !dataNodeContainedRule.get().getAllTables().contains(each)) && !containsInColumnContainedRule(each, columnContainedRules);\n if ((!dataNodeContainedRule.isPresent() || !dataNodeContainedRule.get().getAllTables().contains(each)) && !containsInColumnContainedRule(each, columnContainedRules)) {\n continue;\n }\n return false;\n return (!dataNodeContainedRule.isPresent() || !dataNodeContainedRule.get().getAllTables().contains(each)) && !containsInColumnContainedRule(each, columnContainedRules);\n if ((!dataNodeContainedRule.isPresent() || !dataNodeContainedRule.get().getAllTables().contains(each)) && !containsInColumnContainedRule(each, columnContainedRules)) {\n continue;\n }\n return false;\n return (!dataNodeContainedRule.isPresent() || !dataNodeContainedRule.get().getAllTables().contains(each)) && !containsInColumnContainedRule(each, columnContainedRules);\n if ((!dataNodeContainedRule.isPresent() || !dataNodeContainedRule.get().getAllTables().contains(each)) && !containsInColumnContainedRule(each, columnContainedRules)) {\n continue;\n }\n return false;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/shardingsphere/commit/ad1721cf94b509d926615257671a67d70656d0bf", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " return each.getTables().contains(tableName);\n if (each.getTables().contains(tableName)) {\n return true;\n }\n return each.getTables().contains(tableName);\n if (each.getTables().contains(tableName)) {\n return true;\n }\n return each.getTables().contains(tableName);\n if (each.getTables().contains(tableName)) {\n return true;\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/shardingsphere/commit/ad1721cf94b509d926615257671a67d70656d0bf", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " assertReferenceModelSelectStatements(assertContext, actual.getReferenceModelSelects(), expected.getReferenceModelSelect());\n assertSubquerySegments(assertContext, actual.getReferenceModelSelects(), expected.getReferenceModelSelect());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/3ad52f68c8bf5592c449f8dee26c1080fd4624b2", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " try {\n return operation.executeInHBase(table);\n } catch (final IOException ex) {\n throw new HBaseOperationException(ex.getMessage());\n }\n return executeQuery(table, operation);\n } catch (final IOException ex) {\n throw new HBaseOperationException(ex.getMessage());\n }\n }\n \n private static T executeQuery(final Table table, final HBaseQueryCallback operation) {\n try {\n return operation.executeInHBase(table);\n try {\n return operation.executeInHBase(admin);\n } catch (final IOException ex) {\n throw new HBaseOperationException(ex.getMessage());\n }\n return executeAdmin(admin, operation);\n } catch (final IOException ex) {\n throw new HBaseOperationException(ex.getMessage());\n }\n }\n \n private static T executeAdmin(final Admin admin, final HBaseAdminCallback operation) {\n try {\n return operation.executeInHBase(admin);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/shardingsphere/commit/3edf8e47e4ec8907c885fa4c4b2c0d04f66e43ed", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " private static final String SALT = \"salt\";\n private static final String SALT_KEY = \"salt\";\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/7b66b6e77e0b6a5afb6476b5209fd3a7b73f0f65", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 10, 11 ] }, { "input": " private static final String START = \"start\";\n private static final String START_KEY = \"start\";\n if (props.containsKey(START)) {\n String start = props.getProperty(START);\n if (props.containsKey(START_KEY)) {\n String start = props.getProperty(START_KEY);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/7b66b6e77e0b6a5afb6476b5209fd3a7b73f0f65", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " new ShardingInsertStatementValidator(shardingConditions).postValidate(shardingRule, sqlStatementContext, new HintValueContext(),\n Collections.emptyList(), mock(ShardingSphereDatabase.class, RETURNS_DEEP_STUBS), mock(ConfigurationProperties.class), routeContext);\n assertDoesNotThrow(() -> new ShardingInsertStatementValidator(shardingConditions).postValidate(shardingRule, sqlStatementContext, new HintValueContext(),\n Collections.emptyList(), mock(ShardingSphereDatabase.class, RETURNS_DEEP_STUBS), mock(ConfigurationProperties.class), routeContext));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/7b66b6e77e0b6a5afb6476b5209fd3a7b73f0f65", "target_edit_idx": 12, "propagatable_edit_idx": [ 13, 14 ] }, { "input": " return Optional.of(new ShardingSchemaTableAggregationReviser(props.getValue(ConfigurationPropertyKey.CHECK_TABLE_META_DATA_ENABLED)));\n return Optional.of(new ShardingSchemaTableAggregationReviser(props.getValue(ConfigurationPropertyKey.CHECK_TABLE_METADATA_ENABLED)));\n CHECK_TABLE_META_DATA_ENABLED(\"check-table-metadata-enabled\", String.valueOf(Boolean.FALSE), boolean.class, false),\n CHECK_TABLE_METADATA_ENABLED(\"check-table-metadata-enabled\", String.valueOf(Boolean.FALSE), boolean.class, false),\n boolean checkMetaDataEnable = material.getProps().getValue(ConfigurationPropertyKey.CHECK_TABLE_META_DATA_ENABLED);\n boolean checkMetaDataEnable = material.getProps().getValue(ConfigurationPropertyKey.CHECK_TABLE_METADATA_ENABLED);\n assertTrue((Boolean) actual.getValue(ConfigurationPropertyKey.CHECK_TABLE_META_DATA_ENABLED));\n assertTrue((Boolean) actual.getValue(ConfigurationPropertyKey.CHECK_TABLE_METADATA_ENABLED));\n new Property(ConfigurationPropertyKey.CHECK_TABLE_META_DATA_ENABLED.getKey(), Boolean.TRUE.toString()),\n new Property(ConfigurationPropertyKey.CHECK_TABLE_METADATA_ENABLED.getKey(), Boolean.TRUE.toString()),\n assertFalse((Boolean) actual.getValue(ConfigurationPropertyKey.CHECK_TABLE_META_DATA_ENABLED));\n assertFalse((Boolean) actual.getValue(ConfigurationPropertyKey.CHECK_TABLE_METADATA_ENABLED));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/7508cfdffa16e02de9492305659ef5b26f87e0c9", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5, 6 ] }, { "input": " for (Entry entry : table.getConstrains().entrySet()) {\n for (Entry entry : table.getConstraints().entrySet()) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/94e88e5f283083f3e1114456938ee8c8e5e7cc7b", "target_edit_idx": 0, "propagatable_edit_idx": [ 6, 8, 9, 10, 11 ] }, { "input": " private Map getConstrains(final Collection constraintList) {\n Map result = new LinkedHashMap<>(constraintList.size(), 1);\n for (ShardingSphereConstraint each : constraintList) {\n private Map getConstraints(final Collection constraints) {\n Map result = new LinkedHashMap<>(constraints.size(), 1);\n for (ShardingSphereConstraint each : constraints) {\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/94e88e5f283083f3e1114456938ee8c8e5e7cc7b", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 8, 9, 10, 11 ] }, { "input": " new LinkedHashMap<>(table.getIndexes()), new LinkedHashMap<>(table.getConstrains()));\n new LinkedHashMap<>(table.getIndexes()), new LinkedHashMap<>(table.getConstraints()));\n for (Entry entry : table.getConstrains().entrySet()) {\n for (Entry entry : table.getConstraints().entrySet()) {\n private Map getConstrains(final Collection constraintList) {\n Map result = new LinkedHashMap<>(constraintList.size(), 1);\n for (ShardingSphereConstraint each : constraintList) {\n private Map getConstraints(final Collection constraints) {\n Map result = new LinkedHashMap<>(constraints.size(), 1);\n for (ShardingSphereConstraint each : constraints) {\n result.setConstraints(swapYamlConstraints(table.getConstrains()));\n result.setConstraints(swapYamlConstraints(table.getConstraints()));\n new LinkedHashMap<>(table.getIndexes()), new LinkedHashMap<>(table.getConstrains()));\n new LinkedHashMap<>(table.getIndexes()), new LinkedHashMap<>(table.getConstraints()));\n new LinkedHashMap<>(table.getIndexes()), new LinkedHashMap<>(table.getConstrains()));\n new LinkedHashMap<>(table.getIndexes()), new LinkedHashMap<>(table.getConstraints()));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/94e88e5f283083f3e1114456938ee8c8e5e7cc7b", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 6, 8, 9, 10 ] }, { "input": " private SQLStatement parseSQLStatement(final String databaseType, final String sql) {\n private Object parseSQLStatement(final String databaseType, final String visitorType, final String sql) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/47e154b0243a61a2cbe2d5e76b011d36d75c40ef", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " if (!user.isPresent() || !getAuthenticator(username, hostname).authenticate(user.get(), authenticationResponse)) {\n if (!user.isPresent() || !getAuthenticator(grantee).authenticate(user.get(), authenticationResponse)) {\n MySQLAuthenticator authenticator = authenticationHandler.getAuthenticator(packet.getUsername(), getHostAddress(context));\n MySQLAuthenticator authenticator = authenticationHandler.getAuthenticator(new Grantee(packet.getUsername(), getHostAddress(context)));\n public MySQLAuthenticator getAuthenticator(final String username, final String hostname) {\n // TODO get authenticator by username and hostname\n public MySQLAuthenticator getAuthenticator(final Grantee grantee) {\n // TODO get authenticator by grantee\n when(authenticationHandler.getAuthenticator(any(), any())).thenReturn(new MySQLNativePasswordAuthenticator(mock(MySQLAuthPluginData.class)));\n when(payload.readStringNul()).thenReturn(\"root\");\n when(authenticationHandler.getAuthenticator(any())).thenReturn(new MySQLNativePasswordAuthenticator(mock(MySQLAuthPluginData.class)));\n MySQLAuthenticator authenticator = authenticationHandler.getAuthenticator(\"root\", \"\");\n MySQLAuthenticator authenticator = authenticationHandler.getAuthenticator(new Grantee(\"root\", \"\"));\n PostgreSQLAuthenticator authenticator = authenticationHandler.getAuthenticator(username, \"\");\n PostgreSQLAuthenticator authenticator = authenticationHandler.getAuthenticator(new Grantee(username, \"\"));\n ShardingSpherePreconditions.checkState(getAuthenticator(username, grantee.getHostname()).authenticate(user.get(), new Object[]{passwordMessagePacket.getDigest(), md5Salt}),\n ShardingSpherePreconditions.checkState(getAuthenticator(grantee).authenticate(user.get(), new Object[]{passwordMessagePacket.getDigest(), md5Salt}),\n public PostgreSQLAuthenticator getAuthenticator(final String username, final String hostname) {\n // TODO get authenticator by username and hostname\n public PostgreSQLAuthenticator getAuthenticator(final Grantee grantee) {\n // TODO get authenticator by grantee\n PostgreSQLAuthenticator authenticator = new PostgreSQLAuthenticationHandler().getAuthenticator(username, \"\");\n PostgreSQLAuthenticator authenticator = new PostgreSQLAuthenticationHandler().getAuthenticator(new Grantee(username, \"\"));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/dbb8348a1113ca697534abfa290e43bd15fc4a9a", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4, 5, 7, 9, 10, 12, 14 ] }, { "input": " public MySQLAuthenticator getAuthenticator(final String username, final String hostname) {\n // TODO get authenticator by username and hostname\n public MySQLAuthenticator getAuthenticator(final Grantee grantee) {\n // TODO get authenticator by grantee\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/dbb8348a1113ca697534abfa290e43bd15fc4a9a", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 5, 7, 9, 10, 12, 14 ] }, { "input": " PostgreSQLAuthenticator authenticator = authenticationHandler.getAuthenticator(username, \"\");\n PostgreSQLAuthenticator authenticator = authenticationHandler.getAuthenticator(new Grantee(username, \"\"));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/dbb8348a1113ca697534abfa290e43bd15fc4a9a", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 2, 4, 5, 7, 10, 12, 14 ] }, { "input": "import org.apache.shardingsphere.distsql.handler.exception.algorithm.MissingRequiredAlgorithmException;\nimport org.apache.shardingsphere.distsql.handler.exception.algorithm.MissingRequiredAlgorithmException;\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/apache/shardingsphere/commit/753c55bbea1de03518c5c71184e552044a9ad04d", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " ShardingSpherePreconditions.checkState(invalidInput.isEmpty(), () -> new MissingRequiredAlgorithmException(\"database discovery\", invalidInput));\n ShardingSpherePreconditions.checkState(invalidInput.isEmpty(), () -> new MissingRequiredAlgorithmException(RULE_TYPE, databaseName, invalidInput));\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/shardingsphere/commit/753c55bbea1de03518c5c71184e552044a9ad04d", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " private void checkDiscoverTypeAndHeartbeat(final String databaseName, final CreateDatabaseDiscoveryRuleStatement sqlStatement, final DatabaseDiscoveryRuleConfiguration currentRuleConfig) {\n private void checkDiscoverTypeAndHeartbeat(final CreateDatabaseDiscoveryRuleStatement sqlStatement) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/753c55bbea1de03518c5c71184e552044a9ad04d", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 5 ] }, { "input": " Class logicLogger = LoggerFactory.getClassLoader().loadClass(\"org.slf4j.Logger\");\n Method method = logicLogger.getMethod(methodName, String.class);\n Class actualLogger = LoggerFactory.getClassLoader().loadClass(\"org.slf4j.Logger\");\n Method method = actualLogger.getMethod(methodName, String.class);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/2f726fabf9da0ce56e209b68c8c06b999991c0c6", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " InputStream advisorsResourceStream = getAdvisorsResourceStream(each, isEnhancedForProxy);\n InputStream advisorsResourceStream = getAdvisorsResourceStream(classLoader, each, isEnhancedForProxy);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/2f726fabf9da0ce56e209b68c8c06b999991c0c6", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " private static InputStream getAdvisorsResourceStream(final String type, final boolean isEnhancedForProxy) {\n InputStream result = AgentClassLoader.getClassLoader().getResourceAsStream(getAdvisorsResourceFile(type, (isEnhancedForProxy ? \"proxy\" : \"jdbc\") + \"-advisors.yaml\"));\n return null == result ? AgentClassLoader.getClassLoader().getResourceAsStream(getAdvisorsResourceFile(type, \"advisors.yaml\")) : result;\n private static InputStream getAdvisorsResourceStream(final ClassLoader classLoader, final String type, final boolean isEnhancedForProxy) {\n InputStream result = classLoader.getResourceAsStream(getAdvisorsResourceFile(type, (isEnhancedForProxy ? \"proxy\" : \"jdbc\") + \"-advisors.yaml\"));\n return null == result ? classLoader.getResourceAsStream(getAdvisorsResourceFile(type, \"advisors.yaml\")) : result;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/2f726fabf9da0ce56e209b68c8c06b999991c0c6", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": " ShardingConditions shardingConditions = createShardingConditions(queryContext, database, rule);\n ShardingConditions shardingConditions = getMergedShardingConditions(queryContext, database, rule);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/631fdf40f87223e176abe5c851a51b3287b4d6de", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " removeUnusedAlgorithm(currentRuleConfig);\n dropUnusedAlgorithm(currentRuleConfig);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/45715422fae25d7409ed88fd54089de858c71ae5", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", \"user_id_assisted\", null, null, false))));\n mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", \"user_id_assisted\", \"\", null, null, false))));\n mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", null, \"user_id\", null, false))));\n mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", null, \"\", \"user_id\", null, false))));\n mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", null, \"user_id\", null, false))));\n mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", null, \"\", \"user_id\", null, false))));\n mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", \"user_id_assisted\", \"\", null, false))));\n mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", \"user_id_assisted\", \"\", \"\", null, false))));\n mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", \"user_id_assisted\", \"user_id\", null, false))));\n mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", \"user_id_assisted\", \"\", \"user_id\", null, false))));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/5a55480f02af530df6560a040d53d76b10cb3e61", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": " mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", null, \"user_id\", null, false))));\n mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", null, \"\", \"user_id\", null, false))));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/5a55480f02af530df6560a040d53d76b10cb3e61", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": " mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", \"user_id_assisted\", \"user_id\", null, false))));\n mockEncryptRule(Collections.singletonList(new EncryptColumnRuleConfiguration(\"user_id\", \"user_id_cipher\", \"user_id_assisted\", \"\", \"user_id\", null, false))));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/5a55480f02af530df6560a040d53d76b10cb3e61", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " contextManager.addDatabase(\"foo_db\");\n contextManager.addDatabaseAndPersist(\"foo_db\");\n verify(metaDataContexts.getMetaData(), times(0)).addDatabase(eq(\"foo_db\"), any(DatabaseType.class));\n }\n \n @Test\n public void assertAddExistedDatabaseAndPersist() throws SQLException {\n when(metaDataContexts.getMetaData().containsDatabase(\"foo_db\")).thenReturn(true);\n contextManager.addDatabaseAndPersist(\"foo_db\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/9b4efe9304a7510b1e172398040908470584ccd2", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " result.put(String.format(\"/env/%s/server-%s.yaml\", databaseType.getType().toLowerCase(), majorVersion), \"/opt/shardingsphere-proxy/conf/server.yaml\");\n result.put(String.format(\"/env/%s/server-%s.yaml\", databaseType.getType().toLowerCase(), majorVersion), ProxyContainerConstants.CONFIG_PATH_IN_CONTAINER + \"server.yaml\");\n result.put(String.format(\"/env/%s/server.yaml\", databaseType.getType().toLowerCase()), \"/opt/shardingsphere-proxy/conf/server.yaml\");\n result.put(String.format(\"/env/%s/server.yaml\", databaseType.getType().toLowerCase()), ProxyContainerConstants.CONFIG_PATH_IN_CONTAINER + \"server.yaml\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/30994a877f539f547e502692b9af97a9390cf56b", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " public void assertGetBooleanValue() throws TypedPropertyValueException {\n public void assertGetBooleanValue() {\n public void assertGetInvalidBooleanValue() throws TypedPropertyValueException {\n public void assertGetInvalidBooleanValue() {\n public void assertGetIntValue() throws TypedPropertyValueException {\n public void assertGetIntValue() {\n public void assertGetInvalidIntValue() throws TypedPropertyValueException {\n public void assertGetInvalidIntValue() {\n public void assertGetLongValue() throws TypedPropertyValueException {\n public void assertGetLongValue() {\n public void assertGetInvalidLongValue() throws TypedPropertyValueException {\n public void assertGetInvalidLongValue() {\n public void assertGetStringValue() throws TypedPropertyValueException {\n public void assertGetStringValue() {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/0a5c8f0dd55b43718e675e4fe3ce3dc4b24a0f20", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7, 8, 9, 10 ] }, { "input": " Optional logicColumn = encryptTable.get().isCipherColumn(columnName) ? Optional.of(encryptTable.get().getLogicColumn(columnName)) : Optional.empty();\n Optional logicColumn = encryptTable.get().isCipherColumn(columnName) ? Optional.of(encryptTable.get().getLogicColumnByCipherColumn(columnName)) : Optional.empty();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/c241d50d1198149f1db32ac34a5a88247322578f", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 4, 13, 7 ] }, { "input": " when(encryptTable.getLogicColumn(\"cipher\")).thenReturn(\"id\");\n when(encryptTable.getLogicColumnByCipherColumn(\"cipher\")).thenReturn(\"id\");\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/apache/shardingsphere/commit/c241d50d1198149f1db32ac34a5a88247322578f", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 4, 13, 7 ] }, { "input": " \n private void postReplicaDataSourceDisabledEvent(final String databaseName, final String groupName, final String primaryDataSourceName, final Map dataSourceMap) {\n\n private void postReplicaDataSourceDisabledEvent(final String databaseName, final String groupName, final String primaryDataSourceName,\n final Map dataSourceMap, final Collection disabledDataSourceNames) {\n int enabledReplicasCount = dataSourceMap.size() - disabledDataSourceNames.size() - 1;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/6da3318d8e451ad5a3c0820ad895c8c71952d38c", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "import java.util.ArrayList;\nimport java.util.List;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/shardingsphere/commit/eeb42f74fde47b7e0bc38f11b9f6326e7ca2ae6d", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " \"EnumerableCalc(expr#0..6=[{inputs}],order_id=[$t3],user_id=[$t4],user_id0=[$t0])\"\n + \" EnumerableMergeJoin(condition=[=($2,$6)],joinType=[inner])\"\n + \" EnumerableSort(sort0=[$2],dir0=[ASC])\"\n + \" EnumerableCalc(expr#0..1=[{inputs}],expr#2=[CAST($t0):VARCHAR],proj#0..2=[{exprs}])\"\n + \" EnumerableTableScan(table=[[federate_jdbc,t_user_info]])\"\n + \" EnumerableSort(sort0=[$3],dir0=[ASC])\"\n + \" EnumerableCalc(expr#0..2=[{inputs}],expr#3=[CAST($t1):VARCHAR],proj#0..3=[{exprs}])\"\n + \" EnumerableTableScan(table=[[federate_jdbc,t_order_federate]])\";\n \"EnumerableInterpreter\"\n + \"BindableJoin(condition=[=(CAST($1):VARCHAR,CAST($2):VARCHAR)],joinType=[inner])\"\n + \" BindableTableScan(table=[[federate_jdbc,t_order_federate]],projects=[[0,1]])\"\n + \" BindableTableScan(table=[[federate_jdbc,t_user_info]],projects=[[0]])\";\n \"EnumerableCalc(expr#0..6=[{inputs}],proj#0..1=[{exprs}],user_id0=[$t4])\"\n + \" EnumerableMergeJoin(condition=[=($3,$6)],joinType=[inner])\"\n + \" EnumerableSort(sort0=[$3],dir0=[ASC])\"\n + \" EnumerableCalc(expr#0..2=[{inputs}],expr#3=[CAST($t1):VARCHAR],proj#0..3=[{exprs}])\"\n + \" EnumerableTableScan(table=[[federate_jdbc,t_order_federate]])\"\n + \" EnumerableSort(sort0=[$2],dir0=[ASC])\"\n + \" EnumerableCalc(expr#0..1=[{inputs}],expr#2=[CAST($t0):VARCHAR],proj#0..2=[{exprs}])\"\n + \" EnumerableTableScan(table=[[federate_jdbc,t_user_info]])\";\n \"EnumerableCalc(expr#0..4=[{inputs}],proj#0..1=[{exprs}],user_id0=[$t3])\"\n + \"EnumerableMergeJoin(condition=[=($2,$4)],joinType=[inner])\"\n + \" EnumerableSort(sort0=[$2],dir0=[ASC])\"\n + \" EnumerableInterpreter\"\n + \" BindableProject(order_id=[$0],user_id=[$1],user_id0=[CAST($1):VARCHAR])\"\n + \" BindableTableScan(table=[[federate_jdbc,t_order_federate]],projects=[[0,1]])\"\n + \" EnumerableSort(sort0=[$1],dir0=[ASC])\"\n + \" EnumerableInterpreter\"\n + \" BindableProject(user_id=[$0],user_id0=[CAST($0):VARCHAR])\"\n + \" BindableTableScan(table=[[federate_jdbc,t_user_info]],projects=[[0]])\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/shardingsphere/commit/eeb42f74fde47b7e0bc38f11b9f6326e7ca2ae6d", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " ShardingSphereColumn columnMetaData = new ShardingSphereColumn(\"order_id\", Types.INTEGER, true, false, false);\n ShardingSphereColumn column = new ShardingSphereColumn(\"order_id\", Types.INTEGER, true, false, false);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/3e5a3faa78f0f470ba1581c55265f8646fe7480e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " when(accountBakTableMetaData.getColumns()).thenReturn(createColumnMetaDataMap());\n when(accountBakTableMetaData.getColumns()).thenReturn(createColumns());\n when(accountTableMetaData.getColumns()).thenReturn(createColumnMetaDataMap());\n when(accountTableMetaData.getColumns()).thenReturn(createColumns());\n private Map createColumnMetaDataMap() {\n private Map createColumns() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/3e5a3faa78f0f470ba1581c55265f8646fe7480e", "target_edit_idx": 12, "propagatable_edit_idx": [ 11, 13 ] }, { "input": " assertThat(ComputeNode.getInstanceXaRecoveryIdNodePath(\"127.0.0.1@3307\"), is(\"/nodes/compute_nodes/xa_recovery_id/127.0.0.1@3307\"));\n assertThat(ComputeNode.getInstanceXaRecoveryIdNodePath(\"127.0.0.1@3307\", \"127.0.0.1@3307\"), is(\"/nodes/compute_nodes/xa_recovery_id/127.0.0.1@3307/127.0.0.1@3307\"));\n }\n \n @Test\n public void assertGetXaRecoveryIdNodePath() {\n assertThat(ComputeNode.getXaRecoveryIdNodePath(), is(\"/nodes/compute_nodes/xa_recovery_id\"));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/2b8cc78b251790a3289bfc8201e7ae2ecaf87700", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 2, 5 ] }, { "input": " verify(repository).persist(ComputeNode.getInstanceXaRecoveryIdNodePath(instanceId), instanceId);\n verify(repository).persist(ComputeNode.getInstanceXaRecoveryIdNodePath(instanceId, instanceId), \"\");\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/shardingsphere/commit/2b8cc78b251790a3289bfc8201e7ae2ecaf87700", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 5, 7 ] }, { "input": " result.setShardingAlgorithms(currentRuleConfig.getShardingAlgorithms());\n result.setAutoTables(currentRuleConfig.getAutoTables());\n result.setShardingAlgorithms(toBeAlteredRuleConfig.getShardingAlgorithms());\n result.setAutoTables(toBeAlteredRuleConfig.getAutoTables());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/apache/shardingsphere/commit/c2ae7f784904c2a5b90807321971bf18477c5284", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " private boolean isSameInstanceId(final String instanceId) {\n return getCurrentInstanceId().equals(instanceId);\n private boolean isOwnerInstance(final String ownerInstanceId) {\n return getCurrentInstanceId().equals(ownerInstanceId);\n if (isSameInstanceId(ownerInstanceId)) {\n if (isOwnerInstance(ownerInstanceId)) {\n if (isSameInstanceId(ownerInstanceId)) {\n ShardingSphereGlobalLock shardingSphereGlobalLock = globalLocks.get(schema);\n if (null == shardingSphereGlobalLock) {\n return;\n }\n shardingSphereGlobalLock.releaseLockedState(schema);\n if (isOwnerInstance(ownerInstanceId)) {\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/3e1dd2f9efca57a5110301e777d6982a2b4b9565", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " public static Optional getSchemaNameBySchemaPath(final String schemaPath) {\n Pattern pattern = Pattern.compile(getMetaDataNodePath() + \"/([\\\\w\\\\-]+)/([\\\\w\\\\-]+)$\", Pattern.CASE_INSENSITIVE);\n public static Optional getDatabaseNameBySchemaPath(final String schemaPath) {\n Pattern pattern = Pattern.compile(getMetaDataNodePath() + \"/([\\\\w\\\\-]+)$\", Pattern.CASE_INSENSITIVE);\n return SchemaMetaDataNode.getSchemaNameBySchemaPath(event.getKey()).isPresent();\n return SchemaMetaDataNode.getDatabaseNameBySchemaPath(event.getKey()).isPresent();\n String schemaName = SchemaMetaDataNode.getSchemaNameBySchemaPath(event.getKey()).get();\n String databaseName = SchemaMetaDataNode.getDatabaseNameBySchemaPath(event.getKey()).get();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/a3babb372c0e65ad2f9e44234db556e762a52bcb", "target_edit_idx": 2, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " String key = \"/metadata/sharding_db/sharding_schema\";\n String key = \"/metadata/sharding_db\";\n String key = \"/metadata/sharding_db/sharding_schema\";\n String key = \"/metadata/sharding_db\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/apache/shardingsphere/commit/a3babb372c0e65ad2f9e44234db556e762a52bcb", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " List actual = inventoryTaskSplitter.splitInventoryData(jobContext);\n assertNotNull(actual);\n assertThat(actual.size(), is(1));\n inventoryTaskSplitter.splitInventoryData(jobContext);\n List actual = inventoryTaskSplitter.splitInventoryData(jobContext);\n assertNotNull(actual);\n assertThat(actual.size(), is(1));\n inventoryTaskSplitter.splitInventoryData(jobContext);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/shardingsphere/commit/f9de6fb2078858aa849e9b38e76e68145cfedabf", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": " new ShardingSphereResource(mockDatasourceMap(), mockDataSourcesMetaData(), mock(CachedDatabaseMetaData.class), mock(MySQLDatabaseType.class)),\n new ShardingSphereResource(mockDatasourceMap(), mockDataSourcesMetaData(), mock(CachedDatabaseMetaData.class), new PostgreSQLDatabaseType()),\n new ShardingSphereResource(mockDatasourceMap(), mockDataSourcesMetaData(), mock(CachedDatabaseMetaData.class), mock(MySQLDatabaseType.class)),\n new ShardingSphereResource(mockDatasourceMap(), mockDataSourcesMetaData(), mock(CachedDatabaseMetaData.class), new PostgreSQLDatabaseType()),\n new ShardingSphereResource(Collections.emptyMap(), mockDataSourcesMetaData(), mock(CachedDatabaseMetaData.class), mock(MySQLDatabaseType.class)),\n new ShardingSphereResource(Collections.emptyMap(), mockDataSourcesMetaData(), mock(CachedDatabaseMetaData.class), new PostgreSQLDatabaseType()),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/shardingsphere/commit/e45117c362251f55a5c78e9e832897ad3849c71e", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 3 ] }, { "input": " final SQLStatement sqlStatement = new ShardingSphereSQLParserEngine(\"MySQL\", sqlParserRule).parse(sql, false);\n final SQLStatement sqlStatement = new ShardingSphereSQLParserEngine(\"PostgreSQL\", sqlParserRule).parse(sql, false);\n final SQLStatement sqlStatement = new ShardingSphereSQLParserEngine(\"MySQL\", sqlParserRule).parse(sql, false);\n final SQLStatement sqlStatement = new ShardingSphereSQLParserEngine(\"PostgreSQL\", sqlParserRule).parse(sql, false);\n final SQLStatement sqlStatement = new ShardingSphereSQLParserEngine(\"MySQL\", sqlParserRule).parse(sql, false);\n final SQLStatement sqlStatement = new ShardingSphereSQLParserEngine(\"PostgreSQL\", sqlParserRule).parse(sql, false);\n final SQLStatement sqlStatement = new ShardingSphereSQLParserEngine(\"MySQL\", sqlParserRule).parse(sql, false);\n final SQLStatement sqlStatement = new ShardingSphereSQLParserEngine(\"PostgreSQL\", sqlParserRule).parse(sql, false);\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/apache/shardingsphere/commit/e45117c362251f55a5c78e9e832897ad3849c71e", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": " ONLINE, CIRCUIT_BREAKER\n ONLINE, CIRCUIT_BREAK\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/7f52173629a7b634d627dbc15f0c2b5db2261138", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": " YamlEngine.marshal(Arrays.asList(ComputeNodeStatus.CIRCUIT_BREAKER.name())), Type.ADDED));\n YamlEngine.marshal(Arrays.asList(ComputeNodeStatus.CIRCUIT_BREAK.name())), Type.ADDED));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/apache/shardingsphere/commit/7f52173629a7b634d627dbc15f0c2b5db2261138", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6 ] }, { "input": " when(result.next()).thenReturn(true, true, true, false);\n when(result.next()).thenReturn(true, true, true, true, false);\n when(result.next()).thenReturn(true, true, true, false);\n when(result.getString(\"TYPE_NAME\")).thenReturn(\"int\", \"varchar\", \"json\");\n when(result.getInt(\"DATA_TYPE\")).thenReturn(4, 12, -1);\n when(result.next()).thenReturn(true, true, true, true, false);\n when(result.getString(\"TYPE_NAME\")).thenReturn(\"int\", \"varchar\", \"json\", \"geometry\");\n when(result.getInt(\"DATA_TYPE\")).thenReturn(4, 12, -1, -2);\n when(result.getString(\"COLUMN_NAME\")).thenReturn(\"id\", \"name\", \"doc\");\n when(result.getString(\"DATA_TYPE\")).thenReturn(\"int\", \"varchar\", \"json\");\n when(result.getString(\"COLUMN_KEY\")).thenReturn(\"PRI\", \"\", \"\");\n when(result.getString(\"EXTRA\")).thenReturn(\"auto_increment\", \"\", \"\");\n when(result.getString(\"COLUMN_NAME\")).thenReturn(\"id\", \"name\", \"doc\", \"geo\");\n when(result.getString(\"DATA_TYPE\")).thenReturn(\"int\", \"varchar\", \"json\", \"geometry\");\n when(result.getString(\"COLUMN_KEY\")).thenReturn(\"PRI\", \"\", \"\", \"\");\n when(result.getString(\"EXTRA\")).thenReturn(\"auto_increment\", \"\", \"\", \"\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/78287e285a89dba23c624b40921f6f59ddb5ab7a", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " when(result.getString(\"COLUMN_NAME\")).thenReturn(\"id\", \"name\", \"doc\");\n when(result.getString(\"DATA_TYPE\")).thenReturn(\"int\", \"varchar\", \"json\");\n when(result.getString(\"COLUMN_KEY\")).thenReturn(\"PRI\", \"\", \"\");\n when(result.getString(\"EXTRA\")).thenReturn(\"auto_increment\", \"\", \"\");\n when(result.getString(\"COLUMN_NAME\")).thenReturn(\"id\", \"name\", \"doc\", \"geo\");\n when(result.getString(\"DATA_TYPE\")).thenReturn(\"int\", \"varchar\", \"json\", \"geometry\");\n when(result.getString(\"COLUMN_KEY\")).thenReturn(\"PRI\", \"\", \"\", \"\");\n when(result.getString(\"EXTRA\")).thenReturn(\"auto_increment\", \"\", \"\", \"\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/78287e285a89dba23c624b40921f6f59ddb5ab7a", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " return Joiner.on(\"/\").join(\"\", EXECUTION_NODE_NAME);\n return Joiner.on(\"/\").join(\"\", EXECUTION_NODES);\n return Joiner.on(\"/\").join(\"\", EXECUTION_NODE_NAME, executionId);\n return Joiner.on(\"/\").join(\"\", EXECUTION_NODES, executionId);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/9041588a722ed44fd9c1507af65773182959fc4c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " if (columnDescriptions.isEmpty()) {\n responseType = ResponseType.QUERY;\n }\n if (columnDescriptions.isEmpty()) {\n responseType = ResponseType.QUERY;\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/shardingsphere/commit/bc11440eb61a8a4c7a7bfb7fb46234015a3d30c1", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " ScalingAPIFactory.getRegistryRepositoryAPI().persist(String.format(\"%s/%d/config\", ScalingConstant.SCALING_ROOT, jobConfig.getHandleConfig().getJobId()), createElasticJobConfig(jobConfig));\n ScalingAPIFactory.getRegistryRepositoryAPI().persist(String.format(\"%s/%d/config\", ScalingConstant.SCALING_ROOT, jobConfig.getHandleConfig().getJobId()), createJobConfig(jobConfig));\n private String createElasticJobConfig(final JobConfiguration jobConfig) {\n private String createJobConfig(final JobConfiguration jobConfig) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/fd8698bfb1854647122582374db2cb1a4a37b41b", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " final boolean isExceptionThrown, final boolean isReturnGeneratedKeys, final boolean fetchMetaData) {\n final boolean isReturnGeneratedKeys, final boolean isExceptionThrown, final boolean fetchMetaData) {\n final boolean isExceptionThrown, final boolean isReturnGeneratedKeys, final boolean isFetchMetaData) {\n final boolean isReturnGeneratedKeys, final boolean isExceptionThrown, final boolean isFetchMetaData) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/apache/shardingsphere/commit/66817118051ec764db4dd0a2fd07a45f23597002", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " return new ProxyStatementExecutorCallback(databaseType, sqlStatement, backendConnection, isExceptionThrown, isReturnGeneratedKeys, isFetchMetaData);\n return new ProxyStatementExecutorCallback(databaseType, sqlStatement, backendConnection, isReturnGeneratedKeys, isExceptionThrown, isFetchMetaData);\n return new ProxyPreparedStatementExecutorCallback(databaseType, sqlStatement, backendConnection, isExceptionThrown, isReturnGeneratedKeys, isFetchMetaData);\n return new ProxyPreparedStatementExecutorCallback(databaseType, sqlStatement, backendConnection, isReturnGeneratedKeys, isExceptionThrown, isFetchMetaData);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/shardingsphere/commit/66817118051ec764db4dd0a2fd07a45f23597002", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " final boolean isExceptionThrown, final boolean isReturnGeneratedKeys, final boolean fetchMetaData) {\n super(databaseType, sqlStatement, backendConnection, isExceptionThrown, isReturnGeneratedKeys, fetchMetaData);\n final boolean isReturnGeneratedKeys, final boolean isExceptionThrown, final boolean fetchMetaData) {\n super(databaseType, sqlStatement, backendConnection, isReturnGeneratedKeys, isExceptionThrown, fetchMetaData);\n final boolean isExceptionThrown, final boolean isReturnGeneratedKeys, final boolean fetchMetaData) {\n super(databaseType, sqlStatement, backendConnection, isExceptionThrown, isReturnGeneratedKeys, fetchMetaData);\n final boolean isReturnGeneratedKeys, final boolean isExceptionThrown, final boolean fetchMetaData) {\n super(databaseType, sqlStatement, backendConnection, isReturnGeneratedKeys, isExceptionThrown, fetchMetaData);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/shardingsphere/commit/66817118051ec764db4dd0a2fd07a45f23597002", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " scalingCallback.onFailure();\n scalingCallback.onFailure(scalingJob.getJobId());\n public void onFailure() {\n public void onFailure(final long jobId) {\n public void onFailure() {\n public void onFailure(final long jobId) {\n void onFailure();\n void onFailure(long jobId);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/1f74306e10b7a50e90b4af7f8a44148fdc231256", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 9, 7 ] }, { "input": " scalingCallback.onSuccess();\n scalingCallback.onSuccess(scalingJob.getJobId());\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/1f74306e10b7a50e90b4af7f8a44148fdc231256", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 8, 5 ] }, { "input": " void onFailure();\n void onFailure(long jobId);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/1f74306e10b7a50e90b4af7f8a44148fdc231256", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 2, 9 ] }, { "input": " private MySQLBinlogDumper mySQLBinlogDumper;\n private MySQLBinlogDumper mysqlBinlogDumper;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/7e33487ed0e9e3df7db40ede89a1b85fc3040c7e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " CreateTableStatement createTableStatement = new CreateTableStatement(new SimpleTableSegment(new TableNameSegment(1, 3, new IdentifierValue(\"t_order_0\"))));\n CreateTableStatement createTableStatement = new CreateTableStatement(new SimpleTableSegment(new TableNameSegment(1, 3, new IdentifierValue(\"t_order_0\"))), false);\n CreateTableStatement sqlStatement = new CreateTableStatement(new SimpleTableSegment(1, 2, new IdentifierValue(\"t_order\")));\n CreateTableStatement sqlStatement = new CreateTableStatement(new SimpleTableSegment(1, 2, new IdentifierValue(\"t_order\")), false);\n SQLStatementContext sqlStatementContext = new CreateTableStatementContext(sqlStatement);\n RouteContext routeContext = new RouteContext(sqlStatementContext, Collections.emptyList(), new RouteResult());\n ShardingSphereMetaData metaData = mock(ShardingSphereMetaData.class);\n RuleSchemaMetaData ruleSchemaMetaData = mock(RuleSchemaMetaData.class);\n when(ruleSchemaMetaData.getAllTableNames()).thenReturn(Collections.singleton(\"t_order\"));\n when(metaData.getSchema()).thenReturn(ruleSchemaMetaData);\n new ShardingCreateTableStatementValidator().preValidate(shardingRule, routeContext, metaData);\n }\n \n @Test\n public void assertValidateCreateTableIfNotExists() {\n CreateTableStatement sqlStatement = new CreateTableStatement(new SimpleTableSegment(1, 2, new IdentifierValue(\"t_order\")), true);\n CreateTableStatement createTableStatement = new CreateTableStatement(new SimpleTableSegment(new TableNameSegment(1, 3, new IdentifierValue(\"t_order_item_0\"))));\n CreateTableStatement createTableStatement = new CreateTableStatement(new SimpleTableSegment(new TableNameSegment(1, 3, new IdentifierValue(\"t_order_item_0\"))), false);\n new CreateDatabaseStatement(\"\"), new DropDatabaseStatement(\"\"), new CreateTableStatement(mock(SimpleTableSegment.class)), new DropTableStatement(), new MySQLCreateUserStatement(),\n new CreateDatabaseStatement(\"\"), new DropDatabaseStatement(\"\"), new CreateTableStatement(mock(SimpleTableSegment.class), false), new DropTableStatement(), new MySQLCreateUserStatement(),\n CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()));\n CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()), null != ctx.notExistClause_().EXISTS());\n CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()));\n CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()), false);\n CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()));\n CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()), false);\n CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()));\n CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()), false);\n CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()));\n CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()), false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.43333333333333335, "commit_url": "https://github.com/apache/shardingsphere/commit/3ba77b3c146d7833c280ce7da415a500acdf0816", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 6, 7, 8, 9, 10 ] }, { "input": " CreateTableStatement createTableStatement = new CreateTableStatement(new SimpleTableSegment(new TableNameSegment(1, 3, new IdentifierValue(\"t_order_item_0\"))));\n CreateTableStatement createTableStatement = new CreateTableStatement(new SimpleTableSegment(new TableNameSegment(1, 3, new IdentifierValue(\"t_order_item_0\"))), false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.43333333333333335, "commit_url": "https://github.com/apache/shardingsphere/commit/3ba77b3c146d7833c280ce7da415a500acdf0816", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 6, 7, 8, 9, 10 ] }, { "input": " new CreateDatabaseStatement(\"\"), new DropDatabaseStatement(\"\"), new CreateTableStatement(mock(SimpleTableSegment.class)), new DropTableStatement(), new MySQLCreateUserStatement(),\n new CreateDatabaseStatement(\"\"), new DropDatabaseStatement(\"\"), new CreateTableStatement(mock(SimpleTableSegment.class), false), new DropTableStatement(), new MySQLCreateUserStatement(),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.45161290322580644, "commit_url": "https://github.com/apache/shardingsphere/commit/3ba77b3c146d7833c280ce7da415a500acdf0816", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 6, 7, 8, 9, 10 ] }, { "input": " CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()));\n CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()), null != ctx.notExistClause_().EXISTS());\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.43333333333333335, "commit_url": "https://github.com/apache/shardingsphere/commit/3ba77b3c146d7833c280ce7da415a500acdf0816", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 3, 4, 7, 8, 9, 10 ] }, { "input": " CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()));\n CreateTableStatement result = new CreateTableStatement((SimpleTableSegment) visit(ctx.tableName()), false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.43333333333333335, "commit_url": "https://github.com/apache/shardingsphere/commit/3ba77b3c146d7833c280ce7da415a500acdf0816", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 2, 3, 4, 6, 7, 8, 10 ] }, { "input": " BackendResponse backendResponse = databaseCommunicationEngine.execute();\n BackendResponse backendResponse = getBackendResponse();\n BackendResponse backendResponse = databaseCommunicationEngine.execute();\n BackendResponse backendResponse = getBackendResponse();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/02b8b17080b1c0aae065f6dd17039eb5d1e18ebd", "target_edit_idx": 6, "propagatable_edit_idx": [ 10 ] }, { "input": " BackendResponse backendResponse = textProtocolBackendHandler.execute();\n BackendResponse backendResponse = getBackendResponse();\n BackendResponse backendResponse = textProtocolBackendHandler.execute();\n BackendResponse backendResponse = getBackendResponse();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/02b8b17080b1c0aae065f6dd17039eb5d1e18ebd", "target_edit_idx": 8, "propagatable_edit_idx": [ 12 ] }, { "input": " Preconditions.checkState(!config.getTables().isEmpty() || null != config.getDefaultTableShardingStrategy(),\n Preconditions.checkState(hasAvailableTableConfigurations(config),\n Preconditions.checkState(!config.getTables().isEmpty() || null != config.getDefaultTableShardingStrategy(),\n Preconditions.checkState(hasAvailableTableConfigurations(config),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/abd8f379e6273b9df2575fa3b79061ea86e341cd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " Preconditions.checkArgument(TYPE_AND_PROPERTIES.containsKey(shardingAlgorithmType), \"Bad sharding algorithm type: %s.\", shardingAlgorithmType);\n Preconditions.checkArgument(TYPE_AND_PROPERTIES.get(shardingAlgorithmType).size() == properties.size(),\n \"%s needs %d properties, but %s properties are given.\", shardingAlgorithmType, TYPE_AND_PROPERTIES.get(shardingAlgorithmType).size(), properties.size());\n String algorithmType = shardingAlgorithmType.toUpperCase();\n Preconditions.checkArgument(TYPE_AND_PROPERTIES.containsKey(algorithmType), \"Bad sharding algorithm type: %s.\", algorithmType);\n Preconditions.checkArgument(TYPE_AND_PROPERTIES.get(algorithmType).size() == properties.size(),\n \"%s needs %d properties, but %s properties are given.\", algorithmType, TYPE_AND_PROPERTIES.get(algorithmType).size(), properties.size());\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/abd8f379e6273b9df2575fa3b79061ea86e341cd", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "import com.google.common.base.Joiner;\nimport com.google.common.base.Joiner;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/a94f0cbb7bf63801db40201c9eebf18d7ad8b717", "target_edit_idx": 0, "propagatable_edit_idx": [ 11 ] }, { "input": " * @param dataSourceNames data source names\n * @param dataSourceName data source name\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/a94f0cbb7bf63801db40201c9eebf18d7ad8b717", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " leafSnowflakeKeyGenerator.setTimeService(new FixedTimeService(1));\n //setStaticFinalField(leafSnowflakeKeyGenerator,\"timeService\",new FixedTimeService(1));\n //leafSnowflakeKeyGenerator.setTimeService(new FixedTimeService(1));\n setStaticFinalField(leafSnowflakeKeyGenerator,\"timeService\",new FixedTimeService(1));\n leafSnowflakeKeyGenerator.setTimeService(new FixedTimeService(1));\n //setStaticFinalField(leafSnowflakeKeyGenerator,\"timeService\",new FixedTimeService(1));\n //leafSnowflakeKeyGenerator.setTimeService(new FixedTimeService(1));\n setStaticFinalField(leafSnowflakeKeyGenerator,\"timeService\",new FixedTimeService(1));\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/shardingsphere/commit/249a92e871b82df018cb6beaf95de6a4bf1b7d9f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " return selectItemsSegment.isHasRowDistinct() ? getDistinctSelectItemList(selectItemsSegment, sqlStatement) : getCommonSelectItemList(selectItemsSegment, sqlStatement);\n return selectItemsSegment.isHasRowDistinct() ? getRowDistinctSelectItemList(selectItemsSegment, sqlStatement) : getCommonSelectItemList(selectItemsSegment, sqlStatement);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/195a0a55d94b86257bb725d81304a1a463171120", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " ModifyColumnDefinitionSegment result = new ModifyColumnDefinitionSegment(oldColumnNameNode.get().getText(), columnDefinitionSegment.get());\n ModifyColumnDefinitionSegment result = new ModifyColumnDefinitionSegment(\n columnDefinitionNode.get().getStart().getStartIndex(), columnDefinitionNode.get().getStop().getStopIndex(), oldColumnNameNode.get().getText(), columnDefinitionSegment.get());\n ModifyColumnDefinitionSegment modifyColumnDefinitionSegment = new ModifyColumnDefinitionSegment(null, columnDefinitionSegment.get());\n ModifyColumnDefinitionSegment modifyColumnDefinitionSegment = new ModifyColumnDefinitionSegment(\n each.getStart().getStartIndex(), each.getStop().getStopIndex(), null, columnDefinitionSegment.get());\n result.add(new ModifyColumnDefinitionSegment(null, columnDefinition.get()));\n result.add(new ModifyColumnDefinitionSegment(each.getStart().getStartIndex(), each.getStop().getStopIndex(), null, columnDefinition.get()));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/apache/shardingsphere/commit/cd26f1ec8e128ba08c1f6f11856a7cbac15e8dd3", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " result.add(new ModifyColumnDefinitionSegment(null, columnDefinition.get()));\n result.add(new ModifyColumnDefinitionSegment(each.getStart().getStartIndex(), each.getStop().getStopIndex(), null, columnDefinition.get()));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/apache/shardingsphere/commit/cd26f1ec8e128ba08c1f6f11856a7cbac15e8dd3", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " return ExtractorUtils.findFirstChildNode(dropConstraintNode.get(), RuleName.PRIMARY_KEY).isPresent() ? Optional.of(new DropPrimaryKeySegment()) : Optional.absent();\n return ExtractorUtils.findFirstChildNode(dropConstraintNode.get(), RuleName.PRIMARY_KEY).isPresent()\n ? Optional.of(new DropPrimaryKeySegment(dropConstraintNode.get().getStart().getStartIndex(), dropConstraintNode.get().getStop().getStopIndex()))\n : Optional.absent();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/84b4965e17b3cead40b2a11cd526e38c97f32823", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": " ConstraintDefinitionSegment result = new ConstraintDefinitionSegment();\n ConstraintDefinitionSegment result = new ConstraintDefinitionSegment(tableConstraintNode.get().getStart().getStartIndex(), tableConstraintNode.get().getStop().getStopIndex());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/shardingsphere/commit/84b4965e17b3cead40b2a11cd526e38c97f32823", "target_edit_idx": 9, "propagatable_edit_idx": [ 0 ] }, { "input": " return sqlExpression.isPresent() ? Optional.of(new PredicateSegment(column.get(), \n new PredicateCompareRightValue(comparisonOperatorNode.get().getText(), sqlExpression.get()), booleanPrimaryNode.getStop().getStopIndex())) : Optional.absent();\n return sqlExpression.isPresent() ? Optional.of(new PredicateSegment(booleanPrimaryNode.getStart().getStartIndex(), booleanPrimaryNode.getStop().getStopIndex(), column.get(), \n new PredicateCompareRightValue(comparisonOperatorNode.get().getText(), sqlExpression.get()))) : Optional.absent();\n return Optional.of(new PredicateSegment(leftColumn.get(), rightColumn.get(), booleanPrimaryNode.getStop().getStopIndex()));\n return Optional.of(new PredicateSegment(booleanPrimaryNode.getStart().getStartIndex(), booleanPrimaryNode.getStop().getStopIndex(), leftColumn.get(), rightColumn.get()));\n ? Optional.of(new PredicateSegment(column, new PredicateBetweenRightValue(betweenSQLExpression.get(), andSQLExpression.get()), predicateNode.getStop().getStopIndex()))\n ? Optional.of(new PredicateSegment(\n predicateNode.getStart().getStartIndex(), predicateNode.getStop().getStopIndex(), column, new PredicateBetweenRightValue(betweenSQLExpression.get(), andSQLExpression.get())))\n : Optional.of(new PredicateSegment(column, new PredicateInRightValue(sqlExpressions), predicateNode.getStop().getStopIndex()));\n : Optional.of(new PredicateSegment(predicateNode.getStart().getStartIndex(), predicateNode.getStop().getStopIndex(), column, new PredicateInRightValue(sqlExpressions)));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.13333333333333333, "commit_url": "https://github.com/apache/shardingsphere/commit/817c7dfc87e70c88bb1a82582ffbdef1748301b5", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " ? Optional.of(new PredicateSegment(column, new PredicateBetweenRightValue(betweenSQLExpression.get(), andSQLExpression.get()), predicateNode.getStop().getStopIndex()))\n ? Optional.of(new PredicateSegment(\n predicateNode.getStart().getStartIndex(), predicateNode.getStop().getStopIndex(), column, new PredicateBetweenRightValue(betweenSQLExpression.get(), andSQLExpression.get())))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/apache/shardingsphere/commit/817c7dfc87e70c88bb1a82582ffbdef1748301b5", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " YamlKeyGeneratorConfiguration yamlKeyGeneratorConfiguration = new YamlKeyGeneratorConfiguration(keyGeneratorConfiguration);\n assertThat(yamlKeyGeneratorConfiguration.getColumn(), is(\"order_id\"));\n assertThat(yamlKeyGeneratorConfiguration.getType(), is(\"UUID\"));\n YamlKeyGeneratorConfiguration actual = new YamlKeyGeneratorConfiguration();\n actual.setColumn(\"order_id\");\n actual.setType(\"UUID\");\n actual.setProps(new Properties());\n assertThat(actual.getColumn(), is(\"order_id\"));\n assertThat(actual.getType(), is(\"UUID\"));\n assertThat(actual.getProps(), is(new Properties()));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/apache/shardingsphere/commit/7b9e38656de3e9ffd4d3675d64fbbbaf2545baab", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": " result.setDefaultKeyGenerator(new YamlKeyGeneratorConfiguration(shardingRuleConfiguration.getDefaultKeyGeneratorConfig()));\n result.setDefaultKeyGenerator(createYamlKeyGeneratorConfiguration(shardingRuleConfiguration.getDefaultKeyGeneratorConfig()));\n result.setKeyGenerator(new YamlKeyGeneratorConfiguration(tableRuleConfiguration.getKeyGeneratorConfig()));\n result.setKeyGenerator(createYamlKeyGeneratorConfiguration(tableRuleConfiguration.getKeyGeneratorConfig()));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/shardingsphere/commit/7b9e38656de3e9ffd4d3675d64fbbbaf2545baab", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " assertThat(configurationNode.getDataSourcePath(ShardingConstant.LOGIC_SCHEMA_NAME), is(\"/test/config/sharding_db/datasource\"));\n assertThat(configurationNode.getDataSourcePath(ShardingConstant.LOGIC_SCHEMA_NAME), is(\"/test/config/schema/sharding_db/datasource\"));\n assertThat(configurationNode.getRulePath(ShardingConstant.LOGIC_SCHEMA_NAME), is(\"/test/config/sharding_db/rule\"));\n assertThat(configurationNode.getRulePath(ShardingConstant.LOGIC_SCHEMA_NAME), is(\"/test/config/schema/sharding_db/rule\"));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/shardingsphere/commit/e06724b87a889ecd33141d8e53a91a042c0e0363", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " watchProxy(ConfigurationNode.DATA_SOURCE_NODE_PATH);\n watchProxy(ConfigurationNode.PROXY_DATA_SOURCE_NODE_PATH);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/6a67a2c3e0d19ee305934ad6830ae58be2292b29", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 11 ] }, { "input": " if (isDCL(tokenType, lexerEngine)) {\n TokenType secondaryTokenType = lexerEngine.getCurrentToken().getType();\n if (isDCL(tokenType, secondaryTokenType)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/apache/shardingsphere/commit/3a8d78d480e5b8452b92a8f47d2376bc8b07d913", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 6, 7 ] }, { "input": " private static boolean isDDL(final TokenType tokenType, final LexerEngine lexerEngine) {\n private static boolean isDDL(final TokenType tokenType, final TokenType secondaryTokenType) {\n private static boolean isDDL(final TokenType tokenType, final LexerEngine lexerEngine) {\n private static boolean isDDL(final TokenType tokenType, final TokenType secondaryTokenType) {\n private static boolean isDCL(final TokenType tokenType, final LexerEngine lexerEngine) {\n private static boolean isDCL(final TokenType tokenType, final TokenType secondaryTokenType) {\n private static boolean isDCL(final TokenType tokenType, final LexerEngine lexerEngine) {\n private static boolean isDCL(final TokenType tokenType, final TokenType secondaryTokenType) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/3a8d78d480e5b8452b92a8f47d2376bc8b07d913", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 10, 4 ] }, { "input": " return primaryTokens.contains(tokenType) && !secondaryTokens.contains(lexerEngine.getCurrentToken().getType());\n return primaryTokens.contains(tokenType) && !secondaryTokens.contains(secondaryTokenType);\n return primaryTokens.contains(tokenType) && !secondaryTokens.contains(lexerEngine.getCurrentToken().getType());\n return primaryTokens.contains(tokenType) && !secondaryTokens.contains(secondaryTokenType);\n return primaryTokens.contains(tokenType) && secondaryTokens.contains(lexerEngine.getCurrentToken().getType());\n return primaryTokens.contains(tokenType) && secondaryTokens.contains(secondaryTokenType);\n return primaryTokens.contains(tokenType) && secondaryTokens.contains(lexerEngine.getCurrentToken().getType());\n return primaryTokens.contains(tokenType) && secondaryTokens.contains(secondaryTokenType);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/3a8d78d480e5b8452b92a8f47d2376bc8b07d913", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 11, 5 ] }, { "input": " * @param parametersSize parameters size\n * @param parametersSize parameters size\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/shardingsphere/commit/41999daa789d509614af049d1cdffe8372423204", "target_edit_idx": 0, "propagatable_edit_idx": [ 9 ] }, { "input": " sqlStatement = sqlRouter.parse(logicSQL, parameters.size());\n sqlStatement = sqlRouter.parse(logicSQL);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/41999daa789d509614af049d1cdffe8372423204", "target_edit_idx": 4, "propagatable_edit_idx": [ 10, 5, 6, 7 ] }, { "input": " SQLStatement sqlStatement = sqlRouter.parse(logicSQL, 0);\n SQLStatement sqlStatement = sqlRouter.parse(logicSQL);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/41999daa789d509614af049d1cdffe8372423204", "target_edit_idx": 5, "propagatable_edit_idx": [ 10, 4, 6, 7 ] }, { "input": " return getSingleStatement(sql).executeQuery(sql);\n SQLStatement sqlStatement = new SQLJudgeEngine(sql).judge();\n Collection connections = connection.getConnections(sqlStatement.getType());\n Preconditions.checkState(1 == connections.size(), \"Cannot support executeQuery for DDL\");\n Statement statement = connections.iterator().next().createStatement(resultSetType, resultSetConcurrency, resultSetHoldability);\n routedStatements.add(statement);\n return statement.executeQuery(sql);\n return getSingleStatement(sql).executeUpdate(sql);\n int result = 0;\n SQLStatement sqlStatement = new SQLJudgeEngine(sql).judge();\n for (Connection each : connection.getConnections(sqlStatement.getType())) {\n Statement statement = each.createStatement(resultSetType, resultSetConcurrency, resultSetHoldability);\n routedStatements.add(statement);\n result += statement.executeUpdate(sql);\n }\n return result;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/shardingsphere/commit/e23c3133a52c2dc554f4eb3fb41da5c24c059d5b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " this(new Configuration(), reader, environment, props);\n this(Configuration.class, reader, environment, props);\n this(new Configuration(), inputStream, environment, props);\n this(Configuration.class, inputStream, environment, props);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mybatis/mybatis-3/commit/d7826d71a7005a8b4d4e0e7a020db0f6c7e253a4", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " public XMLConfigBuilder(Configuration configuration, Reader reader, String environment, Properties props) {\n this(configuration, new XPathParser(reader, true, props, new XMLMapperEntityResolver()), environment, props);\n public XMLConfigBuilder(Class configClass, Reader reader, String environment, Properties props) {\n this(configClass, new XPathParser(reader, true, props, new XMLMapperEntityResolver()), environment, props);\n public XMLConfigBuilder(Configuration configuration, InputStream inputStream, String environment, Properties props) {\n this(configuration, new XPathParser(inputStream, true, props, new XMLMapperEntityResolver()), environment, props);\n public XMLConfigBuilder(Class configClass, InputStream inputStream, String environment, Properties props) {\n this(configClass, new XPathParser(inputStream, true, props, new XMLMapperEntityResolver()), environment, props);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mybatis/mybatis-3/commit/d7826d71a7005a8b4d4e0e7a020db0f6c7e253a4", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " \"Cannot resolve the provide method because 'insert' not found in SqlProvider 'org.apache.ibatis.submitted.sqlprovider.ProviderMethodResolutionTest$DefaultProvideMethodResolverMatchedMethodIsNoneMapper$MethodResolverBasedSqlProvider'.\",\n \"Cannot resolve the provider method because 'insert' not found in SqlProvider 'org.apache.ibatis.submitted.sqlprovider.ProviderMethodResolutionTest$DefaultProvideMethodResolverMethodNameMatchedMethodIsNoneMapper$MethodResolverBasedSqlProvider'.\",\n e.getCause().getMessage());\n }\n\n @Test\n void shouldErrorWhenDefaultResolverReturnTypeMatchedMethodIsNone() {\n BuilderException e = Assertions.assertThrows(BuilderException.class,\n () -> sqlSessionFactory.getConfiguration().addMapper(DefaultProvideMethodResolverReturnTypeMatchedMethodIsNoneMapper.class));\n assertEquals(\n \"Cannot resolve the provider method because 'insert' does not return the CharSequence or its subclass in SqlProvider 'org.apache.ibatis.submitted.sqlprovider.ProviderMethodResolutionTest$DefaultProvideMethodResolverReturnTypeMatchedMethodIsNoneMapper$MethodResolverBasedSqlProvider'.\",\n \"Cannot resolve the provide method because 'update' is found multiple in SqlProvider 'org.apache.ibatis.submitted.sqlprovider.ProviderMethodResolutionTest$DefaultProvideMethodResolverMatchedMethodIsMultipleMapper$MethodResolverBasedSqlProvider'.\",\n \"Cannot resolve the provider method because 'update' is found multiple in SqlProvider 'org.apache.ibatis.submitted.sqlprovider.ProviderMethodResolutionTest$DefaultProvideMethodResolverMatchedMethodIsMultipleMapper$MethodResolverBasedSqlProvider'.\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mybatis/mybatis-3/commit/877284ac59e5dfb65f979b15d7360fb032a9759e", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " * Copyright 2009-2018 the original author or authors.\n * Copyright 2009-2019 the original author or authors.\n * Copyright 2009-2017 the original author or authors.\n * Copyright 2009-2019 the original author or authors.\n * Copyright 2009-2017 the original author or authors.\n * Copyright 2009-2019 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mybatis/mybatis-3/commit/d5441c526218ee39bff47c2532e246e38cc61a6a", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 6 ] }, { "input": " * Copyright 2009-2015 the original author or authors.\n * Copyright 2009-2018 the original author or authors.\n * Copyright 2009-2015 the original author or authors.\n * Copyright 2009-2018 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mybatis/mybatis-3/commit/95166a683c11e35273769c7edf15f7925a5f4006", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " * Copyright 2009-2015 the original author or authors.\n * Copyright 2009-2016 the original author or authors.\n * Copyright 2009-2015 the original author or authors.\n * Copyright 2009-2016 the original author or authors.\n * Copyright 2009-2015 the original author or authors.\n * Copyright 2009-2016 the original author or authors.\n * Copyright 2009-2015 the original author or authors.\n * Copyright 2009-2016 the original author or authors.\n * Copyright 2009-2015 the original author or authors.\n * Copyright 2009-2016 the original author or authors.\n * Copyright 2009-2015 the original author or authors.\n * Copyright 2009-2016 the original author or authors.\n * Copyright 2009-2015 the original author or authors.\n * Copyright 2009-2016 the original author or authors.\n * Copyright 2009-2015 the original author or authors.\n * Copyright 2009-2016 the original author or authors.\n * Copyright 2009-2015 the original author or authors.\n * Copyright 2009-2016 the original author or authors.\n * Copyright 2009-2015 the original author or authors.\n * Copyright 2009-2016 the original author or authors.\n * Copyright 2009-2015 the original author or authors.\n * Copyright 2009-2016 the original author or authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.9090909090909091, "commit_url": "https://github.com/mybatis/mybatis-3/commit/6055e55788bc82159a1a9e145fe027bc46f07ad8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": " List> getUsersList();\n List> getAListOfUsers();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mybatis/mybatis-3/commit/8df19c5192c1e17968a787e2c2695d378d6ec518", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " List> list = mapper.getUsersList();\n List> list = mapper.getAListOfUsers();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mybatis/mybatis-3/commit/8df19c5192c1e17968a787e2c2695d378d6ec518", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " ? Wrapper.forPrimitiveType(descriptor.charAt(0)).primitiveClassDescriptor()\n ? Wrapper.forPrimitiveType(descriptor.charAt(0)).classDescriptor()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/a078b5e6117d2a99386fecd349eb0e0c11b74953", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 1 ] }, { "input": " private final ClassDesc primitiveTypeDesc;\n\n private Wrapper(Class wtype, String wtypeName, Class ptype, String ptypeName, char tchar, Object emptyArray, int format, int numericClass, int superClasses, ClassDesc primitiveTypeDesc) {\n private final ClassDesc classDesc;\n\n private Wrapper(Class wtype,\n String wtypeName,\n Class ptype,\n String ptypeName,\n char tchar,\n Object emptyArray,\n int format,\n int numericClass,\n int superClasses,\n ClassDesc classDesc) {\n /** A nominal descriptor of the primitive type */\n public ClassDesc primitiveClassDescriptor() { return primitiveTypeDesc; }\n /** A nominal descriptor of the wrapped type */\n public ClassDesc classDescriptor() { return classDesc; }\n this.primitiveTypeDesc = primitiveTypeDesc;\n this.classDesc = classDesc;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/a078b5e6117d2a99386fecd349eb0e0c11b74953", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " /** A nominal descriptor of the primitive type */\n public ClassDesc primitiveClassDescriptor() { return primitiveTypeDesc; }\n /** A nominal descriptor of the wrapped type */\n public ClassDesc classDescriptor() { return classDesc; }\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/a078b5e6117d2a99386fecd349eb0e0c11b74953", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 6, 7 ] }, { "input": " super(alg, handles, keyLength);\n super(alg, handles, keyLength, false);\n super(alg, handles, keyLength);\n super(alg, handles, keyLength, true);\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/openjdk/jdk/commit/0203c7e612126d85c7cd7a3bd55d948e130283a1", "target_edit_idx": 5, "propagatable_edit_idx": [ 9 ] }, { "input": " StringBuffer sb = new StringBuffer();\n sb.append(algorithm).append(\"PublicKey [size=\").append(keyLength)\n .append(\" bits, type=\");\n if (handles.hCryptKey != 0) {\n sb.append(getKeyType(handles.hCryptKey))\n .append(\", container=\").append(getContainerName(handles.hCryptProv));\n } else {\n sb.append(\"CNG\");\n }\n sb.append(\"]\\n modulus: \").append(getModulus())\n StringBuffer sb = new StringBuffer(super.toString());\n sb.append(\"\\n modulus: \").append(getModulus())\n StringBuffer sb = new StringBuffer();\n sb.append(algorithm).append(\"PublicKey [size=\").append(keyLength)\n .append(\"]\\n ECPoint: \").append(getW())\n StringBuffer sb = new StringBuffer(super.toString());\n sb.append(\"\\n ECPoint: \").append(getW())\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/0203c7e612126d85c7cd7a3bd55d948e130283a1", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": " *

This method is restricted.\n * Restricted methods are unsafe, and, if used incorrectly, their use might crash\n * the JVM or, worse, silently result in memory corruption.\n *\n *

\n * This method is restricted.\n * Restricted methods are unsafe, and, if used incorrectly, their use might crash\n * the JVM or, worse, silently result in memory corruption.\n *

\n * This method is restricted.\n * Restricted methods are unsafe, and, if used incorrectly, their use might crash\n * the JVM or, worse, silently result in memory corruption.\n *

\n * This method is restricted.\n * Restricted methods are unsafe, and, if used incorrectly, their use might crash\n * the JVM or, worse, silently result in memory corruption.\n *

\n * This method is restricted.\n * Restricted methods are unsafe, and, if used incorrectly, their use might crash\n * the JVM or, worse, silently result in memory corruption.\n *

\n * This method is restricted.\n * Restricted methods are unsafe, and, if used incorrectly, their use might crash\n * the JVM or, worse, silently result in memory corruption.\n *

\n * This method is restricted.\n * Restricted methods are unsafe, and, if used incorrectly, their use might crash\n * the JVM or, worse, silently result in memory corruption.\n *

\n * This method is restricted.\n * Restricted methods are unsafe, and, if used incorrectly, their use might crash\n * the JVM or, worse, silently result in memory corruption.\n *

\n * This method is restricted.\n * Restricted methods are unsafe, and, if used incorrectly, their use might crash\n * the JVM or, worse, silently result in memory corruption.\n *

\n * This method is restricted.\n * Restricted methods are unsafe, and, if used incorrectly, their use might crash\n * the JVM or, worse, silently result in memory corruption.\n", "class": "clone", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/openjdk/jdk/commit/91442878b7b7b2e131621958de4942f30bbf3537", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " * @run main/othervm -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:CompileCommand=\"dontinline,TestNegAnd::test*\" TestNegAnd\n * @run main/othervm -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:CompileCommand=dontinline,TestNegAnd::test* TestNegAnd\n * @run main/othervm -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:CompileCommand=\"dontinline,TestNegMultiply::test*\" TestNegMultiply\n * @run main/othervm -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:CompileCommand=dontinline,TestNegMultiply::test* TestNegMultiply\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/0e0c022b1f870806963789afdef9298851719498", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " * Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/openjdk/jdk/commit/0e0c022b1f870806963789afdef9298851719498", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 11, 13, 6 ] }, { "input": " * Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/92d8326e4037605897d7c4eb4b3edb63a2fc11b0", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " * https://github.com/openjdk/jdk/blob/jdk-19%2B36/test/langtools/tools/javac/Paths/Class-Path.sh\n * https://git.openjdk.org/jdk/blob/jdk-19%2B36/test/langtools/tools/javac/Paths/Class-Path.sh\n * https://github.com/openjdk/jdk/blob/jdk-19%2B36/test/langtools/tools/javac/Paths/Class-Path2.sh\n * https://git.openjdk.org/jdk/blob/jdk-19%2B36/test/langtools/tools/javac/Paths/Class-Path2.sh\n * https://github.com/openjdk/jdk/blob/jdk-19%2B36/test/langtools/tools/javac/Paths/Diagnostics.sh\n * https://git.openjdk.org/jdk/blob/jdk-19%2B36/test/langtools/tools/javac/Paths/Diagnostics.sh\n * https://github.com/openjdk/jdk/blob/jdk-19%2B36/test/langtools/tools/javac/Paths/Help.sh\n * https://git.openjdk.org/jdk/blob/jdk-19%2B36/test/langtools/tools/javac/Paths/Help.sh\n * https://github.com/openjdk/jdk/blob/jdk-19%2B36/test/langtools/tools/javac/Paths/MineField.sh\n * https://git.openjdk.org/jdk/blob/jdk-19%2B36/test/langtools/tools/javac/Paths/MineField.sh\n * https://github.com/openjdk/jdk/blob/jdk-19%2B36/test/langtools/tools/javac/Paths/wcMineField.sh\n * https://git.openjdk.org/jdk/blob/jdk-19%2B36/test/langtools/tools/javac/Paths/wcMineField.sh\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/openjdk/jdk/commit/090cdfc7a2e280c620a0926512fb67f0ce7f3c21", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " * Reads from the current JAR file entry into an array of bytes.\n * If {@code len} is not zero, the method\n * blocks until some input is available; otherwise, no\n * bytes are read and {@code 0} is returned.\n * Reads from the current JAR entry into an array of bytes, returning the number of\n * inflated bytes. If {@code len} is not zero, the method blocks until some input is\n * available; otherwise, no bytes are read and {@code 0} is returned.\n *

\n * If the current entry is compressed and this method returns a nonzero\n * integer n then {@code buf[off]}\n * through {@code buf[off+}n{@code -1]} contain the uncompressed\n * data. The content of elements {@code buf[off+}n{@code ]} through\n * {@code buf[off+}len{@code -1]} is undefined, contrary to the\n * specification of the {@link java.io.InputStream InputStream} superclass,\n * so an implementation is free to modify these elements during the inflate\n * operation. If this method returns {@code -1} or throws an exception then\n * the content of {@code buf[off]} through {@code buf[off+}len{@code\n * -1]} is undefined.\n *

\n * Reads from the current ZIP entry into an array of bytes.\n * If {@code len} is not zero, the method\n * blocks until some input is available; otherwise, no\n * bytes are read and {@code 0} is returned.\n * Reads from the current ZIP entry into an array of bytes, returning the number of\n * inflated bytes. If {@code len} is not zero, the method blocks until some input is\n * available; otherwise, no bytes are read and {@code 0} is returned.\n *

\n * If the current entry is compressed and this method returns a nonzero\n * integer n then {@code buf[off]}\n * through {@code buf[off+}n{@code -1]} contain the uncompressed\n * data. The content of elements {@code buf[off+}n{@code ]} through\n * {@code buf[off+}len{@code -1]} is undefined, contrary to the\n * specification of the {@link java.io.InputStream InputStream} superclass,\n * so an implementation is free to modify these elements during the inflate\n * operation. If this method returns {@code -1} or throws an exception then\n * the content of {@code buf[off]} through {@code buf[off+}len{@code\n * -1]} is undefined.\n *\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/2c61efe3de9095631077aaf67edd2695edac6259", "target_edit_idx": 2, "propagatable_edit_idx": [ 11 ] }, { "input": " * Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/openjdk/jdk/commit/2c61efe3de9095631077aaf67edd2695edac6259", "target_edit_idx": 3, "propagatable_edit_idx": [ 10 ] }, { "input": " * Reads uncompressed data into an array of bytes. If {@code len} is not\n * zero, the method will block until some input can be decompressed; otherwise,\n * no bytes are read and {@code 0} is returned.\n * Reads uncompressed data into an array of bytes, returning the number of inflated\n * bytes. If {@code len} is not zero, the method will block until some input can be\n * decompressed; otherwise, no bytes are read and {@code 0} is returned.\n *

\n * If this method returns a nonzero integer n then {@code buf[off]}\n * through {@code buf[off+}n{@code -1]} contain the uncompressed\n * data. The content of elements {@code buf[off+}n{@code ]} through\n * {@code buf[off+}len{@code -1]} is undefined, contrary to the\n * specification of the {@link java.io.InputStream InputStream} superclass,\n * so an implementation is free to modify these elements during the inflate\n * operation. If this method returns {@code -1} or throws an exception then\n * the content of {@code buf[off]} through {@code buf[off+}len{@code\n * -1]} is undefined.\n *\n * Reads uncompressed data into an array of bytes. If {@code len} is not\n * zero, the method will block until some input can be decompressed; otherwise,\n * no bytes are read and {@code 0} is returned.\n * Reads uncompressed data into an array of bytes, returning the number of inflated\n * bytes. If {@code len} is not zero, the method will block until some input can be\n * decompressed; otherwise, no bytes are read and {@code 0} is returned.\n *

\n * If this method returns a nonzero integer n then {@code buf[off]}\n * through {@code buf[off+}n{@code -1]} contain the uncompressed\n * data. The content of elements {@code buf[off+}n{@code ]} through\n * {@code buf[off+}len{@code -1]} is undefined, contrary to the\n * specification of the {@link java.io.InputStream InputStream} superclass,\n * so an implementation is free to modify these elements during the inflate\n * operation. If this method returns {@code -1} or throws an exception then\n * the content of {@code buf[off]} through {@code buf[off+}len{@code\n * -1]} is undefined.\n *\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/2c61efe3de9095631077aaf67edd2695edac6259", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " long foundCount = getFoundCount(compilation, constraint);\n Comparison comparison = constraint.comparison;\n if (!comparison.compare(foundCount)) {\n result.addFailure(createRegexFailure(compilation, constraint, foundCount));\n List countsMatches = getCountsMatches(compilation, constraint);\n Comparison comparison = constraint.comparison;\n if (!comparison.compare(countsMatches.size())) {\n result.addFailure(createRegexFailure(countsMatches, constraint));\n private CountsRegexFailure createRegexFailure(String compilation, Constraint constraint, long foundCount) {\n Pattern p = Pattern.compile(constraint.nodeRegex);\n Matcher m = p.matcher(compilation);\n List matches;\n if (m.find()) {\n matches = getMatchedNodes(m);\n } else {\n matches = new ArrayList<>();\n }\n return new CountsRegexFailure(constraint.nodeRegex, constraint.nodeId, foundCount, constraint.comparison, matches);\n private CountsRegexFailure createRegexFailure(List countsMatches, Constraint constraint) {\n return new CountsRegexFailure(constraint.nodeRegex, constraint.nodeId, countsMatches.size(), constraint.comparison,\n countsMatches);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/e89abb7d2d902c6e6b3c9953fc6663de10db77b9", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " private CountsRegexFailure createRegexFailure(String compilation, Constraint constraint, long foundCount) {\n Pattern p = Pattern.compile(constraint.nodeRegex);\n Matcher m = p.matcher(compilation);\n List matches;\n if (m.find()) {\n matches = getMatchedNodes(m);\n } else {\n matches = new ArrayList<>();\n }\n return new CountsRegexFailure(constraint.nodeRegex, constraint.nodeId, foundCount, constraint.comparison, matches);\n private CountsRegexFailure createRegexFailure(List countsMatches, Constraint constraint) {\n return new CountsRegexFailure(constraint.nodeRegex, constraint.nodeId, countsMatches.size(), constraint.comparison,\n countsMatches);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/e89abb7d2d902c6e6b3c9953fc6663de10db77b9", "target_edit_idx": 8, "propagatable_edit_idx": [ 5 ] }, { "input": " * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/openjdk/jdk/commit/3eb661bbe7151f3a7e949b6518f57896c2bd4136", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 2 ] }, { "input": " * @param the type of the referent\n * @param the type of the referent\n * @param the type of the referent\n * @param the type of the referent\n * @param the type of the referent\n * @param the type of the referent\n * @param the type of the reference object\n * @param the type of the reference object\n * @param the type of the referent\n * @param the type of the referent\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/openjdk/jdk/commit/3eb661bbe7151f3a7e949b6518f57896c2bd4136", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 5, 6, 7 ] }, { "input": "\n Class socketImplClass = datagramSocketImpl.getClass();\n System.out.printf(\"socketImplClass: %s%n\", socketImplClass);\n if (socketImplClass.getName().equals(\"java.net.TwoStacksPlainDatagramSocketImpl\")) {\n Field fileDescriptor1Field = socketImplClass.getDeclaredField(\"fd1\");\n fileDescriptor1Field.setAccessible(true);\n FileDescriptor fileDescriptor1 = (FileDescriptor) fileDescriptor1Field.get(datagramSocketImpl);\n extractRefs(fileDescriptor1, name + \"::twoStacksFd1\");\n\n } else {\n System.out.printf(\"socketImpl class name not matched: %s != %s%n\",\n socketImplClass.getName(), \"java.net.TwoStacksPlainDatagramSocketImpl\");\n }\n\n Class socketImplClass = datagramSocketImpl.getClass();\n System.out.printf(\"socketImplClass: %s%n\", socketImplClass);\n if (socketImplClass.getName().equals(\"java.net.TwoStacksPlainDatagramSocketImpl\")) {\n Field fileDescriptor1Field = socketImplClass.getDeclaredField(\"fd1\");\n fileDescriptor1Field.setAccessible(true);\n FileDescriptor fileDescriptor1 = (FileDescriptor) fileDescriptor1Field.get(datagramSocketImpl);\n extractRefs(fileDescriptor1, name + \"::twoStacksFd1\");\n\n } else {\n System.out.printf(\"socketImpl class name not matched: %s != %s%n\",\n socketImplClass.getName(), \"java.net.TwoStacksPlainDatagramSocketImpl\");\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/4ffe96a857a1a478f1bf666704903da513b832cd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " * @clean TestIndyStringConcat*\n * @clean *\n * @clean TestIndyStringConcat*\n * @clean *\n * @clean TestIndyStringConcat*\n * @clean *\n * @clean TestIndyStringConcat*\n * @clean *\n * @clean TestIndyStringConcat*\n * @clean *\n", "class": "clone", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/openjdk/jdk/commit/86723d4892485651bcae735ed13545ea89b9bb22", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": " * Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/c820d1acb7c6e600a890e4205eef0be8a4c7a791", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 11, 5 ] }, { "input": " * Copyright (c) 2011, 2011, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2016, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2012, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2014, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2012, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2013, 2013, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2014, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2012, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2014, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/openjdk/jdk/commit/bd339aa6c03d12cb830a2caa04bda322e9f40c33", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " // .-b\n throw new VMVersionMismatchException(saVersion, vmRelease);\n // +\n throw new VMVersionMismatchException(saVersion, vmVersion);\n System.err.println(\"WARNING: Hotspot VM version \" + vmRelease +\n System.err.println(\"WARNING: Hotspot VM version \" + vmVersion +\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/openjdk/jdk/commit/986ee5d0bfd407dc1b7ce75c7c94b6585bfb497d", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/05d38604a2c620dcaf8682f02dae2fddab8e0c0b", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " * {@code tree.getEndPosition() >= subtree.getEndPosition()} or
\n * {@code tree.getEndPosition() == NOPOS} or
\n * {@code subtree.getEndPosition() == NOPOS}\n
* {@code getEndPosition(file, comment, tree) >= getEndPosition(file, comment, subtree)} or
\n * {@code getEndPosition(file, comment, tree) == NOPOS} or
\n * {@code getEndPosition(file, comment, subtree) == NOPOS}\n
", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/05d38604a2c620dcaf8682f02dae2fddab8e0c0b", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 6, 7 ] }, { "input": " * {@code tree.getStartPosition() <= tree.getEndPosition()} or
\n * {@code tree.getStartPosition() == NOPOS} or
\n * {@code tree.getEndPosition() == NOPOS}\n
* {@code getStartPosition(file, comment, tree) <= getEndPosition(file, comment, tree)} or
\n * {@code getStartPosition(file, comment, tree) == NOPOS} or
\n * {@code getEndPosition(file, comment, tree) == NOPOS}\n
", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/05d38604a2c620dcaf8682f02dae2fddab8e0c0b", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 6, 7 ] }, { "input": " * {@code tree.getStartPosition() <= subtree.getStartPosition()} or
\n * {@code tree.getStartPosition() == NOPOS} or
\n * {@code subtree.getStartPosition() == NOPOS}\n
* {@code getStartPosition(file, tree) <= getStartPosition(file, subtree)} or
\n * {@code getStartPosition(file, tree) == NOPOS} or
\n * {@code getStartPosition(file, subtree) == NOPOS}\n
", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/05d38604a2c620dcaf8682f02dae2fddab8e0c0b", "target_edit_idx": 5, "propagatable_edit_idx": [ 1 ] }, { "input": " * {@code tree.getEndPosition() >= subtree.getEndPosition()} or
\n * {@code tree.getEndPosition() == NOPOS} or
\n * {@code subtree.getEndPosition() == NOPOS}\n
* {@code getEndPosition(file, tree) >= getEndPosition(file, subtree)} or
\n * {@code getEndPosition(file, tree) == NOPOS} or
\n * {@code getEndPosition(file, subtree) == NOPOS}\n
", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/05d38604a2c620dcaf8682f02dae2fddab8e0c0b", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 7 ] }, { "input": " * {@code tree.getStartPosition() <= tree.getEndPosition()} or
\n * {@code tree.getStartPosition() == NOPOS} or
\n * {@code tree.getEndPosition() == NOPOS}\n
* {@code getStartPosition(file, tree) <= getEndPosition(file, tree)} or
\n * {@code getStartPosition(file, tree) == NOPOS} or
\n * {@code getEndPosition(file, tree) == NOPOS}\n
* {@code tree.getEndPosition() >= subtree.getEndPosition()} or
\n * {@code tree.getEndPosition() == NOPOS} or
\n * {@code subtree.getEndPosition() == NOPOS}\n
* {@code getEndPosition(file, comment, tree) >= getEndPosition(file, comment, subtree)} or
\n * {@code getEndPosition(file, comment, tree) == NOPOS} or
\n * {@code getEndPosition(file, comment, subtree) == NOPOS}\n
* {@code tree.getStartPosition() <= tree.getEndPosition()} or
\n * {@code tree.getStartPosition() == NOPOS} or
\n * {@code tree.getEndPosition() == NOPOS}\n
* {@code getStartPosition(file, comment, tree) <= getEndPosition(file, comment, tree)} or
\n * {@code getStartPosition(file, comment, tree) == NOPOS} or
\n * {@code getEndPosition(file, comment, tree) == NOPOS}\n
* {@code tree.getEndPosition() >= subtree.getEndPosition()} or
\n * {@code tree.getEndPosition() == NOPOS} or
\n * {@code subtree.getEndPosition() == NOPOS}\n
* {@code getEndPosition(file, tree) >= getEndPosition(file, subtree)} or
\n * {@code getEndPosition(file, tree) == NOPOS} or
\n * {@code getEndPosition(file, subtree) == NOPOS}\n
", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/05d38604a2c620dcaf8682f02dae2fddab8e0c0b", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 6 ] }, { "input": " * Copyright (c) 1994, 2020, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/72145f3b9472c8f5f64f9b9ac93e3331e646f15a", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 4 ] }, { "input": " return b ? \"true\" : \"false\";\n return String.valueOf(b);\n return value ? \"true\" : \"false\";\n return String.valueOf(value);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/72145f3b9472c8f5f64f9b9ac93e3331e646f15a", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " return Integer.toString((int)value);\n return Integer.toString(value);\n return Integer.toString((int)value);\n return Integer.toString(value);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/72145f3b9472c8f5f64f9b9ac93e3331e646f15a", "target_edit_idx": 7, "propagatable_edit_idx": [ 12 ] }, { "input": "import java.io.BufferedInputStream;\nimport java.io.BufferedInputStream;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/openjdk/jdk/commit/1a681fa743d248f9096e06d596f5eba393113ce2", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " * @jls 8.5 Member Type Declarations\n * @jls 8.5 Member Class and Interface Declarations\n * @jls 8.5 Member Type Declarations\n * @jls 8.5 Member Class and Interface Declarations\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/a2801829560efb2eda4bbfea0b6d3cb04e2519a0", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " public MemoryUser(String mxBeanName) {\n watcher = new MemoryWatcher(mxBeanName);\n public MemoryUser(String mxBeanName, int minFreeCriticalWaitMS) {\n watcher = new MemoryWatcher(mxBeanName, minFreeCriticalWaitMS);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/a28f4100ce7fb3aaa260131989d487e8acb5c551", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " private static Exitable startMemoryUser(String mxBeanName) {\n MemoryUser task = new MemoryUser(mxBeanName);\n private static Exitable startMemoryUser(String mxBeanName, int minFreeCriticalWaitMS) {\n MemoryUser task = new MemoryUser(mxBeanName, minFreeCriticalWaitMS);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/a28f4100ce7fb3aaa260131989d487e8acb5c551", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " Exitable memoryUser = startMemoryUser(mxBeanName);\n Exitable memoryUser = startMemoryUser(mxBeanName, minFreeCriticalWaitMS);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/a28f4100ce7fb3aaa260131989d487e8acb5c551", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " return getNode(hash(key), key) != null;\n return getNode(key) != null;\n return (e = getNode(hash(key), key)) == null ? null : e.value;\n return (e = getNode(key)) == null ? null : e.value;\n final Node getNode(int hash, Object key) {\n Node[] tab; Node first, e; int n; K k;\n final Node getNode(Object key) {\n Node[] tab; Node first, e; int n, hash; K k;\n Node candidate = getNode(hash(key), key);\n Node candidate = getNode(key);\n return (e = getNode(hash(key), key)) == null ? defaultValue : e.value;\n return (e = getNode(key)) == null ? defaultValue : e.value;\n if ((e = getNode(hash(key), key)) != null &&\n if ((e = getNode(key)) != null &&\n if ((e = getNode(hash(key), key)) != null) {\n if ((e = getNode(key)) != null) {\n int hash = hash(key);\n if ((e = getNode(hash, key)) != null &&\n if ((e = getNode(key)) != null &&\n if ((e = getNode(hash(key), key)) == null)\n if ((e = getNode(key)) == null)\n if ((e = getNode(hash(key), key)) == null)\n if ((e = getNode(key)) == null)\n Node candidate = getNode(hash(key), key);\n Node candidate = getNode(key);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/742d35e08a212d2980bc3e4eec6bc526e65f125e", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 5, 6, 7, 8, 9, 12, 13, 14 ] }, { "input": " if ((e = getNode(hash(key), key)) != null) {\n if ((e = getNode(key)) != null) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/742d35e08a212d2980bc3e4eec6bc526e65f125e", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 2, 4, 5, 6, 7, 9, 12, 13, 14 ] }, { "input": " int hash = hash(key);\n if ((e = getNode(hash, key)) != null &&\n if ((e = getNode(key)) != null &&\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/742d35e08a212d2980bc3e4eec6bc526e65f125e", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 2, 4, 5, 6, 7, 8, 12, 13, 14 ] }, { "input": " Node candidate = getNode(hash(key), key);\n Node candidate = getNode(key);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/openjdk/jdk/commit/742d35e08a212d2980bc3e4eec6bc526e65f125e", "target_edit_idx": 14, "propagatable_edit_idx": [ 0, 2, 4, 5, 6, 7, 8, 9, 12, 13 ] }, { "input": " String name = null;\n String name;\n String name = null;\n String name;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/b2269be8db43da154e4acb235b8901e4a1135361", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " * Copyright (c) 2018, Red Hat, Inc. and/or its affiliates.\n *\n * Copyright (c) 2018, Red Hat, Inc.\n * Copyright (c) 2018, Red Hat, Inc. and/or its affiliates.\n *\n * Copyright (c) 2018, Red Hat, Inc.\n * Copyright (c) 2018, Red Hat, Inc. and/or its affiliates.\n *\n * Copyright (c) 2018, Red Hat, Inc.\n * Copyright (c) 2018, Red Hat, Inc. and/or its affiliates.\n *\n * Copyright (c) 2018, Red Hat, Inc.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/7724fd6d9bf52bc3aa7d5940b829503dc57e5042", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 6 ] }, { "input": " * published by the Free Software Foundation.\n * published by the Free Software Foundation. Oracle designates this\n * particular file as subject to the \"Classpath\" exception as provided\n * by Oracle in the LICENSE file that accompanied this code.\n * published by the Free Software Foundation.\n * published by the Free Software Foundation. Oracle designates this\n * particular file as subject to the \"Classpath\" exception as provided\n * by Oracle in the LICENSE file that accompanied this code.\n * published by the Free Software Foundation.\n * published by the Free Software Foundation. Oracle designates this\n * particular file as subject to the \"Classpath\" exception as provided\n * by Oracle in the LICENSE file that accompanied this code.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/7724fd6d9bf52bc3aa7d5940b829503dc57e5042", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/34397c4914925b990a5d74a238b01bb05d5b7c44", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " * @run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+PrintSystemDictionaryAtExit -Xlog:class+unload=trace -XX:+WhiteBoxAPI ConstantPoolDependsTest\n * @run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -Xlog:class+unload -XX:+WhiteBoxAPI ConstantPoolDependsTest\n * @run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+PrintSystemDictionaryAtExit -Xlog:class+unload=trace -XX:+WhiteBoxAPI SuperDependsTest\n * @run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -Xlog:class+unload -XX:+WhiteBoxAPI SuperDependsTest\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/24218b904d52048dd3297de6fd3236a4077f44b4", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " throws java.lang.ClassNotFoundException,\n java.io.IOException\n throws java.io.IOException\n throws java.lang.ClassNotFoundException,\n java.io.IOException\n throws java.io.IOException\n throws java.lang.ClassNotFoundException,\n java.io.IOException\n throws java.io.IOException\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/openjdk/jdk/commit/a5e27072fe2fc2f24865e4320e78f56e1d768bdf", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " * Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/390487c14d2d3e3aa7fcb9d500ea96472b45bb67", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " new Exception(\"Call trace\").printStackTrace();\n new Exception(\"Debug call trace\").printStackTrace();\n new Exception(\"Call trace\").printStackTrace();\n new Exception(\"Debug Info. Call trace:\").printStackTrace();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/0c7be1d9e75285adc9e26bd4f69b71c8b91e8ee5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " // e.printStackTrace ();\n // e.printStackTrace ();\n", "class": "clone", "binary_label": 1, "regression_label": 0.1875, "commit_url": "https://github.com/openjdk/jdk/commit/0c7be1d9e75285adc9e26bd4f69b71c8b91e8ee5", "target_edit_idx": 3, "propagatable_edit_idx": [ 13 ] }, { "input": " debug.println(\"error reading policy \" + e);\n debug.println(\"Debug info only. Error reading policy \" + e);\n debug.println(\"error reading policy \"+e);\n debug.println(\n \"Debug info only. Error reading policy \" +e);\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/openjdk/jdk/commit/0c7be1d9e75285adc9e26bd4f69b71c8b91e8ee5", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " * Copyright (c) 1996, 2006, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/0644676235d1c0d61f8af040775436ddf41eb442", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " * Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2016 Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2016 Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2015, 2016 Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/openjdk/jdk/commit/e5543824f476351a80ddeee239f90625dc0acd5d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " * @see Javadoc Tags\n * @see Javadoc Tags\n * @see Javadoc Tags\n * @see Javadoc Tags\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/openjdk/jdk/commit/2114b9fa01048227d873bd24764dee851364db34", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " * For overviews, tutorials, examples, and guides, please see:\n * For more information on using Java Sound see:\n * For overviews, tutorials, examples, and guides, please see:\n * For more information on using Java Sound see:\n * For overviews, tutorials, examples, and guides, please see:\n * For more information on using Java Sound see:\n * For overviews, tutorials, examples, and guides, please see:\n * For more information on using Java Sound see:\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/ea40cb4fca3bc20955345909eac67d5fc57f28c1", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 6 ] }, { "input": " *

  • Sound
  • \n
    *
  • \n * The Java Sound Tutorial
  • \n
    *
  • Sound
  • \n
    *
  • \n * The Java Sound Tutorial
  • \n
    *
  • Sound
  • \n
    *
  • \n * The Java Sound Tutorial
  • \n
    *
  • Sound
  • \n
    *
  • \n * The Java Sound Tutorial
  • \n
    ", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/ea40cb4fca3bc20955345909eac67d5fc57f28c1", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 7 ] }, { "input": " * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/openjdk/jdk/commit/0a98c7b5b63622bb664a5a6fdd906828f2069dbc", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 2, 4, 6 ] }, { "input": " * @run main/othervm JavacTreeScannerTest -q -r .\n * @run main JavacTreeScannerTest -q -r .\n * @run main/othervm SourceTreeScannerTest -q -r .\n * @run main SourceTreeScannerTest -q -r .\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/0a98c7b5b63622bb664a5a6fdd906828f2069dbc", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " * In other words, the result is the same as the value of the expression:\n *

    {@code Float.intBitsToFloat(0x7fffffff & Float.floatToIntBits(a))}\n *\n * @apiNote As implied by the above, one valid implementation of\n * this method is given by the expression below which computes a\n * {@code float} with the same exponent and significand as the\n * argument but with a guaranteed zero sign bit indicating a\n * positive value:
    \n * {@code Float.intBitsToFloat(0x7fffffff & Float.floatToRawIntBits(a))}\n
    * In other words, the result is the same as the value of the expression:\n *

    {@code Float.intBitsToFloat(0x7fffffff & Float.floatToIntBits(a))}\n *\n * @apiNote As implied by the above, one valid implementation of\n * this method is given by the expression below which computes a\n * {@code float} with the same exponent and significand as the\n * argument but with a guaranteed zero sign bit indicating a\n * positive value:
    \n * {@code Float.intBitsToFloat(0x7fffffff & Float.floatToRawIntBits(a))}\n
    ", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/d6dfc0bef3175d95ebcde1688ed3e357273fb28e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " * In other words, the result is the same as the value of the expression:\n *

    {@code Double.longBitsToDouble((Double.doubleToLongBits(a)<<1)>>>1)}\n *\n * @apiNote As implied by the above, one valid implementation of\n * this method is given by the expression below which computes a\n * {@code double} with the same exponent and significand as the\n * argument but with a guaranteed zero sign bit indicating a\n * positive value:
    \n * {@code Double.longBitsToDouble((Double.doubleToRawLongBits(a)<<1)>>>1)}\n
    * In other words, the result is the same as the value of the expression:\n *

    {@code Double.longBitsToDouble((Double.doubleToLongBits(a)<<1)>>>1)}\n *\n * @apiNote As implied by the above, one valid implementation of\n * this method is given by the expression below which computes a\n * {@code double} with the same exponent and significand as the\n * argument but with a guaranteed zero sign bit indicating a\n * positive value:
    \n * {@code Double.longBitsToDouble((Double.doubleToRawLongBits(a)<<1)>>>1)}\n
    ", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/d6dfc0bef3175d95ebcde1688ed3e357273fb28e", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " static void run(String s) throws Exception {\n sun.security.tools.keytool.Main.main((s+\" -debug\").split(\" \"));\n // The keytool command line template, alias and startdate TBD\n static String[] cmd = (\"-alias tbd -startdate tbd -keystore jks \" +\n \"-storetype jks -storepass changeit -keypass changeit \" +\n \"-keyalg rsa -genkeypair -dname CN=Haha -debug\").split(\" \");\n\n static void run(String alias, String startDate) throws Exception {\n cmd[1] = alias;\n cmd[3] = startDate;\n sun.security.tools.keytool.Main.main(cmd);\n run(\"-keystore jks -storetype jks -storepass changeit -keypass changeit -alias me \" +\n \"-keyalg rsa -genkeypair -dname CN=Haha -startdate +1y\");\n cal.setTime(getIssueDate());\n run(\"one\", \"+1y\");\n cal.setTime(getIssueDate(\"one\"));\n run(\"-keystore jks -storetype jks -storepass changeit -keypass changeit -alias me \" +\n \"-selfcert -startdate +1m\");\n cal.setTime(getIssueDate());\n run(\"two\", \"+1m\");\n cal.setTime(getIssueDate(\"two\"));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/68ec99774eac5730e53b3b3fd2f850c57b1b130f", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " * @bug 5033583 6316717 6470106 8161500\n * @bug 5033583 6316717 6470106 8161500 8162539\n * @bug 5033583 6316717 6470106 8004979 8161500\n * @bug 5033583 6316717 6470106 8004979 8161500 8162539\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/085f7a6907499303207b6050282875bc4c67357f", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": " if (! egs.value().equals(actual)) {\n failures++;\n System.err.printf(\"ERROR: Expected generic string ''%s''; got ''%s''.\\n\",\n egs.value(), actual);\n }\n failures += checkForFailure(egs.value(), actual);\n if (! egs.bridgeValue().equals(actual)) {\n failures++;\n System.err.printf(\"ERROR: Expected ''%s''; got ''%s''.\\n\",\n egs.value(), actual);\n }\n failures += checkForFailure(egs.bridgeValue(), actual);\n if (! egs.value().equals(actual)) {\n failures++;\n System.err.printf(\"ERROR: Expected ''%s''; got ''%s''.\\n\",\n egs.value(), actual);\n }\n failures += checkForFailure(egs.value(), actual);\n if (! es.value().equals(actual)) {\n failures++;\n System.err.printf(\"ERROR: Expected ''%s''; got ''%s''.\\n\",\n es.value(), actual);\n }\n failures += checkForFailure(es.value(), actual);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/085f7a6907499303207b6050282875bc4c67357f", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 10, 11 ] }, { "input": " * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/openjdk/jdk/commit/b589f49334abc626b67aff1bce86081d0bc0182d", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 10, 6 ] }, { "input": " * @param host the detail message.\n * @param message the detail message.\n * @param host the detail message.\n * @param message the detail message.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/39b55b3d5ab5f1881853090d6d3bcd4f8ad3517d", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " public ProtocolException(String host) {\n super(host);\n public ProtocolException(String message) {\n super(message);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/39b55b3d5ab5f1881853090d6d3bcd4f8ad3517d", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/openjdk/jdk/commit/5cb706561283c5a12d36920f819d2bf6bec10c1e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 5 ] }, { "input": " * @compile/ref=test1.out -XDrawDiagnostics T6365854.java\n * @compile/ref=test1.out -XDrawDiagnostics -Xlint:classfile T6365854.java\n * @compile/ref=test2.out -XDrawDiagnostics T6365854.java\n * @compile/ref=test2.out -XDrawDiagnostics -Xlint:classfile T6365854.java\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/5cb706561283c5a12d36920f819d2bf6bec10c1e", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " private static GuardedInvocation findSetMethod(final CallSiteDescriptor desc) {\n private static GuardedInvocation findSetMethod(final CallSiteDescriptor desc, final GuardedInvocation inv) {\n if (inv != null) {\n return inv;\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/05bf0c5a4572622670341473e431dcd9512ecf40", "target_edit_idx": 8, "propagatable_edit_idx": [ 6 ] }, { "input": " public RewriteException(\n final UnwarrantedOptimismException e,\n public static RewriteException create(final UnwarrantedOptimismException e,\n public RewriteException(\n final UnwarrantedOptimismException e,\n public static RewriteException create(final UnwarrantedOptimismException e,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/11fb0e214302cc22cb2c615ba52b02eb61ce94bc", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2000, 2002, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/openjdk/jdk/commit/745db9c388678c59fb3c2bea53b3c9cab9e0e1de", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 2, 5 ] }, { "input": " * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/openjdk/jdk/commit/9a0f6ed18e94c3ee7b8d5701a7610c8f0e9342c6", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 2 ] }, { "input": " * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/openjdk/jdk/commit/dd72fa55fce0f673516991416ef65a09b25979d8", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " * If a security manager is installed and the {@code AccessControlContext}\n * was not created by system code and the caller's {@code ProtectionDomain}\n * has not been granted the {@literal \"createAccessControlContext\"}\n * If a security manager is installed and the specified\n * {@code AccessControlContext} was not created by system code and the\n * caller's {@code ProtectionDomain} has not been granted the\n * {@literal \"createAccessControlContext\"}\n * If a security manager is installed and the {@code AccessControlContext}\n * was not created by system code and the caller's {@code ProtectionDomain}\n * has not been granted the {@literal \"createAccessControlContext\"}\n * If a security manager is installed and the specified\n * {@code AccessControlContext} was not created by system code and the\n * caller's {@code ProtectionDomain} has not been granted the\n * {@literal \"createAccessControlContext\"}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/3854742d69b784e0ad238b4f67636214c2789d28", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " * @ignore 8008682: Core stream API classes\n * @ignore 8008682: Core stream API classes\n * @ignore 8008682: Core stream API classes\n * @ignore 8008682: Core stream API classes\n * @ignore 8008682: Core stream API classes\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/1c6a680e66865b5fd6f55730f2cd3ff83c367617", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " * Copyright (c) 1997, 2002, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/openjdk/jdk/commit/8e50f0daf950c6be4cf322c635c92b1ee5d57fde", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " private Method writeReplaceObjectMethod;\n private Method readResolveObjectMethod;\n private transient Method writeReplaceObjectMethod;\n private transient Method readResolveObjectMethod;\n private Method writeReplaceObjectMethod;\n private Method readResolveObjectMethod;\n private transient Method writeReplaceObjectMethod;\n private transient Method readResolveObjectMethod;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/8e50f0daf950c6be4cf322c635c92b1ee5d57fde", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2003, 2009, Oracle and/or its affiliates. All rights reserved.\n * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/openjdk/jdk/commit/9b7612b045741fd8478f7e50090c035534796fd6", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " \"x\".toCharArray(), 1);\n kt.addEntry(new PrincipalName(\"a@A\"), \"x\".toCharArray(), 1);\n \"x\".toCharArray(), 1, true);\n kt.addEntry(new PrincipalName(\"a@A\"), \"x\".toCharArray(), 1, true);\n ktab.addEntry(p, \"pass1\".toCharArray(), 1);\n ktab.addEntry(p, \"pass3\".toCharArray(), 3);\n ktab.addEntry(p, \"pass2\".toCharArray(), 2);\n ktab.addEntry(p, \"pass1\".toCharArray(), 1, true);\n ktab.addEntry(p, \"pass3\".toCharArray(), 3, true);\n ktab.addEntry(p, \"pass2\".toCharArray(), 2, true);\n ktab.addEntry(service, \"pass1\".toCharArray(), 1);\n ktab.addEntry(service, \"pass2\".toCharArray(), 2);\n ktab.addEntry(service, \"pass3\".toCharArray(), 3);\n ktab.addEntry(service, \"pass1\".toCharArray(), 1, true);\n ktab.addEntry(service, \"pass2\".toCharArray(), 2, true);\n ktab.addEntry(service, \"pass3\".toCharArray(), 3, true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/openjdk/jdk/commit/42b61014b3e688f96417feec65ce5bf4552757b7", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " * were suppressed, typically by the automatic resource management\n * were suppressed, typically by the {@code try}-with-resources\n * suppressed, typically by the automatic resource management\n * suppressed, typically by the {@code try}-with-resources\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/0f3dd95156a3652b614380a96ade5ba7bb25860a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " Paths paths = Paths.instance(context);\n Paths paths = Paths.instance(context);\n Paths paths = Paths.instance(context);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openjdk/jdk/commit/131c3e10eed7440f865888e998249564258a193e", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 13 ] }, { "input": " String[] args) {\n String... args) {\n String[] args) {\n String... args) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/openjdk/jdk/commit/02332d6aa7ac004e7d5d6ea77f9d6d511a2727e2", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " public static interface OnMatrixChangedListener {\n public interface OnMatrixChangedListener {\n public static interface OnScaleChangeListener {\n public interface OnScaleChangeListener {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/Baseflow/PhotoView/commit/cd786f198c46c5f54c40f20444aaa1b1f2668921", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " EventHandler eventHandler = new EventHandlerStub(countDownLatch);\n EventHandler eventHandler = new EventHandlerStub(countDownLatch);\n final EventHandler eventHandler = new EventHandlerStub(countDownLatch);\n final EventHandler eventHandler = new EventHandlerStub(countDownLatch);\n final EventHandler eventHandler = new EventHandlerStub(countDownLatch);\n final EventHandler eventHandler = new EventHandlerStub(countDownLatch);\n EventHandler eventHandler2 = new EventHandlerStub(countDownLatch);\n EventHandler eventHandler2 = new EventHandlerStub(countDownLatch);\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/LMAX-Exchange/disruptor/commit/0df2eecb761e6cc177b9762495ab76cb8651ebd4", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 9, 2 ] }, { "input": " EventHandler handlerWithBarrier = new EventHandlerStub(countDownLatch);\n EventHandler handlerWithBarrier = new EventHandlerStub(countDownLatch);\n EventHandler handlerWithBarrier = new EventHandlerStub(countDownLatch);\n EventHandler handlerWithBarrier = new EventHandlerStub(countDownLatch);\n EventHandler handlerWithBarrier = new EventHandlerStub(countDownLatch);\n EventHandler handlerWithBarrier = new EventHandlerStub(countDownLatch);\n EventHandler handlerWithBarrier = new EventHandlerStub(countDownLatch);\n EventHandler handlerWithBarrier = new EventHandlerStub(countDownLatch);\n EventHandler handlerWithBarrier = new EventHandlerStub(countDownLatch);\n EventHandler handlerWithBarrier = new EventHandlerStub(countDownLatch);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/LMAX-Exchange/disruptor/commit/0df2eecb761e6cc177b9762495ab76cb8651ebd4", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": " assertThat(sequencer.remainingCapacity(gatingSequences), is(4L));\n sequencer.addGatingSequences(cursor);\n \n assertThat(sequencer.remainingCapacity(), is(4L));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/LMAX-Exchange/disruptor/commit/7c1d6498450ddefc0188e5c7ba3a55e8407df759", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 2, 3, 10, 11, 12 ] }, { "input": " assertThat(sequencer.remainingCapacity(gatingSequences), is(3L));\n assertThat(sequencer.remainingCapacity(), is(3L));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/LMAX-Exchange/disruptor/commit/7c1d6498450ddefc0188e5c7ba3a55e8407df759", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 2, 3, 9, 11, 12 ] }, { "input": " assertThat(sequencer.remainingCapacity(gatingSequences), is(2L));\n assertThat(sequencer.remainingCapacity(), is(2L));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/LMAX-Exchange/disruptor/commit/7c1d6498450ddefc0188e5c7ba3a55e8407df759", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 2, 3, 9, 10, 12 ] }, { "input": " assertThat(sequencer.remainingCapacity(gatingSequences), is(1L));\n assertThat(sequencer.remainingCapacity(), is(1L));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/LMAX-Exchange/disruptor/commit/7c1d6498450ddefc0188e5c7ba3a55e8407df759", "target_edit_idx": 12, "propagatable_edit_idx": [ 0, 2, 3, 9, 10, 11 ] }, { "input": " public ConsumerBarrier createBarrier(final EntryConsumer... entryConsumers)\n public ConsumerBarrier createConsumerBarrier(final EntryConsumer... entryConsumers)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/LMAX-Exchange/disruptor/commit/a65522b596422b1e09b44604359b3aa8d552e19c", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 5, 6, 7, 8, 9 ] }, { "input": "\n return new File(applicationInfo.dataDir, ShareConstants.PATCH_DIRECTORY_NAME);\n final String dirName = (\"oppo\".equalsIgnoreCase(Build.MANUFACTURER) && Build.VERSION.SDK_INT == 22)\n ? ShareConstants.PATCH_DIRECTORY_NAME_SPEC : ShareConstants.PATCH_DIRECTORY_NAME;\n return new File(applicationInfo.dataDir, dirName);\n\n return new File(applicationInfo.dataDir, ShareConstants.PATCH_DIRECTORY_NAME);\n final String dirName = (\"oppo\".equalsIgnoreCase(Build.MANUFACTURER) && Build.VERSION.SDK_INT == 22)\n ? ShareConstants.PATCH_DIRECTORY_NAME_SPEC : ShareConstants.PATCH_DIRECTORY_NAME;\n return new File(applicationInfo.dataDir, dirName);\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/Tencent/tinker/commit/9840dd0307f01b33832a4015242a2f89129d4b48", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " private void setImageExtras(EncodedImage encodedImage, CloseableImage image) {\n private void setImageExtras(\n EncodedImage encodedImage, CloseableImage image, int lastScheduledScanNumber) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/facebook/fresco/commit/b7db1803feda7946f3d406eb20ef194ec1522f0d", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " mFrescoContext\n .getImagePipelineUtils()\n .buildImageRequest(uri, imageOptions != null ? imageOptions : ImageOptions.defaults());\n mImagePipelineUtils.buildImageRequest(\n uri, imageOptions != null ? imageOptions : ImageOptions.defaults());\n mFrescoContext\n .getImagePipelineUtils()\n .buildEncodedImageRequest(\n uri, imageOptions != null ? imageOptions : ImageOptions.defaults());\n mImagePipelineUtils.buildEncodedImageRequest(\n uri, imageOptions != null ? imageOptions : ImageOptions.defaults());\n mFrescoContext\n .getImagePipelineUtils()\n .buildEncodedImageRequest(\n uri, imageOptions != null ? imageOptions : ImageOptions.defaults());\n mImagePipelineUtils.buildEncodedImageRequest(\n uri, imageOptions != null ? imageOptions : ImageOptions.defaults());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/fresco/commit/4027f2f72442296ad0c7ddfeb13ab5bc2b91a542", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " return pipeline.prefetchToBitmapCache(imageRequest, callerContext, requestListener);\n return mImagePipeline.prefetchToBitmapCache(imageRequest, callerContext, requestListener);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/fresco/commit/4027f2f72442296ad0c7ddfeb13ab5bc2b91a542", "target_edit_idx": 11, "propagatable_edit_idx": [ 12, 13 ] }, { "input": " public void setDataSource(@Nullable DataSource> dataSource) {\n public synchronized void setDataSource(\n long imageId, @Nullable DataSource> dataSource) {\n if (imageId != mImageId) {\n return;\n }\n if (mDataSource != null && mDataSource != dataSource) {\n mDataSource.close();\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/facebook/fresco/commit/725eb2e507d83551fffb96d93d06f154107c7852", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " return new RoundingOptions(false, cornerRadiusPx, null, false);\n return new RoundingOptions(false, cornerRadiusPx, null, false, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/facebook/fresco/commit/c2daf0fa23340bca480f674365e755b8872159c0", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 6, 7 ] }, { "input": " return new RoundingOptions(false, CORNER_RADIUS_UNSET, radii, false);\n return new RoundingOptions(false, CORNER_RADIUS_UNSET, radii, false, false);\n new RoundingOptions(true, CORNER_RADIUS_UNSET, null, false);\n new RoundingOptions(true, CORNER_RADIUS_UNSET, null, false, false);\n new RoundingOptions(true, CORNER_RADIUS_UNSET, null, true);\n new RoundingOptions(true, CORNER_RADIUS_UNSET, null, true, false);\n return new RoundingOptions(false, cornerRadiusPx, null, false);\n return new RoundingOptions(false, cornerRadiusPx, null, false, false);\n return new RoundingOptions(false, CORNER_RADIUS_UNSET, cornerRadii, antiAliasing);\n return new RoundingOptions(false, CORNER_RADIUS_UNSET, cornerRadii, antiAliasing, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/facebook/fresco/commit/c2daf0fa23340bca480f674365e755b8872159c0", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 5, 7 ] }, { "input": " return new RoundingOptions(false, CORNER_RADIUS_UNSET, cornerRadii, antiAliasing);\n return new RoundingOptions(false, CORNER_RADIUS_UNSET, cornerRadii, antiAliasing, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/facebook/fresco/commit/c2daf0fa23340bca480f674365e755b8872159c0", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 5, 6 ] }, { "input": " mCallOnFadeFinishedListener = index == ACTUAL_IMAGE_INDEX;\n if (index == ACTUAL_IMAGE_INDEX) {\n mCallOnFadeFinishedListener = index == mActualImageLayer;\n if (index == mActualImageLayer) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/facebook/fresco/commit/a3f750c785e23427d099ba1e6714562f6060b4c1", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " @Nullable ImageOptions options,\n @Nullable Object callerContext);\n @Nullable ImageOptions options);\n @Nullable ImageOptions options,\n @Nullable Object callerContext) {\n @Nullable ImageOptions options) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/facebook/fresco/commit/28f18b0084d03a0b9dffe05845eec9d320fbe40f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " eq(mFrescoContext),\n eq(mFrescoDrawable),\n eq(mResources),\n eq(mImageOptions),\n eq(mOverlayDrawable));\n eq(mFrescoDrawable), eq(mResources), eq(mImageOptions), eq(mOverlayDrawable));\n eq(mFrescoContext),\n eq(mFrescoDrawable),\n eq(mResources),\n eq(mImageOptions),\n eq(mOverlayDrawable));\n eq(mFrescoDrawable), eq(mResources), eq(mImageOptions), eq(mOverlayDrawable));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/fresco/commit/0dba76a7fbd7dd383ccdf7339dd0f84662e0d881", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " eq(mOverlayDrawable),\n isNull(Drawable.class));\n eq(mOverlayDrawable));\n eq(mOverlayDrawable),\n isNull(Drawable.class));\n eq(mOverlayDrawable));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/fresco/commit/906ec295b5caac6fa4cb7645dc49b31ac48862cf", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " return CloseableReference.of(\n CloseableStaticBitmap closeableStaticBitmap =\n return CloseableReference.of(\n CloseableStaticBitmap closeableStaticBitmap =\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/facebook/fresco/commit/66df6730e2061ecb3548e04176ca11b210be2b63", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " mCallerContextVerifier.verifyCallerContext(callerContext);\n mCallerContextVerifier.verifyCallerContext(callerContext, true);\n void verifyCallerContext(@Nullable Object callerContext);\n void verifyCallerContext(@Nullable Object callerContext, boolean isPrefetch);\n mCallerContextVerifier.verifyCallerContext(callerContext);\n mCallerContextVerifier.verifyCallerContext(callerContext, false);\n mCallerContextVerifier.verifyCallerContext(callerContext);\n mCallerContextVerifier.verifyCallerContext(callerContext, false);\n public void verifyCallerContext(@Nullable Object callerContext) {\n public void verifyCallerContext(@Nullable Object callerContext, boolean isPrefetch) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/facebook/fresco/commit/e521032c2abf510611f2edfa11972d77862f6234", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": " mCallerContextVerifier.verifyCallerContext(callerContext);\n mCallerContextVerifier.verifyCallerContext(callerContext, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/facebook/fresco/commit/e521032c2abf510611f2edfa11972d77862f6234", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4 ] }, { "input": " if (mListeners != null) {\n for (int i = 0, size = mListeners.size(); i < size; i++) {\n mListeners.get(i).onSubmit(id, callerContext);\n }\n if (mListener != null) {\n mListener.onSubmit(id, callerContext);\n if (mListeners != null) {\n for (int i = 0, size = mListeners.size(); i < size; i++) {\n mListeners.get(i).onPlaceholderSet(id, placeholder);\n }\n if (mListener != null) {\n mListener.onPlaceholderSet(id, placeholder);\n if (mListeners != null) {\n for (int i = 0, size = mListeners.size(); i < size; i++) {\n mListeners.get(i).onFinalImageSet(id, imageOrigin, imageInfo, drawable);\n }\n if (mListener != null) {\n mListener.onFinalImageSet(id, imageOrigin, imageInfo, drawable);\n if (mListeners != null) {\n for (int i = 0, size = mListeners.size(); i < size; i++) {\n mListeners.get(i).onIntermediateImageSet(id, imageInfo);\n }\n if (mListener != null) {\n mListener.onIntermediateImageSet(id, imageInfo);\n if (mListeners != null) {\n for (int i = 0, size = mListeners.size(); i < size; i++) {\n mListeners.get(i).onIntermediateImageFailed(id, throwable);\n }\n if (mListener != null) {\n mListener.onIntermediateImageFailed(id, throwable);\n if (mListeners != null) {\n for (int i = 0, size = mListeners.size(); i < size; i++) {\n mListeners.get(i).onFailure(id, error, throwable);\n }\n if (mListener != null) {\n mListener.onFailure(id, error, throwable);\n if (mListeners != null) {\n for (int i = 0, size = mListeners.size(); i < size; i++) {\n mListeners.get(i).onRelease(id);\n }\n if (mListener != null) {\n mListener.onRelease(id);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4166666666666667, "commit_url": "https://github.com/facebook/fresco/commit/80514b02f672c905c848932fa95dcd072a8a3c1e", "target_edit_idx": 6, "propagatable_edit_idx": [ 7, 8, 9, 10, 11, 12 ] }, { "input": " if (mListeners != null) {\n for (int i = 0, size = mListeners.size(); i < size; i++) {\n mListeners.get(i).onIntermediateImageFailed(id, throwable);\n }\n if (mListener != null) {\n mListener.onIntermediateImageFailed(id, throwable);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.47619047619047616, "commit_url": "https://github.com/facebook/fresco/commit/80514b02f672c905c848932fa95dcd072a8a3c1e", "target_edit_idx": 10, "propagatable_edit_idx": [ 6, 7, 8, 9, 11, 12 ] }, { "input": " private final int mMaxSize;\n private final int mMaxPoolSize;\n private int mMaxBitmapSize;\n trimTo((int) (mMaxSize * (1f - trimType.getSuggestedTrimRatio())));\n trimTo((int) (mMaxPoolSize * (1f - trimType.getSuggestedTrimRatio())));\n if (mCurrentSize > mMaxSize) {\n trimTo(mMaxSize);\n if (mCurrentSize > mMaxPoolSize) {\n trimTo(mMaxPoolSize);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/facebook/fresco/commit/b7737137b618aefa5dcb644721886b09ede86871", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " private final Executor mCpuBoundExecutor;\n private final Executor mDecodeExecutor;\n private final Executor mBackgroundExecutor;\n private final Executor mLightWeightBackgroundExecutor;\n\n public DefaultExecutorSupplier(int numCpuBoundThreads) {\n ThreadFactory backgroundPriorityThreadFactory =\n new PriorityThreadFactory(Process.THREAD_PRIORITY_BACKGROUND);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/facebook/fresco/commit/faf830b52ccc93ed54faf19f753d457b5a3a3dd2", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " boolean acceptImplicitImports) {\n return getLatestDefs(ControlFlowCache.getControlFlow(block), varName, anchor, acceptTypeAssertions, acceptImplicitImports);\n boolean acceptImplicitImports, @NotNull TypeEvalContext context) {\n return getLatestDefs(ControlFlowCache.getControlFlow(block), varName, anchor, acceptTypeAssertions, acceptImplicitImports, context);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8a4dfe563c60baaa233b7e064d336e2b0bcc4ff7", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 6, 9, 10 ] }, { "input": " @NotNull GradleBuild buildModel,\n @NotNull Collection buildModels,\n @NotNull GradleBuild buildModel,\n @NotNull Collection buildModels,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0323c1c7102b3652377baa2729604d3c8eab0b9c", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " GradleModelProviderUtil.buildModels(controller, buildModel, GradleSourceSetModel.class, modelConsumer);\n GradleModelProviderUtil.buildModels(controller, buildModels, GradleSourceSetModel.class, modelConsumer);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0323c1c7102b3652377baa2729604d3c8eab0b9c", "target_edit_idx": 7, "propagatable_edit_idx": [ 3 ] }, { "input": "// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7d482a46cee84da4e16e759059c2547a3195e060", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " synchronized (myEvaluationStateLock) {\n myEvaluationDispatcher.addListener(evaluationListener);\n }\n myEvaluationDispatcher.addListener(evaluationListener);\n synchronized (myEvaluationStateLock) {\n myEvaluationDispatcher.removeListener(evaluationListener);\n }\n myEvaluationDispatcher.removeListener(evaluationListener);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/33ae254a88e9312bbbce8029e59165ecf6b5e769", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " synchronized (myEvaluationStateLock) {\n suspendContext.setIsEvaluating(myEvaluationContext);\n }\n suspendContext.setIsEvaluating(myEvaluationContext);\n synchronized (myEvaluationStateLock) {\n suspendContext.setIsEvaluating(null);\n }\n suspendContext.setIsEvaluating(null);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/33ae254a88e9312bbbce8029e59165ecf6b5e769", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " info.removeFileLeverComponent(fileEditor);\n i.removeFileLeverComponent(fileEditor);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4a71d4ac261ecf5e672c714a0fc5aaa87e8f5786", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " if (description == null) {\n if (description == null && StringUtil.isEmpty(new String(getPassword()))) {\n if (description == null) {\n if (description == null && StringUtil.isEmpty(getText())) {\n if (description == null) {\n if (description == null && StringUtil.isEmpty(getText())) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c80bdeef12966a7a5f308dcb73c9cdad1c4c00d9", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " if (cached == result) {\n if (cached == toStore) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b5dc3dd706ec12ffd41d2a4e8c68446ab0bf923f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " Map map = indicator.getUserData(HIGHLIGHTING_SESSION);\n if (map != null) {\n map.remove(file);\n }\n clearHighlightingSession(indicator, file);\n Map map = indicator.getUserData(HIGHLIGHTING_SESSION);\n if (map != null) {\n map.remove(file);\n }\n clearHighlightingSession(indicator, file);\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0d7ec138567b0392bb4b123de8e7d378153f6955", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " static void clearProgressIndicator(@NotNull DaemonProgressIndicator indicator) {\n static void clearAllHighlightingSessions(@NotNull DaemonProgressIndicator indicator) {\n myUpdateProgress.values().forEach(HighlightingSessionImpl::clearProgressIndicator);\n myUpdateProgress.values().forEach(HighlightingSessionImpl::clearAllHighlightingSessions);\n HighlightingSessionImpl.clearProgressIndicator(this);\n HighlightingSessionImpl.clearAllHighlightingSessions(this);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0d7ec138567b0392bb4b123de8e7d378153f6955", "target_edit_idx": 4, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " if (isGradleOlderOrSameAs(\"7.0.2\")) {\n if (GradleVersionUtil.isGradleOlderOrSameAs(getCurrentGradleBaseVersion(), \"7.0.2\")) {\n if (isGradleOlderOrSameAs(\"7.0.2\")) {\n if (GradleVersionUtil.isGradleOlderOrSameAs(getCurrentGradleBaseVersion(), \"7.0.2\")) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/cb1696c1783323f6de4f65713c6d377792937263", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " /**\n * @deprecated See {@link GradleVersionUtil#isCurrentGradleNewerThan} for details\n */\n @Deprecated\n @SuppressWarnings(\"DeprecatedIsStillUsed\")\n protected boolean isGradleOlderOrSameAs(@NotNull String ver) {\n return GradleVersionUtil.isGradleOlderOrSameAs(getCurrentGradleBaseVersion(), ver);\n }\n\n /**\n * @deprecated See {@link GradleVersionUtil#isCurrentGradleNewerThan} for details\n */\n @Deprecated\n @SuppressWarnings(\"DeprecatedIsStillUsed\")\n protected boolean isGradleNewerThan(@NotNull String ver) {\n return GradleVersionUtil.isGradleNewerThan(getCurrentGradleBaseVersion(), ver);\n }\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/cb1696c1783323f6de4f65713c6d377792937263", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c45f04193576d082b03c2c9ea534231c97219629", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 5 ] }, { "input": " * @see Persisting States\n * @see Persisting State of Components (IntelliJ Platform Docs)\n * See Persisting States.\n * See Persisting State of Components (IntelliJ Platform Docs).\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c45f04193576d082b03c2c9ea534231c97219629", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " Document document = myEditor.getDocument();\n return document.getLineCount() == 0 || document.getLineNumber(myEditor.getCaretModel().getOffset()) == document.getLineCount() - 1;\n var editor = ClientEditorManager.getClientEditor(myEditor, ClientId.getCurrentOrNull());\n Document document = editor.getDocument();\n return document.getLineCount() == 0 || document.getLineNumber(editor.getCaretModel().getOffset()) == document.getLineCount() - 1;\n myEditor.getCaretModel().moveToLogicalPosition(position);\n editor.getCaretModel().moveToLogicalPosition(position);\n EditorUtil.scrollToTheEnd(myEditor);\n EditorUtil.scrollToTheEnd(editor);\n int lastLine = Math.max(0, myEditor.getDocument().getLineCount() - 1);\n LogicalPosition currentPosition = myEditor.getCaretModel().getLogicalPosition();\n int lastLine = Math.max(0, editor.getDocument().getLineCount() - 1);\n LogicalPosition currentPosition = editor.getCaretModel().getLogicalPosition();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/JetBrains/intellij-community/commit/620f32ef527183a36b6d20145048828fa2a72d34", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": " myEditor.getCaretModel().moveToLogicalPosition(position);\n editor.getCaretModel().moveToLogicalPosition(position);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/620f32ef527183a36b6d20145048828fa2a72d34", "target_edit_idx": 8, "propagatable_edit_idx": [ 4, 6, 7 ] }, { "input": "import com.intellij.util.Function;\nimport com.intellij.util.Function;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/766bb513a35fc5a535fc3e4a8d540f1d2e139967", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " doInsertUserInput(offset, text);\n doInsertUserInput(editor, offset, text);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/74998b45539304e7121ef3a64d0581958a833d6d", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " doInsertUserInput(offset, chunkText);\n doInsertUserInput(editor, offset, chunkText);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/74998b45539304e7121ef3a64d0581958a833d6d", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " private void doInsertUserInput(int offset, @NotNull String text) {\n private void doInsertUserInput(@NotNull Editor editor, int offset, @NotNull String text) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/74998b45539304e7121ef3a64d0581958a833d6d", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " myIcon = icon;\n myText = text;\n myIcon = icon;\n myText = text;\n }\n\n public void updateFromPresentation(@NotNull Presentation presentation) {\n myPresentation.copyFrom(presentation, null, true);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d89ae9c1e21cc138140c8e99d95b235fc5fe04b6", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " return getLanguageLevel(builder).isAtLeast(LanguageLevel.JDK_17) &&\n return JavaFeature.SEALED_CLASSES.isSufficient(getLanguageLevel(builder)) &&\n getLanguageLevel(builder).isAtLeast(LanguageLevel.JDK_14))) {\n JavaFeature.SWITCH_EXPRESSION.isSufficient(getLanguageLevel(builder)))) {\n if (!getLanguageLevel(builder).isAtLeast(LanguageLevel.JDK_17) ||\n if (!JavaFeature.SEALED_CLASSES.isSufficient(getLanguageLevel(builder)) ||\n getLanguageLevel(builder).isAtLeast(LanguageLevel.JDK_10)) {\n JavaFeature.LVTI.isSufficient(getLanguageLevel(builder))) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5715a9cac526d44095c4d60b1cec689e67f053eb", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 3, 6 ] }, { "input": " public void removeIndexableSet(@NotNull IndexableFileSet set) {\n if (!myIndexableSets.removeIf(p -> p.first == set)) return;\n public void onProjectClosing(@NotNull IndexableFileSet set) {\n Pair p = ContainerUtil.find(myIndexableSets, pair -> pair.first == set);\n if (p == null) return;\n myIndexableSets.remove(p);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/88ad0eb3d2daf1089beffd813262ebbd436e64aa", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " final PsiElement var =\n final PsiElement decl =\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b145cd27846443ad3353caa10850c4f2362fb235", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " boolean useLigatures = !Patches.TEXT_LAYOUT_IS_SLOW && preferences.useLigatures();\n boolean useLigatures = preferences.useLigatures();\n boolean useLigatures = !Patches.TEXT_LAYOUT_IS_SLOW && preferences.useLigatures();\n boolean useLigatures = preferences.useLigatures();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b2773d20d900b9bfa03352c72e60714484bcb9b8", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " if (isGradleOlderThan(\"3.4\") || isGradleNewerThan(\"4.5\")) {\n if (isGradleOlderThan(\"3.4\") || isGradleAtLeast(\"4.5\")) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3157894736842105, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e3ca054733b06c698b2e72154341bb9f26780761", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": " if (isGradleNewerThan(\"4.5\")) {\n if (isGradleAtLeast(\"4.5\")) {\n if (isGradleOlderThan(\"3.4\") || isGradleNewerThan(\"4.5\")) {\n if (isGradleOlderThan(\"3.4\") || isGradleAtLeast(\"4.5\")) {\n if (isGradleNewerThan(\"4.5\")) {\n if (isGradleAtLeast(\"4.5\")) {\n if (isGradleNewerThan(\"4.5\")) {\n if (isGradleAtLeast(\"4.5\")) {\n else if (isGradleNewerThan(\"4.5\")) {\n else if (isGradleAtLeast(\"4.5\")) {\n if (isGradleOlderThan(\"3.4\") || isGradleNewerThan(\"4.5\")) {\n if (isGradleOlderThan(\"3.4\") || isGradleAtLeast(\"4.5\")) {\n if (isGradleOlderThan(\"3.4\") || isGradleNewerThan(\"4.5\")) {\n if (isGradleOlderThan(\"3.4\") || isGradleAtLeast(\"4.5\")) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.21052631578947367, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e3ca054733b06c698b2e72154341bb9f26780761", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6 ] }, { "input": " public Pair createDraggedImage(DnDAction action, Point dragOrigin) {\n public @Nullable Pair createDraggedImage(DnDAction action, Point dragOrigin, @NotNull DnDDragStartBean bean) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/370b33aec6599f555f901fe70270f6d917bc71ce", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4 ] }, { "input": " if (myFileBasedIndex.doTraceStubUpdates(indexId)) {\n if (FileBasedIndexEx.doTraceStubUpdates(indexId)) {\n if (myFileBasedIndex.doTraceIndexUpdates()) {\n if (FileBasedIndexEx.doTraceIndexUpdates()) {\n if (myFileBasedIndex.doTraceStubUpdates(indexId)) {\n if (FileBasedIndexEx.doTraceStubUpdates(indexId)) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d3d70dcb74cb20957a7856db48fd7c05d3059b19", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " public FileEditor getCurrentEditor() {\n public FileEditor getCurrentEditor(@Nullable Project project) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6c350229f07814fa6def67216e3b414a56dceaf0", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 2, 11, 6 ] }, { "input": " stackProc.simplifyStackVars(root, mt, cl);\n StackVarsProcessor.simplifyStackVars(root, mt, cl);\n stackProc.simplifyStackVars(root, mt, cl);\n StackVarsProcessor.simplifyStackVars(root, mt, cl);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3e51c05b698754f6bcd084cbc9e83396d5a7674f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " protected PsiBasedModCommandAction(@NotNull Class elementClass, @NotNull Predicate filter) {\n protected PsiBasedModCommandAction(@NotNull Class elementClass, @NotNull BiFunction filter) {\n protected PsiUpdateModCommandAction(@NotNull Class elementClass, @NotNull Predicate filter) {\n protected PsiUpdateModCommandAction(@NotNull Class elementClass, @NotNull BiFunction filter) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1d0d5d604efdf292b2e331b2705f80ea88a6d53a", "target_edit_idx": 2, "propagatable_edit_idx": [ 12 ] }, { "input": " private E getIfSatisfied(PsiElement element) {\n private E getIfSatisfied(PsiElement element, @NotNull ActionContext context) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1d0d5d604efdf292b2e331b2705f80ea88a6d53a", "target_edit_idx": 9, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " formatElement(element, range, false);\n formatElement(element, range, canChangeWhitespaceOnly);\n formatElement(element, range, false);\n formatElement(element, range, canChangeWhitespaceOnly);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fe5e1bf04f82ba9eb0e4f2b40c1d6a5c7319b16b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " public void testHashMap() {\n public void testTooExpensiveToCheck() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f8add5638fdfe1694433aced95a913f4ddd6fa06", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " public static void uninstallAfterRestart(@NotNull Path pluginPath) throws IOException {\n addActionCommand(new DeleteCommand(pluginPath));\n public static void uninstallAfterRestart(@NotNull IdeaPluginDescriptorImpl pluginDescriptor) throws IOException {\n if (pluginDescriptor.isBundled()) {\n throw new IllegalArgumentException(\"Plugin is bundled: \" + pluginDescriptor.getPluginId());\n }\n addActionCommand(new DeleteCommand(pluginDescriptor.getPluginPath()));\n }\n\n @ApiStatus.Internal\n public static boolean unloadDynamicPlugin(@Nullable JComponent parentComponent,\n @NotNull IdeaPluginDescriptorImpl pluginDescriptor,\n boolean isUpdate) {\n var options = new DynamicPlugins.UnloadPluginOptions().withDisable(false).withWaitForClassloaderUnload(true).withUpdate(isUpdate);\n return parentComponent != null ?\n DynamicPlugins.INSTANCE.unloadPluginWithProgress(null, parentComponent, pluginDescriptor, options) :\n DynamicPlugins.INSTANCE.unloadPlugin(pluginDescriptor, options);\n uninstallAfterRestart(pluginPath);\n uninstallAfterRestart(pluginDescriptor);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/cee55b62c47fb715d9ef54c16318e1461a722a82", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " myMountedFS = CoreRoutingFileSystemProvider.createInstanceWithContextClassLoader(\n myMountedFS = myProvider.createInstance(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9804dfc2ae82de6c613e297990702ba4c8b7a9d9", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": " ContainerUtil.quickSort(filteredInfos, UpdateHighlightersUtil.BY_START_OFFSET_NO_DUPS);\n ContainerUtil.quickSort(filteredInfos, UpdateHighlightersUtil.BY_ACTUAL_START_OFFSET_NO_DUPS);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0369b6d5378b102aa2ea7988ce621ceb94de5ef4", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 9, 4 ] }, { "input": " myIncludeOverloadedMethodsAvailable = calculateMyIncludeOverloadedMethodsAvailable();\n myIncludeOverloadedMethodsAvailable = isIncludeOverloadedMethodsAvailable();\n public boolean calculateMyIncludeOverloadedMethodsAvailable() {\n public boolean isIncludeOverloadedMethodsAvailable() {\n public boolean calculateMyIncludeOverloadedMethodsAvailable() {\n public boolean isIncludeOverloadedMethodsAvailable() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/797424b83f4108ef73ca24e052c5930ad2ea3633", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/148e90589e702da1ac41c72bf2da1cc43ae4d9f4", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "import com.intellij.openapi.util.BooleanGetter;\nimport com.intellij.openapi.util.BooleanGetter;\nimport com.intellij.openapi.util.BooleanGetter;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d308ee8292934e202dc97d81742222a4b1506865", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 10 ] }, { "input": " @NotNull BooleanGetter condition) {\n return createLineSeparatorHighlighter(editor, offset1, offset2, new SimpleSeparatorPresentation(condition));\n @NotNull BooleanSupplier visibilityCondition) {\n return createLineSeparatorHighlighter(editor, offset1, offset2, new SimpleSeparatorPresentation(visibilityCondition));\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d308ee8292934e202dc97d81742222a4b1506865", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " SimpleSeparatorPresentation(@NotNull BooleanGetter condition) {\n myCondition = condition;\n SimpleSeparatorPresentation(@NotNull BooleanSupplier visibilityCondition) {\n myVisibilityCondition = visibilityCondition;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d308ee8292934e202dc97d81742222a4b1506865", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "/*\n * Copyright 2000-2014 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n/*\n * Copyright 2000-2017 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n/*\n * Copyright 2000-2014 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/53e922f33b0aed5bf5cfb99b35625b2990906b91", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " List infos = DaemonCodeAnalyzerEx.getInstanceEx(getProject()).getFileLevelHighlights(getProject(), getFile());\n List infos = ((DaemonCodeAnalyzerImpl)DaemonCodeAnalyzerEx.getInstanceEx(getProject())).getFileLevelHighlights(getProject(), getFile());\n List infos = DaemonCodeAnalyzerEx.getInstanceEx(getProject()).getFileLevelHighlights(getProject(), getFile());\n List infos = ((DaemonCodeAnalyzerImpl)DaemonCodeAnalyzerEx.getInstanceEx(getProject())).getFileLevelHighlights(getProject(), getFile());\n List infos = DaemonCodeAnalyzerEx.getInstanceEx(file.getProject()).getFileLevelHighlights(file.getProject(), file);\n List infos = ((DaemonCodeAnalyzerImpl)DaemonCodeAnalyzerEx.getInstanceEx(file.getProject())).getFileLevelHighlights(file.getProject(), file);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5a1b191c79831752ffef023dd6978594c3e5b0c0", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 10 ] }, { "input": " var message = ObjectUtils.chooseNotNull(ObjectUtils.doIfNotNull(failure, it -> it.getMessage()), \"\");\n var message = ObjectUtils.doIfNotNull(failure, it -> it.getMessage());\n var message = ObjectUtils.chooseNotNull(ObjectUtils.doIfNotNull(failure, it -> it.getMessage()), \"\");\n var message = ObjectUtils.doIfNotNull(failure, it -> it.getMessage());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/564d31518e2143fd0c02a7b94253ffb9bb37667b", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "import com.intellij.util.Consumer;\nimport com.intellij.util.Consumer;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/514ca32841688db1885c6d272e7cb836a36c90b5", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " public void consume(DataPack t) {\n public void accept(DataPack t) {\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/514ca32841688db1885c6d272e7cb836a36c90b5", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": " for (var cmdOption : parameters.getCmdOptions()) {\n for (var cmdOption : parameters.getOptions()) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5beb9dc08b9ac9eecde8707b9acd62d6e0cdbb9c", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " JavaTestFramework framework = getCurrentFramework(psiClass);\n TestFramework framework = getCurrentFramework(psiClass);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d84bf801ef3663bb530b2f527883ca3ffba9c463", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " PowerSaveMode.setEnabled(true);\n ApplicationManager.getApplication().invokeAndWait(() -> {\n PowerSaveMode.setEnabled(true);\n });\n\n PowerSaveMode.setEnabled(false);\n ApplicationManager.getApplication().invokeAndWait(() -> {\n PowerSaveMode.setEnabled(false);\n });\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7529b7a6b8be1f7938bc0bb270b858d88f314543", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " myStorage.force();\n myStorage.force();\n force();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0aad5d093ed9e1ff4d5fe27d05f1260d4f47992f", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "import com.intellij.util.xmlb.annotations.XCollection;\nimport com.intellij.util.xmlb.annotations.XCollection;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3413acea812418bf7f310deadcd1dfab67ba07ff", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " session.activateSession();\n session.activateSession(true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/76e83689f519fc3545800aee0f43e515a629cc3c", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " session.activateSession();\n session.activateSession(false);\n activateSession();\n activateSession(frameChanged);\n void activateSession() {\n myDebuggerManager.setCurrentSession(this);\n updateExecutionPosition();\n void activateSession(boolean forceUpdateExecutionPosition) {\n boolean sessionChanged = myDebuggerManager.setCurrentSession(this);\n if (sessionChanged || forceUpdateExecutionPosition) {\n updateExecutionPosition();\n }\n session.activateSession();\n session.activateSession(true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/76e83689f519fc3545800aee0f43e515a629cc3c", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fcfe42a39a4b7a2af6835ee90afeaa88ed3bb193", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " public void showHint(@NotNull QuickEvaluateHandler handler, @NotNull Editor editor, @NotNull Point point, @NotNull ValueHintType type) {\n PsiDocumentManager.getInstance(myProject).performWhenAllCommitted(() -> doShowHint(handler, editor, point, type));\n public void showHint(@NotNull QuickEvaluateHandler handler,\n @NotNull Editor editor,\n @NotNull Point point,\n @Nullable EditorMouseEvent e,\n @NotNull ValueHintType type) {\n PsiDocumentManager.getInstance(myProject).performWhenAllCommitted(() -> doShowHint(handler, editor, point, e, type));\n showHint(handler, editor, point, type);\n showHint(handler, editor, point, e, type);\n showHint(handler, editor, point, type);\n showHint(handler, editor, point, e, type);\n showHint(myHandler, editor, editor.logicalPositionToXY(logicalPosition), ValueHintType.MOUSE_CLICK_HINT);\n showHint(myHandler, editor, editor.logicalPositionToXY(logicalPosition), null, ValueHintType.MOUSE_CLICK_HINT);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fcfe42a39a4b7a2af6835ee90afeaa88ed3bb193", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 10, 3 ] }, { "input": " if (earDirectory != resource.earDirectory) return false;\n if (!earDirectory.equals(resource.earDirectory)) return false;\n if (myEarDirectory != resource.myEarDirectory) return false;\n if (!myEarDirectory.equals(resource.myEarDirectory)) return false;\n if (myWarDirectory != resource.myWarDirectory) return false;\n if (!myWarDirectory.equals(resource.myWarDirectory)) return false;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e1a038a4ffae46c6f07a32912e9c5b4627e8ef5b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/eb5233512de09a43c9408fa3674a0acffd5dbdc5", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": " public static final PsiPrimitiveType BYTE = PsiTypes.byteType();\n public static final PsiPrimitiveType BYTE = new PsiPrimitiveType(JvmPrimitiveTypeKind.BYTE);\n public static final PsiPrimitiveType CHAR = PsiTypes.charType();\n public static final PsiPrimitiveType CHAR = new PsiPrimitiveType(JvmPrimitiveTypeKind.CHAR);\n public static final PsiPrimitiveType DOUBLE = PsiTypes.doubleType();\n public static final PsiPrimitiveType DOUBLE = new PsiPrimitiveType(JvmPrimitiveTypeKind.DOUBLE);\n public static final PsiPrimitiveType FLOAT = PsiTypes.floatType();\n public static final PsiPrimitiveType FLOAT = new PsiPrimitiveType(JvmPrimitiveTypeKind.FLOAT);\n public static final PsiPrimitiveType INT = PsiTypes.intType();\n public static final PsiPrimitiveType INT = new PsiPrimitiveType(JvmPrimitiveTypeKind.INT);\n public static final PsiPrimitiveType LONG = PsiTypes.longType();\n public static final PsiPrimitiveType LONG = new PsiPrimitiveType(JvmPrimitiveTypeKind.LONG);\n public static final PsiPrimitiveType SHORT = PsiTypes.shortType();\n public static final PsiPrimitiveType SHORT = new PsiPrimitiveType(JvmPrimitiveTypeKind.SHORT);\n public static final PsiPrimitiveType BOOLEAN = PsiTypes.booleanType();\n public static final PsiPrimitiveType BOOLEAN = new PsiPrimitiveType(JvmPrimitiveTypeKind.BOOLEAN);\n public static final PsiPrimitiveType VOID = PsiTypes.voidType();\n public static final PsiPrimitiveType VOID = new PsiPrimitiveType(JvmPrimitiveTypeKind.VOID);\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/JetBrains/intellij-community/commit/dee388a646f565b7c3cae95e9df5cdeb44ce350e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " List missed = ContainerUtil.newArrayList(myLexTypes, myCurrentLexeme, myLexemeCount);\n List missed = ContainerUtil.subArrayAsList(myLexTypes, myCurrentLexeme, myLexemeCount);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/32324bcb0916c46a15e5428b812d6dabe4082bad", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": " public static @NotNull List newArrayList(T @NotNull [] elements, int start, int end) {\n public static @NotNull List subArrayAsList(T @NotNull [] elements, int start, int end) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/32324bcb0916c46a15e5428b812d6dabe4082bad", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 4, 5 ] }, { "input": " myTraitTypes = ContainerUtil.newArrayList(delegate.getConjuncts(), 1, delegate.getConjuncts().length);\n myTraitTypes = ContainerUtil.subArrayAsList(delegate.getConjuncts(), 1, delegate.getConjuncts().length);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/32324bcb0916c46a15e5428b812d6dabe4082bad", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3, 5 ] }, { "input": " PsiElement element = file.findElementAt(editor.getCaretModel().getOffset());\n PsiElement element = getElement(editor, file);\n PsiElement element = file.findElementAt(editor.getCaretModel().getOffset());\n PsiElement element = getElement(editor, file);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e5fea5533ba480e5f4053aac9434d4bc25733306", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " @Override\n public void setPresentation(@Nullable Icon icon, @NonNls @Nullable String type, @NonNls @NotNull String separator,\n @NonNls @Nullable String value, boolean hasChildren) {\n XValueNodePresentationConfigurator.setPresentation(icon, type, separator, value, hasChildren, this);\n }\n\n @Override\n public void setPresentation(@Nullable Icon icon, @NonNls @Nullable String type, @NonNls @NotNull String separator,\n @NonNls @Nullable String value, boolean hasChildren) {\n XValueNodePresentationConfigurator.setPresentation(icon, type, separator, value, hasChildren, this);\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/dd36237639591f50711bd00e1847b0cc74b2d286", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " FileUtil.copyDir(configDir.toFile(), tempBackupDir, file -> !shouldSkipFileDuringImport(file.getName()));\n FileUtil.copyDir(configDir.toFile(), tempBackupDir, file -> !shouldSkipFileDuringImport(file.toPath(), settings));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3be2d53c01a9d45041f647f606bec81d7cc8a8f0", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " return blockImport(dir, oldConfigDir, newConfigDir, oldPluginsDir) ? FileVisitResult.SKIP_SUBTREE : FileVisitResult.CONTINUE;\n return blockImport(dir, oldConfigDir, newConfigDir, oldPluginsDir, options.importSettings) ? FileVisitResult.SKIP_SUBTREE : FileVisitResult.CONTINUE;\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3be2d53c01a9d45041f647f606bec81d7cc8a8f0", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " if (!blockImport(file, oldConfigDir, newConfigDir, oldPluginsDir)) {\n if (!blockImport(file, oldConfigDir, newConfigDir, oldPluginsDir, options.importSettings)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3be2d53c01a9d45041f647f606bec81d7cc8a8f0", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " private static boolean blockImport(Path path, Path oldConfig, Path newConfig, Path oldPluginsDir) {\n private static boolean blockImport(\n Path path,\n Path oldConfig,\n Path newConfig,\n Path oldPluginsDir,\n @Nullable ConfigImportSettings settings) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3be2d53c01a9d45041f647f606bec81d7cc8a8f0", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " return shouldSkipFileDuringImport(fileName.toString()) ||\n return shouldSkipFileDuringImport(path, settings) ||\n private static boolean shouldSkipFileDuringImport(String fileName) {\n private static boolean shouldSkipFileDuringImport(Path path, @Nullable ConfigImportSettings settings) {\n String fileName = path.getFileName().toString();\n FileUtil.copyDir(configDir.toFile(), tempBackupDir, file -> !shouldSkipFileDuringImport(file.getName()));\n FileUtil.copyDir(configDir.toFile(), tempBackupDir, file -> !shouldSkipFileDuringImport(file.toPath(), settings));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3be2d53c01a9d45041f647f606bec81d7cc8a8f0", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 3 ] }, { "input": " private static boolean shouldSkipFileDuringImport(String fileName) {\n private static boolean shouldSkipFileDuringImport(Path path, @Nullable ConfigImportSettings settings) {\n String fileName = path.getFileName().toString();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3be2d53c01a9d45041f647f606bec81d7cc8a8f0", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 7 ] }, { "input": " @Override\n @RequiresEdt\n protected void onDispose() {\n myModel.clear();\n myFoldingModel.destroy();\n super.onDispose();\n }\n\n @Override\n @RequiresEdt\n protected void onDispose() {\n destroyChangedBlocks();\n myFoldingModel.destroy();\n super.onDispose();\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/25de89f7317109e8e7fd71151fe55d6f8b66c709", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " toggleExcludeOutDir(moduleDataNode, delegatedBuild);\n configureExcludeOutDir(moduleDataNode, delegatedBuild);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/446258ab0172a108f84c371fbf4d0d66d2faf9b4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " if (mySingleRowLayout == null) return;\n int currentUnitsOffset = mySingleRowLayout.getScrollOffset();\n int currentUnitsOffset = myLayout.getScrollOffset();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.029411764705882353, "commit_url": "https://github.com/JetBrains/intellij-community/commit/aecc18dbac62e1865617dd72950b7fd9faaff865", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return addFileToZip(zos, file, relativeName, writtenItemRelativePaths, fileFilter, FileContentProcessor.STANDARD, file.isDirectory());\n return addFileToZip(zos, file, relativeName, writtenItemRelativePaths, fileFilter, file.lastModified());\n }\n\n public static boolean addFileToZip(@NotNull ZipOutputStream zos,\n @NotNull File file,\n @NotNull String relativeName,\n @Nullable Set writtenItemRelativePaths,\n @Nullable FileFilter fileFilter,\n long timestamp) throws IOException {\n return addFileToZip(zos, file, relativeName, writtenItemRelativePaths, fileFilter, FileContentProcessor.STANDARD, timestamp, file.isDirectory());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0138e548e3245c7f740050f3a3c4e038b015ce82", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "import com.intellij.ide.structureView.StructureViewBuilder;\nimport com.intellij.ide.structureView.StructureViewBuilder;\nimport com.intellij.ide.structureView.StructureViewBuilder;\nimport com.intellij.ide.structureView.StructureViewBuilder;\nimport com.intellij.ide.structureView.StructureViewBuilder;\nimport com.intellij.ide.structureView.StructureViewBuilder;\nimport com.intellij.ide.structureView.StructureViewBuilder;\n", "class": "clone", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9677b47bb46e05b229ee8bd6cdac94f7117c9d82", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 6, 8, 10, 12 ] }, { "input": " @Override\n public StructureViewBuilder getStructureViewBuilder() {\n return null;\n }\n\n @Override\n public StructureViewBuilder getStructureViewBuilder() {\n return null;\n }\n\n @Override\n public StructureViewBuilder getStructureViewBuilder() {\n return null;\n }\n\n @Override\n public StructureViewBuilder getStructureViewBuilder() {\n return null;\n }\n\n @Override\n public StructureViewBuilder getStructureViewBuilder() {\n return null;\n }\n\n @Override\n public StructureViewBuilder getStructureViewBuilder() {\n return null;\n }\n\n @Override\n public StructureViewBuilder getStructureViewBuilder() {\n return null;\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9677b47bb46e05b229ee8bd6cdac94f7117c9d82", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 7, 9, 11, 13 ] }, { "input": "import com.intellij.openapi.util.NotNullLazyValue;\nimport com.intellij.openapi.util.NotNullLazyValue;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/da1f87b0b08c49a3df4b92db76d2f64a900cae2f", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " super(NotNullLazyValue.lazy(() -> GitVcs.getInstance(project)), project, GitUtil.DOT_GIT);\n super(project, GitVcs.getKey(), GitUtil.DOT_GIT);\n super(NotNullLazyValue.lazy(() -> HgVcs.getInstance(project)), project, HgUtil.DOT_HG);\n super(project, HgVcs.getKey(), HgUtil.DOT_HG);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/da1f87b0b08c49a3df4b92db76d2f64a900cae2f", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " return isFileExecutable(path, targetConfig);\n boolean executable = isFileExecutable(path, targetConfig);\n if (! executable) {\n LOG.warn(\"File not executable on default sdk flavour:\" + path);\n }\n return executable;\n return isFileExecutable(condaPath, targetConfig);\n boolean executable = isFileExecutable(condaPath, targetConfig);\n if (! executable) {\n Logger.getInstance(CondaEnvSdkFlavor.class).warn(\"file not executable on conda flavor: \" + condaPath);\n }\n return executable;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/cfdfcce091fb9cbf106db51ed7b3437c0bcda316", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " bindProgress.accept(pair.getIndicator());\n AbstractProgressIndicatorExBase taskIndicator = (AbstractProgressIndicatorExBase)pair.getIndicator();\n ProgressIndicatorEx relayToVisibleIndicator = new RelayUiToDelegateIndicator(visibleIndicator);\n suspender.attachToProgress(taskIndicator);\n taskIndicator.addStateDelegate(relayToVisibleIndicator);\n unbindProgress.accept(pair.getIndicator());\n taskIndicator.removeStateDelegate(relayToVisibleIndicator);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/df575de279537c4f3acd50d84eda612140649075", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " public void testComponentClassNotAssignableToInterface() {\n myFixture.testHighlighting(\"ComponentClassNotAssignableToInterface.xml\",\n \"ApplicationComponent.java\");\n }\n\n public void testComponentClassNotAssignableToInterface() {\n myFixture.testHighlighting(\"ComponentClassNotAssignableToInterface.xml\",\n \"ApplicationComponent.kt\");\n }\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8ee8ef71a54552637f774f96761a15e964a12e78", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " addCommonEnvironmentVariables(getInterpreterPath(project, runParams), env);\n addCommonEnvironmentVariables(getInterpreterPath(project, runParams), env, true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1e69327de54e081f64454b9c6ca33609f2c59263", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " addCommonEnvironmentVariables(getInterpreterPath(project, runParams), env);\n boolean addPyCharmHosted = true;\n if (sdk != null) {\n addPyCharmHosted = PySdkExtKt.getOrCreateAdditionalData(sdk).getFlavor().providePyCharmHosted();\n }\n addCommonEnvironmentVariables(getInterpreterPath(project, runParams), env, addPyCharmHosted);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1e69327de54e081f64454b9c6ca33609f2c59263", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 5 ] }, { "input": " protected static void addCommonEnvironmentVariables(@Nullable String homePath, Map env) {\n /**\n * @param addPyCharmHosted see {@link PythonSdkFlavor#providePyCharmHosted()}\n */\n protected static void addCommonEnvironmentVariables(@Nullable String homePath, Map env, boolean addPyCharmHosted) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1e69327de54e081f64454b9c6ca33609f2c59263", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 5 ] }, { "input": " contentPanel.add(mySubSystemLabel);\n myContentPanel.add(mySubSystemLabel);\n contentPanel.add(myTextPane);\n myContentPanel.add(myTextPane);\n JBScrollPane scrollPane = new JBScrollPane(contentPanel, VERTICAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER);\n JBScrollPane scrollPane = new JBScrollPane(myContentPanel, VERTICAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c0d134a9fa5e8d01e280613da56bf6c48428c3fd", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " .addUserData(\"SIMPLE_WINDOW\")\n .addUserData(\"SIMPLE_WINDOW\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/136b2ad40b0ec57eae05c7bb6f1c32e1993cc67a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " maximum += tab.getPreferredSize().width + (isEditorTabs() ? getTabHGap() : 0);\n maximum += tab.getPreferredSize().height + (isEditorTabs() ? getTabHGap() : 0);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/29d4e6de2c04d8d61a65c078e034defaf5a2046f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " * Returns the standard or a custom library table registered by {@link #registerLibraryTable(LibraryTable)} or via {@link CustomLibraryTableDescription}.\n * Returns the standard or a custom library table registered via {@link CustomLibraryTableDescription}.\n * Returns a custom library table registered by {@link #registerLibraryTable(LibraryTable)} or via {@link CustomLibraryTableDescription}.\n * Returns a custom library table registered via {@link CustomLibraryTableDescription}.\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c50e75e98c7c8cdb7e24c51cc5be5f0f18c3e244", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " private final DirectoryIndex myIndex;\n private final ProjectFileIndex myFileIndex;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/13879ef5ee432e1154d35faf41b0b6795798d0f0", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " private static boolean isFileUnderContentRoot(@NotNull DirectoryIndex index, @Nullable VirtualFile file) {\n return file != null && file.isValid() && index.getInfoForFile(file).getContentRoot() != null;\n private boolean isFileUnderContentRoot(@Nullable VirtualFile file) {\n return file != null && file.isValid() && myFileIndex.getContentRootForFile(file, false) != null;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/13879ef5ee432e1154d35faf41b0b6795798d0f0", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " static boolean addCustomRootsForLibrary(@NotNull OrderEntry forOrderEntry,\n @NotNull OrderRootType type,\n @NotNull Collection result,\n @NotNull List customHandlers) {\n static boolean addCustomRootsForLibraryOrSdk(@NotNull LibraryOrSdkOrderEntry forOrderEntry,\n @NotNull OrderRootType type,\n @NotNull Collection result,\n @NotNull List customHandlers) {\n handler.addCustomRootsForLibrary(forOrderEntry, type, urls);\n handler.addCustomRootsForLibraryOrSdk(forOrderEntry, type, urls);\n static boolean addCustomRootUrlsForLibrary(@NotNull OrderEntry forOrderEntry,\n @NotNull OrderRootType type,\n @NotNull Collection result,\n @NotNull List customHandlers) {\n static boolean addCustomRootUrlsForLibraryOrSdk(@NotNull LibraryOrSdkOrderEntry forOrderEntry,\n @NotNull OrderRootType type,\n @NotNull Collection result,\n @NotNull List customHandlers) {\n handler.addCustomRootsForLibrary(forOrderEntry, type, urls);\n handler.addCustomRootsForLibraryOrSdk(forOrderEntry, type, urls);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fc7e372974f60303eec2d7b26ced67054c61d0cc", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " if (OrderEnumeratorBase.addCustomRootsForLibrary(orderEntry, type, result, customHandlers)) {\n if (orderEntry instanceof LibraryOrderEntry \n && OrderEnumeratorBase.addCustomRootsForLibraryOrSdk((LibraryOrSdkOrderEntry)orderEntry, type, result, customHandlers)) {\n if (OrderEnumeratorBase.addCustomRootUrlsForLibrary(orderEntry, type, result, customHandlers)) {\n if (orderEntry instanceof LibraryOrSdkOrderEntry && OrderEnumeratorBase.addCustomRootUrlsForLibraryOrSdk((LibraryOrSdkOrderEntry)orderEntry, type, result, customHandlers)) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fc7e372974f60303eec2d7b26ced67054c61d0cc", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " private void readFeatures(Element groupElement, GroupDescriptor groupDescriptor) {\n private void readFeatures(Element groupElement, GroupDescriptor groupDescriptor, ProductivityFeaturesProvider provider) {\n readFeatures(groupElement, groupDescriptor);\n readFeatures(groupElement, groupDescriptor, provider);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ee7adbf0dab06243f56c01851230655689f8acdc", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": "/*\n * Copyright 2000-2010 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n/*\n * Copyright 2000-2010 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9d50130bbf0a8bf291b675165a12e8852ad0add4", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " _dispatchEvent(myCurrentEvent);\n _dispatchEvent(finalE1);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9568156060f261fd59c572923d2a3468a69a38fb", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "import com.intellij.util.ObjectUtils;\nimport com.intellij.util.ObjectUtils;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1fbb11aceb07960f134254db4a8e4ab65ef63d24", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " @Override\n public @NotNull ActionUpdateThread getActionUpdateThread() {\n return this.getClass() == DefaultActionGroup.class ? ActionUpdateThread.BGT : super.getActionUpdateThread();\n }\n\n\n @Override\n public @NotNull ActionUpdateThread getActionUpdateThread() {\n return getClass() == DefaultCompactActionGroup.class ? ActionUpdateThread.BGT : super.getActionUpdateThread();\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/33e284d0063a90ecf143e37a01c8ecb783093223", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " offset = offset + bin.sizeInBytes();\n offset += bin.sizeInBytes();\n offset = offset + bin.sizeInBytes();\n offset += bin.sizeInBytes();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/21c694f582598b92676df45bdd3bcc0822253801", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " AppDictionaryState cachedDictionaryState = AppDictionaryState.getInstance();\n cachedDictionaryState.addCachedDictListener(__ -> restartInspections(), this);\n if (cachedDictionaryState.getDictionary() == null) {\n cachedDictionaryState.setDictionary(new UserDictionary(AppDictionaryState.DEFAULT_NAME));\n AppDictionaryState appDictionaryState = AppDictionaryState.getInstance();\n appDictionaryState.addAppDictListener(__ -> restartInspections(), this);\n if (appDictionaryState.getDictionary() == null) {\n appDictionaryState.setDictionary(new UserDictionary(AppDictionaryState.DEFAULT_NAME));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/289b85346b62be437c4972795e6e50db7e7c9acc", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " private static void addAction(KeymapGroup group, AnAction action, ActionManager actionManager,\n Condition filtered, boolean forceNonPopup) {\n public static void addAction(KeymapGroup group, AnAction action, ActionManager actionManager,\n Condition filtered, boolean forceNonPopup, boolean skipUnnamedGroups) {\n addAction(group, childAction, actionManager, filtered, true);\n addAction(tgtGroup, childAction, actionManager, filtered, forceNonPopup, skipUnnamedGroups);\n addAction(group, action, actionManager, filtered, false);\n addAction(group, action, actionManager, filtered, false, false);\n addAction(group, action, ActionManager.getInstance(), filtered, forceNonPopup);\n addAction(group, action, ActionManager.getInstance(), filtered, forceNonPopup, false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1bb19ff6a5e85a4725730cf4d6451f18415328d0", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 4, 6 ] }, { "input": " data = validateEditor((Editor)data, component);\n answer = validateEditor((Editor)answer, component);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6c81477198f895109a65a85fc663dfac89205f4c", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/25b7ee92d595cd15f720444a643fe385e10053f6", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " if (myCbSearchTextOccurrences.isEnabled()) {\n if (isSearchForTextOccurrencesEnabled()) {\n if (myCbSearchTextOccurrences.isEnabled()) {\n if (isSearchForTextOccurrencesEnabled()) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/25b7ee92d595cd15f720444a643fe385e10053f6", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " private final RepositorySystemSession defaultSession;\n private final RepositorySystemSession sessionTemplate;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2d309063e7874fa0b0b56545ca44561b82aeab30", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9ac1158d4f7a36e82b8236cda45e7bd6a00040a0", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " throw new RuntimeException(message);\n ApplicationManager.getApplication().invokeLater(() -> {\n ATTENTION.createNotification(JavaCompilerBundle.message(\"notification.title.jps.caches.downloader\"), message, NotificationType.WARNING).notify(project);\n });\n return Collections.emptyMap();\n //throw new RuntimeException(message);\n throw new RuntimeException(message);\n ApplicationManager.getApplication().invokeLater(() -> {\n ATTENTION.createNotification(JavaCompilerBundle.message(\"notification.title.jps.caches.downloader\"), message, NotificationType.WARNING).notify(project);\n });\n return Collections.emptyMap();\n //throw new RuntimeException(message);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/98f41394f993c7b9ddd9f0450edf278ff3fecbfc", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " @ApiStatus.ScheduledForRemoval(inVersion = \"2021.3\")\n @ApiStatus.ScheduledForRemoval(inVersion = \"2022.2\")\n @ApiStatus.ScheduledForRemoval(inVersion = \"2021.3\")\n @ApiStatus.ScheduledForRemoval(inVersion = \"2022.2\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2f780d3dc9dfe9a9b420d32e5654e5e45740232c", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "import com.intellij.openapi.progress.*;\nimport com.intellij.openapi.progress.ProcessCanceledException;\nimport com.intellij.openapi.progress.ProgressIndicator;\nimport com.intellij.openapi.progress.ProgressIndicatorProvider;\nimport com.intellij.openapi.progress.ProgressManager;\nimport com.intellij.openapi.progress.*;\nimport com.intellij.openapi.progress.ProcessCanceledException;\nimport com.intellij.openapi.progress.ProgressIndicator;\nimport com.intellij.openapi.progress.ProgressIndicatorProvider;\nimport com.intellij.openapi.progress.ProgressManager;\nimport com.intellij.openapi.progress.util.ProgressIndicatorBase;\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/JetBrains/intellij-community/commit/889add30a753d17ba412f68714ae306fdbbc7eb2", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9c21952731bff1892ad20ff1b83afefc355c73fe", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " assertAll(\"Detected frameworks: \" + frameworks.toString(),\n assertAll(\"Detected frameworks: \" + frameworks,\n assertAll(\"Detected frameworks: \" + displayNameFrameworks.toString(),\n assertAll(\"Detected frameworks: \" + displayNameFrameworks,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9c21952731bff1892ad20ff1b83afefc355c73fe", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " String after = DateFormatUtil.formatDate(getAfter());\n String before = DateFormatUtil.formatDate(getBefore());\n String after = JBDateFormat.getFormatter().formatDate(getAfter());\n String before = JBDateFormat.getFormatter().formatDate(getBefore());\n String after = DateFormatUtil.formatDate(getAfter());\n String before = DateFormatUtil.formatDate(getBefore());\n String after = JBDateFormat.getFormatter().formatDate(getAfter());\n String before = JBDateFormat.getFormatter().formatDate(getBefore());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1c789717959454d59659836e0a74aae86b3ac8fe", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " return VcsLogBundle.message(\"vcs.log.filter.date.display.name.after\", DateFormatUtil.formatDate(getAfter()));\n return VcsLogBundle.message(\"vcs.log.filter.date.display.name.after\", JBDateFormat.getFormatter().formatDate(getAfter()));\n return VcsLogBundle.message(\"vcs.log.filter.date.display.name.before\", DateFormatUtil.formatDate(getBefore()));\n return VcsLogBundle.message(\"vcs.log.filter.date.display.name.before\", JBDateFormat.getFormatter().formatDate(getBefore()));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1c789717959454d59659836e0a74aae86b3ac8fe", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " return VcsLogBundle.message(\"vcs.log.filter.date.presentation.with.prefix.made.after\", DateFormatUtil.formatDate(getAfter()));\n return VcsLogBundle.message(\"vcs.log.filter.date.presentation.with.prefix.made.after\", JBDateFormat.getFormatter().formatDate(getAfter()));\n return VcsLogBundle.message(\"vcs.log.filter.date.presentation.with.prefix.made.before\", DateFormatUtil.formatDate(getBefore()));\n return VcsLogBundle.message(\"vcs.log.filter.date.presentation.with.prefix.made.before\", JBDateFormat.getFormatter().formatDate(getBefore()));\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1c789717959454d59659836e0a74aae86b3ac8fe", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " return VcsLogBundle.message(\"vcs.log.date.filter.since\", DateFormatUtil.formatDate(after));\n return VcsLogBundle.message(\"vcs.log.date.filter.since\", JBDateFormat.getFormatter().formatDate(after));\n return VcsLogBundle.message(\"vcs.log.date.filter.until\", DateFormatUtil.formatDate(before));\n return VcsLogBundle.message(\"vcs.log.date.filter.until\", JBDateFormat.getFormatter().formatDate(before));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1c789717959454d59659836e0a74aae86b3ac8fe", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " RefElement prev = myRefTable.putIfAbsent(psiAnchor, result);\n RefElement prev = myRefTable.putIfAbsent(psiAnchor, newElement);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/JetBrains/intellij-community/commit/44162b8458dbbf741aca2f71e3550213d8083ba9", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " public static void cancelAllModals() {\n public static void forceLeaveAllModals() {\n invokeLater(ModalityState.any(), Conditions.alwaysFalse(), () -> { cancelAllModals(); });\n invokeLater(ModalityState.any(), Conditions.alwaysFalse(), () -> { forceLeaveAllModals(); });\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6cd553517aa1b36b8f6be18874a0d3a2c8a25b50", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " public void testAfterAnnotations() { doTest(7, \"public\", \"final\", \"class\", \"interface\", \"abstract\", \"enum\", \"record\", null); }\n public void testAfterAnnotationsWithParams() { doTest(7, \"public\", \"final\", \"class\", \"interface\", \"abstract\", \"enum\", \"record\", null); }\n public void testAfterAnnotations() { doTest(9, \"public\", \"final\", \"class\", \"interface\", \"abstract\", \"enum\", \"record\", \"non-sealed\", \"sealed\", null); }\n public void testAfterAnnotationsWithParams() { doTest(9, \"public\", \"final\", \"class\", \"interface\", \"abstract\", \"enum\", \"record\", \"non-sealed\", \"sealed\", null); }\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0449438202247191, "commit_url": "https://github.com/JetBrains/intellij-community/commit/57202d6c23a0eb620363e67c2f72363f182c4be8", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " public void testExtends1() { doTest(2, \"extends\", \"implements\", null); }\n public void testExtends1() { doTest(3, \"extends\", \"implements\", \"permits\", null); }\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.056179775280898875, "commit_url": "https://github.com/JetBrains/intellij-community/commit/57202d6c23a0eb620363e67c2f72363f182c4be8", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " HighlightInfo info = createError(label, message);\n HighlightInfo info = createError(patternVariable, message);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6c6d02ba027f905f09ad5deb183d566fa04d965c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " doMakeVisible(masterSide.getIndex(), startLines, endLines, animate);\n doMakeVisible(masterSide.getIndex(), startLines, endLines, animate,\n myScrollable12.forceSyncVerticalScroll() || myScrollable23.forceSyncVerticalScroll());\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fe31f3675651ada3b34a4472a47b0bd32064faeb", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " protected void doMakeVisible(final int masterIndex, int[] startLines, int[] endLines, final boolean animate) {\n protected void doMakeVisible(final int masterIndex,\n int[] startLines,\n int[] endLines,\n final boolean animate,\n boolean forceSyncVerticalScroll) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fe31f3675651ada3b34a4472a47b0bd32064faeb", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " return reapplyParentFilterIfRequired(null);\n return reapplyParentFilterIfRequired ? reapplyParentFilterIfRequired(null) : null;\n return reapplyParentFilterIfRequired(null);\n return reapplyParentFilterIfRequired ? reapplyParentFilterIfRequired(null) : null;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5d0d8d8894ed4bfcb20d52d1308966b9325ba4bb", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "import org.jetbrains.annotations.ApiStatus;\nimport org.jetbrains.annotations.ApiStatus;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/81e40c475e317ea68387da9d2ce8070e58c2b9d6", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " if (callDelegates(delegate -> delegate.beforeSelectionRemoved(charTyped, project, editor, file))) {\n if (callDelegates(TypedHandlerDelegate::beforeSelectionRemoved, charTyped, project, editor, file)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c8d847d11a566cb11e1ae7972b0bc8bd2ff3752d", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 3, 6, 7 ] }, { "input": " if (callDelegates(delegate -> delegate.beforeCharTyped(charTyped, project, editor, file, fileType))) {\n TypedDelegateFunc func = (delegate, c1, p1, e1, f1) -> delegate.beforeCharTyped(c1, p1, e1, f1, fileType);\n if (callDelegates(func, charTyped, project, editor, file)) {\n private static boolean callDelegates(Function action) {\n private static boolean callDelegates(@NotNull TypedDelegateFunc action, char charTyped, @NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) {\n boolean warned = false;\n boolean handled = callDelegates(delegate -> delegate.checkAutoPopup(charTyped, project, editor, file));\n boolean handled = callDelegates(TypedHandlerDelegate::checkAutoPopup, charTyped, project, editor, file);\n if (callDelegates(delegate -> delegate.beforeSelectionRemoved(charTyped, project, editor, file))) {\n if (callDelegates(TypedHandlerDelegate::beforeSelectionRemoved, charTyped, project, editor, file)) {\n if (callDelegates(delegate -> delegate.charTyped(charTyped, project, editor, file))) {\n if (callDelegates(TypedHandlerDelegate::charTyped, charTyped, project, editor, file)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c8d847d11a566cb11e1ae7972b0bc8bd2ff3752d", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 3, 5, 7 ] }, { "input": " if (callDelegates(delegate -> delegate.charTyped(charTyped, project, editor, file))) {\n if (callDelegates(TypedHandlerDelegate::charTyped, charTyped, project, editor, file)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c8d847d11a566cb11e1ae7972b0bc8bd2ff3752d", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 3, 5, 6 ] }, { "input": "// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/14cba0e7d48c41be87c32d9edddf2170045be5c6", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " PopupHandler.installPopupMenu(myGraphTable, VcsLogActionPlaces.HISTORY_POPUP_ACTION_GROUP, VcsLogActionPlaces.VCS_HISTORY_PLACE);\n PopupHandler.installPopupMenu(myGraphTable, VcsLogActionPlaces.HISTORY_POPUP_ACTION_GROUP, ActionPlaces.VCS_HISTORY_PLACE);\n PopupHandler.installPopupMenu(myGraphTable, VcsLogActionPlaces.POPUP_ACTION_GROUP, VcsLogActionPlaces.VCS_LOG_TABLE_PLACE);\n PopupHandler.installPopupMenu(myGraphTable, VcsLogActionPlaces.POPUP_ACTION_GROUP, ActionPlaces.VCS_LOG_TABLE_PLACE);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9e657808af9d160ab7376ecfbea6c87e466d58d0", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": " ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar(VcsLogActionPlaces.VCS_HISTORY_TOOLBAR_PLACE,\n ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.VCS_HISTORY_TOOLBAR_PLACE,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.35294117647058826, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9e657808af9d160ab7376ecfbea6c87e466d58d0", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 10, 7 ] }, { "input": " myIdLabel = new BaseLabel(myUi, false);\n myIdLabel = new BaseLabel(myUi, Registry.is(\"ide.experimental.ui\"));\n myIdLabel = new BaseLabel(myUi, false) {\n myIdLabel = new BaseLabel(myUi, Registry.is(\"ide.experimental.ui\")) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/aac931d3044642d0f6957ed67ee2e0c8ec9d47fe", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " updateTextAndIcon(myContent, isSelected());\n updateTextAndIcon(myContent, isSelected(), false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/aac931d3044642d0f6957ed67ee2e0c8ec9d47fe", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 5 ] }, { "input": " private class BackAction extends AnAction implements HintManagerImpl.ActionToIgnore {\n protected class BackAction extends AnAction implements HintManagerImpl.ActionToIgnore {\n private class ForwardAction extends AnAction implements HintManagerImpl.ActionToIgnore {\n protected class ForwardAction extends AnAction implements HintManagerImpl.ActionToIgnore {\n private class ShowToolbarAction extends ToggleAction implements HintManagerImpl.ActionToIgnore {\n protected class ShowToolbarAction extends ToggleAction implements HintManagerImpl.ActionToIgnore {\n private class ShowAsToolwindowAction extends AnAction implements HintManagerImpl.ActionToIgnore {\n protected class ShowAsToolwindowAction extends AnAction implements HintManagerImpl.ActionToIgnore {\n private class RestoreDefaultSizeAction extends AnAction implements HintManagerImpl.ActionToIgnore {\n protected class RestoreDefaultSizeAction extends AnAction implements HintManagerImpl.ActionToIgnore {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/cf5608ea8854c1f173bac4a1ebd35f22d6c7fe7b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": " if (!foundPaths.isEmpty()) {\n List paths = ContainerUtil.notNullize(foundPaths);\n if (!paths.isEmpty()) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7c777b8db31db414f83b4e99e9068f40a20199ed", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " private ProcessOutput doStartProcess() throws ExecutionException {\n @Test\n public void executeNoParameters() throws ExecutionException {\n ProcessOutput processOutput = doStartProcess(null);\n String testOutput = processOutput.out.toString();\n assertEmpty(processOutput.err);\n assertTrue(testOutput, testOutput.contains(\"Test1\"));\n assertTrue(testOutput, testOutput.contains(\"Test2\"));\n }\n\n private ProcessOutput doStartProcess(String paramString) throws ExecutionException {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fc1aaf271ef7c2033acea689b016ccaa0c83c95c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " if (args.length > 0 && (CWM_HOST_COMMAND.equals(args[0]) || CWM_HOST_NO_LOBBY_COMMAND.equals(args[0]))) {\n if (args.length > 0 && args[0].startsWith(CWM_HOST_COMMAND_PREFIX)) {\n if (args.length > 0 && (Main.CWM_HOST_COMMAND.equals(args[0]) || Main.CWM_HOST_NO_LOBBY_COMMAND.equals(args[0]))) {\n if (args.length > 0 && args[0].startsWith(Main.CWM_HOST_COMMAND_PREFIX)) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b70decf6adb497adcfaabf1dac37b5bdebe3809a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " void setTitleActions(@NotNull List actions);\n void setTitleActions(@NotNull List actions);\n public void setTitleActions(@NotNull List actions) {\n public void setTitleActions(@NotNull List actions) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/bdcf536595c8dc90b2d3b3d11f0c70ba9c70b598", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " setCustomization(console, indicator, workspaceMap, false, alwaysUpdateSnapshot, userProperties);\n\n MavenWorkspaceMap serverWorkspaceMap = convertWorkspaceMap(workspaceMap);\n setCustomization(console, indicator, serverWorkspaceMap, false, alwaysUpdateSnapshot, userProperties);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/85b4f41cef1be7e3ce65ef1d0e91201a9192d52a", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " (previousCanonical.isTempVariable() && !newCanonical.dependsOn(previousCanonical) ||\n (ControlFlow.isTempVariable(previousCanonical) && !newCanonical.dependsOn(previousCanonical) ||\n if (value instanceof DfaVariableValue && !var.isTempVariable() &&\n !((DfaVariableValue)value).isTempVariable() &&\n (var.getQualifier() == null || !var.getQualifier().isTempVariable())) {\n if (value instanceof DfaVariableValue && !ControlFlow.isTempVariable(var) &&\n !ControlFlow.isTempVariable(((DfaVariableValue)value)) &&\n (var.getQualifier() == null || !ControlFlow.isTempVariable(var.getQualifier()))) {\n if (var.isTempVariable() || (!(dfType instanceof DfReferenceType)) ||\n if (ControlFlow.isTempVariable(var) || (!(dfType instanceof DfReferenceType)) ||\n (((DfaVariableValue)dfaSource).isTempVariable() ||\n (ControlFlow.isTempVariable(((DfaVariableValue)dfaSource)) ||\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/902c5ed252b3496f6dacc5bcda497d394f07cb5a", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 1, 3 ] }, { "input": " int getMinHistoryLineCount() {\n protected int getMinHistoryLineCount() {\n int getMinHistoryLineCount() {\n protected int getMinHistoryLineCount() {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/86bb87334f9c4407dfc1b7e7bff944faf82cdaa4", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " public static void showDiff(AbstractTestProxy testProxy,\n TestFrameworkRunningModel model,\n BiConsumer, ? super Integer> showFunction) {\n @NotNull\n public static ListSelection showDiff(@NotNull AbstractTestProxy testProxy,\n @Nullable TestFrameworkRunningModel model) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/74220ce05a15786007895bcfb29fe247b3b74183", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 4 ] }, { "input": "import org.jetbrains.annotations.Nullable;\nimport org.jetbrains.annotations.Nullable;\n\nimport java.util.Objects;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1ef7d7e9cb2a2f7d2aa362d29e731a467ed58fa5", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " return getCellComponent((T)value, hovered);\n return getCellComponent((TableView)table, (T)value, hovered);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/745c2f46d72f91fa79cd7a5f508dbe6b2238c025", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 10, 6, 9 ] }, { "input": " return getCellComponent((T)value, true);\n return getCellComponent((TableView)table, (T)value, true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/745c2f46d72f91fa79cd7a5f508dbe6b2238c025", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 1, 10, 6 ] }, { "input": " logData.getContainingBranchesGetter().addTaskCompletedListener(containingBranchesListener);\n\n logData.getContainingBranchesGetter().removeTaskCompletedListener(containingBranchesListener);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ab66b4ed9141f3d42adb3e04ad35c13ee1db6b96", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b21a56ae43192d28f76e30175febfb077710c8c1", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " var interceptor = new JavaDfaListener() {\n var listener = new JavaDfaListener() {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/dc9c811997f34197648a88557c4ea4d813abd668", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " if (myData != null) myData.close(releaseIndexContext);\n if (data != null) data.close(releaseIndexContext);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.02564102564102564, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0486d040f0d41041a1a2d1bb32a85d903ee9204b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " ApplicationManager.getApplication().assertIsDispatchThread();\n ApplicationManager.getApplication().assertIsDispatchThread();\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/98a3abbe921bd3c1ec8c0cce3582cdd95257bf10", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " public boolean isZeroBasedLineNumbering() {\n boolean isZeroBasedLineNumbering() {\n public boolean isZeroBasedColumnNumbering() {\n boolean isZeroBasedColumnNumbering() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/751f6dbef678b1430be899e4bc8fb04e6df77233", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": "import com.intellij.ide.actions.ExportToTextFileAction;\nimport com.intellij.ide.util.ExportToFileUtil;\n ApplicationManager.getApplication().invokeLater(() -> ExportToTextFileAction.export(project, ThreadDumpPanel.createToFileExporter(project, threads)), ModalityState.NON_MODAL);\n ApplicationManager.getApplication().invokeLater(() -> ExportToFileUtil.chooseFileAndExport(project, ThreadDumpPanel.createToFileExporter(project, threads)), ModalityState.NON_MODAL);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2bee3340f4f5d0b126d4b0e52efb2e7c19811809", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " if (Presentation.PROP_TEXT.equals(e.getPropertyName())) {\n if (Presentation.PROP_TEXT_WITH_SUFFIX.equals(e.getPropertyName())) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5805aa4ce9c39a876d359c37a222a70652099012", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " protected void flushVariable(@NotNull DfaVariableValue variable, boolean shouldMarkFlushed) {\n DfaVariableValue canonical = canonicalize(variable);\n @Override\n public void flushVariable(@NotNull DfaVariableValue variable, boolean canonicalize) {\n flushVariable(variable, canonicalize, false);\n }\n\n protected void flushVariable(@NotNull DfaVariableValue variable, boolean canonicalize, boolean shouldMarkFlushed) {\n DfaVariableValue canonical = canonicalize ? canonicalize(variable) : variable;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c6f29339aa91af293b180670ccf4bbf67032d5f5", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5, 6 ] }, { "input": " EqClass eqClass = variable.getDependentVariables().isEmpty() ? null : getEqClass(variable);\n DfaVariableValue canonical = canonicalize(variable);\n EqClass eqClass = canonical.getDependentVariables().isEmpty() ? null : getEqClass(canonical);\n eqClass == null ? null : StreamEx.of(eqClass.iterator()).without(variable).min(EqClass.CANONICAL_VARIABLE_COMPARATOR)\n .filter(candidate -> !candidate.dependsOn(variable))\n eqClass == null ? null : StreamEx.of(eqClass.iterator()).without(canonical).min(EqClass.CANONICAL_VARIABLE_COMPARATOR)\n .filter(candidate -> !candidate.dependsOn(canonical))\n myStack.replaceAll(value -> handleStackValueOnVariableFlush(value, variable, newCanonical));\n myStack.replaceAll(value -> handleStackValueOnVariableFlush(value, canonical, newCanonical));\n doFlush(variable, shouldMarkFlushed);\n flushDependencies(variable);\n doFlush(canonical, shouldMarkFlushed);\n flushDependencies(canonical);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/cf2a321abc0cde91adc5fb3be7b626022ffe1725", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " GCUtil.allocateTonsOfMemory(new StringBuilder(), () -> isEverythingCollected() || System.currentTimeMillis() - startTime > timeoutMs);\n GCUtil.allocateTonsOfMemory(new StringBuilder(), EmptyRunnable.getInstance(),\n () -> isEverythingCollected() || System.currentTimeMillis() - startTime > timeoutMs);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ccbf5b94afa428cbee61e3e64739df9c63cc4443", "target_edit_idx": 9, "propagatable_edit_idx": [ 11, 3, 4 ] }, { "input": " if (GCUtil.allocateTonsOfMemory(log, this::isEverythingCollected)) {\n if (GCUtil.allocateTonsOfMemory(log, runWhileWaiting, this::isEverythingCollected)) {\n GCUtil.allocateTonsOfMemory(new StringBuilder(), () -> isEverythingCollected() || System.currentTimeMillis() - startTime > timeoutMs);\n GCUtil.allocateTonsOfMemory(new StringBuilder(), EmptyRunnable.getInstance(),\n () -> isEverythingCollected() || System.currentTimeMillis() - startTime > timeoutMs);\n if (!allocateTonsOfMemory(log, () -> ref.isEnqueued())) {\n if (!allocateTonsOfMemory(log, EmptyRunnable.getInstance(), () -> ref.isEnqueued())) {\n static boolean allocateTonsOfMemory(StringBuilder log, BooleanSupplier until) {\n static boolean allocateTonsOfMemory(@NotNull StringBuilder log, @NotNull Runnable runWhileWaiting, @NotNull BooleanSupplier until) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ccbf5b94afa428cbee61e3e64739df9c63cc4443", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 3, 4 ] }, { "input": "import com.intellij.codeInsight.intention.PriorityAction.Priority;\nimport com.intellij.codeInsight.intention.PriorityAction.Priority;\nimport com.intellij.codeInsight.intention.PriorityAction;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/JetBrains/intellij-community/commit/59907581a637813fc9d63ba69b2186279a583b13", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 3 ] }, { "input": " private static final int MIN_VALUE = 256, STEP = 512;\n private static final int MIN_VALUE = 256, HEAP_INC = 512;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/518365a554c7f182738b8f583383c08a9d9fc101", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " new EditMemorySettingsDialog(VMOptions.MemoryKind.HEAP, false).show();\n new EditMemorySettingsDialog().show();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/518365a554c7f182738b8f583383c08a9d9fc101", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": " final String oldValue = ObjectUtils.notNull(myAttribute.getValue(), \"\");\n final XmlAttribute newAttribute = createAttribute(nameText, oldValue);\n final String oldValue = notNull(myAttribute.getValue(), \"\");\n final XmlAttribute newAttribute = createAttribute(nameText, oldValue, getPreferredQuoteStyle());\n final XmlAttribute attribute = createAttribute(StringUtil.defaultIfEmpty(myAttribute.getName(), \"a\"), valueText);\n final XmlAttribute attribute = createAttribute(StringUtil.defaultIfEmpty(myAttribute.getName(), \"a\"), valueText,\n getPreferredQuoteStyle());\n protected XmlAttribute createAttribute(@NotNull String qname, @NotNull String value) {\n return XmlElementFactory.getInstance(myAttribute.getProject()).createAttribute(qname, value, myAttribute);\n protected XmlAttribute createAttribute(@NotNull String qname, @NotNull String value, @Nullable Character quoteStyle) {\n return XmlElementFactory.getInstance(myAttribute.getProject()).createAttribute(qname, value, quoteStyle, myAttribute);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4ee331409e7ce8c29015fb8852befab399e6cfa7", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " @java.beans.ConstructorProperties(\"someProperty\")\n @java.beans.ConstructorProperties({\"someProperty\"})\n @java.beans.ConstructorProperties(\"someProperty\")\n @java.beans.ConstructorProperties({\"someProperty\"})\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0543a8f3af046210c7f22955c3ba5ebf53631ade", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": " private Object myLastGroupId;\n private Reference myLastGroupId; // weak reference to avoid memleaks when clients pass some exotic objects as commandId\n private Object myLastGroupId;\n private Reference myLastGroupId; // weak reference to avoid memleaks when clients pass some exotic objects as commandId\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/21bbe659870464babe53e0ed1dc6bc77d122017f", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " CardLayoutPanel centralPanel = createCardPanel();\n CardLayoutPanel mainPanel = createCardPanel();\n centralPanel.select(tabList.getSelectedValue(), true);\n mainPanel.select(tabList.getSelectedValue(), true);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/be20986924ce34162bcb8413ebad4bfc6c949d32", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " manager.scheduleArtifactsDownloading(manager.getProjects(), null, mySources, myDocs,\n (AsyncPromise)null);\n manager.scheduleArtifactsDownloading(manager.getProjects(), null, mySources, myDocs, null);\n manager.scheduleArtifactsDownloading(mavenProjects, getDependencies(e), mySources, myDocs,\n (AsyncPromise)null);\n manager.scheduleArtifactsDownloading(mavenProjects, getDependencies(e), mySources, myDocs, null);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e57e32eb82ae921c8fb050c28029ae6d4f13cc9a", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": "import com.intellij.AbstractBundle;\nimport com.intellij.AbstractBundle;\nimport com.intellij.AbstractBundle;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/664c422ebc4430975a8a99001536669b0e1c7a63", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " } else if (VcsDataKeys.LABEL_BEFORE.is(dataId)) {\n } else if (LABEL_BEFORE.is(dataId)) {\n } else if (VcsDataKeys.LABEL_AFTER.is(dataId)) {\n } else if (LABEL_AFTER.is(dataId)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7c829355a63ecb76432087f810638f3cb06cfa59", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " private static AutoImportQuickFix addCandidates(PyElement node, PsiReference reference, String refText, @Nullable String asName) {\n return PyImportCollectorFactory.getInstance().create(node, reference, refText, asName).addCandidates();\n private static AutoImportQuickFix addCandidates(PyElement node, PsiReference reference, String refText) {\n return PyImportCollectorFactory.getInstance().create(node, reference, refText).addCandidates();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d4324ef380b1ffe5cd19c1983157808237aa0e3a", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6a8fbaf2d9080bcb8eb019b6d0acf6756d6b6e68", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " ReadMostlyRWLock() {\n ReadMostlyRWLock(@NotNull Thread writeThread) {\n this.writeThread = writeThread;\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1cc7204197eebc321b31c431e360dcf4e8426a51", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 12 ] }, { "input": " ReadMostlyRWLock lock = new ReadMostlyRWLock();\n lock.setWriteThread(Thread.currentThread());\n ApplicationManager.getApplication().assertIsDispatchThread();\n ReadMostlyRWLock lock = new ReadMostlyRWLock(Thread.currentThread());\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1cc7204197eebc321b31c431e360dcf4e8426a51", "target_edit_idx": 12, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " public static boolean variableIsAssigned(@NotNull PsiVariable variable, @NotNull Predicate safeExpression,\n /**\n * Returns true if the specified variable is assigned in the specified context.\n * Certain assignment can be excluded from consideration using the skipFilter.\n * @param variable the variable to check\n * @param skipFilter when the predicate evaluates to true, then the assignment is ignored\n * @param context the context to check for assignments\n * @return true, if the variable was assigned and the right hand side expression was not filtered out, false otherwise\n */\n public static boolean variableIsAssigned(@NotNull PsiVariable variable, @NotNull Predicate skipFilter,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5109b3246688661b73e02225e34d3aadceb0a378", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 11, 4 ] }, { "input": "import com.intellij.util.concurrency.AtomicFieldUpdater;\nimport com.intellij.util.concurrency.AtomicFieldUpdater;\nimport com.intellij.util.concurrency.AtomicFieldUpdater;\nimport com.intellij.util.concurrency.AtomicFieldUpdater;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/81ea3fa36c92be38672c54fc433258d3d60b52e6", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 11, 4 ] }, { "input": " /**\n * @return one byte from input stream\n */\n public byte read() {\n throw new IllegalStateException(\"Not implemented yet\");\n }\n /**\n * @return one byte from input stream\n */\n public byte read() {\n throw new IllegalStateException(\"Not implemented yet\");\n }\n /**\n * @return n bytes from input stream\n */\n public byte[] read(int n) {\n throw new IllegalStateException(\"Not implemented yet\");\n }\n /**\n * @return n bytes from input stream\n */\n public byte[] read(int n) {\n throw new IllegalStateException(\"Not implemented yet\");\n }\n /**\n * @return one line from input stream as String\n */\n public String readLine() {\n throw new IllegalStateException(\"Not implemented yet\");\n }\n /**\n * @return one line from input stream as String\n */\n public String readLine() {\n throw new IllegalStateException(\"Not implemented yet\");\n }\n /**\n * @return all lines from input stream as List of Strings\n */\n public List lines() {\n throw new IllegalStateException(\"Not implemented yet\");\n }\n /**\n * @return all lines from input stream as List of Strings\n */\n public List lines() {\n throw new IllegalStateException(\"Not implemented yet\");\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/97dc240ec55428815676a36560c0f76425b6a67c", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": "import com.intellij.psi.codeStyle.CodeStyleSettingsManager;\nimport com.intellij.psi.codeStyle.CodeStyleSettingsManager;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/de45de0d6190a81e4f6e25ca95dc025ec3151478", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " if (file instanceof VirtualFileWithoutContent) return false;\n if (DiffUtil.isFileWithoutContent(file)) return false;\n if (file instanceof VirtualFileWithoutContent) return false;\n if (DiffUtil.isFileWithoutContent(file)) return false;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ed6aa26d4353b728cd27306a4bdd7392e27c0ca4", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " JComponent getKeyComponent(@NotNull JList list);\n JComponent getKeyComponent(@NotNull JComponent parent);\n public JComponent getKeyComponent(@NotNull JList list) {\n public JComponent getKeyComponent(@NotNull JComponent parent) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/93dd0059ad0e1c3c7f844ffec641b5752156fb2c", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " myList = list;\n return super.getKeyComponent(list);\n myParent = parent;\n return super.getKeyComponent(parent);\n if (myList != null) {\n myList.repaint();\n if (myParent != null) {\n myParent.repaint();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/93dd0059ad0e1c3c7f844ffec641b5752156fb2c", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " return location.getOpenFileDescriptor();\n return location.getNavigatable();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b5658d3638e6b4287cf93c0cf1fc6759b33d4de6", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " gearActions.add(new ToggleShowDocsOnHoverAction());\n gearActions.add(new ToggleShowDocsOnHoverAction(myManager, false));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/24ea2dc034bf241738ea66e8ebc8df5eb3a4f955", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " @Nullable CancellationTokenSource cancellationTokenSource) {\n @Nullable CancellationTokenSource cancellationTokenSource,\n @Nullable GradleExecutionSettings settings) {\n @Nullable CancellationToken cancellationToken) {\n @Nullable CancellationToken cancellationToken,\n @Nullable GradleExecutionSettings settings) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/dc3ed8617da13669f187617a951855b6ea482781", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "import com.intellij.openapi.options.ConfigurationException;\nimport com.intellij.openapi.options.ConfigurationException;\nimport com.intellij.openapi.options.ConfigurationException;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c949555553b01cd2054cd3597678c84bab7a721d", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " protected void applyEditorTo(@NotNull T configuration) throws ConfigurationException {\n protected void applyEditorTo(@NotNull T configuration) {\n protected void applyEditorTo(@NotNull T s) throws ConfigurationException {\n protected void applyEditorTo(@NotNull T s) {\n protected void applyEditorTo(@NotNull S s) throws ConfigurationException {\n protected void applyEditorTo(@NotNull S s) {\n protected void applyEditorTo(@NotNull Settings s) throws ConfigurationException {\n protected void applyEditorTo(@NotNull Settings s) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c949555553b01cd2054cd3597678c84bab7a721d", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 5, 6 ] }, { "input": " setWSLENV(commandLine);\n passEnvironmentUsingInterop(commandLine);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/bcd7c93469297aa458ebe217570c6c53315202ee", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " final JComponent sourcesComponent = createFolderGroupComponent(provider.getFolderGroupTitle(),\n final JComponent sourcesComponent = createFolderGroupComponent(provider.getRootsGroupTitle(),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b3f9f6cfd4ad30fcffc4da3159a6e0eca4d8d2d7", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " * @deprecated Use {@link #getFolderGroupColor()}\n * @deprecated Use {@link #getRootsGroupColor()}\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b3f9f6cfd4ad30fcffc4da3159a6e0eca4d8d2d7", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 6 ] }, { "input": " return Pair.createNonNull(newFileType, message);\n return new ResolveConflictResult(newFileType, message, true);\n return Pair.createNonNull(oldFileType, message);\n return new ResolveConflictResult(oldFileType, message, true);\n return Pair.createNonNull(newFileType, message);\n return new ResolveConflictResult(newFileType, message, false);\n return Pair.createNonNull(newFileType, message);\n return new ResolveConflictResult(newFileType, message, false);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fdb19ad23e7f3c5237a197faa60e0a9f5c583281", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10 ] }, { "input": "// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c86c50f20cf42b0c2117c1c3af799e6519e6378b", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " enabled = (myPluginTracker != null && myPluginTracker.isEnabled(ideaPluginDescriptor)) ?\n ProjectPluginTracker pluginTracker = getPluginTracker();\n enabled = (pluginTracker != null && pluginTracker.isEnabled(ideaPluginDescriptor)) ?\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/cfa9d1f6057eb83b2c3b1582aca4202ee918516f", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " * When file attributes for a non-directory are returned, {@link FileAttributes.CaseSensitivity#UNSPECIFIED} should be used.\n * When file attributes for a non-directory are returned, {@link FileAttributes.CaseSensitivity#UNKNOWN} should be used.\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/dd0fb7f85b0ede25e30d4d36ad4cf8d938314026", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " assert isDirectory == (sensitivity != FileAttributes.CaseSensitivity.UNSPECIFIED) : this;\n assert isDirectory == (sensitivity != FileAttributes.CaseSensitivity.UNKNOWN) : this;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/JetBrains/intellij-community/commit/dd0fb7f85b0ede25e30d4d36ad4cf8d938314026", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " this(flags(isDirectory, isSpecial, isSymlink, isHidden, isWritable, CaseSensitivity.UNSPECIFIED), length, lastModified);\n this(flags(isDirectory, isSpecial, isSymlink, isHidden, isWritable, CaseSensitivity.UNKNOWN), length, lastModified);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/JetBrains/intellij-community/commit/dd0fb7f85b0ede25e30d4d36ad4cf8d938314026", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "\n @Override\n public void handleProperty(Url url, PropertyData property) {\n }\n\n @Override\n public void handleProperty(long revision, PropertyData property) {\n }\n\n @Override\n public void handleProperty(Url url, PropertyData property) {\n }\n\n @Override\n public void handleProperty(long revision, PropertyData property) {\n }\n\n @Override\n public void handleProperty(Url url, PropertyData property) {\n }\n\n @Override\n public void handleProperty(long revision, PropertyData property) {\n }\n\n @Override\n public void handleProperty(Url url, PropertyData property) {\n }\n\n @Override\n public void handleProperty(long revision, PropertyData property) {\n }\n\n @Override\n public void handleProperty(Url url, PropertyData property) {\n }\n\n @Override\n public void handleProperty(long revision, PropertyData property) {\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ab9f6c567aacb4a3941c665452352a69f3db7ec0", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 9 ] }, { "input": " void handleProperty(File path, PropertyData property) throws SvnBindException;\n default void handleProperty(File path, PropertyData property) throws SvnBindException {\n }\n void handleProperty(long revision, PropertyData property) throws SvnBindException;\n @SuppressWarnings(\"RedundantThrows\")\n default void handleProperty(long revision, PropertyData property) throws SvnBindException {\n }\n void handleProperty(Url url, PropertyData property) throws SvnBindException;\n @SuppressWarnings(\"RedundantThrows\")\n default void handleProperty(Url url, PropertyData property) throws SvnBindException {\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ab9f6c567aacb4a3941c665452352a69f3db7ec0", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " LabeledComponent component =\n LabeledComponent countField =\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/bf0e41f585878be22a546900c17ac001a82c1ce6", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " @Nullable\n protected static PsiElement doDocumentReplacement(@NotNull PsiFile psiFile,\n UElement literalExpression,\n String i18nizedText,\n Document document) {\n protected static void doDocumentReplacement(@NotNull PsiFile psiFile,\n UElement literalExpression,\n String i18nizedText,\n Document document,\n @Nullable UastCodeGenerationPlugin generationPlugin) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8363afb34a8c0c72721bd6e22af32ef81e8d70a1", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 6 ] }, { "input": " result = SSRBundle.message(\"replace.occurrences.of.0.with.1.in.2\", pattern, replacement, scope);\n result = SSRBundle.message(\"replace.occurrences.of.0.with.1.in.2\", pattern, replacement, scopeString);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/605f21e3f8317fefc9599f8bfc0bc86039413bd8", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " if (!getString().equals(template.getString())) return false;\n if (!string().equals(template.string())) return false;\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4580832e38661adffa7002b03f990437fd221f9d", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 7 ] }, { "input": " TemplateImpl template = new TemplateImpl(myKey, getString(), myGroupName);\n TemplateImpl template = new TemplateImpl(myKey, string(), myGroupName);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.4166666666666667, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4580832e38661adffa7002b03f990437fd221f9d", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 6, 7 ] }, { "input": " if (getTemplateText() != null ? !getTemplateText().equals(template.getTemplateText()) : template.getTemplateText() != null) return false;\n if (templateText() != null ? !templateText().equals(template.templateText()) : template.templateText() != null) return false;\n setTemplateText(another.getTemplateText());\n setTemplateText(another.templateText());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0b9d675e080dbdd9ac71cc2245c33bde56994fa6", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " ApplicationManager.getApplication().runWriteAction(() -> {\n runWriteAction(project, () -> {\n ApplicationManager.getApplication().runWriteAction(() -> {\n runWriteAction(aClass.getProject(), () -> {\n ApplicationManager.getApplication().runWriteAction(() -> {\n runWriteAction(project, () -> {\n ApplicationManager.getApplication().runWriteAction(() -> {\n runWriteAction(project, () -> {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4b9a4f86769b0ef8260df845463f066b3670f181", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " @NotNull TypeEvalContext context,\n @NotNull PyResolveContext resolveContext,\n decoratedClassInitCall(call.getCallee(), function, context)) {\n decoratedClassInitCall(call.getCallee(), function, resolveContext)) {\n public static void inspectPyArgumentList(@NotNull PyArgumentList node, @NotNull ProblemsHolder holder, @NotNull TypeEvalContext context) {\n inspectPyArgumentList(node, holder, context, 0);\n public static void inspectPyArgumentList(@NotNull PyArgumentList node, @NotNull ProblemsHolder holder, @NotNull PyResolveContext resolveContext) {\n inspectPyArgumentList(node, holder, resolveContext, 0);\n @NotNull TypeEvalContext context) {\n @NotNull PyResolveContext resolveContext) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7831a42f45da4fb883ce1640a817723cfe5899d7", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "import java.text.MessageFormat;\nimport java.text.MessageFormat;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0975b1cebdda0c1730d396ea845586b672380ee5", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " private static long calcModCount(@NotNull PsiFile hostPsiFile) {\n return (hostPsiFile.getModificationStamp() << 32) + hostPsiFile.getManager().getModificationTracker().getModificationCount();\n private long calcModCount() {\n return (myHostFile.getModificationStamp() << 32) + myHostFile.getManager().getModificationTracker().getModificationCount();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e7d249de2a923d9bb40796ae19b4ddda54afafa6", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " JpsServerAuthExtension.checkAuthenticatedInBackgroundThread(() -> JpsOutputLoaderManager.getInstance(project).load(false));\n JpsOutputLoaderManager outputLoaderManager = JpsOutputLoaderManager.getInstance(project);\n JpsServerAuthExtension.checkAuthenticatedInBackgroundThread(outputLoaderManager, () -> outputLoaderManager.load(false));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7266fc419160ccae537075879113136e1f8977ec", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 7 ] }, { "input": " Builder addKind(@NlsContexts.ListItem @NotNull String kind, @Nullable Icon icon, @NonNls @NotNull String templateName);\n\n default Builder addKind(@NlsContexts.ListItem @NotNull String kind, @Nullable Icon icon, @NonNls @NotNull String templateName) {\n return addKind(kind, icon, templateName, null);\n }\n\n Builder addKind(@NlsContexts.ListItem @NotNull String kind,\n @Nullable Icon icon,\n @NonNls @NotNull String templateName,\n @Nullable InputValidator extraValidator);\n\n public Builder addKind(@Nls @NotNull String kind, @Nullable Icon icon, @NotNull String templateName) {\n public Builder addKind(@Nls @NotNull String kind, @Nullable Icon icon, @NotNull String templateName,\n @Nullable InputValidator extraValidator) {\n public CreateFileFromTemplateDialog.Builder addKind(@Nls @NotNull String kind, @Nullable Icon icon, @NotNull String templateName) {\n public CreateFileFromTemplateDialog.Builder addKind(@Nls @NotNull String kind, @Nullable Icon icon, @NotNull String templateName,\n @Nullable InputValidator extraValidator) {\n public Builder addKind(@Nls @NotNull String name, @Nullable Icon icon, @NotNull String templateName) {\n public Builder addKind(@Nls @NotNull String name, @Nullable Icon icon, @NotNull String templateName,\n @Nullable InputValidator extraValidator) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.058823529411764705, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ed460ba24dc4910647024a91c3ab39950073667a", "target_edit_idx": 12, "propagatable_edit_idx": [ 8, 13, 5 ] }, { "input": " return isSelected ? WelcomeScreenUIManager.getListSelectionColor(hasFocus) : WelcomeScreenUIManager.getProjectsBackground();\n return isSelected ? WelcomeScreenUIManager.getProjectsSelectionBackground(hasFocus) : WelcomeScreenUIManager.getProjectsBackground();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/dcd5efdd52e75b9448edb00996921c57ba807aad", "target_edit_idx": 2, "propagatable_edit_idx": [ 11 ] }, { "input": " String getSymLinkTarget();\n String getSymlinkTarget();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/da73430568007999c22330bbd3e7f5916b18a668", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7 ] }, { "input": " oldDup.getSymLinkTarget());\n oldDup.getSymlinkTarget());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/JetBrains/intellij-community/commit/da73430568007999c22330bbd3e7f5916b18a668", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7 ] }, { "input": " dup.getSymLinkTarget());\n dup.getSymlinkTarget());\n String getSymLinkTarget();\n String getSymlinkTarget();\n public String getSymLinkTarget() {\n public String getSymlinkTarget() {\n oldDup.getSymLinkTarget());\n oldDup.getSymlinkTarget());\n Pair childData = getChildData(delegate, directory, childName.toString(), childInfo.getFileAttributes(), childInfo.getSymLinkTarget());\n Pair childData = getChildData(delegate, directory, childName.toString(), childInfo.getFileAttributes(), childInfo.getSymlinkTarget());\n myHelper.scheduleCreation(dir, record.getName().toString(), record.getFileAttributes(), record.getSymLinkTarget(), () -> checkCancelled(dir));\n myHelper.scheduleCreation(dir, record.getName().toString(), record.getFileAttributes(), record.getSymlinkTarget(), () -> checkCancelled(dir));\n myHelper.scheduleCreation(dir, record.getName().toString(), record.getFileAttributes(), record.getSymLinkTarget(), () -> checkCancelled(dir));\n myHelper.scheduleCreation(dir, record.getName().toString(), record.getFileAttributes(), record.getSymlinkTarget(), () -> checkCancelled(dir));\n ChildInfo newInfo = new ChildInfoImpl(parentInfo.getId(), parentInfo.getNameId(), parentInfo.getFileAttributes(), children, parentInfo.getSymLinkTarget());\n ChildInfo newInfo = new ChildInfoImpl(parentInfo.getId(), parentInfo.getNameId(), parentInfo.getFileAttributes(), children, parentInfo.getSymlinkTarget());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/JetBrains/intellij-community/commit/da73430568007999c22330bbd3e7f5916b18a668", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7 ] }, { "input": " myHelper.scheduleCreation(dir, record.getName().toString(), record.getFileAttributes(), record.getSymLinkTarget(), () -> checkCancelled(dir));\n myHelper.scheduleCreation(dir, record.getName().toString(), record.getFileAttributes(), record.getSymlinkTarget(), () -> checkCancelled(dir));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/JetBrains/intellij-community/commit/da73430568007999c22330bbd3e7f5916b18a668", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7 ] }, { "input": " myConfigurationEditor.resetFrom((FragmentedSettings)s.getConfiguration());\n myConfigurationEditor.resetFrom((RunConfigurationBase)s.getConfiguration());\n myConfigurationEditor.applyTo((FragmentedSettings)s.getConfiguration());\n myConfigurationEditor.applyTo((RunConfigurationBase)s.getConfiguration());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f2e0ee5b3a0b018ddbf06c0d904d50868d97ce14", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": "import com.intellij.openapi.roots.impl.ModuleLibraryTable;\nimport com.intellij.openapi.roots.impl.ModuleLibraryTableBase;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/JetBrains/intellij-community/commit/edfca90a7ff15886be3479124e88a050da178842", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " if (tableModifiableModel != null && !(tableModifiableModel instanceof ModuleLibraryTable)) {\n if (tableModifiableModel != null && !(tableModifiableModel instanceof ModuleLibraryTableBase)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/JetBrains/intellij-community/commit/edfca90a7ff15886be3479124e88a050da178842", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4 ] }, { "input": " public void scheduleMappingsUpdate() {\n myMappings.scheduleMappingsUpdate();\n public void updateMappedVcsesImmediately() {\n myMappings.updateMappedVcsesImmediately();\n ProjectLevelVcsManagerImpl.getInstanceImpl(myProject).scheduleMappingsUpdate();\n ProjectLevelVcsManagerImpl.getInstanceImpl(myProject).updateMappedVcsesImmediately();\n ProjectLevelVcsManagerImpl.getInstanceImpl(myProject).scheduleMappingsUpdate();\n ProjectLevelVcsManagerImpl.getInstanceImpl(myProject).updateMappedVcsesImmediately();\n ProjectLevelVcsManagerImpl.getInstanceImpl(myProject).scheduleMappingsUpdate();\n ProjectLevelVcsManagerImpl.getInstanceImpl(myProject).updateMappedVcsesImmediately();\n ProjectLevelVcsManagerImpl.getInstanceImpl(myProject).scheduleMappingsUpdate();\n ProjectLevelVcsManagerImpl.getInstanceImpl(myProject).updateMappedVcsesImmediately();\n public void scheduleMappingsUpdate() {\n public void updateMappedVcsesImmediately() {\n LOG.debug(\"updateMappingsImmediately\");\n\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1ac418ffa2f5c9f9e3d6acd542f99b22ccb42fab", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": "import com.intellij.openapi.application.ApplicationManager;\nimport com.intellij.openapi.application.ApplicationManager;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a7149e200a3f86169cd3de12298e92a91d8e8205", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " return ApplicationManager.getApplication().isInternal() &&\n owner instanceof PsiMethod &&\n !ClassUtils.isImmutable(((PsiMethod)owner).getReturnType());\n if (!(owner instanceof PsiMethod)) return false;\n PsiClass returnClass = PsiUtil.resolveClassInClassTypeOnly(((PsiMethod)owner).getReturnType());\n return InheritanceUtil.isInheritor(returnClass, CommonClassNames.JAVA_UTIL_COLLECTION) ||\n InheritanceUtil.isInheritor(returnClass, CommonClassNames.JAVA_UTIL_MAP);\n return ApplicationManager.getApplication().isInternal() &&\n owner instanceof PsiMethod &&\n !ClassUtils.isImmutable(((PsiMethod)owner).getReturnType());\n if (!(owner instanceof PsiMethod)) return false;\n PsiClass returnClass = PsiUtil.resolveClassInClassTypeOnly(((PsiMethod)owner).getReturnType());\n return InheritanceUtil.isInheritor(returnClass, CommonClassNames.JAVA_UTIL_COLLECTION) ||\n InheritanceUtil.isInheritor(returnClass, CommonClassNames.JAVA_UTIL_MAP);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a7149e200a3f86169cd3de12298e92a91d8e8205", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " else if (type == JavaTokenType.INTERFACE_KEYWORD) {\n else if (type == JavaTokenType.INTERFACE_KEYWORD && !classKindFound) {\n else if (type == JavaTokenType.ENUM_KEYWORD) {\n else if (type == JavaTokenType.ENUM_KEYWORD && !classKindFound) {\n else if (type == JavaTokenType.RECORD_KEYWORD) {\n else if (type == JavaTokenType.RECORD_KEYWORD && !classKindFound) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0f5e2f97a076c0294196551ecacb32649856c186", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " List allPlugins,\n List customOrAllPlugins,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/567a683939c3c91f9a924ac739ebeb6bcd360583", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " List allPlugins,\n List customOrAllPlugins,\n List allPlugins,\n List customOrAllPlugins,\n //TODO: `PluginInstallOperation` expects only `customPlugins` and not `allPlugins`\n PluginInstallOperation operation = new PluginInstallOperation(pluginsToInstall, allPlugins, pluginEnabler, indicator);\n //TODO: `PluginInstallOperation` expects only `customPlugins`, but it can take `allPlugins` too\n PluginInstallOperation operation = new PluginInstallOperation(pluginsToInstall, customOrAllPlugins, pluginEnabler, indicator);\n List allPlugins,\n List customOrAllPlugins,\n return downloadPlugins(plugins, allPlugins, false, onSuccess, pluginEnabler, cleanup);\n return downloadPlugins(plugins, customOrAllPlugins, false, onSuccess, pluginEnabler, cleanup);\n if (PluginInstaller.prepareToInstall(plugins, allPlugins, allowInstallWithoutRestart, pluginEnabler, onSuccess, indicator)) {\n if (PluginInstaller.prepareToInstall(plugins, customOrAllPlugins, allowInstallWithoutRestart, pluginEnabler, onSuccess, indicator)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/567a683939c3c91f9a924ac739ebeb6bcd360583", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5 ] }, { "input": " result.setAfterName(getRelativePath(afterRevision.getPath().getPath()));\n result.setAfterName(getRelativePath(myBasePath, afterRevision.getPath().getPath()));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/37ccea7fc29e6b56818b3a9680ac4ccc3283cb3a", "target_edit_idx": 13, "propagatable_edit_idx": [ 10, 12 ] }, { "input": " size = new Dimension(fixedWidth, fixedHeight * myVisibleRowCount);\n size = new Dimension(fixedWidth, fixedHeight * visibleRows);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5555555555555556, "commit_url": "https://github.com/JetBrains/intellij-community/commit/208ad34e93c264b96aa793f5350bea2695062b4a", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": " list.putClientProperty(\"visibleRowCountIsMax\", true);\n myList.putClientProperty(\"visibleRowCountIsMax\", true);\n putClientProperty(\"visibleRowCountIsMax\", true);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/208ad34e93c264b96aa793f5350bea2695062b4a", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " if (myDaemonCodeAnalyzer.doRestart() && !myProject.isDisposed()) {\n if (myDaemonCodeAnalyzer.doRestart(reason) && !myProject.isDisposed()) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/00a266b5dc80e3cdeaa3b81bb6825a5e500faedb", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " if (needAlLeastOneAttribute(tag) && WebEditorOptions.getInstance().isAutomaticallyStartAttribute() && tag.getAttributes().length == 0\n if (needAtLeastOneAttribute(tag) && WebEditorOptions.getInstance().isAutomaticallyStartAttribute() && tag.getAttributes().length == 0\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ac163e123568a0766ade21159ea5122cf76f825f", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " return '\\u0007';\n return '\\u0007'; // The alert (bell) character\n return '\\u001b';\n return '\\u001b'; // The escape character\n return '\\f';\n return '\\f'; // The form-feed character\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fb49c35cbbd197f1b5864470c5ddbb526d1f7934", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " myIconComponent.setIcon(PluginLogo.getIcon(myPlugin, false, false, errors, disabled));\n myIconComponent.setIcon(myPluginModel.getIcon(myPlugin, false, false, errors, disabled));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c0ed74cba971080d49d7912f3aa8d46806412571", "target_edit_idx": 6, "propagatable_edit_idx": [ 12 ] }, { "input": " int relX = point.x - startX;\n return relX >= 0 && relX < inlay.getWidthInPixels() ? inlay : null;\n return relX < inlay.getWidthInPixels() ? inlay : null;\n int relX = point.x - startX;\n return relX >= 0 && relX < inlay.getWidthInPixels() ? inlay : null;\n return relX < inlay.getWidthInPixels() ? inlay : null;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8221dd094da4436d9a60dba2adffe544931d1588", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " Inlay inlay = findInlay(inlays, point, x);\n Inlay inlay = findInlay(inlays, point.x, x);\n Inlay inlay = findInlay(inlays, point, bounds.x);\n Inlay inlay = findInlay(inlays, point.x, bounds.x);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8221dd094da4436d9a60dba2adffe544931d1588", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "import com.intellij.openapi.util.Condition;\nimport com.intellij.openapi.util.Condition;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f750e6296a4b2d9250f56754e6199755a0709f95", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " splash.initAndShow();\n splash.initAndShow(visible);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ce01ee0e46f029986940dd742f14d72733ebe3d5", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4 ] }, { "input": " SplashManager.show(args);\n SplashManager.show(args, EndUserAgreement.getLatestDocument().isAccepted());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ce01ee0e46f029986940dd742f14d72733ebe3d5", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " protected Map> getI18nMap() {\n protected Map> getPresentableNameMap() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/93cf17a681f5f9c4801c8b2babc585d44425ec3c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " protected Map> getI18nMap() {\n protected Map> getPresentableNameMap() {\n protected Map> getI18nMap() {\n protected Map> getPresentableNameMap() {\n myI18nMap = getI18nMap();\n myI18nMap = getPresentableNameMap();\n protected Map> getI18nMap() {\n /**\n * Put (scope type -> presentable name) pairs into a map.\n * This map is used in {@link #changeView(String, boolean)} method to get a proper localization in UI.\n */\n protected Map> getPresentableNameMap() {\n protected Map> getI18nMap() {\n protected Map> getPresentableNameMap() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/93cf17a681f5f9c4801c8b2babc585d44425ec3c", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4 ] }, { "input": " version = myPlugin.getVersion() + \" \" + UIUtil.rightArrow() + \" \" + myUpdateDescriptor.getVersion();\n version = PluginManagerConfigurable.getVersion(myPlugin, myUpdateDescriptor);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/66a13746ffcb882b1ad690aa963c800209e5f8f6", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " @Nls(capitalization = Nls.Capitalization.Sentence)\n @NotNull\n @Nls(capitalization = Nls.Capitalization.Sentence)\n @NotNull\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/87e646f609ce9258008eaeb035008d39eec51739", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " public String getName() {\n public @Nls(capitalization = Nls.Capitalization.Sentence) @NotNull String getName() {\n public String getFamilyName() {\n public @Nls(capitalization = Nls.Capitalization.Sentence) @NotNull String getFamilyName() {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/87e646f609ce9258008eaeb035008d39eec51739", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " if (!USE_NEW_THREADING_MODEL) {\n if (!USE_SEPARATE_WRITE_THREAD) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e7e7e6ccda0149394501a101f37bf067a60ef237", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": " public void showDialogAndFindUsages(@Nullable Editor newEditor) {\n ShowUsagesAction.showDialogAndFindUsages(\n public void showDialogAndShowUsages(@Nullable Editor newEditor) {\n showDialog(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fa24b24b077d954732c4f7dca48103df86319835", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": " void showDialogAndFindUsages(@Nullable Editor newEditor);\n void showDialogAndShowUsages(@Nullable Editor newEditor);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fa24b24b077d954732c4f7dca48103df86319835", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": " StackFrameItem.CapturedStackFrame frame = frameInfo.createFrame(myDebugProcess);\n frame.setWithSeparator(separator);\n XStackFrame frame = frameInfo.createFrame(myDebugProcess);\n StackFrameItem.setWithSeparator(frame, separator);\n newFrame.setWithSeparator(separator);\n StackFrameItem.setWithSeparator(newFrame, separator);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/09aefb6c6f5185e43bdc29fd8354e56d96dce0dc", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " terminalView.createLocalShellWidget(workingDirectory).executeCommand(command);\n terminalView.createLocalShellWidget(workingDirectory, title).executeCommand(command);\n public ShellTerminalWidget createLocalShellWidget(@Nullable String workingDirectory) {\n public ShellTerminalWidget createLocalShellWidget(@Nullable String workingDirectory, @Nullable String tabName) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/619c62346cbf5406d33c0abc1ea32d24306e73f6", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " if (injection.hasIgnoredPlace(mapIterator(result.iterator(), r -> r.first), \"\\n\")) {\n if (injection.shouldBeIgnored(mapIterator(result.iterator(), r -> r.first), \"\\n\")) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/aaa92f10e5e839720caf7ce46c22a8e236afc36c", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 5, 7 ] }, { "input": " public boolean isIgnoredPlace(@NotNull PsiElement element) {\n public boolean shouldBeIgnored(@NotNull PsiElement element) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/aaa92f10e5e839720caf7ce46c22a8e236afc36c", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " if (injection.acceptsPsiElement(attribute) && !injection.isIgnoredPlace(value)) {\n if (injection.acceptsPsiElement(attribute) && !injection.shouldBeIgnored(value)) {\n if (!injection.isIgnoredPlace(element)) {\n if (!injection.shouldBeIgnored(element)) {\n public boolean isIgnoredPlace(@NotNull PsiElement element) {\n public boolean shouldBeIgnored(@NotNull PsiElement element) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/aaa92f10e5e839720caf7ce46c22a8e236afc36c", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "import com.intellij.codeInspection.GlobalInspectionContext;\nimport com.intellij.codeInspection.ex.GlobalInspectionContextBase;\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0516dc78b0f3b58b0dadda69c092761556f29c4f", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " if (RunAnythingGeneralGroup.getTITLE().equals(title)) {\n if (RunAnythingGeneralGroup.getGroupTitle().equals(title)) {\n return getTITLE();\n return getGroupTitle();\n if (getTITLE().equals(provider.getCompletionGroupTitle())) {\n if (getGroupTitle().equals(provider.getCompletionGroupTitle())) {\n public static String getTITLE() {\n public static String getGroupTitle() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a1d6cccd5efb848b8157db5057a3fd099a9c9d16", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " public static String getPROJECT() {\n public static String getProject() {\n return SelectInManager.getPROJECT();\n return SelectInManager.getProject();\n * Use {code {@link #getPROJECT()}} instead\n * Use {code {@link #getProject()}} instead\n @NonNls public static final String PROJECT = getPROJECT();\n @NonNls public static final String PROJECT = getProject();\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a1d6cccd5efb848b8157db5057a3fd099a9c9d16", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " setFixedColumnWidth(ClasspathTableModel.EXPORT_COLUMN, ClasspathTableModel.getName());\n setFixedColumnWidth(ClasspathTableModel.EXPORT_COLUMN, ClasspathTableModel.getEXPORT_COLUMN_NAME());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/240e2cea4ca85dba6b51d6f385f64151cdcb7c2d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "/*\n * Copyright 2000-2015 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n/*\n * Copyright 2000-2015 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e2bb8d31e087cd0dc6fd07cc2934bc0f3c549d28", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " throw new VcsException(\"Output for line \" + lineNumber + \" lacks necessary data\");\n throw new VcsException(\"Output for line \" + lineNum + \" lacks necessary data\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f9edf46695d44723e39659e15c4a49e046360556", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " final org.intellij.markdown.ast.ASTNode parsedTree = MarkdownParserManager.parseContent(builder.getOriginalText());\n final org.intellij.markdown.ast.ASTNode parsedTree = MarkdownParserManager.parseContent(builder.getOriginalText(), myFlavour);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0ad348a0df65377bc2c143df7830f2fe5993107a", "target_edit_idx": 7, "propagatable_edit_idx": [ 4 ] }, { "input": " brancher.compare(myBranchName, myRepositories, mySelectedRepository);\n brancher.compare(myBranchName, myRepositories);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ffb6ab9edf2a113d7ee9a974a76368cc45ce4718", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " String expected = \"2 = 1;\\nint b = a;\\nb2 = 3;\";\n String expected = \"2 = 1;\\n\" +\n \"int b = a;\\n\" +\n \"b2 = 3;\";\n String expected_2 = \"a = 2;\\nint b = 1;\\nb2 = 3;\";\n String expected_2 = \"a = 2;\\n\" +\n \"int b = 1;\\n\" +\n \"b2 = 3;\";\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0a633053a2d65a74a40d0fa09c4132cd0cb43410", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " assertEquals(\"class A { private float i, j, k; void m() { float i,j,k; }}\",\n assertEquals(\"class A {\\n\" +\n \" private float i, /*1*/j, k;\\n\" +\n \" void m() {\\n\" +\n \" float i,\\n\" +\n \" j,// 2\\n\" +\n \" k;\\n\" +\n \" }\\n\" +\n \"}\\n\",\n assertEquals(\"class A { private float i, j, k; void m() { float i, j, k; }}\",\n assertEquals(\"class A {\\n\" +\n \" private float i, j, k;\\n\" +\n \" void m() {\\n\" +\n \" float i, j, k;\\n\" +\n \" }\\n\" +\n \"}\\n\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0a633053a2d65a74a40d0fa09c4132cd0cb43410", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " mySourceStateStorageRoot = new File(dataPaths.getDataStorageRoot(), SOURCES_STATE_FILE_NAME);\n myProjectFolder = JpsModelSerializationDataService.getBaseDirectory(project);\n myTargetStateStorage = new File(dataPaths.getDataStorageRoot(), TARGET_SOURCES_STATE_FILE_NAME);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/51873f6a5bad9c09530b465aefbeee62193981f1", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 3 ] }, { "input": " public Class getComponentImplementation() {\n public Class getComponentImplementation() {\n public Class getComponentImplementation() {\n public Class getComponentImplementation() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/afe91ad000bb9ef105cfef33d9e1972574c8599c", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": " private Map getLogProviders() {\n return VcsLogManager.findLogProviders(Arrays.asList(ProjectLevelVcsManager.getInstance(myProject).getAllVcsRoots()), myProject);\n static Map getLogProviders(@NotNull Project project) {\n return VcsLogManager.findLogProviders(Arrays.asList(ProjectLevelVcsManager.getInstance(project).getAllVcsRoots()), project);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4f073cf74acc1a1734dbb08d54f958a1b45cc245", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " AbstractVcsLogUi ui = manager.createLogUi(calcLogId(roots), isToolWindowTab);\n AbstractVcsLogUi ui = manager.createLogUi(calcLogId(roots), isToolWindowTab, true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ab2123c56801a512684ba4d71d52c77c1c5f6d1f", "target_edit_idx": 13, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " private void updateDarkWindowHeaderVisibility() {\n Object item = myComponent.myLafComboBox.getSelectedItem();\n boolean isDarkLaf = item instanceof UIManager.LookAndFeelInfo && ((UIManager.LookAndFeelInfo)item).getClassName().endsWith(\"DarculaLaf\");\n private static void updateDarkWindowHeaderVisibility(UIManager.LookAndFeelInfo item) {\n boolean isDarkLaf = item != null && item.getClassName().endsWith(\"DarculaLaf\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b0c8bc9b501a962af5ece4172dd9066ef8c2f6c3", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " public boolean ignoreMissingInterpreter(@NotNull PyFile file) {\n public boolean ignoreInterpreterWarnings(@NotNull PyFile file) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f5d90f53c8c327b490a0cdfffbc0174f7c422aca", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " new TextDiffViewerUtil.EditorActionsPopup(createEditorPopupActions()).install(getEditors());\n new TextDiffViewerUtil.EditorActionsPopup(createEditorPopupActions()).install(getEditors(), myPanel);\n new TextDiffViewerUtil.EditorActionsPopup(createEditorPopupActions()).install(getEditors());\n new TextDiffViewerUtil.EditorActionsPopup(createEditorPopupActions()).install(getEditors(), myPanel);\n public void install(@NotNull List editors) {\n public void install(@NotNull List editors, @NotNull JComponent component) {\n ActionUtil.recursiveRegisterShortcutSet(new DefaultActionGroup(myEditorPopupActions), component, null);\n\n new TextDiffViewerUtil.EditorActionsPopup(createEditorPopupActions()).install(getEditors());\n new TextDiffViewerUtil.EditorActionsPopup(createEditorPopupActions()).install(getEditors(), myPanel);\n List popupActions = createEditorPopupActions();\n new TextDiffViewerUtil.EditorActionsPopup(popupActions).install(getEditors());\n ActionUtil.recursiveRegisterShortcutSet(new DefaultActionGroup(popupActions), myPanel, null);\n new TextDiffViewerUtil.EditorActionsPopup(createEditorPopupActions()).install(getEditors(), myPanel);\n new TextDiffViewerUtil.EditorActionsPopup(createEditorPopupActions()).install(editors);\n new TextDiffViewerUtil.EditorActionsPopup(createEditorPopupActions()).install(editors, myPanel);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d26e6fd88024816abc38ba0a6ffced4a5dfcc717", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 6, 7 ] }, { "input": " new TextDiffViewerUtil.EditorActionsPopup(createEditorPopupActions()).install(getEditors());\n new TextDiffViewerUtil.EditorActionsPopup(createEditorPopupActions()).install(getEditors(), myPanel);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d26e6fd88024816abc38ba0a6ffced4a5dfcc717", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3, 6, 7 ] }, { "input": " DebugUtil.performPsiModification(null, () -> myFileManager.possiblyInvalidatePhysicalPsi(false));\n DebugUtil.performPsiModification(null, () -> myFileManager.possiblyInvalidatePhysicalPsi());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/13c032a6c7d92b81cc582a4031469f6f2aa1d4fe", "target_edit_idx": 11, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " AbstractTreeNode parent = ((AbstractTreeNode)leaf).getParent();\n AbstractTreeNode parent = ((AbstractTreeNode)leaf).getParent();\n AbstractTreeNode parent = ((AbstractTreeNode)item).getParent();\n AbstractTreeNode parent = ((AbstractTreeNode)item).getParent();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fa1cb38b60eded015200d412c00ddf6a21eee68f", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " List getChildrenSafe(@NotNull Object value) {\n List getChildrenSafe(@NotNull List valueSubPath) {\n List getChildrenSafe(@NotNull Object value) {\n List getChildrenSafe(@NotNull List valueSubPath) {\n Queue values = new LinkedList<>(valueSubPath);\n Object visibleRoot = values.poll();\n if (visibleRoot == null) return Collections.emptyList();\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fa1cb38b60eded015200d412c00ddf6a21eee68f", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " protected void layoutLabelsAndGhosts(SingleRowPassInfo data) {\n protected void layoutLabels(SingleRowPassInfo data) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/52b851949c70f809a67d2e123fe90215d10642b0", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " protected void layoutLabelsAndGhosts(final SingleRowPassInfo data) {\n protected void layoutLabels(final SingleRowPassInfo data) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/52b851949c70f809a67d2e123fe90215d10642b0", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " myTokenTypeChecked = true;\n myTokenTypeChecked = true;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d9fa32016e709a2a85907e02666715c30e33d924", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " private static int getParentFullIndent(@NotNull ASTNode node) {\n String fullText = node.getPsi().getContainingFile().getText();\n private static int getParentFullIndent(@NotNull YAMLFormattingContext context, @NotNull ASTNode node) {\n String fullText = context.getFullText();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1a3e01f7b3ace4438b45ad0bb03dc8d006872e79", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": "import com.intellij.openapi.vcs.changes.ChangeListManager;\nimport com.intellij.openapi.vcs.changes.ChangeListManager;\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fd9a60bc00577699aa9837923bfa0df93bc573aa", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " if (!MyPluginModel.showUninstallDialog(selection)) {\n if (!MyPluginModel.showUninstallDialog(this, selection)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2db3210aeab321e61da8ed80341349fbbfcf6421", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 4, 5, 6, 10 ] }, { "input": " return showUninstallDialog(size == 1 ? selection.get(0).myPlugin.getName() : null, size);\n return showUninstallDialog(uiParent, size == 1 ? selection.get(0).myPlugin.getName() : null, size);\n if (!MyPluginModel.showUninstallDialog(selection)) {\n if (!MyPluginModel.showUninstallDialog(ListPluginComponent.this, selection)) {\n if (!MyPluginModel.showUninstallDialog(selection)) {\n if (!MyPluginModel.showUninstallDialog(this, selection)) {\n static boolean showUninstallDialog(@NotNull List selection) {\n static boolean showUninstallDialog(@NotNull Component uiParent, @NotNull List selection) {\n static boolean showUninstallDialog(@Nullable String singleName, int count) {\n static boolean showUninstallDialog(@NotNull Component uiParent, @Nullable String singleName, int count) {\n if (MyPluginModel.showUninstallDialog(myPlugin.getName(), 1)) {\n myPluginModel.doUninstall(this, myPlugin, null);\n if (MyPluginModel.showUninstallDialog(this, myPlugin.getName(), 1)) {\n myPluginModel.doUninstall(this, myPlugin);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2db3210aeab321e61da8ed80341349fbbfcf6421", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 4, 6, 10 ] }, { "input": " static boolean showUninstallDialog(@Nullable String singleName, int count) {\n static boolean showUninstallDialog(@NotNull Component uiParent, @Nullable String singleName, int count) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.11764705882352941, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2db3210aeab321e61da8ed80341349fbbfcf6421", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 4, 5, 10 ] }, { "input": " void doUninstall(@NotNull Component uiParent, @NotNull IdeaPluginDescriptor descriptor, @Nullable Runnable update) {\n void doUninstall(@NotNull Component uiParent, @NotNull IdeaPluginDescriptor descriptor) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.11764705882352941, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2db3210aeab321e61da8ed80341349fbbfcf6421", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " if (MyPluginModel.showUninstallDialog(myPlugin.getName(), 1)) {\n myPluginModel.doUninstall(this, myPlugin, null);\n if (MyPluginModel.showUninstallDialog(this, myPlugin.getName(), 1)) {\n myPluginModel.doUninstall(this, myPlugin);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2db3210aeab321e61da8ed80341349fbbfcf6421", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 2, 4, 5, 6 ] }, { "input": " myCache.remove(bean.getKey());\n myTracker.incModificationCount();\n invalidateCacheForExtension(bean.getKey());\n myCache.remove(bean.getKey());\n myTracker.incModificationCount();\n invalidateCacheForExtension(bean.getKey());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7a9aa923aee5571dacb7a95fd337a232f2c68623", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " myCache.remove(stringKey);\n myTracker.incModificationCount();\n invalidateCacheForExtension(stringKey);\n myCache.remove(stringKey);\n myTracker.incModificationCount();\n invalidateCacheForExtension(stringKey);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7a9aa923aee5571dacb7a95fd337a232f2c68623", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": " dotDotOccurred |= part.equals(\"..\") || dotDotIndex != 0 && part.charAt(dotDotIndex - 1) == '/' || dotDotIndex < part.length() - 2 && part.charAt(dotDotIndex + 2) == '/';\n dotDotOccurred |= name.equals(\"..\") || dotDotIndex != 0 && name.charAt(dotDotIndex - 1) == '/' || dotDotIndex < name.length() - 2 && name.charAt(dotDotIndex + 2) == '/';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/JetBrains/intellij-community/commit/aef37b8c9b6198b36fe3708869a8748c8cad8760", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " JFrame jframe = (JFrame)frame;\n JdkEx.setHasCustomDecoration(jframe);\n JdkEx.setHasCustomDecoration(frame);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b5da68e0d4c2f4d925c1241dd2852ac73bd27e6f", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " bootstrapPicoContainer(name);\n myPicoContainer = bootstrapPicoContainer(name);\n super.bootstrapPicoContainer(name);\n return super.bootstrapPicoContainer(name);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/910d3625bed1dad2a40eb0e7195a547937bc8836", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": " protected void bootstrapPicoContainer(@NotNull String name) {\n protected MutablePicoContainer bootstrapPicoContainer(@NotNull String name) {\n protected void bootstrapPicoContainer(@NotNull String name) {\n protected MutablePicoContainer bootstrapPicoContainer(@NotNull String name) {\n return null;\n }\n\n @NotNull\n @Override\n public MutablePicoContainer getPicoContainer() {\n return myPicoContainer;\n protected void bootstrapPicoContainer(@NotNull String name) {\n protected MutablePicoContainer bootstrapPicoContainer(@NotNull String name) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/910d3625bed1dad2a40eb0e7195a547937bc8836", "target_edit_idx": 8, "propagatable_edit_idx": [ 11, 13 ] }, { "input": "import com.intellij.vcsUtil.VcsUtil;\nimport com.intellij.vcsUtil.VcsUtil;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8f842f681d0f31c9e218f49400f6424acd76ccd3", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " filter.getTemplatePresentation().setEnabledAndVisible(false);\n filter.getTemplatePresentation().setEnabledAndVisible(false);\n filter.getTemplatePresentation().setEnabledAndVisible(true);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/38d0da15cc1744586bdbb46bc1f612862622953c", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " IdFilter.getProjectIdFilter(project, searchInLibraries));\n ((FileBasedIndexImpl) FileBasedIndex.getInstance()).projectIndexableFilesIfCached(project));\n IdFilter.getProjectIdFilter(project, searchInLibraries));\n ((FileBasedIndexImpl) FileBasedIndex.getInstance()).projectIndexableFilesIfCached(project));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f188f3d2244f78b51104066e6e1c2ea2892c13d9", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " if (yDiff <= height) return point.x < inlay.getWidthInPixels() ? inlay : null;\n if (yDiff <= height) {\n int relX = point.x - startX;\n return relX >= 0 && relX < inlay.getWidthInPixels() ? inlay : null;\n }\n if (yDiff < height) return point.x < inlay.getWidthInPixels() ? inlay : null;\n if (yDiff < height) {\n int relX = point.x - startX;\n return relX >= 0 && relX < inlay.getWidthInPixels() ? inlay : null;\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/bfddc83ab66a1de2f65aa4ec030e96b00fabaa02", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " if (!ExpressionUtils.isConcatenation(ParenthesesUtils.stripParentheses(argument)) ||\n if (!ExpressionUtils.isStringConcatenation(ParenthesesUtils.stripParentheses(argument)) ||\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/96d244e26574b5cddef36ca41da33f4b0c08a463", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " while (ExpressionUtils.isConcatenation(parent)) {\n while (ExpressionUtils.isStringConcatenation(parent)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/JetBrains/intellij-community/commit/96d244e26574b5cddef36ca41da33f4b0c08a463", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5 ] }, { "input": " if (commutative && !ExpressionUtils.isConcatenation(expression)) {\n if (commutative && !ExpressionUtils.isStringConcatenation(expression)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/JetBrains/intellij-community/commit/96d244e26574b5cddef36ca41da33f4b0c08a463", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4 ] }, { "input": "import com.intellij.openapi.wm.WindowManager;\nimport com.intellij.openapi.wm.impl.WindowManagerImpl;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9d99cfd0dd34b272b3ba9cbb909145f02d32115b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " private static void triggerUsage(@NotNull String text, @NotNull String context) {\n FUCounterUsageLogger.getInstance().logEvent(\"vcs.log.trigger\", text, new FeatureUsageData().addData(\"context\", context));\n private static void triggerUsage(@NotNull String text, @NotNull String context, @Nullable AnActionEvent event) {\n FeatureUsageData featureUsageData = new FeatureUsageData().addData(\"context\", context);\n if (event != null) {\n featureUsageData.addInputEvent(event);\n }\n FUCounterUsageLogger.getInstance().logEvent(\"vcs.log.trigger\", text, featureUsageData);\n triggerUsage(text, e.getData(VcsLogInternalDataKeys.FILE_HISTORY_UI) != null);\n triggerUsage(text, e.getData(VcsLogInternalDataKeys.FILE_HISTORY_UI) != null, e);\n triggerUsage(text, \"\");\n triggerUsage(text, \"\", null);\n public static void triggerUsage(@NotNull String text, boolean isFromHistory) {\n triggerUsage(text, isFromHistory ? \"history\" : \"log\");\n public static void triggerUsage(@NotNull String text, boolean isFromHistory, @Nullable AnActionEvent e) {\n triggerUsage(text, isFromHistory ? \"history\" : \"log\", e);\n VcsLogUsageTriggerCollector.triggerUsage(StringUtil.capitalize(name) + \"FilterSet\", false);\n VcsLogUsageTriggerCollector.triggerUsage(StringUtil.capitalize(name) + \"FilterSet\", false, null);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/14fe8242ab13e5328973e3930922ca4b756e2b4a", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": " VcsLogUsageTriggerCollector.triggerUsage(StringUtil.capitalize(name) + \"FilterSet\", false);\n VcsLogUsageTriggerCollector.triggerUsage(StringUtil.capitalize(name) + \"FilterSet\", false, null);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/14fe8242ab13e5328973e3930922ca4b756e2b4a", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": "import com.intellij.openapi.application.PathManager;\nimport com.intellij.openapi.application.PathManager;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/df65240f563a51573021ca8d91bdb5159c888877", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " private static void triggerUsage(@NotNull String text, @NotNull String context) {\n FUCounterUsageLogger.getInstance().logEvent(\"vcs.log.trigger\", text, new FeatureUsageData().addData(\"context\", context));\n private static void triggerUsage(@NotNull String text, @NotNull String context, @Nullable AnActionEvent event) {\n FeatureUsageData featureUsageData = new FeatureUsageData().addData(\"context\", context);\n if (event != null) {\n featureUsageData.addInputEvent(event);\n }\n FUCounterUsageLogger.getInstance().logEvent(\"vcs.log.trigger\", text, featureUsageData);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/262ac44f699db8d38654cf2aac7308d4609cbafa", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": " buildIndicesForFile(fileOrDir, contentChange);\n myEventMerger.recordFileEvent(fileOrDir, contentChange);\n buildIndicesForFile(file, contentChange);\n myEventMerger.recordFileEvent(file, contentChange);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/279ff50f83722c75584d6a9b2325cb18776f1883", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " updateChange(fileId, file, contentChange ? FILE_CONTENT_CHANGED : FILE_ADDED);\n updateChange(FileBasedIndexImpl.getIdMaskingNonIdBasedFile(file), file, contentChange ? FILE_CONTENT_CHANGED : FILE_ADDED);\n updateChange(fileId, file, contentChanged ? BEFORE_FILE_CONTENT_CHANGED : FILE_REMOVED);\n updateChange(FileBasedIndexImpl.getIdMaskingNonIdBasedFile(file), file, contentChanged ? BEFORE_FILE_CONTENT_CHANGED : FILE_REMOVED);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/279ff50f83722c75584d6a9b2325cb18776f1883", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " public void recordTransientStateChangeEvent(int fileId, @NotNull VirtualFile file) {\n public void recordTransientStateChangeEvent(@NotNull VirtualFile file) {\n myChangedFilesCollector.getEventMerger().recordTransientStateChangeEvent(getFileId(virtualFile), virtualFile);\n myChangedFilesCollector.getEventMerger().recordTransientStateChangeEvent(virtualFile);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/086473d571e5c0c31ebdc2034536be9818f8fd50", "target_edit_idx": 9, "propagatable_edit_idx": [ 0 ] }, { "input": " currentNode.setDataNode(newDataNode);\n currentNode.mergeWith(newNode);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e03a2bfd68c1cc8a64be54dd65ea883ecf2f675f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " final Project project = getProject();\n ArrayList notifications = EventLog.getLogModel(project).getNotifications();\n updateIconOnStatusBarAndToolWindow(project, notifications);\n if (myProject.isDisposed()) {\n return;\n }\n ArrayList notifications = EventLog.getLogModel(myProject).getNotifications();\n updateIconOnStatusBarAndToolWindow(notifications);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/58ee7740c62c8882127b7e21d430edd257d2eb45", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": "import java.util.function.Consumer;\nimport java.util.function.Consumer;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ae74c6cb4efa1a1220bb1ffc16d87b7fa908a340", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " public ActionCallback initializeViewIfNeed() {\n public ActionCallback initializeViewIfNeeded() {\n initializeViewIfNeed().doWhenDone(() -> myView.addTools(tools));\n initializeViewIfNeeded().doWhenDone(() -> myView.addTools(tools));\n context.initializeViewIfNeed().doWhenDone(() -> context.getView().addProblemDescriptors(myToolWrapper, refElement, descriptors));\n context.initializeViewIfNeeded().doWhenDone(() -> context.getView().addProblemDescriptors(myToolWrapper, refElement, descriptors));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e815940fba5643be224a552f4f063dccc40cf0ba", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " openReaderIfNeed(IndexOpenReason.UP_TO_DATE_CACHE);\n openReaderIfNeeded(IndexOpenReason.UP_TO_DATE_CACHE);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3c98bb31108a9183bc299a1081a15c1432229267", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " protected void openReaderIfNeed(IndexOpenReason reason) {\n protected void openReaderIfNeeded(IndexOpenReason reason) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3c98bb31108a9183bc299a1081a15c1432229267", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 6 ] }, { "input": " public synchronized static void closeIfNeed(boolean clearIndex) {\n public synchronized static void closeIfNeeded(boolean clearIndex) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3c98bb31108a9183bc299a1081a15c1432229267", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 10, 12 ] }, { "input": " if (AppUIUtil.showConsentsAgreementIfNeed(Logger.getInstance(StatisticsNotificationManager.class))) {\n if (AppUIUtil.showConsentsAgreementIfNeeded(Logger.getInstance(StatisticsNotificationManager.class))) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9527dbb279ae6f5592e91077542381a4d9c81349", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "import com.intellij.openapi.application.ApplicationManager;\nimport com.intellij.openapi.application.ApplicationManager;\nimport com.intellij.openapi.application.ApplicationManager;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3941a4fa428003928cb2cdfd64ac04f5d7eeca4e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " protected CreateElementActionBase(String text, String description, Icon icon) {\n protected CreateElementActionBase(@Nls(capitalization = Nls.Capitalization.Title) String text,\n @Nls(capitalization = Nls.Capitalization.Sentence) String description,\n Icon icon) {\n protected CreateInDirectoryActionBase(String text, String description, Icon icon) {\n protected CreateInDirectoryActionBase(@Nls(capitalization = Nls.Capitalization.Title) String text,\n @Nls(capitalization = Nls.Capitalization.Sentence) String description,\n Icon icon) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a8dd77acb4058e28d44fc3ede0c793a7d82189e2", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "import com.intellij.util.FunctionUtil;\nimport com.intellij.util.FunctionUtil;\nimport com.intellij.util.FunctionUtil;\nimport com.intellij.util.FunctionUtil;\n", "class": "clone", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b9e82e74bfab47452c1dc082990429a0f3126208", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 5, 7 ] }, { "input": " @Override\n public List commit(@NotNull List changes, @NotNull String preparedComment) {\n return commit(changes, preparedComment, FunctionUtil.nullConstant(), null);\n }\n\n @Override\n public List commit(@NotNull List changes, @NotNull String preparedComment) {\n return commit(changes, preparedComment, FunctionUtil.nullConstant(), null);\n }\n\n @Override\n public List commit(@NotNull List changes, @NotNull String preparedComment) {\n return commit(changes, preparedComment, FunctionUtil.nullConstant(), null);\n }\n\n\n @Override\n public List commit(@NotNull List changes, @NotNull String preparedComment) {\n return commit(changes, preparedComment, FunctionUtil.nullConstant(), null);\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b9e82e74bfab47452c1dc082990429a0f3126208", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 10, 6 ] }, { "input": " return (long) Arrays.asList('d', 'e', 'f')./*stream*/size()/*after*/;\n return Arrays.asList('d', 'e', 'f')./*stream*/size()/*after*/;\n long cnt = (long) Arrays.asList('d', 'e', 'f')./*stream*/size()/*after*/;\n long cnt = Arrays.asList('d', 'e', 'f')./*stream*/size()/*after*/;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7bc2b6c529d85892889be0a3e477bd0a69d9cc9f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " Distribution distribution = new DistributionFactoryExt().getWrappedDistribution(propertiesFile, gradleUserHome);\n Distribution distribution = new DistributionFactoryExt().getWrappedDistribution(propertiesFile, gradleUserHome, projectDir);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d015d357d293418dcc4c9d591b2ec24f50210b59", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " icon, Pass.LINE_MARKERS, type.getTooltip(),\n icon, type.getTooltip(),\n icon, Pass.LINE_MARKERS, type.getTooltip(),\n icon, type.getTooltip(),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0c023a73c5830ddf23b757c26200ca4eb8993607", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " new LineMarkerInfo<>(identifier, identifier.getTextRange(), AllIcons.Gutter.Java9Service, Pass.LINE_MARKERS,\n new LineMarkerInfo<>(identifier, identifier.getTextRange(), AllIcons.Gutter.Java9Service,\n new LineMarkerInfo<>(identifier, identifier.getTextRange(), AllIcons.Gutter.Java9Service, Pass.LINE_MARKERS,\n new LineMarkerInfo<>(identifier, identifier.getTextRange(), AllIcons.Gutter.Java9Service,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0c023a73c5830ddf23b757c26200ca4eb8993607", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " if (!isFileUnderContentRoot(index, parent)) {\n if (!isFileUnderContentRoot(myIndex, parent)) {\n if (!isFileUnderContentRoot(index, parent)) {\n if (!isFileUnderContentRoot(myIndex, parent)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/397cd743a2f70d89e4c27155b4421a6a210bcfc1", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " Set annotationNames = ContainerUtil.newHashSet(nullables);\n annotationNames.addAll(getNotNullsWithNickNames());\n Set annotationNames = ContainerUtil.newHashSet(nullables);\n annotationNames.addAll(getNotNullsWithNickNames());\n Set annotationNames = getAllNullabilityAnnotationsWithNickNames();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ff937cc2a26f3939ab1118befa660a636f801891", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " @SuppressWarnings(\"UseOfSystemOutOrSystemErr\")\n static boolean allocateTonsOfMemory(BooleanSupplier until) {\n @SuppressWarnings({\"UseOfSystemOutOrSystemErr\", \"StringConcatenationInsideStringBufferAppend\"})\n static boolean allocateTonsOfMemory(StringBuilder log, BooleanSupplier until) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/59de23443793a8965649471f79494ccce00b3979", "target_edit_idx": 5, "propagatable_edit_idx": [ 10, 3 ] }, { "input": " if (!GCUtil.allocateTonsOfMemory(this::isEverythingCollected)) {\n StringBuilder log = new StringBuilder();\n if (!GCUtil.allocateTonsOfMemory(log, this::isEverythingCollected)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/59de23443793a8965649471f79494ccce00b3979", "target_edit_idx": 10, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " boolean unregisterExtension(@NotNull BiPredicate extensionClassFilter);\n boolean unregisterExtensions(@NotNull BiPredicate extensionClassFilter, boolean stopAfterFirstMatch);\n public synchronized boolean unregisterExtension(@NotNull BiPredicate extensionClassFilter) {\n public synchronized boolean unregisterExtensions(@NotNull BiPredicate extensionClassFilter, boolean stopAfterFirstMatch) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/17526491db57af6a5eabdbee9d3c3764c1b53147", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ecd7b74c49efcdca240eb46366add1338c97607a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " addExecutionStacks(Collections.singletonList(activeExecutionStack));\n\n XExecutionStack[] executionStacks = suspendContext.getExecutionStacks();\n addExecutionStacks(Arrays.asList(executionStacks));\n addExecutionStacks(Collections.singletonList(activeExecutionStack), false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ecd7b74c49efcdca240eb46366add1338c97607a", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " private void addExecutionStacks(List executionStacks) {\n private boolean addExecutionStacks(List executionStacks, boolean addBeforeSelection) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ecd7b74c49efcdca240eb46366add1338c97607a", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " connection.subscribe(IdeDocumentHistoryImpl.RecentPlacesListener.TOPIC, new IdeDocumentHistoryImpl.RecentPlacesListener() {\n connection.subscribe(IdeDocumentHistoryImpl.RecentlyVisitedPlacesListener.TOPIC, new IdeDocumentHistoryImpl.RecentlyVisitedPlacesListener() {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9359a570356c0c43a166a0dedccb3f101f73f8a8", "target_edit_idx": 0, "propagatable_edit_idx": [ 12 ] }, { "input": " void recentPlacePushed(@NotNull PlaceInfo changePlace);\n void recentPlaceAdded(@NotNull PlaceInfo changePlace);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9359a570356c0c43a166a0dedccb3f101f73f8a8", "target_edit_idx": 13, "propagatable_edit_idx": [ 1 ] }, { "input": " return addProjectLibrary(model, libName, classesRoots, Collections.emptyList());\n return addProjectLibrary(model, libName, classesRoots, Collections.emptyList(), Collections.emptyList());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/50108c7c60dd833f856674b3a4e121131c46aacf", "target_edit_idx": 11, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/705eacae30d7af4952801f947a35a783bc8639e2", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 2, 4 ] }, { "input": " UIUtil.drawStringWithHighlighting(g, text,\n UIUtil.drawStringWithHighlighting(g, myText,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7692f5e3779844f6bef5d467d9f3f8235e813447", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "/*\n * Copyright 2000-2016 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n/*\n * Copyright 2000-2017 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n/*\n * Copyright 2000-2017 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f2df5cfbcde1911a4d5667427f7d8350bc374a8a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " @JdkConstants.CursorType int myType;\n @JdkConstants.CursorType int myCursorType;\n protected static boolean ourIsResizing;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/759570327064b75896f6a4dda282eb885a55e22d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 9, 10, 11, 12 ] }, { "input": " if (hitTest(event)) {\n if (!ourIsResizing && hitTest(event)) {\n if (hitTest(event)) {\n if (!ourIsResizing && hitTest(event)) {\n //if (hitTest(event)) {\n if (!ourIsResizing/* && hitTest(event)*/) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/759570327064b75896f6a4dda282eb885a55e22d", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " if (myType == NE_RESIZE_CURSOR || myType == E_RESIZE_CURSOR || myType == SE_RESIZE_CURSOR || myType == DEFAULT_CURSOR) {\n if (myCursorType == NE_RESIZE_CURSOR || myCursorType == E_RESIZE_CURSOR || myCursorType == SE_RESIZE_CURSOR || myCursorType == DEFAULT_CURSOR) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/JetBrains/intellij-community/commit/759570327064b75896f6a4dda282eb885a55e22d", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 2, 4, 10, 11, 12 ] }, { "input": " else if (myType == NW_RESIZE_CURSOR || myType == N_RESIZE_CURSOR || myType == NE_RESIZE_CURSOR) {\n else if (myCursorType == NW_RESIZE_CURSOR || myCursorType == N_RESIZE_CURSOR || myCursorType == NE_RESIZE_CURSOR) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/JetBrains/intellij-community/commit/759570327064b75896f6a4dda282eb885a55e22d", "target_edit_idx": 12, "propagatable_edit_idx": [ 0, 2, 4, 9, 10, 11 ] }, { "input": " GlobalInspectionContextImpl.CREATE_VIEW_FORCE = true;\n GlobalInspectionContextImpl.TESTING_VIEW = true;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9f57deb9f5d807afd4b832cef11816d67d59ca89", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5, 6 ] }, { "input": " final PsiNewExpression newExpression = (PsiNewExpression)expression;\n if (ExpressionUtils.isArrayCreationExpression(newExpression)) {\n if (ExpressionUtils.isArrayCreationExpression(expression)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/36cfe2b93c10531c96a85beb62bad1fe4cd7e4a6", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " final String text = isNullLiteralExpression(expr) || visitor.getConstantExpressions().get(expr) == ConstantResult.NULL\n final String text = isNullLiteralExpression(expr) || expressions.get(expr) == ConstantResult.NULL\n final String text = isNullLiteralExpression(expr) || visitor.getConstantExpressions().get(expr) == ConstantResult.NULL\n final String text = isNullLiteralExpression(expr) || expressions.get(expr) == ConstantResult.NULL\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b5e6ec36f66cefadde6d8c8ebddefc90b5c4b4e2", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " default int getBeforeIconOffset() {\n default int getAfterIconOffset() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2809db80706cd2fdff3106b313ff56f3ea7c280f", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " LabelReferenceCompletion.isValueBreakPosition(position) == Boolean.FALSE) {\n LabelReferenceCompletion.isBreakValueOrLabelPosition(position) == Boolean.FALSE) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/195aa02dabd40a51be7229b4479ed69b36390d8a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " return EXPR_KEYWORDS.accepts(position) && LabelReferenceCompletion.isValueBreakPosition(position) != Boolean.FALSE ||\n return EXPR_KEYWORDS.accepts(position) && LabelReferenceCompletion.isBreakValueOrLabelPosition(position) != Boolean.FALSE ||\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/195aa02dabd40a51be7229b4479ed69b36390d8a", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5 ] }, { "input": " if (TestFrameworkUtil.isJUnit4TestClass(testCaseClass)) {\n if (TestFrameworkUtil.isJUnit4TestClass(testCaseClass, false)) {\n return TestFrameworkUtil.isJUnit4TestClass(testCaseClass);\n return TestFrameworkUtil.isJUnit4TestClass(testCaseClass, false);\n public static boolean isJUnit4TestClass(@NotNull Class aClass) {\n public static boolean isJUnit4TestClass(@NotNull Class aClass, boolean allowAbstract) {\n return TestCase.class.isAssignableFrom(clazz) || TestFrameworkUtil.isJUnit4TestClass(clazz) || Parameterized.class.isAssignableFrom(clazz);\n return TestCase.class.isAssignableFrom(clazz) || TestFrameworkUtil.isJUnit4TestClass(clazz, true) || Parameterized.class.isAssignableFrom(clazz);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7a03c4a1c53b7a1dac1feca4b2062d862c60a539", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 5 ] }, { "input": " return TestCase.class.isAssignableFrom(clazz) || TestFrameworkUtil.isJUnit4TestClass(clazz) || Parameterized.class.isAssignableFrom(clazz);\n return TestCase.class.isAssignableFrom(clazz) || TestFrameworkUtil.isJUnit4TestClass(clazz, true) || Parameterized.class.isAssignableFrom(clazz);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7a03c4a1c53b7a1dac1feca4b2062d862c60a539", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " else if (KeyboardUtils.isCharacter(e) || KeyboardUtils.isBackSpace(keyCode)) {\n else if (KeyboardUtils.isPartOfJavaClassName(keyChar) || KeyboardUtils.isBackSpace(keyChar)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8b754e0099efc9f43e4e71a932d11cc7acf3a488", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " new WrapWithCodeBlockFix(isExpressionResult));\n new WrapWithCodeBlockFix(isResultExpression));\n }\n\n @NotNull\n private PsiElement getProblemElement(@NotNull PsiSwitchLabeledRuleStatement statement) {\n if (isOnTheFly) {\n if (InspectionProjectProfileManager.isInformationLevel(getShortName(), statement) ||\n ApplicationManager.getApplication().isUnitTestMode()) {\n return statement;\n }\n }\n return ObjectUtils.notNull(ObjectUtils.tryCast(statement.getFirstChild(), PsiKeyword.class), statement);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4e041e763b48a79a2d5ae4742795e9e1d2199cfa", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " case 1 -> Integer.toString(n);\n case 1 -> Integer.toString(n);\n case 1 -> s = Integer.toString(n);\n case 1 -> s = Integer.toString(n);\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4e041e763b48a79a2d5ae4742795e9e1d2199cfa", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": " case 3 -> throw new RuntimeException();\n case 3 -> throw new RuntimeException();\n case 3 -> throw new RuntimeException();\n case 3 -> throw new RuntimeException();\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4e041e763b48a79a2d5ae4742795e9e1d2199cfa", "target_edit_idx": 9, "propagatable_edit_idx": [ 12 ] }, { "input": " default -> \"b\";\n default -> \"b\";\n default -> s = \"b\";\n default -> s = \"b\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4e041e763b48a79a2d5ae4742795e9e1d2199cfa", "target_edit_idx": 10, "propagatable_edit_idx": [ 13 ] }, { "input": " manager.unregisterAction(action.getId());\n manager.registerAction(action.getId(), action);\n manager.replaceAction(action.getId(), action);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7777777777777778, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a74b5e72ce364c7fc84c9a8defc11b0e02d44b3a", "target_edit_idx": 2, "propagatable_edit_idx": [ 6, 7, 9, 11, 12, 13 ] }, { "input": " actionManager.unregisterAction(id);\n actionManager.unregisterAction(id);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a74b5e72ce364c7fc84c9a8defc11b0e02d44b3a", "target_edit_idx": 5, "propagatable_edit_idx": [ 10 ] }, { "input": " manager.unregisterAction(id);\n manager.registerAction(id, runConfigurationAction);\n manager.replaceAction(id, runConfigurationAction);\n manager.unregisterAction(action.getId());\n manager.registerAction(action.getId(), action);\n manager.replaceAction(action.getId(), action);\n actionManager.registerAction(id, runConfigurationAction);\n actionManager.replaceAction(id, runConfigurationAction);\n }\n else {\n actionManager.unregisterAction(id);\n manager.unregisterAction(actionId);\n manager.registerAction(actionId, mavenGoalAction);\n manager.replaceAction(actionId, mavenGoalAction);\n actionManager.registerAction(id, eachAction);\n actionManager.replaceAction(id, eachAction);\n }\n else {\n actionManager.unregisterAction(id);\n actionManager.unregisterAction(ACTION_FIND_NEXT);\n actionManager.unregisterAction(ACTION_FIND_PREVIOUS);\n actionManager.registerAction(ACTION_FIND_NEXT, new MyFindAction(nextAction, false));\n actionManager.registerAction(ACTION_FIND_PREVIOUS, new MyFindAction(prevAction, true));\n actionManager.replaceAction(ACTION_FIND_NEXT, new MyFindAction(nextAction, false));\n actionManager.replaceAction(ACTION_FIND_PREVIOUS, new MyFindAction(prevAction, true));\n mgr.unregisterAction(VALIDATE_XML);\n mgr.registerAction(VALIDATE_XML, new ValidateAction(validateAction));\n mgr.replaceAction(VALIDATE_XML, new ValidateAction(validateAction));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7777777777777778, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a74b5e72ce364c7fc84c9a8defc11b0e02d44b3a", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 6, 9, 11, 12, 13 ] }, { "input": " manager.unregisterAction(actionId);\n manager.registerAction(actionId, mavenGoalAction);\n manager.replaceAction(actionId, mavenGoalAction);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a74b5e72ce364c7fc84c9a8defc11b0e02d44b3a", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 6, 7, 11, 12, 13 ] }, { "input": " mgr.unregisterAction(VALIDATE_XML);\n mgr.registerAction(VALIDATE_XML, new ValidateAction(validateAction));\n mgr.replaceAction(VALIDATE_XML, new ValidateAction(validateAction));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a74b5e72ce364c7fc84c9a8defc11b0e02d44b3a", "target_edit_idx": 13, "propagatable_edit_idx": [ 2, 6, 7, 9, 11, 12 ] }, { "input": " private List expandGroupChild(AnAction child, boolean hideDisabled, boolean transparentOnly) {\n private List expandGroupChild(AnAction child, boolean hideDisabled) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e0287181890dfc3bb91d0a3adc09c136f1f856fb", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " if (patches.isEmpty() && oldBinaries.isEmpty()) {\n catch (IOException | PatchSyntaxException e) {\n LOG.info(e);\n VcsImplUtil.showErrorMessage(myProject, e.getMessage(), \"Cannot delete files from \" + list.DESCRIPTION);\n return;\n }\n if (remainingPatches.isEmpty() && remainingBinaries.isEmpty()) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/acb49d7a039d48e115ce437af996e313b447cada", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " String defaultShelfPath = ShelveChangesManager.getDefaultShelfPath(project);\n return FileUtil.isAncestor(defaultShelfPath, filePath.getPath(), false);\n String shelfPath = ShelveChangesManager.getShelfPath(project);\n return FileUtil.isAncestor(shelfPath, filePath.getPath(), false);\n String defaultShelfPath = ShelveChangesManager.getDefaultShelfPath(project);\n if (FileUtil.isAncestor(projectBasePath, defaultShelfPath, true)) {\n String shelfPath = ShelveChangesManager.getShelfPath(project);\n if (FileUtil.isAncestor(projectBasePath, shelfPath, true)) {\n FileUtil.getRelativePath(projectBasePath, defaultShelfPath, '/');\n FileUtil.getRelativePath(projectBasePath, shelfPath, '/');\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b516b6fee87a490ef01456f61543f104ccc6f695", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " Rectangle preferredBounds = new Rectangle(preferredLocation.getScreenPoint(), preferredSize);\n Rectangle preferredBounds = new Rectangle(preferredLocation.getScreenPoint(), targetSize);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2b7eb9ac058cea1ba6ef5a2646ee7106f1edd72f", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " void registerSemElementProvider(SemKey key, ElementPattern place, NullableFunction provider);\n void registerSemElementProvider(SemKey key, ElementPattern place, NullableFunction provider);\n void registerRepeatableSemElementProvider(SemKey key, ElementPattern place, NullableFunction> provider);\n void registerRepeatableSemElementProvider(SemKey key, ElementPattern place, NullableFunction> provider);\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e408b9856a7ceb93ad8d683d0070e3b2908e9341", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " final NullableFunction provider) {\n final NullableFunction provider) {\n NullableFunction> provider) {\n NullableFunction> provider) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e408b9856a7ceb93ad8d683d0070e3b2908e9341", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " if (infoType == HighlightInfoType.WARNING) return ProblemHighlightType.GENERIC_ERROR_OR_WARNING;\n if (infoType == HighlightInfoType.WARNING) return ProblemHighlightType.WARNING;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2f718d8340d675c288f8f5f4adb06419210d24f8", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " private static VirtualFile findFileToPatchByName(@NotNull ApplyPatchContext context, final String fileName,\n boolean isNewFile) {\n private static VirtualFile findFileToPatchByName(@NotNull ApplyPatchContext context, final String fileName) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ea01b3da48aed583a6f2d03d3c0c4edfe5439c15", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " \n private static boolean hasSettingsToShow(Language language) {\n LanguageCodeStyleSettingsProvider provider = LanguageCodeStyleSettingsProvider.forLanguage(language);\n if (provider == null) {\n return false;\n }\n return CodeFragmentCodeStyleSettingsPanel.hasOptionsToShow(provider);\n\n private static boolean hasSettingsToShow(Editor editor, PsiFile file) {\n LanguageCodeStyleSettingsProvider provider = getProviderForContext(editor, file);\n return provider != null &&\n CodeFragmentCodeStyleSettingsPanel.hasOptionsToShow(provider);\n }\n\n @Nullable\n private static LanguageCodeStyleSettingsProvider getProviderForContext(Editor editor, PsiFile file) {\n Language language = PsiUtilBase.getLanguageInEditor(editor.getCaretModel().getCurrentCaret(), file.getProject());\n return LanguageCodeStyleSettingsProvider.forLanguage(language);\n Language language = file.getLanguage();\n return editor.getSelectionModel().hasSelection() && file.isWritable() && hasSettingsToShow(language);\n return editor.getSelectionModel().hasSelection() && file.isWritable() && hasSettingsToShow(editor, file);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/abe2d93903f79c8ea5810d611bfe2e9f14594a85", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " @NotNull protected final List> myChangesOutput;\n @NotNull private final VcsStatusDescriptor myDescriptor;\n @NotNull protected final List> myChangesOutput;\n @NotNull private final VcsStatusDescriptor myDescriptor;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9090909090909091, "commit_url": "https://github.com/JetBrains/intellij-community/commit/dc7c91e355c4e310ef638c466507cef7b481d955", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " for (S status : myChangesOutput.get(parent)) {\n for (VcsFileStatusInfo status : myChangesOutput.get(parent)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6363636363636364, "commit_url": "https://github.com/JetBrains/intellij-community/commit/dc7c91e355c4e310ef638c466507cef7b481d955", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 4, 6, 7, 8, 9 ] }, { "input": " private class UnparsedChanges extends VcsChangesLazilyParsedDetails.UnparsedChanges {\n private class UnparsedChanges extends VcsChangesLazilyParsedDetails.UnparsedChanges {\n private class UnparsedChanges extends VcsChangesLazilyParsedDetails.UnparsedChanges {\n private class UnparsedChanges extends VcsChangesLazilyParsedDetails.UnparsedChanges {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/dc7c91e355c4e310ef638c466507cef7b481d955", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " ContentManager contentManager,\n ContentManager contentManager,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3bb07fcab46383f14cee5479bdcb0856db869a85", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " @NotNull String classFQName,\n @Nullable String methodName,\n @NotNull List> classesAndMethods,\n @NotNull String classFqn,\n @Nullable String methodName) {\n @NotNull List> classesAndMethods) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ad61853cd117994e4504023b8e0edd1c91d6dc17", "target_edit_idx": 4, "propagatable_edit_idx": [ 11 ] }, { "input": " private void registerDelayedContentApply(VirtualFile f, Content content, long timestamp) {\n registerDelayedApply(new DelayedContentApply(f, content, timestamp));\n private void registerDelayedContentApply(VirtualFile f, Content content) {\n registerDelayedApply(new DelayedContentApply(f, content));\n registerDelayedContentApply(f, c.getOldContent(), c.getOldTimestamp());\n registerDelayedContentApply(f, c.getOldContent());\n registerDelayedContentApply(f, e.getContent(), e.getTimestamp());\n registerDelayedContentApply(f, e.getContent());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f8ad011e632816ad5f2822cb74907f5564f5bb67", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " myFile.setBinaryContent(myContent.getBytes(), -1, myTimestamp);\n myFile.setBinaryContent(myContent.getBytes());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f8ad011e632816ad5f2822cb74907f5564f5bb67", "target_edit_idx": 9, "propagatable_edit_idx": [ 0 ] }, { "input": " public Collection getValues(@NotNull DataContext dataContext) {\n @Override\n public Collection getValues(@NotNull DataContext dataContext, @NotNull String pattern) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/06b984c337ee49320629320c721b82fe63f15263", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 5, 6, 8, 10 ] }, { "input": " for (RunAnythingItem runConfigurationItem : getGroupItems(dataContext)) {\n for (RunAnythingItem runConfigurationItem : getGroupItems(dataContext, pattern)) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/06b984c337ee49320629320c721b82fe63f15263", "target_edit_idx": 12, "propagatable_edit_idx": [ 7, 9, 11, 13, 14 ] }, { "input": "import com.intellij.psi.PsiClass;\nimport com.intellij.psi.PsiClass;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3d62c5f815984cd5d711577232eafb6a7a2d5d62", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " data.setPatterns(\n Arrays.stream(testMethods)\n .map(method -> {\n Iterator> ancestors = method.getAncestors(PsiClass.class, true);\n return ancestors.next().getPsiElement().getQualifiedName() + \",\" + method.getPsiElement().getName();\n })\n .collect(Collectors.toCollection(LinkedHashSet::new)));\n data.setPatterns(collectMethodPatterns(testMethods));\n data.setPatterns(Arrays.stream(testMethods)\n .map(method -> {\n Iterator> ancestors = method.getAncestors(PsiClass.class, true);\n return ancestors.next().getPsiElement().getQualifiedName() + \",\" + method.getPsiElement().getName();\n })\n .collect(Collectors.toCollection(LinkedHashSet::new)));\n data.setPatterns(collectMethodPatterns(testMethods));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3d62c5f815984cd5d711577232eafb6a7a2d5d62", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "import com.intellij.vcs.log.VcsLogDetailsFilter;\nimport com.intellij.vcs.log.VcsLogDetailsFilter;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/JetBrains/intellij-community/commit/27a0e353472141b79d52712286a9fd17ad9ce7ca", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "import java.util.List;\nimport java.util.Set;\n\nimport java.util.List;\nimport java.util.Set;\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/27a0e353472141b79d52712286a9fd17ad9ce7ca", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " filteredWidthIndex = myIndex.filter(detailsFilters);\n filteredWidthIndex = dataGetter.filter(detailsFilters);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/JetBrains/intellij-community/commit/27a0e353472141b79d52712286a9fd17ad9ce7ca", "target_edit_idx": 13, "propagatable_edit_idx": [ 10 ] }, { "input": " dirtBuilderInProgress = myDirtInProgress != null ? new DirtBuilder(myDirtInProgress) : new DirtBuilder(myGuess);\n dirtBuilderInProgress = myDirtInProgress != null ? new DirtBuilder(myDirtInProgress) : new DirtBuilder();\n myDirtBuilder = new DirtBuilder(myGuess);\n myDirtBuilder = new DirtBuilder();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9b47848be5facfe8f79b900ca4d356f90cf9f994", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " appendRemoveButtonCmd(id, commandsList);\n appendRemoveButtonCmd(id, info, commandsList);\n appendRemoveButtonCmd(id, commandsList);\n appendRemoveButtonCmd(id, info, commandsList);\n appendRemoveButtonCmd(id, commandsList);\n appendRemoveButtonCmd(id, info, commandsList);\n private void appendRemoveButtonCmd(@NotNull String id, @NotNull List commandsList) {\n commandsList.add(myToolWindowsPane.createRemoveButtonCmd(id, myCommandProcessor));\n private void appendRemoveButtonCmd(@NotNull String id, @NotNull WindowInfoImpl info, @NotNull List commandsList) {\n FinalizableCommand cmd = myToolWindowsPane.createRemoveButtonCmd(info, id, myCommandProcessor);\n if (cmd != null) {\n commandsList.add(cmd);\n }\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/83cd49a8f2ebd9a00bdf573e9acd8ac549ec8173", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " appendRemoveButtonCmd(id, commandsList);\n appendRemoveButtonCmd(id, info, commandsList);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/83cd49a8f2ebd9a00bdf573e9acd8ac549ec8173", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " private void appendRemoveButtonCmd(@NotNull String id, @NotNull List commandsList) {\n commandsList.add(myToolWindowsPane.createRemoveButtonCmd(id, myCommandProcessor));\n private void appendRemoveButtonCmd(@NotNull String id, @NotNull WindowInfoImpl info, @NotNull List commandsList) {\n FinalizableCommand cmd = myToolWindowsPane.createRemoveButtonCmd(info, id, myCommandProcessor);\n if (cmd != null) {\n commandsList.add(cmd);\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/83cd49a8f2ebd9a00bdf573e9acd8ac549ec8173", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " catch (MalformedPatternException ex) {\n reportMessage(SSRBundle.message(\"this.pattern.is.malformed.message\",\n (ex.getMessage() != null) ? ex.getMessage() : \"\"), mySearchCriteriaEdit);\n catch (MalformedPatternException e) {\n final String message = StringUtil.isEmpty(matchOptions.getSearchPattern())\n ? null\n : SSRBundle.message(\"this.pattern.is.malformed.message\", (e.getMessage() != null) ? e.getMessage() : \"\");\n reportMessage(message, mySearchCriteriaEdit);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/88db355db3cc038ac65a45310f0f3e8f22f5401b", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " errorMessages.add(\"Project '\" + project.getName() + \"' requires plugin '\" + plugin.getName() + \"' from '\" + minVersion +\n \"' or newer build of the IDE, but the current build is '\" + pluginVersion + \"'.\");\n errorMessages.add(\"Project '\" + project.getName() + \"' requires \" + pluginFromString +\n \"'\" + minVersion + \"' or newer build of the IDE, but the current build is '\" + pluginVersion + \"'.\");\n errorMessages.add(\"Project '\" + project.getName() + \"' requires plugin '\" + plugin.getName() + \"' from '\" + maxVersion +\n \"' or older build of the IDE, but the current build is '\" + pluginVersion + \"'.\");\n errorMessages.add(\"Project '\" + project.getName() + \"' requires \" + pluginFromString +\n \"'\" + maxVersion + \"' or older build of the IDE, but the current build is '\" + pluginVersion + \"'.\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2ea2a5e524287ae65957a9a11cc1a2755dcd81c5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " paintGutterRenderers(g, firstVisibleOffset, lastVisibleOffset);\n paintGutterRenderers(g, firstVisibleOffset, lastVisibleOffset, firstVisibleLine, lastVisibleLine);\n private void paintGutterRenderers(final Graphics2D g, int firstVisibleOffset, int lastVisibleOffset) {\n private void paintGutterRenderers(final Graphics2D g,\n int firstVisibleOffset, int lastVisibleOffset, int firstVisibleLine, int lastVisibleLine) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/41b99566bdc6f3e2763c88c8545c68355a865af7", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " int tail = context.getTailOffset();\n int targetOffset = context.getTailOffset();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/95e8bee5d2e827e1197ed652d6dd4167b1931589", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " showDiff(project, actualChanges, unversioned, isFlatten);\n showDiff(project, actualChanges, unversioned, view);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/cf4792aed2acc9c13f670a3fb7183fb16dde0a2e", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "import com.intellij.openapi.externalSystem.service.internal.ExternalSystemExecuteTaskTask;\nimport com.intellij.openapi.externalSystem.model.task.ExternalSystemTask;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3aadf259945df791691bb90de190fc00049462e3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " public static void onKeyEvent(KeyEvent e) {\n public static void onInputEvent(InputEvent e) {\nimport java.awt.event.KeyEvent;\nimport java.awt.event.InputEvent;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8b638f658d437057c3dcb0fb070e1ce03a99b5bb", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " public void onShow() {}\n public void onBeforeShow() {}\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fa07d7474ee994100ef684b32d0375d8e368d54c", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " return isMuted? AllIcons.Debugger.Db_muted_field_warning_breakpoint : AllIcons.Debugger.Db_field_warning_breakpoint;\n return new LayeredIcon(isMuted ? AllIcons.Debugger.Db_muted_field_breakpoint : AllIcons.Debugger.Db_field_breakpoint,\n AllIcons.General.WarningDecorator);\n return isMuted? AllIcons.Debugger.Db_muted_verified_warning_breakpoint : AllIcons.Debugger.Db_verified_warning_breakpoint;\n return new LayeredIcon(isMuted ? AllIcons.Debugger.Db_muted_breakpoint : AllIcons.Debugger.Db_set_breakpoint,\n AllIcons.General.WarningDecorator);\n return isMuted? AllIcons.Debugger.Db_muted_method_warning_breakpoint : AllIcons.Debugger.Db_method_warning_breakpoint;\n return new LayeredIcon(isMuted ? AllIcons.Debugger.Db_muted_method_breakpoint : AllIcons.Debugger.Db_method_breakpoint,\n AllIcons.General.WarningDecorator);\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ba4db21ddd0bf5418ad1d0761479f47d859fb1d8", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " listener.actionPopupMenuCreated(menu);\n listener.actionPopupMenuCreated((ActionPopupMenu)menu);\n listener.actionPopupMenuReleased(menu);\n listener.actionPopupMenuReleased((ActionPopupMenu)menu);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fe379917ed0cc596afe69fb021de9a3cb50a6dde", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " default void insertString(Editor editor, int offset, CharSequence closingQuote) {\n default void insertClosingQuote(Editor editor, int offset, CharSequence closingQuote) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0717b87f13cb55a7ab90d72abd17456e75a417a2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " public boolean hasScopeEndingAt(@NotNull Editor editor, int offset, boolean removeScope) {\n @Override\n public boolean hasScopeEndingAt(@NotNull Editor editor, int offset) {\n return checkOrRemoveScopeEndingAt(editor, offset, false);\n }\n\n @Override\n public boolean removeScopeEndingAt(@NotNull Editor editor, int offset) {\n return checkOrRemoveScopeEndingAt(editor, offset, true);\n }\n\n private static boolean checkOrRemoveScopeEndingAt(@NotNull Editor editor, int offset, boolean removeScope) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6c8cb2d1c4bc066c1243d1ce7325a0da4101445a", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": " FilePath parentPath = filePath.getParentPath();\n if (parentPath != null) {\n appendParentPath(renderer, parentPath);\n }\n appendParentPath(renderer, filePath.getParentPath());\n FilePath parentPath = path.getParentPath();\n if (parentPath != null) {\n appendParentPath(renderer, parentPath);\n }\n appendParentPath(renderer, path.getParentPath());\n FilePath parentPath = myFilePath.getParentPath();\n if (parentPath != null) {\n appendParentPath(renderer, parentPath);\n }\n appendParentPath(renderer, myFilePath.getParentPath());\n FilePath parentPath = filePath.getParentPath();\n if (parentPath != null) {\n appendParentPath(renderer, parentPath);\n }\n appendParentPath(renderer, filePath.getParentPath());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f67798335950089bf18c695a2bbf6450b50c0e4b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 7 ] }, { "input": " protected void appendParentPath(@NotNull ChangesBrowserNodeRenderer renderer, @NotNull FilePath parentPath) {\n appendParentPath(renderer, parentPath.getPresentableUrl());\n protected void appendParentPath(@NotNull ChangesBrowserNodeRenderer renderer, @Nullable FilePath parentPath) {\n if (parentPath != null) {\n appendParentPath(renderer, parentPath.getPresentableUrl());\n }\n protected void appendParentPath(@NotNull ChangesBrowserNodeRenderer renderer, @NotNull VirtualFile parentPath) {\n appendParentPath(renderer, parentPath.getPresentableUrl());\n protected void appendParentPath(@NotNull ChangesBrowserNodeRenderer renderer, @Nullable VirtualFile parentPath) {\n if (parentPath != null) {\n appendParentPath(renderer, parentPath.getPresentableUrl());\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f67798335950089bf18c695a2bbf6450b50c0e4b", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " return myCopyPasteDelegator.getCutProvider();\n return getCopyPasteDelegator(source).getCutProvider();\n return myCopyPasteDelegator.getPasteProvider();\n return getCopyPasteDelegator(source).getPasteProvider();\n return myCopyPasteDelegator.getCopyProvider();\n return getCopyPasteDelegator(source).getCopyProvider();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6c072501b9ba971d00423c7a9a66f84402231c4b", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " moveToLeftParenthesisBackwardsSkippingNestedEx(leftParenthesis,\n rightParenthesis,\n self -> terminationCondition.value(self.getCurrElement()));\n moveToLeftParenthesisBackwardsSkippingNestedWithPredicate(leftParenthesis,\n rightParenthesis,\n self -> terminationCondition.value(self.getCurrElement()));\n \n public void moveToLeftParenthesisBackwardsSkippingNestedEx(@NotNull SyntaxElement leftParenthesis,\n @NotNull SyntaxElement rightParenthesis,\n @NotNull Condition terminationCondition) {\n\n public void moveToLeftParenthesisBackwardsSkippingNestedWithPredicate(@NotNull SyntaxElement leftParenthesis,\n @NotNull SyntaxElement rightParenthesis,\n @NotNull Predicate terminationCondition) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ea53d1bc57d561c5bcb8a90f281466fa53198ffb", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " public void hide() {\n myCachedIntentions = null;\n doHide();\n public void invalidate() {\n myCachedIntentions.set(null);\n hide();\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f2a7948691ec7d782e41925c08eeed7dd5a24c38", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " void reloadPsiAfterTextChange(@NotNull PsiFile file, @NotNull VirtualFile vFile) {\n void reloadPsiAfterTextChange(@NotNull FileViewProvider viewProvider, @NotNull VirtualFile vFile) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7af2a4efa4ba344bcb194c640d14901bb826cee4", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " PsiFile psiFile = myFileManager.getCachedPsiFileInner(file);\n FileViewProvider psiFile = myFileManager.findCachedViewProvider(file);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7af2a4efa4ba344bcb194c640d14901bb826cee4", "target_edit_idx": 5, "propagatable_edit_idx": [ 1 ] }, { "input": " int firstRangeEndOffset = CharArrayUtil.shiftForward(text, firstRangeStartOffset, WHITESPACE);\n int firstRangeEndOffset = CharArrayUtil.shiftForward(text, firstRangeStartOffset, WHITESPACE_OR_LINE_BREAKS);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0c35ff0d511c56c6bc76e7c2951592aa1f280322", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "import java.util.*;\n\nimport java.util.*;\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5bfb15ec8c16ea4589e265080af3c23ef7e18629", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " FrameDiffTool frameTool = findToolSubstitutor(getFittedTool());\n FrameDiffTool frameTool = getFittedTool(true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6481539fff7649749c56b93af35a0405802d635d", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 5, 7 ] }, { "input": " myState = new ErrorState(new ErrorDiffRequest(DiffBundle.message(\"error.cant.show.diff.message\")), getFittedTool());\n myState = new ErrorState(new ErrorDiffRequest(DiffBundle.message(\"error.cant.show.diff.message\")), getFittedTool(true));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6481539fff7649749c56b93af35a0405802d635d", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 5, 6 ] }, { "input": "/*\n * Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n */\n// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n/*\n * Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n */\n// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a1f0fee7e5f515927ffba7355dc764f5e50c8eec", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " private static PyFunctionType getSuperFunctionType(@NotNull PyFunction function, @NotNull TypeEvalContext context) {\n private static PyFunction getOverriddenFunction(@NotNull PyFunction function, @NotNull TypeEvalContext context) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ff72b10e29e44845fb1d8b45fe2ab1758fe4409a", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": " if (myMousePressedEvent != null && myMousePressedEvent.getClickCount() == 1 && myMousePressedInsideSelection\n if (myMousePressedEvent != null && myMousePressedEvent.getClickCount() == 1 && myMousePressedInsideSelectionForDrag\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4506b0ae9d334bac479ea0abc39c930eac674989", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "import com.intellij.openapi.util.InvalidDataException;\nimport com.intellij.openapi.util.WriteExternalException;\nimport org.jdom.Element;\nimport org.jetbrains.annotations.NotNull;\nimport org.jetbrains.jps.model.serialization.facet.FacetState;\nimport com.intellij.openapi.util.InvalidDataException;\nimport com.intellij.openapi.util.WriteExternalException;\nimport org.jdom.Element;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d6fc5cd95bfc71ec4db7ca7743a640c1548761c2", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " @Override\n public void readExternal(Element element) throws InvalidDataException {\n }\n\n @Override\n public void writeExternal(Element element) throws WriteExternalException {\n }\n\n public void readExternal(Element element) throws InvalidDataException {\n }\n\n public void writeExternal(Element element) throws WriteExternalException {\n }\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d6fc5cd95bfc71ec4db7ca7743a640c1548761c2", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " PsiMethod existingMethod = PsiAdapter.findMethodByName(clazz, template.getTargetMethodName()); // find the existing method\n String targetMethodName = template.getTargetMethodName(clazz);\n if (targetMethodName == null) return;\n PsiMethod existingMethod = PsiAdapter.findMethodByName(clazz, targetMethodName); // find the existing method\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9f6fc37a6a7617c8758cf8adaebf44838e9faa0f", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 6 ] }, { "input": " List preferredLists = getPreferredLists(listManager.getChangeListsCopy(), changes);\n List listsForChooser =\n preferredLists.isEmpty() ? Collections.singletonList(listManager.getDefaultChangeList()) : preferredLists;\n ChangeListChooser chooser = new ChangeListChooser(project, listsForChooser, guessPreferredList(preferredLists),\n List nonAffectedLists = getNonAffectedLists(listManager.getChangeListsCopy(), changes);\n List suggestedLists = nonAffectedLists.isEmpty()\n ? Collections.singletonList(listManager.getDefaultChangeList())\n : nonAffectedLists;\n ChangeList defaultSelection = guessPreferredList(nonAffectedLists);\n\n ChangeListChooser chooser = new ChangeListChooser(project, suggestedLists, defaultSelection,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f94bf6e3c0e87596fe2d03e175276ece625bcc20", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " private static LocalChangeList askTargetChangelist(Project project) {\n private static LocalChangeList askTargetChangelist(Project project, @NotNull Set selectedListIds) {\n ChangeListManager clm = ChangeListManager.getInstance(project);\n List allChangelists = clm.getChangeListsCopy();\n\n List nonAffectedLists = ContainerUtil.filter(allChangelists, list -> !selectedListIds.contains(list.getId()));\n List suggestedLists = nonAffectedLists.isEmpty()\n ? Collections.singletonList(clm.getDefaultChangeList())\n : nonAffectedLists;\n ChangeList defaultSelection = MoveChangesToAnotherListAction.guessPreferredList(nonAffectedLists);\n LocalChangeList selectedList = askTargetChangelist(project);\n if (selectedList == null) return;\n Set selectedListIds = ContainerUtil.map2Set(ranges, range -> range.getChangelistId());\n LocalChangeList targetList = askTargetChangelist(project, selectedListIds);\n if (targetList == null) return;\n LocalChangeList selectedList = askTargetChangelist(project);\n if (selectedList == null) return;\n Set selectedListIds = Collections.singleton(range.getChangelistId());\n LocalChangeList targetList = askTargetChangelist(project, selectedListIds);\n if (targetList == null) return;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f94bf6e3c0e87596fe2d03e175276ece625bcc20", "target_edit_idx": 13, "propagatable_edit_idx": [ 8, 11 ] }, { "input": " * Copyright 2000-2016 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n * Copyright 2000-2015 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2283a715ae76b824e5c9fc27bcdcbaa42faa2c5d", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " String value = expression.getText();\n String text = expression.getText();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/52316ebbe1eb5b9d7cbce4cab7dad5ea29e32921", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " cl.addAll(gerReadEnvCommand());\n cl.addAll(getReadEnvCommand());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a97813509a48ae62be738477f54b8b65c7b52f46", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "import com.jetbrains.python.PyNames;\nimport com.jetbrains.python.PyNames;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a94b169bdd0c44acdf0fe80503c157e824a2337c", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " /**\n * @deprecated Use {@link PyParameter#getDefaultValueText()} instead.\n * This method will be removed in 2018.2.\n */\n @Deprecated\n default boolean hasDefaultNoneValue() {\n return PyNames.NONE.equals(getDefaultValueText());\n }\n\n /**\n * @deprecated Use {@link PyNamedParameterStub#getDefaultValueText()} instead.\n * This method will be removed in 2018.2.\n */\n @Deprecated\n default boolean hasDefaultNoneValue() {\n return PyNames.NONE.equals(getDefaultValueText());\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a94b169bdd0c44acdf0fe80503c157e824a2337c", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " return new ProblemDescriptorBase(startElement, endElement, descriptionTemplate, fixes, highlightType, false, null, true, onTheFly);\n return new ProblemDescriptorBase(startElement, endElement, descriptionTemplate, fixes, highlightType, false, null, highlightType != ProblemHighlightType.INFORMATION, onTheFly);\n return new ProblemDescriptorBase(psiElement, psiElement, descriptionTemplate, fixes, highlightType, false, rangeInElement, true, onTheFly);\n return new ProblemDescriptorBase(psiElement, psiElement, descriptionTemplate, fixes, highlightType, false, rangeInElement, highlightType != ProblemHighlightType.INFORMATION, onTheFly);\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1d759e10e34ea33f9a2a05d2748e9fe635ab4ada", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " public void process(KeyEvent e) {\n public void processKeyEvent(KeyEvent e) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/55330b22fb76b1e7e9ebff1c6f80e1fcb95c025b", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 5, 6, 7 ] }, { "input": " void flushBufferBeforeTerminating();\n}\n \n\n /**\n * @deprecated use {@link #flushBufferBeforeTerminating(int)}\n */\n default void flushBufferBeforeTerminating() {}\n\n default void flushBufferBeforeTerminating(int exitCode) {\n flushBufferBeforeTerminating();\n }\n}\n outputConsumer.flushBufferBeforeTerminating();\n outputConsumer.flushBufferBeforeTerminating(event.getExitCode());\n public void flushBufferBeforeTerminating() {\n public void flushBufferBeforeTerminating(int exitCode) {\n myOutputConsumer.flushBufferBeforeTerminating();\n myOutputConsumer.flushBufferBeforeTerminating(0);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0d3384e9b61a062215b5af8f292e2239aa160bb9", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 7 ] }, { "input": " myOutputConsumer.flushBufferBeforeTerminating();\n myOutputConsumer.flushBufferBeforeTerminating(0);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0d3384e9b61a062215b5af8f292e2239aa160bb9", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": " myMetaInfo.setProperty(VENDOR_NAME_PROPERTY, vendorName);\n myMetaInfo.setProperty(VENDOR_MAIL_PROPERTY, vendorMail);\n myMetaInfo.setProperty(VENDOR_URL_PROPERTY, vendorUrl);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4447057e84c3f67f6d04fa3844c3766cee644302", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 12 ] }, { "input": " updateStep();\n updateStep(JBCardLayout.SwipeDirection.BACKWARD);\n updateStep();\n updateStep(JBCardLayout.SwipeDirection.BACKWARD);\n }\n\n protected final void updateStep(JBCardLayout.SwipeDirection direction) {\n //it would be better to pass 'direction' to 'updateStep' as a parameter, but since that method is used and overriden in plugins\n // we cannot do it without breaking compatibility\n try {\n myTransitionDirection = direction;\n updateStep();\n }\n finally {\n myTransitionDirection = JBCardLayout.SwipeDirection.AUTO;\n }\n updateStep();\n updateStep(JBCardLayout.SwipeDirection.FORWARD);\n updateStep();\n updateStep(JBCardLayout.SwipeDirection.FORWARD);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f9dff140734825a463f798bcf8335d48a320132d", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 7 ] }, { "input": " updateStep();\n updateStep(JBCardLayout.SwipeDirection.FORWARD);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f9dff140734825a463f798bcf8335d48a320132d", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 6 ] }, { "input": " myPanels[i].setBorder(isLastParameterOwner() ? LAST_ITEM_BORDER : BOTTOM_BORDER);\n myPanels[i].setBorder(isLastParameterOwner() || isSingleParameterInfo() ? EMPTY_BORDER : BOTTOM_BORDER);\n myPanels[i].setBorder(isLastParameterOwner() ? LAST_ITEM_BORDER : BOTTOM_BORDER);\n myPanels[i].setBorder(isLastParameterOwner() || isSingleParameterInfo() ? EMPTY_BORDER : BOTTOM_BORDER);\n myPanels[i].setBorder(isLastParameterOwner() ? LAST_ITEM_BORDER : BOTTOM_BORDER);\n myPanels[i].setBorder(isLastParameterOwner() || isSingleParameterInfo() ? EMPTY_BORDER : BOTTOM_BORDER);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b1dd534ef72ec4df934a0f2982dab17e9edf5cc0", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " public void setNextStatement(@Nullable XSuspendContext context, XSourcePosition sourcePosition, Editor editor) {\n public void startSetNextStatement(@Nullable XSuspendContext context, XSourcePosition sourcePosition, Editor editor) {\n pyDebugProcess.setNextStatement(debugProcess.getSession().getSuspendContext(), position, editor);\n pyDebugProcess.startSetNextStatement(debugProcess.getSession().getSuspendContext(), position, editor);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3d29e031ae9ef0630b958687d6f1d8bd0463f715", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": " BufferedReader reader = new BufferedReader(new FileReader(suiteClassName.substring(1)));\n BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(suiteClassName.substring(1)), \"UTF-8\"));\n BufferedReader reader = new BufferedReader(new FileReader(suiteClassName.substring(1)));\n BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(suiteClassName.substring(1)), \"UTF-8\"));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a8becb4a47c28e49a69a6b88b0d24bd6a1ac339b", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "print(slice())\nprint(slice())\nprint(slice(1, 2, 3, 4))\nprint(slice(1, 2, 3, 4))", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f7a325c536aab4900ce4b47dce67099058565f1a", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " g(\"a\", False)\n g(5, 6)\n g(False, 5)\n g(\"a\", False)\n g(5, 6)\n g(False, 5)\n g(\"a\", \"b\")\n g(5, 6)\n g(\"a\", 5)\n g(\"a\", \"b\")\n g(5, 6)\n g(\"a\", 5)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f7a325c536aab4900ce4b47dce67099058565f1a", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " dispose(logManager);\n disposeLogUi(logManager);\n private void dispose(@Nullable VcsLogManager logManager) {\n @CalledInAwt\n private void disposeLogUi(@Nullable VcsLogManager logManager) {\n dispose(myProjectLog.getLogManager());\n }\n\n private void closeLogTabs(@NotNull VcsLogManager logManager) {\n ToolWindow toolWindow = ToolWindowManager.getInstance(myProject).getToolWindow(ToolWindowId.VCS);\n\n if (toolWindow != null) {\n for (String tabName : logManager.getTabNames()) {\n if (!TAB_NAME.equals(tabName)) { // main tab is closed by the ChangesViewContentManager\n Content content = toolWindow.getContentManager().findContent(tabName);\n LOG.assertTrue(content != null, \"Could not find content for tab \" + tabName);\n ContentsUtil.closeContentTab(toolWindow.getContentManager(), content);\n }\n }\n }\n disposeLogUi(myProjectLog.getLogManager());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ce55ca024fe9cb6b8a878a193fa2b60616bd58dc", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " * Copyright 2000-2014 JetBrains s.r.o.\n * Copyright 2000-2017 JetBrains s.r.o.\n * Copyright 2000-2016 JetBrains s.r.o.\n * Copyright 2000-2017 JetBrains s.r.o.\n * Copyright 2000-2016 JetBrains s.r.o.\n * Copyright 2000-2017 JetBrains s.r.o.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8989db78fcc5badd7d88058fe71a02d136e0a2b3", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " private SoftReference myReference;\n private volatile SoftReference myReference;\n private SoftReference myStubBaseReference;\n private volatile SoftReference myStubBaseReference;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8989db78fcc5badd7d88058fe71a02d136e0a2b3", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " LafManagerImpl.initFontDefaults(defaults, 11, new FontUIResource(\"Tahoma\", Font.PLAIN, 11));\n LafManagerImpl.initFontDefaults(defaults, new FontUIResource(\"Tahoma\", Font.PLAIN, 11));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f9eb5f761e1b5add93d809ef36b423590d88a910", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 5 ] }, { "input": " initFontDefaults(uiDefaults, uiSettings.getFontSize(), new FontUIResource(uiSettings.getFontFace(), Font.PLAIN, uiSettings.getFontSize()));\n initFontDefaults(uiDefaults, new FontUIResource(uiSettings.getFontFace(), Font.PLAIN, uiSettings.getFontSize()));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f9eb5f761e1b5add93d809ef36b423590d88a910", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 5 ] }, { "input": " public static void initFontDefaults(UIDefaults defaults, int fontSize, FontUIResource uiFont) {\n public static void initFontDefaults(@NotNull UIDefaults defaults, @NotNull FontUIResource uiFont) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f9eb5f761e1b5add93d809ef36b423590d88a910", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 5 ] }, { "input": " LafManagerImpl.initFontDefaults(defaults, 13, uiFont);\n LafManagerImpl.initFontDefaults(defaults, uiFont);\n LafManagerImpl.initFontDefaults(defaults, systemFont.second, new FontUIResource(systemFont.first, Font.PLAIN, systemFont.second));\n LafManagerImpl.initFontDefaults(defaults, new FontUIResource(systemFont.first, Font.PLAIN, systemFont.second));\n LafManagerImpl.initFontDefaults(defaults, 11, new FontUIResource(\"Tahoma\", Font.PLAIN, 11));\n LafManagerImpl.initFontDefaults(defaults, new FontUIResource(\"Tahoma\", Font.PLAIN, 11));\n initFontDefaults(uiDefaults, uiSettings.getFontSize(), new FontUIResource(uiSettings.getFontFace(), Font.PLAIN, uiSettings.getFontSize()));\n initFontDefaults(uiDefaults, new FontUIResource(uiSettings.getFontFace(), Font.PLAIN, uiSettings.getFontSize()));\n public static void initFontDefaults(UIDefaults defaults, int fontSize, FontUIResource uiFont) {\n public static void initFontDefaults(@NotNull UIDefaults defaults, @NotNull FontUIResource uiFont) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f9eb5f761e1b5add93d809ef36b423590d88a910", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " indexOneByOne(counter);\n indexOneByOne(commits, counter);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fbb43c209af5327d1a75176548de5f41c8d5b5e4", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " private void indexOneByOne(@NotNull CommitsCounter counter) {\n IntStream commits = TroveUtil.stream(myCommits).filter(c -> {\n if (isIndexed(c)) {\n counter.oldCommits++;\n return false;\n }\n return true;\n });\n\n indexOneByOne(counter, commits);\n }\n\n private void indexOneByOne(@NotNull CommitsCounter counter,\n @NotNull IntStream commits) {\n private void indexOneByOne(@NotNull IntStream commits, @NotNull CommitsCounter counter) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fbb43c209af5327d1a75176548de5f41c8d5b5e4", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " public void indexAll(@NotNull CommitsCounter counter) {\n TIntHashSet notIndexed = new TIntHashSet();\n TroveUtil.stream(myCommits).forEach(c -> {\n if (isIndexed(c)) {\n counter.oldCommits++;\n }\n else {\n notIndexed.add(c);\n }\n });\n public void indexAll(@NotNull TIntHashSet commits, @NotNull CommitsCounter counter) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fbb43c209af5327d1a75176548de5f41c8d5b5e4", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": " * Copyright 2000-2016 JetBrains s.r.o.\n * Copyright 2000-2017 JetBrains s.r.o.\n * Copyright 2000-2016 JetBrains s.r.o.\n * Copyright 2000-2017 JetBrains s.r.o.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4e20da3100d15df16356d0a12706b4b9fcd43145", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " draggableObject.copy(line, myEditor.getVirtualFile());\n draggableObject.copy(line, myEditor.getVirtualFile(), e.getAction().getActionId());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3f6ab19f9fcff2940dc4000e9c9e944e831207c5", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 1, 4 ] }, { "input": " e.setCursor(draggableObject.getCursor(line));\n e.setCursor(draggableObject.getCursor(line, e.getAction().getActionId()));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3f6ab19f9fcff2940dc4000e9c9e944e831207c5", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 3, 5 ] }, { "input": " closeLogTabs();\n closeLogTabs(logManager);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5629e4ddfa104561680757442a22c0e743c22ef6", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " closeLogTabs();\n \n VcsLogManager logManager = myProjectLog.getLogManager();\n if (logManager != null) {\n closeLogTabs(logManager);\n }\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5629e4ddfa104561680757442a22c0e743c22ef6", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " myMessageBus.syncPublisher(VCS_PROJECT_LOG_CHANGED).logCreated();\n myMessageBus.syncPublisher(VCS_PROJECT_LOG_CHANGED).logCreated(myValue);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5629e4ddfa104561680757442a22c0e743c22ef6", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 8 ] }, { "input": " myMessageBus.syncPublisher(VCS_PROJECT_LOG_CHANGED).logDisposed();\n myMessageBus.syncPublisher(VCS_PROJECT_LOG_CHANGED).logDisposed(myValue);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5629e4ddfa104561680757442a22c0e743c22ef6", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 9 ] }, { "input": " void logCreated();\n void logCreated(@NotNull VcsLogManager manager);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5629e4ddfa104561680757442a22c0e743c22ef6", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 6 ] }, { "input": " void logDisposed();\n void logDisposed(@NotNull VcsLogManager manager);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5629e4ddfa104561680757442a22c0e743c22ef6", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 7 ] }, { "input": " if (input == JsonSchemaType._integer && matchType == JsonSchemaType._number) {\n return JsonSchemaType._number;\n }\n if (input == JsonSchemaType._integer && matchTypes.contains(JsonSchemaType._number)) {\n return JsonSchemaType._number;\n if (JsonSchemaType._integer.equals(input) && matchTypes.contains(JsonSchemaType._number)) {\n return input;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a94f27a2d309490fc3878b8bdaaff549b040435e", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "import com.intellij.ide.util.DirectoryChooserUtil;\nimport com.intellij.ide.util.DirectoryChooserUtil;\nimport com.intellij.ide.util.DirectoryChooserUtil;\nimport com.intellij.ide.util.DirectoryChooserUtil;\nimport com.intellij.ide.util.DirectoryChooserUtil;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/790ce5f0c8f853d4b2f1dd9ac6b1310474d07913", "target_edit_idx": 0, "propagatable_edit_idx": [ 10, 4, 12, 7 ] }, { "input": " final PsiDirectory directory = DirectoryChooserUtil.getOrChooseDirectory(view);\n final PsiDirectory[] directories = view.getDirectories();\n if (directories.length == 0 || directories.length > 1) {\n return;\n }\n\n final PsiDirectory directory = directories[0];\n final PsiDirectory sourceDirectory = DirectoryChooserUtil.getOrChooseDirectory(view);\n\n final PsiDirectory sourceDirectory = directories[0];\n PsiDirectory lessonDir = DirectoryChooserUtil.getOrChooseDirectory(view);\n final PsiDirectory[] directories = view.getDirectories();\n if (directories.length == 0 || directories.length > 1) {\n return;\n }\n\n final PsiDirectory lessonDir = directories[0];\n PsiDirectory lessonDir = DirectoryChooserUtil.getOrChooseDirectory(view);\n final PsiDirectory[] directories = view.getDirectories();\n if (directories.length == 0 || directories.length > 1) {\n return;\n }\n\n final PsiDirectory lessonDir = directories[0];\n PsiDirectory taskDir = DirectoryChooserUtil.getOrChooseDirectory(view);\n final PsiDirectory[] directories = view.getDirectories();\n if (directories.length == 0 || directories.length > 1) {\n return;\n }\n final PsiDirectory taskDir = directories[0];\n\n PsiDirectory taskDir = DirectoryChooserUtil.getOrChooseDirectory(view);\n final PsiDirectory[] directories = view.getDirectories();\n if (directories.length == 0 || directories.length > 1) {\n return;\n }\n\n final PsiDirectory taskDir = directories[0];\n\n PsiDirectory sourceDirectory = DirectoryChooserUtil.getOrChooseDirectory(view);\n\n final PsiDirectory[] directories = view.getDirectories();\n if (directories.length == 0 || directories.length > 1) {\n return false;\n }\n\n final PsiDirectory sourceDirectory = directories[0];\n PsiDirectory sourceDirectory = DirectoryChooserUtil.getOrChooseDirectory(view);\n final PsiDirectory[] directories = view.getDirectories();\n if (directories.length == 0 || directories.length > 1) {\n return false;\n }\n\n final PsiDirectory sourceDirectory = directories[0];\n", "class": "clone", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/JetBrains/intellij-community/commit/790ce5f0c8f853d4b2f1dd9ac6b1310474d07913", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 6, 8, 9, 11, 13 ] }, { "input": " private int myVirtualSpaceOffset;\n private int myLogicalColumnAdjustment;\n private int myVisualColumnAdjustment;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/65097d176214be6d7447142dba5716ab2da10acc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " return getEventMessage(false, ((MethodExitEvent)event).method(), location);\n return getEventMessage(false, ((MethodExitEvent)event).method(), location, getFileName());\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c3b5a15da1a1edf244e130e2ed7c6dc4f81aecf9", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": " return getEventMessage((Boolean)entryProperty, location.method(), location);\n return getEventMessage((Boolean)entryProperty, location.method(), location, getFileName());\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c3b5a15da1a1edf244e130e2ed7c6dc4f81aecf9", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " private String getEventMessage(boolean entry, Method method, Location location) {\n static String getEventMessage(boolean entry, Method method, Location location, String defaultFileName) {\n return getEventMessage(true, ((MethodEntryEvent)event).method(), location);\n return getEventMessage(true, ((MethodEntryEvent)event).method(), location, getFileName());\n return getEventMessage(false, ((MethodExitEvent)event).method(), location);\n return getEventMessage(false, ((MethodExitEvent)event).method(), location, getFileName());\n return getEventMessage((Boolean)entryProperty, location.method(), location);\n return getEventMessage((Boolean)entryProperty, location.method(), location, getFileName());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c3b5a15da1a1edf244e130e2ed7c6dc4f81aecf9", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " MethodEntryEvent entryEvent = (MethodEntryEvent)event;\n final Method method = entryEvent.method();\n return DebuggerBundle.message(\n \"status.method.entry.breakpoint.reached\", \n method.declaringType().name() + \".\" + method.name() + \"()\",\n locationQName,\n locationFileName,\n locationLine\n );\n return MethodBreakpoint.getEventMessage(true, ((MethodEntryEvent)event).method(), location, \"\");\n MethodExitEvent exitEvent = (MethodExitEvent)event;\n final Method method = exitEvent.method();\n return DebuggerBundle.message(\n \"status.method.exit.breakpoint.reached\", \n method.declaringType().name() + \".\" + method.name() + \"()\",\n locationQName,\n locationFileName,\n locationLine\n );\n return MethodBreakpoint.getEventMessage(false, ((MethodExitEvent)event).method(), location, \"\");\n }\n Object entryProperty = event.request().getProperty(METHOD_ENTRY_KEY);\n if (entryProperty instanceof Boolean) {\n return MethodBreakpoint.getEventMessage((Boolean)entryProperty, location.method(), location, \"\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c3b5a15da1a1edf244e130e2ed7c6dc4f81aecf9", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": " if (RunDashboardManager.getInstance(e.getProject()).isShowConfigurations()) {\n if (RunDashboardManager.getInstance(project).isShowConfigurations()) {\n if (RunDashboardManager.getInstance(e.getProject()).isShowConfigurations()) {\n Project project = e.getProject();\n if (project == null || RunDashboardManager.getInstance(project).isShowConfigurations()) {\n if (RunDashboardManager.getInstance(e.getProject()).isShowConfigurations()) {\n Project project = e.getProject();\n if (project == null || RunDashboardManager.getInstance(project).isShowConfigurations()) {\n if (RunDashboardManager.getInstance(e.getProject()).isShowConfigurations()) {\n Project project = e.getProject();\n if (project == null || RunDashboardManager.getInstance(project).isShowConfigurations()) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/04344ccfe4b676629a6ee0bf69df00b20c237d3d", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 3, 7 ] }, { "input": " Content content = RunDashboardManager.getInstance(e.getProject()).getDashboardContentManager().getSelectedContent();\n Content content = RunDashboardManager.getInstance(project).getDashboardContentManager().getSelectedContent();\n Content content = RunDashboardManager.getInstance(e.getProject()).getDashboardContentManager().getSelectedContent();\n Content content = RunDashboardManager.getInstance(project).getDashboardContentManager().getSelectedContent();\n Content content = RunDashboardManager.getInstance(e.getProject()).getDashboardContentManager().getSelectedContent();\n Content content = RunDashboardManager.getInstance(project).getDashboardContentManager().getSelectedContent();\n Content content = RunDashboardManager.getInstance(e.getProject()).getDashboardContentManager().getSelectedContent();\n Content content = RunDashboardManager.getInstance(project).getDashboardContentManager().getSelectedContent();\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/04344ccfe4b676629a6ee0bf69df00b20c237d3d", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 10, 4 ] }, { "input": " default List getProviders(@NotNull Project project) {return Collections.emptyList();}\n\n @NotNull\n default List getProviders() {return Collections.emptyList();}\n List getProviders(@NotNull Project project);\n public List getProviders() {\n public List getProviders(@NotNull final Project project) {\n public List getProviders() {\n public List getProviders(@NotNull final Project project) {\n final List providers = new JsonSchemaProjectSelfProviderFactory().getProviders();\n final List providers = new JsonSchemaProjectSelfProviderFactory().getProviders(myProject);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.07142857142857142, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fb7155234c62bc9f1a5abe4b6b6ad07d40fea07f", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 6, 7 ] }, { "input": " private void detectPackageLocalsUsed(final MultiMap conflicts) {\n PackageLocalsUsageCollector visitor = new PackageLocalsUsageCollector(myElementsToMove, myTargetPackage, conflicts);\n static void detectPackageLocalsUsed(final MultiMap conflicts,\n PsiElement[] elementsToMove,\n PackageWrapper targetPackage) {\n PackageLocalsUsageCollector visitor = new PackageLocalsUsageCollector(elementsToMove, targetPackage, conflicts);\n detectPackageLocalsUsed(myConflicts);\n detectPackageLocalsUsed(myConflicts, myElementsToMove, myTargetPackage);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ac3ff6f9d405a3a2e3e2ed15805e12ffe878ab50", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " * Copyright 2000-2009 JetBrains s.r.o.\n * Copyright 2000-2017 JetBrains s.r.o.\n * Copyright 2000-2009 JetBrains s.r.o.\n * Copyright 2000-2017 JetBrains s.r.o.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/353aed304b29b655cf5b70b3a88bcfb297ea621a", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " private Notification myNotification;\n private Runnable myOnReadCallback;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/353aed304b29b655cf5b70b3a88bcfb297ea621a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " public void setNotification(Notification notification) {\n myNotification = notification;\n public void setOnReadCallback(Runnable callback) {\n myOnReadCallback = callback;\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/353aed304b29b655cf5b70b3a88bcfb297ea621a", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " typeCastExpression.delete();\n parent.delete();\n typeCastExpression.replace(operand);\n parent.replace(operand);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a0a920cf1d9aa3f9a5c0859593470808bfbe2dcd", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " * Copyright 2000-2016 JetBrains s.r.o.\n * Copyright 2000-2017 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n * Copyright 2000-2017 JetBrains s.r.o.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/cb2e691da3a1ab0a7f979ce69629c5d376582d8a", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " final NonOpaquePanel wrappper = new MyComponent(new BorderLayout(0, 0));\n wrappper.add(myToolbar, BorderLayout.WEST);\n wrappper.add(myTabs.getComponent(), BorderLayout.CENTER);\n wrappper.setBorder(new EmptyBorder(-1, 0, 0, 0));\n final NonOpaquePanel wrapper = new MyComponent(new BorderLayout(0, 0));\n wrapper.add(myToolbar, BorderLayout.WEST);\n wrapper.add(myTabs.getComponent(), BorderLayout.CENTER);\n wrapper.setBorder(new EmptyBorder(-1, 0, 0, 0));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/cb2e691da3a1ab0a7f979ce69629c5d376582d8a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " EduStepicConnector.doAuthorize(() -> mySettingsPanel.showLoginDialog(false));\n EduStepicConnector.doAuthorize(() -> mySettingsPanel.showLoginDialog());\n\n StepicUser user = StudySettings.getInstance().getUser();\n if (user != null) {\n ProgressManager.getInstance().runProcessWithProgressSynchronously(\n () -> myGenerator.setEnrolledCoursesIds(EduAdaptiveStepicConnector.getEnrolledCoursesIds(user)), \"Getting Enrolled Courses\",\n true, DefaultProjectFactory.getInstance().getDefaultProject());\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/664fdc8711b068f778d5a3fc47fdb20f25979334", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " myFontPreferences.setLineSpacing(lineSpacing);\n ensureEditableFontPreferences().setLineSpacing(lineSpacing);\n myConsoleFontPreferences.setLineSpacing(lineSpacing);\n ensureEditableConsoleFontPreferences().setLineSpacing(lineSpacing);\n getFontPreferences().setLineSpacing(lineSpacing);\n myScheme.setLineSpacing(lineSpacing);\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/JetBrains/intellij-community/commit/38aed1b821d394521cfd1dc0cc0438974c9f29ab", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 11 ] }, { "input": " private ShellCommand createShellCommandWithArgs(@Nullable VirtualFile repo, @NotNull String operation, @Nullable List arguments) {\n private ShellCommand createShellCommandWithArgs(@Nullable VirtualFile repo,\n @NotNull String operation,\n @Nullable List arguments,\n boolean ignoreDefaultOptions) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3bc9a07df458ceee526267a130de2e0ff3372362", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " for (String branch : myMultiRootBranchConfig.getLocalBranchNames()) {\n List repositories = filterRepositoriesNotOnThisBranch(branch, allRepositories);\n if (!repositories.isEmpty()) {\n popupGroup.add(new HgBranchPopupActions.BranchActions(myProject, repositories, branch));\n }\n }\n List branchActions =\n myMultiRootBranchConfig.getLocalBranchNames().stream()\n .map(b -> createLocalBranchActions(allRepositories, b, false))\n .filter(Objects::nonNull).collect(toList());\n wrapWithMoreActionIfNeeded(myProject, popupGroup, ContainerUtil.sorted(branchActions, FAVORITE_BRANCH_COMPARATOR),\n getNumOfTopShownBranches(branchActions), SHOW_ALL_BRANCHES_KEY, true);\n\n for (String branch : ((HgMultiRootBranchConfig)myMultiRootBranchConfig).getBookmarkNames()) {\n List repositories = filterRepositoriesNotOnThisBranch(branch, allRepositories);\n if (!repositories.isEmpty()) {\n popupGroup.add(new HgBranchPopupActions.BookmarkActions(myProject, repositories, branch));\n }\n }\n List bookmarkActions = ((HgMultiRootBranchConfig)myMultiRootBranchConfig).getBookmarkNames().stream()\n .map(bm -> createLocalBranchActions(allRepositories, bm, true))\n .filter(Objects::nonNull).collect(toList());\n wrapWithMoreActionIfNeeded(myProject, popupGroup, ContainerUtil.sorted(bookmarkActions, FAVORITE_BRANCH_COMPARATOR),\n getNumOfTopShownBranches(bookmarkActions), SHOW_ALL_BOOKMARKS_KEY, true);\n }\n\n @Nullable\n private HgCommonBranchActions createLocalBranchActions(List allRepositories, String name, boolean isBookmark) {\n List repositories = filterRepositoriesNotOnThisBranch(name, allRepositories);\n if (repositories.isEmpty()) return null;\n return isBookmark\n ? new HgBranchPopupActions.BookmarkActions(myProject, repositories, name)\n : new HgBranchPopupActions.BranchActions(myProject, repositories, name);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/88635bdad921730d85791ff8dc061215a28bd438", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " private static final Color NEW_BRANCH_SELECTION_LABEL_FG = UIUtil.getTreeSelectionForeground();\n private static final Color NEW_BRANCH_LABEL_SELECTION_FG = UIUtil.getTreeSelectionForeground();\n NEW_BRANCH_LABEL.setForeground(isSelected ? NEW_BRANCH_SELECTION_LABEL_FG : NEW_BRANCH_LABEL_FG);\n NEW_BRANCH_LABEL.setBackground(isSelected ? NEW_BRANCH_SELECTION_LABEL__BG : NEW_BRANCH_LABEL_BG);\n NEW_BRANCH_LABEL.setForeground(isSelected ? NEW_BRANCH_LABEL_SELECTION_FG : NEW_BRANCH_LABEL_FG);\n NEW_BRANCH_LABEL.setBackground(isSelected ? NEW_BRANCH_LABEL_SELECTION_BG : NEW_BRANCH_LABEL_BG);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/dee2f63b7fc6fee798afb0c8576bdcada50a8787", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\n public Concatenation2InjectorAdapter(Project project) {\n super(project);\n public Concatenation2InjectorAdapter(JavaConcatenationInjectorManager manager) {\n super(manager);\n public GrConcatenation2InjectorAdapter(Project project) {\n super(project);\n public GrConcatenation2InjectorAdapter(JavaConcatenationInjectorManager manager) {\n super(manager);\n public BaseConcatenation2InjectorAdapter(Project project) {\n myManager = getInstance(project);\n public BaseConcatenation2InjectorAdapter(JavaConcatenationInjectorManager manager) {\n myManager = manager;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1aabb4ed90f506dea91bb3992b8f51784f5016f1", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 2 ] }, { "input": " Collections.sort(strings2, c);\n strings2.sort(c);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e02db9885ab8a6d58d5e7ddca66be105c8dec076", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " Collections.sort(strings3, c);\n strings3.sort(c);\n Collections.sort(strings2, c);\n strings2.sort(c);\n Collections.sort(strings, c);\n strings.sort(c);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e02db9885ab8a6d58d5e7ddca66be105c8dec076", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " assertEquals(\"\", StringUtil.join(Collections.emptyList(), \",\"));\n assertEquals(\"\", StringUtil.join(Collections.emptyList(), \",\"));\n assertEquals(\"\", StringUtil.join(Collections.singletonList(null), \",\"));\n assertEquals(\"\", StringUtil.join(Collections.singletonList(null), \",\"));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e02db9885ab8a6d58d5e7ddca66be105c8dec076", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " l.findStatic(Test.class, \"method2\", MethodType.methodType(int.class, String.class));\n l.findStatic(Test.class, \"method3\", MethodType.methodType(String.class));\n l.findStatic(Test.class, \"method2\", MethodType.methodType(int.class, String.class));\n l.findStatic(Test.class, \"method3\", MethodType.methodType(String.class));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/815aeb4583817caac27751aa80d32d7e7a7bc759", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " // name of class we try to import is the same as of the class defined in this file\n if (containsInCurrentFile(file, curRefClass)) {\n // name of class we try to import is the same as of the class defined in this package\n if (containsInCurrentPackage(file, curRefClass)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9a3f46076c894bdc2d84e93a85f08869cc7efe15", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " List patterns = compilePatterns(ContainerUtil.filter(groupFilters, s -> !s.startsWith(\"-\")));\n myAllPatterns.addAll(patterns);\n List includePatterns = compilePatterns(ContainerUtil.filter(groupFilters, s -> !s.startsWith(\"-\")));\n List excludedPatterns = compilePatterns(groupFilters.stream()\n .filter(s -> s.startsWith(\"-\") && s.length() > 1)\n .map(s -> s.substring(1))\n .collect(Collectors.toList()));\n myGroups.add(new Group(includePatterns, excludedPatterns));\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b317be504657647db22e1215c7d3c05fbab30b0c", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " Map getValuesOrder();\n Map getValuesOrderBefore();\n\n @NotNull\n Map getValuesOrderAfter();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1258941b9bbeedfe8a2360d873eb3cf9e012c03b", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " @SuppressWarnings(\"MethodDoesntCallSuperMethod\")\n @SuppressWarnings(\"MethodDoesntCallSuperMethod\")\n @SuppressWarnings(\"MethodDoesntCallSuperMethod\")\n @SuppressWarnings(\"MethodDoesntCallSuperMethod\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9f2db277e9d7eec73cba9bb42a8c2c7b2b6b8fc2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " boolean computeNames) throws Exception {\n boolean full) throws Exception {\n computeNames ? calcNames(new SimpleStackFrameContext(frameProxy, process), firstLocalVariableSlot) : MultiMap.empty();\n full ? calcNames(new SimpleStackFrameContext(frameProxy, process), firstLocalVariableSlot) : MultiMap.empty();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c88310d1f83ed33b0f25bde68c6b6816ba2937dd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " .fetchValues(frame, suspendContext.getDebugProcess()).entrySet()) {\n .fetchValues(frame, suspendContext.getDebugProcess(), false).entrySet()) {\n for (Map.Entry entry : LocalVariablesUtil.fetchValues(getStackFrameProxy(), debugProcess).entrySet()) {\n for (Map.Entry entry : LocalVariablesUtil.fetchValues(getStackFrameProxy(), debugProcess, true).entrySet()) {\n Map vars = LocalVariablesUtil.fetchValues(frameProxy, process);\n Map vars = LocalVariablesUtil.fetchValues(frameProxy, process, true);\n public static Map fetchValues(@NotNull StackFrameProxyImpl frameProxy, DebugProcess process) throws Exception {\n public static Map fetchValues(@NotNull StackFrameProxyImpl frameProxy,\n DebugProcess process,\n boolean computeNames) throws Exception {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6ffe60b95e2c514802d9b9fb60d9648637856642", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " IpnbSettings.getInstance(myProject).setPassword(String.valueOf(myPasswordField.getPassword()));\n IpnbSettings.getInstance(myProject).setPassword(String.valueOf(myPasswordField.getPassword()), myProject.getLocationHash());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d15661d83f43d71d15551502f48f922924600e2a", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " myPasswordField.setText(IpnbSettings.getInstance(myProject).getPassword());\n myPasswordField.setText(IpnbSettings.getInstance(myProject).getPassword(myProject.getLocationHash()));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d15661d83f43d71d15551502f48f922924600e2a", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 11, 6 ] }, { "input": " public void setPassword(@NotNull String password) {\n public void setPassword(@NotNull String password, @NotNull String projectPathHash) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.15555555555555556, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d15661d83f43d71d15551502f48f922924600e2a", "target_edit_idx": 7, "propagatable_edit_idx": [ 2 ] }, { "input": " String cookies = login(username, ipnbSettings.getPassword(), loginUrl);\n String cookies = login(username, ipnbSettings.getPassword(myProject.getLocationHash()), loginUrl);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d15661d83f43d71d15551502f48f922924600e2a", "target_edit_idx": 11, "propagatable_edit_idx": [ 1, 3, 6 ] }, { "input": " LOG.assertTrue(isTitle() || isContent(),\n LOG.assertTrue(hasTitle() || hasContent(),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/05c26a5b46a62239ae09707df2034b980e9821de", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7 ] }, { "input": " public boolean isContent() {\n public boolean hasContent() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/05c26a5b46a62239ae09707df2034b980e9821de", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 6 ] }, { "input": " if (notification.isContent()) {\n if (notification.hasContent()) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/05c26a5b46a62239ae09707df2034b980e9821de", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " * Copyright 2000-2015 JetBrains s.r.o.\n * Copyright 2000-2017 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n * Copyright 2000-2017 JetBrains s.r.o.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b2ac21a19d377833ce08cbe2b3e284136838d634", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " static final TokenSet tOperators = TokenSet.orSet(TokenSets.BINARY_OP_SET, TokenSets.UNARY_OP_SET, TokenSets.ASSIGN_OP_SET);\n static final TokenSet tOperators = TokenSet.orSet(TokenSets.BINARY_OP_SET, TokenSets.UNARY_OP_SET, TokenSets.ASSIGNMENTS);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/aae3af98b07f8f715afd574a6fd0ea5d9b5bf52c", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "import com.intellij.vcs.log.impl.VcsLogManager;\nimport com.intellij.vcs.log.impl.VcsLogManager;\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f6396cb0cf7ead27f93f329f7362e77c8aef2ca6", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " ContainerUtil.filter(Extensions.getExtensions(VcsLogManager.LOG_PROVIDER_EP, project), new Condition() {\n ContainerUtil.filter(Extensions.getExtensions(VcsLogProvider.LOG_PROVIDER_EP, project), new Condition() {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f6396cb0cf7ead27f93f329f7362e77c8aef2ca6", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " IdeEventQueue.getInstance().dispatchEvent(new KeyEvent(myComponent,\n KeyEvent.KEY_PRESSED,\n Clock.getTime(),\n InputEvent.SHIFT_MASK,\n otherKey ? KeyEvent.VK_ENTER : KeyEvent.VK_BACK_SPACE,\n otherKey ? '\\n' : '\\b'));\n IdeEventQueue.getInstance().dispatchEvent(new KeyEvent(myComponent,\n KeyEvent.KEY_TYPED,\n Clock.getTime(),\n InputEvent.SHIFT_MASK,\n 0,\n otherKey ? '\\n' : '\\b'));\n dispatchEvent(KeyEvent.KEY_PRESSED, InputEvent.SHIFT_MASK,\n otherKey ? KeyEvent.VK_ENTER : KeyEvent.VK_BACK_SPACE,\n otherKey ? '\\n' : '\\b');\n dispatchEvent(KeyEvent.KEY_TYPED, InputEvent.SHIFT_MASK,\n 0,\n otherKey ? '\\n' : '\\b');\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e34ae008e954f7f89fa2193145f381d70bcad874", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 5 ] }, { "input": " for (ImplicitUsageProvider provider : ourImplicitUsageProviders) {\n for (ImplicitUsageProvider provider : Extensions.getExtensions(ImplicitUsageProvider.EP_NAME)) {\n for(ImplicitUsageProvider provider: ourImplicitUsageProviders) {\n for(ImplicitUsageProvider provider: Extensions.getExtensions(ImplicitUsageProvider.EP_NAME)) {\n for(ImplicitUsageProvider provider: ourImplicitUsageProviders) {\n for(ImplicitUsageProvider provider: Extensions.getExtensions(ImplicitUsageProvider.EP_NAME)) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4d2781ec75d5e7f225b388c92c660fee341d8090", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " * Copyright 2000-2014 JetBrains s.r.o.\n * Copyright 2000-2016 JetBrains s.r.o.\n * Copyright 2000-2014 JetBrains s.r.o.\n * Copyright 2000-2016 JetBrains s.r.o.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/499b759d9de84323580645e75bb847d42e89503d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " startExpandForChooseExpression(expressions.get(0), editor);\n prepareAndExpandForChooseExpression(expressions.get(0), editor);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/499b759d9de84323580645e75bb847d42e89503d", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": " protected void startExpandForChooseExpression(@NotNull PsiElement expression, @NotNull Editor editor) {\n protected void prepareAndExpandForChooseExpression(@NotNull PsiElement expression, @NotNull Editor editor) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/499b759d9de84323580645e75bb847d42e89503d", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " :type args: tuple[T]\n :type args: T\n :type args: tuple[T]\n :type args: T\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c60419eb7e16e7ab92e1538db21995f68e11a3fd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return PyBuiltinCache.getInstance(this).getDictType();\n return PyTypeUtil.toKeywordContainerType(this, null);\n return PyBuiltinCache.getInstance(this).getTupleType();\n return PyTypeUtil.toPositionalContainerType(this, null);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f8b0121a487e1f017255c350581ad4e84dbe3a77", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "import com.intellij.codeInsight.FileModificationService;\nimport com.intellij.codeInsight.FileModificationService;\nimport com.intellij.codeInsight.FileModificationService;\nimport com.intellij.codeInsight.FileModificationService;\nimport com.intellij.codeInsight.FileModificationService;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6df7f2d2e6793f9c0cde6145dabc9fc6225133ca", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 3, 5, 7 ] }, { "input": " if (!FileModificationService.getInstance().preparePsiElementsForWrite(element)) return;\n if (!FileModificationService.getInstance().preparePsiElementsForWrite(element)) return;\n if (!FileModificationService.getInstance().preparePsiElementsForWrite(element)) return;\n if (!FileModificationService.getInstance().preparePsiElementsForWrite(element)) return;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6df7f2d2e6793f9c0cde6145dabc9fc6225133ca", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 10, 6 ] }, { "input": " LeakHunter.checkLeak(documentManager, DocumentImpl.class);\n LeakHunter.checkLeak(documentManager, PsiFileImpl.class,\n psiFile -> psiFile.getViewProvider().getVirtualFile().getFileSystem() instanceof LocalFileSystem);\n LeakHunter.checkLeak(documentManager, DocumentImpl.class, doc -> id == System.identityHashCode(doc));\n LeakHunter.checkLeak(documentManager, PsiFileImpl.class, psiFile -> vFile.equals(psiFile.getVirtualFile()));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9a8244764b3761802e6cea33adb4880d4a7b89a2", "target_edit_idx": 7, "propagatable_edit_idx": [ 3 ] }, { "input": " @Override\n public boolean startInWriteAction() {\n return false;\n }\n\n @Override\n public boolean startInWriteAction() {\n return false;\n }\n\n @Override\n public boolean startInWriteAction() {\n return false;\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/63d250e5d8f42b28be98a2ab3453427ae039abd8", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 2 ] }, { "input": " cell = new IpnbMarkdownCell(isValidSource ? source : Collections.emptyList(), metadata);\n cell = new IpnbMarkdownCell(isValidSource ? source : new ArrayList<>(), metadata);\n cell = new IpnbRawCell(isValidSource ? source : Collections.emptyList());\n cell = new IpnbRawCell(isValidSource ? source : new ArrayList<>());\n cell = new IpnbHeadingCell(isValidSource ? source : Collections.emptyList(), level, metadata);\n cell = new IpnbHeadingCell(isValidSource ? source : new ArrayList<>(), level, metadata);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f5298e391e04c0cad02974f959e88d0b608c9e4f", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " if (ANSIColor.equals(\"\\u001B[30m\") || ANSIColor.equals(\"\\u001B[0;30m\") || ANSIColor.equals(\"\\u001B[1;30m\")) {\n if (ANSIColor.equals(\"\\u001B[30m\") || ANSIColor.equals(\"\\u001B[0;30m\") || ANSIColor.equals(\"\\u001B[1;30m\")\n || ANSIColor.equals(\"\\u001B[01;30m\")) {\n else if (ANSIColor.equals(\"\\u001B[31m\") || ANSIColor.equals(\"\\u001B[0;31m\") || ANSIColor.equals(\"\\u001B[1;31m\")) {\n else if (ANSIColor.equals(\"\\u001B[31m\") || ANSIColor.equals(\"\\u001B[0;31m\") || ANSIColor.equals(\"\\u001B[1;31m\")\n || ANSIColor.equals(\"\\u001B[01;31m\")) {\n else if (ANSIColor.equals(\"\\u001B[32m\") || ANSIColor.equals(\"\\u001B[0;32m\") || ANSIColor.equals(\"\\u001B[1;32m\")) {\n else if (ANSIColor.equals(\"\\u001B[32m\") || ANSIColor.equals(\"\\u001B[0;32m\") || ANSIColor.equals(\"\\u001B[1;32m\")\n || ANSIColor.equals(\"\\u001B[01;32m\")) {\n else if (ANSIColor.equals(\"\\u001B[33m\") || ANSIColor.equals(\"\\u001B[0;33m\") || ANSIColor.equals(\"\\u001B[1;33m\")) {\n else if (ANSIColor.equals(\"\\u001B[33m\") || ANSIColor.equals(\"\\u001B[0;33m\") || ANSIColor.equals(\"\\u001B[1;33m\")\n || ANSIColor.equals(\"\\u001B[01;33m\")) {\n else if (ANSIColor.equals(\"\\u001B[34m\") || ANSIColor.equals(\"\\u001B[0;34m\") || ANSIColor.equals(\"\\u001B[1;34m\")) {\n else if (ANSIColor.equals(\"\\u001B[34m\") || ANSIColor.equals(\"\\u001B[0;34m\") || ANSIColor.equals(\"\\u001B[1;34m\")\n || ANSIColor.equals(\"\\u001B[01;34m\")) {\n else if (ANSIColor.equals(\"\\u001B[35m\") || ANSIColor.equals(\"\\u001B[0;35m\") || ANSIColor.equals(\"\\u001B[1;35m\")) {\n else if (ANSIColor.equals(\"\\u001B[35m\") || ANSIColor.equals(\"\\u001B[0;35m\") || ANSIColor.equals(\"\\u001B[1;35m\")\n || ANSIColor.equals(\"\\u001B[01;35m\")) {\n else if (ANSIColor.equals(\"\\u001B[36m\") || ANSIColor.equals(\"\\u001B[0;36m\") || ANSIColor.equals(\"\\u001B[1;36m\")) {\n else if (ANSIColor.equals(\"\\u001B[36m\") || ANSIColor.equals(\"\\u001B[0;36m\") || ANSIColor.equals(\"\\u001B[1;36m\")\n || ANSIColor.equals(\"\\u001B[01;36m\")) {\n else if (ANSIColor.equals(\"\\u001B[37m\") || ANSIColor.equals(\"\\u001B[0;37m\") || ANSIColor.equals(\"\\u001B[1;37m\")) {\n else if (ANSIColor.equals(\"\\u001B[37m\") || ANSIColor.equals(\"\\u001B[0;37m\") || ANSIColor.equals(\"\\u001B[1;37m\")\n || ANSIColor.equals(\"\\u001B[01;37m\")) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/78a51c177615126a7a93c92d1200ccc8b257681a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " linkLabel.setHorizontalAlignment(SwingConstants.CENTER);\n linkLabel.setPaintUnderline(false);\n actionLink.setHorizontalAlignment(SwingConstants.CENTER);\n actionLink.setPaintUnderline(false);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/136cd18763f4c893bc444ad63b6673ced45274c7", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " final String functionName = PyMoveRefactoringUtil.getCompactPresentableName(function);\n final String functionName = PyMoveRefactoringUtil.getPresentableName(function);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4ccbf4b2366842c44cb98adc0b112b547330b765", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " protected PsiElement[] filterElements(PsiElement element, PsiElement[] targetElements, final int offset) {\n protected PsiElement[] filterElements(PsiElement element, PsiElement[] targetElements) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9085c59f3664d9bdc5fe1a39b55bff70ca652793", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 3, 6, 7 ] }, { "input": " VcsLogHighlighter.VcsCommitStyle style = getStyle(row, column, text, hasFocus, selected);\n VcsLogHighlighter.VcsCommitStyle style = getStyle(row, column, hasFocus, selected);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9f5786dc05734ac566f6914a570d32df07a17121", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 8, 5, 6 ] }, { "input": " public VcsLogHighlighter.VcsCommitStyle getBaseStyle(int row, int column, String text, boolean hasFocus, boolean selected) {\n Component dummyRendererComponent = myDummyRenderer.getTableCellRendererComponent(this, text, selected, hasFocus, row, column);\n public VcsLogHighlighter.VcsCommitStyle getBaseStyle(int row, int column, boolean hasFocus, boolean selected) {\n Component dummyRendererComponent = myDummyRenderer.getTableCellRendererComponent(this, \"\", selected, hasFocus, row, column);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9f5786dc05734ac566f6914a570d32df07a17121", "target_edit_idx": 4, "propagatable_edit_idx": [ 11, 7 ] }, { "input": " private VcsLogHighlighter.VcsCommitStyle getStyle(int row, int column, String text, boolean hasFocus, boolean selected) {\n VcsLogHighlighter.VcsCommitStyle baseStyle = getBaseStyle(row, column, text, hasFocus, selected);\n private VcsLogHighlighter.VcsCommitStyle getStyle(int row, int column, boolean hasFocus, boolean selected) {\n VcsLogHighlighter.VcsCommitStyle baseStyle = getBaseStyle(row, column, hasFocus, selected);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9f5786dc05734ac566f6914a570d32df07a17121", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 8, 3, 6 ] }, { "input": " g.setColor(getStyle(lastRow, GraphTableModel.COMMIT_COLUMN, \"\", hasFocus(), false).getBackground());\n g.setColor(getStyle(lastRow, GraphTableModel.COMMIT_COLUMN, hasFocus(), false).getBackground());\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9f5786dc05734ac566f6914a570d32df07a17121", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 8, 3, 5 ] }, { "input": " g.setColor(getBaseStyle(lastRow, GraphTableModel.COMMIT_COLUMN, \"\", hasFocus(), false).getBackground());\n g.setColor(getBaseStyle(lastRow, GraphTableModel.COMMIT_COLUMN, hasFocus(), false).getBackground());\n Color foreground = ObjectUtils.assertNotNull(myGraphTable.getBaseStyle(row, column, \"\", hasFocus, isSelected).getForeground());\n Color foreground = ObjectUtils.assertNotNull(myGraphTable.getBaseStyle(row, column, hasFocus, isSelected).getForeground());\n public VcsLogHighlighter.VcsCommitStyle getBaseStyle(int row, int column, String text, boolean hasFocus, boolean selected) {\n Component dummyRendererComponent = myDummyRenderer.getTableCellRendererComponent(this, text, selected, hasFocus, row, column);\n public VcsLogHighlighter.VcsCommitStyle getBaseStyle(int row, int column, boolean hasFocus, boolean selected) {\n Component dummyRendererComponent = myDummyRenderer.getTableCellRendererComponent(this, \"\", selected, hasFocus, row, column);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9f5786dc05734ac566f6914a570d32df07a17121", "target_edit_idx": 7, "propagatable_edit_idx": [ 11, 4 ] }, { "input": " Color background = ((VcsLogGraphTable)table).getStyle(row, column, text, hasFocus, isSelected).getBackground();\n Color background = ((VcsLogGraphTable)table).getStyle(row, column, hasFocus, isSelected).getBackground();\n VcsLogHighlighter.TextStyle style = getStyle(row, i, value, false, false).getTextStyle();\n VcsLogHighlighter.TextStyle style = getStyle(row, i, false, false).getTextStyle();\n VcsLogHighlighter.VcsCommitStyle style = getStyle(row, column, text, hasFocus, selected);\n VcsLogHighlighter.VcsCommitStyle style = getStyle(row, column, hasFocus, selected);\n private VcsLogHighlighter.VcsCommitStyle getStyle(int row, int column, String text, boolean hasFocus, boolean selected) {\n VcsLogHighlighter.VcsCommitStyle baseStyle = getBaseStyle(row, column, text, hasFocus, selected);\n private VcsLogHighlighter.VcsCommitStyle getStyle(int row, int column, boolean hasFocus, boolean selected) {\n VcsLogHighlighter.VcsCommitStyle baseStyle = getBaseStyle(row, column, hasFocus, selected);\n g.setColor(getStyle(lastRow, GraphTableModel.COMMIT_COLUMN, \"\", hasFocus(), false).getBackground());\n g.setColor(getStyle(lastRow, GraphTableModel.COMMIT_COLUMN, hasFocus(), false).getBackground());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9f5786dc05734ac566f6914a570d32df07a17121", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 3, 5, 6 ] }, { "input": " append(value.toString(), applyHighlighters(this, row, column, value.toString(), hasFocus, selected));\n append(value.toString(), applyHighlighters(this, row, column, hasFocus, selected));\n SimpleTextAttributes style = myGraphTable.applyHighlighters(this, row, column, \"\", hasFocus, isSelected);\n SimpleTextAttributes style = myGraphTable.applyHighlighters(this, row, column, hasFocus, isSelected);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9f5786dc05734ac566f6914a570d32df07a17121", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " SimpleTextAttributes style = myGraphTable.applyHighlighters(this, row, column, \"\", hasFocus, isSelected);\n SimpleTextAttributes style = myGraphTable.applyHighlighters(this, row, column, hasFocus, isSelected);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9f5786dc05734ac566f6914a570d32df07a17121", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": " Color foreground = ObjectUtils.assertNotNull(myGraphTable.getBaseStyle(row, column, \"\", hasFocus, isSelected).getForeground());\n Color foreground = ObjectUtils.assertNotNull(myGraphTable.getBaseStyle(row, column, hasFocus, isSelected).getForeground());\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9f5786dc05734ac566f6914a570d32df07a17121", "target_edit_idx": 11, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " final PyPackage pkg = new PyPackage(\"foo\", \"0.8\", null, Collections.emptyList());\n final PyPackage pkg = new PyPackage(\"foo\", \"0.8\", null, Collections.emptyList());\n final PyPackage pkg = new PyPackage(\"pyramid-zcml\", \"0.1\", null, Collections.emptyList());\n final PyPackage pkg = new PyPackage(\"pyramid-zcml\", \"0.1\", null, Collections.emptyList());\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/87bf9386d3df75064e0bb2d2c99aad1b9c7a3513", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " for i in range(1000):\n while True:\n for i in range(1000):\n while True:\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b6538eff38beb987ce3a99b901435e1b0860b45b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " IntentionAction item = myFixture.findSingleIntention(\"Create Description File\");\n IntentionAction item = myFixture.findSingleIntention(\"Create description file description.html\");\n IntentionAction item = myFixture.findSingleIntention(\"Create Description File\");\n IntentionAction item = myFixture.findSingleIntention(\"Create description file description.html\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b762d88d54bfd01f089d26feb58ba73165f518d7", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": " VcsLogUiImpl logUi = logManager.createLogUi(name, name);\n VcsLogUiImpl logUi = logManager.createLogUi(name, name, filter);\n public VcsLogUiImpl createLogUi(@NotNull String logId, @Nullable String contentTabName) {\n public VcsLogUiImpl createLogUi(@NotNull String logId, @Nullable String contentTabName, @Nullable VcsLogFilter filter) {\n myUi = myLogManager.getValue().createLogUi(VcsLogTabsProperties.MAIN_LOG_ID, contentTabName);\n myUi = myLogManager.getValue().createLogUi(VcsLogTabsProperties.MAIN_LOG_ID, contentTabName, null);\n VcsLogUiImpl ui = createLogUi(VcsLogTabsProperties.MAIN_LOG_ID, contentTabName);\n VcsLogUiImpl ui = createLogUi(VcsLogTabsProperties.MAIN_LOG_ID, contentTabName, null);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/caf61ea196122a03f8455d57ad44f6603ae3030a", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 10, 7 ] }, { "input": " myUi = myLogManager.getValue().createLogUi(VcsLogTabsProperties.MAIN_LOG_ID, contentTabName);\n myUi = myLogManager.getValue().createLogUi(VcsLogTabsProperties.MAIN_LOG_ID, contentTabName, null);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/caf61ea196122a03f8455d57ad44f6603ae3030a", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 4, 7 ] }, { "input": " OverridingMethodsSearch.search(myMethod, false).forEach(method -> {\n OverridingMethodsSearch.search(myMethod, searchScope, false).forEach(method -> {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8e0f0522d3b20511a96e45993acaa7466fd74b56", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " myMoveDestination.analyzeModuleConflicts(Arrays.asList(myElementsToMove), conflicts,\n myMoveDestination.analyzeModuleConflicts(Arrays.asList(myElementsToMove), myConflicts,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2428e128faa1aa26cfa2b78c03fe63fce8ef854d", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " List groupForBranchPopup(@NotNull Collection refs);\n List groupForBranchFilter(@NotNull Collection refs);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8faf30e5b70f401829965bf72194362137f0379a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7 ] }, { "input": " return groupForBranchPopup(refs);\n return groupForBranchFilter(refs);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8faf30e5b70f401829965bf72194362137f0379a", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5, 6, 7 ] }, { "input": " List actualGroups = new GitRefManager(myGitRepositoryManager).groupForBranchPopup(actual);\n List actualGroups = new GitRefManager(myGitRepositoryManager).groupForBranchFilter(actual);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/JetBrains/intellij-community/commit/8faf30e5b70f401829965bf72194362137f0379a", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 7 ] }, { "input": " PsiDocumentManager.getInstance(project).commitAllDocuments();\n\n PsiDocumentManager.getInstance(project).commitAllDocuments();\n\n PsiDocumentManager.getInstance(project).commitAllDocuments();\n\n PsiDocumentManager.getInstance(project).commitAllDocuments();\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/JetBrains/intellij-community/commit/42d616df27a559cd70cda86c93977a0560e5d201", "target_edit_idx": 1, "propagatable_edit_idx": [ 11, 6, 7 ] }, { "input": " private final Editor myEditor;\n private final GlobalSearchScope mySearchScope;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b6a24d0379976f0c6083ea56444f61dbc499a8da", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " frame.f_globals[attr] = eval(expression, frame.f_globals, frame.f_locals)\n if value is None:\n value = eval(expression, frame.f_globals, frame.f_locals)\n frame.f_globals[attr] = value\n frame.f_locals[attr] = eval(expression, frame.f_globals, frame.f_locals)\n if value is None:\n value = eval(expression, frame.f_globals, frame.f_locals)\n frame.f_locals[attr] = value\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/edd7efdc0dfde98dfb583abada21d066d2c8cae3", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " @Override\n public boolean startInTransaction() {\n return false;\n }\n\n @Override\n public boolean startInTransaction() {\n return false;\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/367d5a99e58b33cf76267f2899fa4521f291c54a", "target_edit_idx": 7, "propagatable_edit_idx": [ 12 ] }, { "input": " new NoTransactionAction() {\n new DumbAwareAction() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/367d5a99e58b33cf76267f2899fa4521f291c54a", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " private ReferenceType selectedClassWhenHided = null;\n private boolean isHide = false;\n private ReferenceType mySelectedClassWhenHided = null;\n private boolean myIsWithContent = true;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/01d2b8cce13c58a500cd9b1fa2b1db1ae45cbd69", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " if (callback != null) callback.run();\n if (callback != null) callback.run();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/65e40ba6ba609183378bba3859b1390747a25252", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " GithubUserDetailed userInfo = GithubApiUtil.getCurrentUserDetailed(connection);\n GithubUserDetailed userInfo = GithubApiUtil.getCurrentUser(connection);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fa8f8136d0e8e7c39a422d5db66c0b85d77b8e22", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " Collection refs = myRefsModel.refsToCommit(headCommit);\n Collection refs = myRefsModel.refsToHead(headCommit);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d43f372dbaf97a2fb0f902fc238c04b1bb24ce00", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " private boolean myWithin;\n private long myEntered = -1;\n private boolean myMouseWithin;\n private long myTimeEntered = -1;\n myWithin = false;\n myMouseWithin = false;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f15d0dd8ab20bcdef0696ad1312e6928e4366628", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " private static List getPackageVersionsFromAdditionalRepositories(@NotNull @NonNls String packageName) {\n private static List getPackageVersionsFromAdditionalRepositories(@NotNull @NonNls String packageName) throws IOException {\n private static String getLatestPackageVersionFromAdditionalRepositories(@NotNull String packageName) {\n private static String getLatestPackageVersionFromAdditionalRepositories(@NotNull String packageName) throws IOException {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5ceb022c6290f5981dbcf65840cd354a5cea9b69", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " private static List getPackageVersionsFromPyPI(@NotNull String packageName) {\n private static List getPackageVersionsFromPyPI(@NotNull String packageName) throws IOException {\n private static String getLatestPackageVersionFromPyPI(@NotNull String packageName) {\n private static String getLatestPackageVersionFromPyPI(@NotNull String packageName) throws IOException {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5ceb022c6290f5981dbcf65840cd354a5cea9b69", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " invalidateLines(startLine, endLine, endLine, true);\n invalidateLines(startLine, endLine, endLine, false, false);\n invalidateLines(startLine, myDocumentChangeOldEndLine, newEndLine, !LineLayout.isBidiLayoutRequired(event.getNewFragment()));\n invalidateLines(startLine, myDocumentChangeOldEndLine, newEndLine, true, LineLayout.isBidiLayoutRequired(event.getNewFragment()));\n invalidateLines(0, myLines.size() - 1, myDocument.getLineCount() - 1, !documentChangedWithoutNotification);\n invalidateLines(0, myLines.size() - 1, myDocument.getLineCount() - 1,\n documentChangedWithoutNotification, documentChangedWithoutNotification);\n private void invalidateLines(int startLine, int oldEndLine, int newEndLine, boolean keepBidiNotRequiredState) {\n private void invalidateLines(int startLine, int oldEndLine, int newEndLine, boolean textChanged, boolean bidiRequiredForNewText) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b9d5efe66608ed8daf8e146bef1425c62b3c430f", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " List textPatches = ContainerUtil.newArrayList(remaining);\n List remainingBinaries = ContainerUtil.newArrayList(myBinaryShelvedPatches);\n List patches = ContainerUtil.newArrayList(remaining);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/fc349b4ac9f65404de5682cbe175b6ed6be5304d", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " @NotNull private static final String LOG_KIND = \"hashes\";\n @NotNull private static final String STORAGE_KIND = \"hashes\";\n myPersistentEnumerator = PersistentUtil.createPersistentEnumerator(new MyCommitIdKeyDescriptor(roots), LOG_KIND,\n myPersistentEnumerator = PersistentUtil.createPersistentEnumerator(new MyCommitIdKeyDescriptor(roots), STORAGE_KIND,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/836ac7fd4d43d1463d88d34fc43a4406990bdf64", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " mySettingsPanel.showLoginDialog();\n mySettingsPanel.showLoginDialog(false, \"Signing In\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a88f166538a1ba25127ef31a983eb9a1b8f8c61a", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " ApplicationManager.getApplication().invokeLater(\n () -> StudyCheckUtils.showTestResults(myProject, message, false));\n final Course course = StudyTaskManager.getInstance(myProject).getCourse();\n\n if (course != null) {\n if (course.isAdaptive()) {\n ApplicationManager.getApplication().invokeLater(\n () -> {\n StudyCheckUtils.showTestResultPopUp(\"Failed\", MessageType.ERROR.getPopupBackground(), myProject);\n StudyCheckUtils.showTestResultsToolWindow(myProject, message, false);\n });\n }\n else {\n ApplicationManager.getApplication()\n .invokeLater(() -> StudyCheckUtils.showTestResultPopUp(message, MessageType.ERROR.getPopupBackground(), myProject));\n }\n }\n ApplicationManager.getApplication().invokeLater(\n () -> StudyCheckUtils.showTestResults(myProject, message, true));\n if (course != null) {\n if (course.isAdaptive()) {\n ApplicationManager.getApplication().invokeLater(\n () -> {\n StudyCheckUtils.showTestResultPopUp(\"Congratulations!\", MessageType.ERROR.getPopupBackground(), myProject);\n StudyCheckUtils.showTestResultsToolWindow(myProject, message, true);\n });\n }\n else {\n ApplicationManager.getApplication()\n .invokeLater(() -> StudyCheckUtils.showTestResultPopUp(message, MessageType.INFO.getPopupBackground(), myProject));\n }\n }\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ff7d3d1578c86f05b3a46ef21f6c460ce87255c5", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " private void expandProperty(DataContext dataContext, BuildFileProperty property) throws Macro.ExecutionCancelledException {\n private void expandProperty(DataContext dataContext, Project project, BuildFileProperty property) throws Macro.ExecutionCancelledException {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/36978bb4bf8490acdf581af48836727e9ddf243f", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " void setSuperClass(@NotNull PsiClassType type);\n void setSuperType(@NotNull PsiClassType type);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/919f7c8162898cc9de94efe81294cc711b42ce55", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " return findFxmlWithController(project, className, new Function() {\n @Override\n public PsiFile fun(VirtualFile file) {\n return PsiManager.getInstance(project).findFile(file);\n }\n }, ProjectScope.getAllScope(project));\n return findFxmlWithController(project, className, ProjectScope.getAllScope(project));\n }\n\n public static List findFxmlWithController(final Project project, @NotNull String className, @NotNull GlobalSearchScope scope) {\n final PsiManager psiManager = PsiManager.getInstance(project);\n return findFxmlWithController(project, className, psiManager::findFile, scope);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a18f3a9f149eb26c4359420aa030ddc90d78cef5", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " @NotNull Editor editor,\n @NotNull Document document,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c60bb19e9af2f82505913c1c7451c4997062eecc", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 10, 12 ] }, { "input": " PsiFile psiFile = getCachedPsi(getBaseLanguage());\n PsiFile psiFile = getCachedPsi(myBaseLanguage);\n PsiFile psiFile = getCachedPsi(getBaseLanguage());\n PsiFile psiFile = getCachedPsi(myBaseLanguage);\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a317b31b59cad42144081b470786699e8fa96547", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "public class ToggleShowIndentLinesGloballyAction extends ToggleAction {\npublic class ToggleShowIndentLinesGloballyAction extends ToggleAction implements DumbAware {\npublic class ToggleShowLineNumbersGloballyAction extends ToggleAction {\npublic class ToggleShowLineNumbersGloballyAction extends ToggleAction implements DumbAware {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a9fddbc4e9960b3eabd6ddf82d6c52eb309420de", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " context.pushScope(context.getScope().withClass(true));\n context.pushScope(context.getScope().withClass());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/af40ac7d842ff72c8faae7887862115b010e741b", "target_edit_idx": 7, "propagatable_edit_idx": [ 3 ] }, { "input": " context.pushScope(context.getScope().withSuite(true));\n context.pushScope(context.getScope().withSuite());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/af40ac7d842ff72c8faae7887862115b010e741b", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 5 ] }, { "input": " final String propertyQName = JavaFxPsiUtil.getBoxedPropertyType(myPsiClass, getDeclarationImpl());\n final String propertyQName = JavaFxPsiUtil.getBoxedPropertyType(myPsiClass, getDeclarationMember());\n return getDeclarationImpl();\n return getDeclarationMember();\n private PsiMember getDeclarationImpl() {\n private PsiMember getDeclarationMember() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7669c88468d43e28b0d0a4272a07481d6a8da1a1", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " // --> vasya.pupkin, vasya.pupkin@email.com\n userName = authorString.substring(startEmailIndex + 1, startDomainIndex).trim();\n // vasya.pupkin@email.com --> vasya.pupkin, vasya.pupkin@email.com\n userName = authorString.substring(0, startDomainIndex).trim();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f95b01a22e7e9a8f77c5f09b32166a5fb2fea1c5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " new Couple(\"vasya.pupkin\", \"vasya.pupkin@localhost.com\"));\n new Couple(\"\", \"vasya.pupkin@localhost.com\"));\n new Couple(\"vasya.pupkin\", \"vasya.pupkin@localhost.com\"));\n new Couple(\"\", \"vasya.pupkin@localhost.com\"));\n new Couple(\"vasya\", \"vasya@localhost.com\"));\n new Couple(\"\", \"vasya@localhost.com\"));\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f95b01a22e7e9a8f77c5f09b32166a5fb2fea1c5", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " calcLineMarkerAreaWidth();\n calcLineMarkerAreaWidth(canShrink);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3a6c814c7c38411209a78f273bf5d433ba68d108", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " myGutterComponent.updateSize(true);\n myGutterComponent.updateSize(true, true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/3a6c814c7c38411209a78f273bf5d433ba68d108", "target_edit_idx": 10, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " private final boolean myAutoPopup;\n private final boolean myForceAutoPopup;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ed4bc0a2e53277f67f002f68c5b4afa64489652c", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " for (ChangeSignatureUsageProcessor usageProcessor : ChangeSignatureUsageProcessor.EP_NAME.getExtensions()) {\n final MultiMap conflicts = usageProcessor.findConflicts(myChangeInfo, refUsages);\n for (PsiElement key : conflicts.keySet()) {\n Collection collection = conflictDescriptions.get(key);\n if (collection.size() == 0) collection = new HashSet();\n collection.addAll(conflicts.get(key));\n conflictDescriptions.put(key, collection);\n }\n }\n collectConflictsFromExtensions(refUsages, conflictDescriptions, myChangeInfo);\n for (ChangeSignatureUsageProcessor usageProcessor : ChangeSignatureUsageProcessor.EP_NAME.getExtensions()) {\n final MultiMap conflicts = usageProcessor.findConflicts(myChangeInfo, refUsages);\n for (PsiElement key : conflicts.keySet()) {\n Collection collection = conflictDescriptions.get(key);\n if (collection.isEmpty()) collection = new HashSet();\n collection.addAll(conflicts.get(key));\n conflictDescriptions.put(key, collection);\n }\n }\n collectConflictsFromExtensions(refUsages, conflictDescriptions, myChangeInfo);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ea26329614fb5b6fb5da78e8124f7640b37c2d21", "target_edit_idx": 1, "propagatable_edit_idx": [ 11 ] }, { "input": " return !collectProperties((PsiClass)declaration).containsKey(attributeName);\n return !collectWritableProperties((PsiClass)declaration).containsKey(attributeName);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ff60001d0c78e9d8df93a225c82e6d2db3761638", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 7, 8, 10, 11, 12, 13 ] }, { "input": " final Map properties = JavaFxPsiUtil.collectProperties(myPsiClass);\n final Map properties = JavaFxPsiUtil.collectWritableProperties(myPsiClass);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ff60001d0c78e9d8df93a225c82e6d2db3761638", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 4, 8, 10, 11, 12, 13 ] }, { "input": " final PsiMember psiMember = JavaFxPsiUtil.collectProperties(myPsiClass).get(attributeName);\n final PsiMember psiMember = JavaFxPsiUtil.collectWritableProperties(myPsiClass).get(attributeName);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ff60001d0c78e9d8df93a225c82e6d2db3761638", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 1, 4, 7, 8, 10, 12, 13 ] }, { "input": " statusCommand.execute(entry.getKey(), ContainerUtil.map(entry.getValue(), new Function() {\n statusCommand.executeInCurrentThread(entry.getKey(), ContainerUtil.map(entry.getValue(), new Function() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5833333333333334, "commit_url": "https://github.com/JetBrains/intellij-community/commit/340019c59a7654f42cf23ca47d11afe2204e7c1c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " myUi.getOptions().setLeftToolbar(createActionToolbar(contentDescriptor), ActionPlaces.UNKNOWN);\n myUi.getOptions().setLeftToolbar(createActionToolbar(contentDescriptor), ActionPlaces.RUNNER_TOOLBAR);\n consoleContent.setActions(consoleActions, ActionPlaces.UNKNOWN, console.getComponent());\n consoleContent.setActions(consoleActions, ActionPlaces.RUNNER_TOOLBAR, console.getComponent());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/02882096b1843cda2f48b92e7753f471618867e4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return ArrayUtil.find(ourToolbarPlaces, place) != -1;\n return ourToolbarPlaces.contains(place);\n return ArrayUtil.find(ourPopupPlaces, place) != -1;\n return ourPopupPlaces.contains(place);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/02882096b1843cda2f48b92e7753f471618867e4", "target_edit_idx": 10, "propagatable_edit_idx": [ 13 ] }, { "input": " public static final NotificationGroup MINOR_NOTIFICATION = new NotificationGroup(\n \"Vcs Minor Notifications\", NotificationDisplayType.BALLOON, true);\n public static final NotificationGroup STANDARD_NOTIFICATION = new NotificationGroup(\n \"Vcs Notifications\", NotificationDisplayType.BALLOON, true);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/68720ceb28382d039b5017ced332d9305458c750", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " final JavaExceptionBreakpointType type = (JavaExceptionBreakpointType)XDebuggerUtil.getInstance().findBreakpointType(JavaExceptionBreakpointType.class);\n final JavaExceptionBreakpointType type = XDebuggerUtil.getInstance().findBreakpointType(JavaExceptionBreakpointType.class);\n JavaExceptionBreakpointType type = (JavaExceptionBreakpointType)XDebuggerUtil.getInstance().findBreakpointType(JavaExceptionBreakpointType.class);\n JavaExceptionBreakpointType type = XDebuggerUtil.getInstance().findBreakpointType(JavaExceptionBreakpointType.class);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/445b6c6cee1137bf39a19c710b38fe628b8bbf90", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " * Copyright 2000-2015 JetBrains s.r.o.\n * Copyright 2000-2016 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n * Copyright 2000-2016 JetBrains s.r.o.\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/445b6c6cee1137bf39a19c710b38fe628b8bbf90", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " public abstract > XBreakpointType findBreakpointType(@NotNull Class> typeClass);\n public abstract T findBreakpointType(@NotNull Class typeClass);\n public > XBreakpointType findBreakpointType(@NotNull Class> typeClass) {\n public T findBreakpointType(@NotNull Class typeClass) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/445b6c6cee1137bf39a19c710b38fe628b8bbf90", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " if (!myAddSupportPanel.checkCanContinue()) return;\n if (!myAddSupportPanel.checkCanContinue(myAddSupportPanel.getMainPanel())) return;\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/033cb949c84668a89905de18e18b5da3fce004b3", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": " if (!mySupportForFrameworksPanel.checkCanContinue()) {\n if (!mySupportForFrameworksPanel.checkCanContinue(mySupportForFrameworksPanel.getMainPanel())) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/033cb949c84668a89905de18e18b5da3fce004b3", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " int line = yPositionToVisibleLine(Math.max(p.y, 0));\n int line = yToVisibleLine(Math.max(p.y, 0));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/10c541ef8c4f998970a84b5078dead9e7031b8ed", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10, 11, 12 ] }, { "input": " int visibleLine = yPositionToVisibleLine(clip.y);\n int visibleLine = yToVisibleLine(clip.y);\n int line = yPositionToVisibleLine(Math.max(p.y, 0));\n int line = yToVisibleLine(Math.max(p.y, 0));\n final int startLine = yPositionToVisibleLine(clip.y);\n final int endLine = yPositionToVisibleLine(clip.y + clip.height) + 1;\n final int startLine = yToVisibleLine(clip.y);\n final int endLine = yToVisibleLine(clip.y + clip.height) + 1;\n if (yPositionToVisibleLine(y) >= visualLineCount) {\n if (yToVisibleLine(y) >= visualLineCount) {\n int clickVisLine = yPositionToVisibleLine(e.getPoint().y);\n int clickVisLine = yToVisibleLine(e.getPoint().y);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/10c541ef8c4f998970a84b5078dead9e7031b8ed", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9, 11, 12 ] }, { "input": " int clickVisLine = yPositionToVisibleLine(e.getPoint().y);\n int clickVisLine = yToVisibleLine(e.getPoint().y);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/10c541ef8c4f998970a84b5078dead9e7031b8ed", "target_edit_idx": 12, "propagatable_edit_idx": [ 8, 9, 10, 11 ] }, { "input": " * Copyright 2000-2015 JetBrains s.r.o.\n * Copyright 2000-2016 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n * Copyright 2000-2016 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n * Copyright 2000-2016 JetBrains s.r.o.\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/daf3a1f1de2e4de431f7d673026884802fff3077", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 4 ] }, { "input": " Messages.showErrorDialog(ExceptionUtil.getNonEmptyMessage(e, \"Internal error\"), \"Launcher Script Creation Failed\");\n CreateLauncherScriptAction.reportFailure(e, getProject());\n Messages.showErrorDialog(ExceptionUtil.getNonEmptyMessage(e, \"Internal error\"), \"Desktop Entry Creation Failed\");\n CreateDesktopEntryAction.reportFailure(e, getProject());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/daf3a1f1de2e4de431f7d673026884802fff3077", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "import com.intellij.openapi.application.ApplicationBundle;\nimport com.intellij.openapi.application.ApplicationNamesInfo;\nimport com.intellij.openapi.application.PathManager;\nimport com.intellij.openapi.application.*;\nimport com.intellij.openapi.application.ApplicationBundle;\nimport com.intellij.openapi.application.ApplicationNamesInfo;\nimport com.intellij.openapi.application.PathManager;\nimport com.intellij.openapi.application.*;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/daf3a1f1de2e4de431f7d673026884802fff3077", "target_edit_idx": 5, "propagatable_edit_idx": [ 10 ] }, { "input": " LOG.warn(e);\n String message = ExceptionUtil.getNonEmptyMessage(e, \"Internal error\");\n Notifications.Bus.notify(\n new Notification(Notifications.SYSTEM_MESSAGES_GROUP_ID, \"Desktop Entry Creation Failed\", message, NotificationType.ERROR),\n getProject());\n reportFailure(e, getProject());\n LOG.warn(e);\n String message = ExceptionUtil.getNonEmptyMessage(e, \"Internal error\");\n Notifications.Bus.notify(\n new Notification(Notifications.SYSTEM_MESSAGES_GROUP_ID, \"Launcher Script Creation Failed\", message, NotificationType.ERROR),\n project);\n reportFailure(e, project);\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/daf3a1f1de2e4de431f7d673026884802fff3077", "target_edit_idx": 7, "propagatable_edit_idx": [ 12 ] }, { "input": "import com.intellij.icons.AllIcons;\nimport com.intellij.icons.AllIcons;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ac7f6b98ed74e3a5934940a3be525fb43609506d", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " executor.waitAllTasksExecuted();\n executor.waitAllTasksExecuted(5, TimeUnit.MINUTES);\n reDetectExecutor.waitAllTasksExecuted();\n reDetectExecutor.waitAllTasksExecuted(1, TimeUnit.MINUTES);\n executor.waitAllTasksExecuted();\n executor.waitAllTasksExecuted(5, TimeUnit.MINUTES);\n public void waitAllTasksExecuted() throws ExecutionException, InterruptedException {\n public void waitAllTasksExecuted(int timeout, TimeUnit unit) throws ExecutionException, InterruptedException {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/23675bd022e38f3a6c6ee405ce3ed0ccabb79172", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " if (myKeepCollapsedRegions && !region.isExpanded() && !isRegionInCaretLine(region)) continue;\n if (myKeepCollapsedRegions && !region.isExpanded() && !regionOrGroupCanBeRemovedWhenCollapsed(region)) continue;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a4a7c40adf1b11014c31ea34e17219272049e121", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " if (myDirty) return;\n if (myEditor.getSoftWrapModel().isDirty()) {\n myDirty = true;\n return;\n }\n if (myDirty) return;\n if (myEditor.getSoftWrapModel().isDirty()) {\n myDirty = true;\n return;\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/65d61599f82a89b58b7fd7e5b35dccc7e4f7e933", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " mySshHandler = ssh.registerHandler(new GitSSHGUIHandler(myProject));\n mySshHandler = ssh.registerHandler(new GitSSHGUIHandler(myProject), myProject);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/86eb25d344633ca424d4206e030371df4455c290", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4 ] }, { "input": " GitPushNativeResult branchResult = new GitPushNativeResult(UP_TO_DATE, \"refs/heads/master\", null);\n GitPushNativeResult tagResult = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.1\", null);\n GitPushNativeResult branchResult = new GitPushNativeResult(UP_TO_DATE, \"refs/heads/master\");\n GitPushNativeResult tagResult = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.1\");\n GitPushNativeResult branchResult = new GitPushNativeResult(SUCCESS, \"refs/heads/master\", \"\");\n GitPushNativeResult tagResult = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.1\", null);\n GitPushNativeResult branchResult = new GitPushNativeResult(SUCCESS, \"refs/heads/master\");\n GitPushNativeResult tagResult = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.1\");\n GitPushNativeResult branchResult = new GitPushNativeResult(UP_TO_DATE, \"refs/heads/master\", null);\n GitPushNativeResult branchResult = new GitPushNativeResult(UP_TO_DATE, \"refs/heads/master\");\n GitPushNativeResult branchSuccess = new GitPushNativeResult(SUCCESS, \"refs/heads/master\", \"\");\n GitPushNativeResult branchUpToDate = new GitPushNativeResult(UP_TO_DATE, \"refs/heads/master\", null);\n GitPushNativeResult tagResult = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.1\", null);\n GitPushNativeResult branchSuccess = new GitPushNativeResult(SUCCESS, \"refs/heads/master\");\n GitPushNativeResult branchUpToDate = new GitPushNativeResult(UP_TO_DATE, \"refs/heads/master\");\n GitPushNativeResult tagResult = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.1\");\n GitPushNativeResult branchResult = new GitPushNativeResult(UP_TO_DATE, \"refs/heads/master\", null);\n GitPushNativeResult tag1 = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.1\", null);\n GitPushNativeResult tag2 = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.2\", null);\n GitPushNativeResult branchResult = new GitPushNativeResult(UP_TO_DATE, \"refs/heads/master\");\n GitPushNativeResult tag1 = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.1\");\n GitPushNativeResult tag2 = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.2\");\n GitPushNativeResult nr = new GitPushNativeResult(nativeType, from, \"\");\n GitPushNativeResult nr = new GitPushNativeResult(nativeType, from);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.45161290322580644, "commit_url": "https://github.com/JetBrains/intellij-community/commit/95c0b0547f982edaadf3f3ad51b67633deda80df", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 5, 6 ] }, { "input": " GitPushNativeResult branchSuccess = new GitPushNativeResult(SUCCESS, \"refs/heads/master\", \"\");\n GitPushNativeResult branchUpToDate = new GitPushNativeResult(UP_TO_DATE, \"refs/heads/master\", null);\n GitPushNativeResult tagResult = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.1\", null);\n GitPushNativeResult branchSuccess = new GitPushNativeResult(SUCCESS, \"refs/heads/master\");\n GitPushNativeResult branchUpToDate = new GitPushNativeResult(UP_TO_DATE, \"refs/heads/master\");\n GitPushNativeResult tagResult = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.1\");\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3870967741935484, "commit_url": "https://github.com/JetBrains/intellij-community/commit/95c0b0547f982edaadf3f3ad51b67633deda80df", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5, 6 ] }, { "input": " GitPushNativeResult branchResult = new GitPushNativeResult(UP_TO_DATE, \"refs/heads/master\", null);\n GitPushNativeResult tag1 = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.1\", null);\n GitPushNativeResult tag2 = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.2\", null);\n GitPushNativeResult branchResult = new GitPushNativeResult(UP_TO_DATE, \"refs/heads/master\");\n GitPushNativeResult tag1 = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.1\");\n GitPushNativeResult tag2 = new GitPushNativeResult(NEW_REF, \"refs/tags/v0.2\");\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3870967741935484, "commit_url": "https://github.com/JetBrains/intellij-community/commit/95c0b0547f982edaadf3f3ad51b67633deda80df", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 4, 6 ] }, { "input": " GitPushNativeResult nr = new GitPushNativeResult(nativeType, from, \"\");\n GitPushNativeResult nr = new GitPushNativeResult(nativeType, from);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5161290322580645, "commit_url": "https://github.com/JetBrains/intellij-community/commit/95c0b0547f982edaadf3f3ad51b67633deda80df", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " Document document = editor.getDocument();\n DocumentEx document = ((EditorEx)editor).getDocument();\n if (document.isInBulkUpdate()) return;\n Document document = editor.getDocument();\n DocumentEx document = ((EditorEx)editor).getDocument();\n if (document.isInBulkUpdate()) return;\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7e73699edcaf234de1c713cbbd21450bbf607b73", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " final PsiElement match = StructuralSearchUtil.getParentIfIdentifier(result.getMatch());\n final PsiElement match = StructuralSearchUtil.getPresentableElement(result.getMatch());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/894ccaf10ea16cd7458c798404e08d82767b0f07", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " myDumbModePermission = DumbServiceImpl.getExplicitPermission(modalityState);\n myDumbModePermission = DumbServiceImpl.getExplicitPermission();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c6bc3779c6d79a0182809bb6c0192d0a0759f1b6", "target_edit_idx": 14, "propagatable_edit_idx": [ 11, 13 ] }, { "input": " selectPathOrFirst(selected);\n refreshDataUpdateSelection(selected);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7269e38aa161044ff61f82bd82dc21fdd817117e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 5, 6, 7, 8 ] }, { "input": " protected abstract void rebuildBottomActions();\n protected abstract void rebuildSouthPanel();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/91f649bec624c0c06e328bdd6cfdd11ab447206a", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 7 ] }, { "input": "import com.intellij.openapi.wm.WelcomeScreen;\nimport com.intellij.openapi.wm.WelcomeScreen;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/43f81ca24275f64474e02241bbff0f8bfe64fb4b", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " public NewRecentProjectPanel(WelcomeScreen screen) {\n super(screen);\n public NewRecentProjectPanel(Disposable parentDisposable) {\n super(parentDisposable);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/43f81ca24275f64474e02241bbff0f8bfe64fb4b", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " * @param manager the project manager\n * @param indicator the project manager\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/1230a1efe6010ad2c264b184f518d6d7c31b0d43", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " * Copyright 2000-2014 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n * Copyright 2000-2014 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0f888a6f03d6411fa37189d0e5ae79acf68574c8", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": " item.putUserData(LookupItem.FORCE_SHOW_SIGNATURE_ATTR, Boolean.TRUE);\n item.putUserData(JavaCompletionUtil.FORCE_SHOW_SIGNATURE_ATTR, Boolean.TRUE);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.12121212121212122, "commit_url": "https://github.com/JetBrains/intellij-community/commit/157a88cde4747b82155390880a90a5d25fc42705", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 7 ] }, { "input": "import com.intellij.codeInsight.lookup.LookupItem;\nimport com.intellij.codeInsight.lookup.LookupItem;\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/JetBrains/intellij-community/commit/157a88cde4747b82155390880a90a5d25fc42705", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " public static JBColor getBackgroundVersion(@NotNull final Color rootColor) {\n public static JBColor getBackgroundColor(@NotNull final Color baseRootColor) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4f9cf97d51e4400f2393f07c75ee19c4b0f6247b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": " private ProjectStartupTaskManager myConfiguration;\n private ProjectStartupTaskManager myProjectStartupTaskManager;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/859d712b57b18f7fe5c0e0cef4fce6779b41611a", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 5, 6 ] }, { "input": " mySharedCheckBox.setSelected(myConfiguration.isShared());\n mySharedCheckBox.setEnabled(myConfiguration.isShared() || myConfiguration.canBeShared());\n mySharedCheckBox.setSelected(myProjectStartupTaskManager.isShared());\n mySharedCheckBox.setEnabled(myProjectStartupTaskManager.isShared() || myProjectStartupTaskManager.canBeShared());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/JetBrains/intellij-community/commit/859d712b57b18f7fe5c0e0cef4fce6779b41611a", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 3, 5 ] }, { "input": " private void readSettings(Element childNode) {\n private void readSettings(Element childNode, boolean isDefault) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/919d44502cbf544bcf5e95013be6ba6b82dd7d3c", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": " setEditorFontSize(JBUI.scale(Integer.parseInt(value)));\n int size = Integer.parseInt(value);\n if (isDefault) size = JBUI.scale(size);\n setEditorFontSize(size);\n setConsoleFontSize(JBUI.scale(Integer.parseInt(value)));\n int size = Integer.parseInt(value);\n if (isDefault) size = JBUI.scale(size);\n setConsoleFontSize(size);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/919d44502cbf544bcf5e95013be6ba6b82dd7d3c", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " private static void readFontSettings(@NotNull Element element, @NotNull FontPreferences preferences) {\n private static void readFontSettings(@NotNull Element element, @NotNull FontPreferences preferences, boolean isDefaultScheme) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/919d44502cbf544bcf5e95013be6ba6b82dd7d3c", "target_edit_idx": 9, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " private String myOutput;\n private File myOutputFile;\n myOutput = null;\n myOutputFile = null;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d57ea9dc8626d0af366b391fc987eee058e869ae", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " public static String formatMethod(PsiMethod method,\n PsiSubstitutor substitutor,\n public static String formatMethod(@NotNull PsiMethod method,\n @NotNull PsiSubstitutor substitutor,\n public static String formatMethod(PsiMethod method,\n PsiSubstitutor substitutor,\n public static String formatMethod(@NotNull PsiMethod method,\n @NotNull PsiSubstitutor substitutor,\n private static void formatMethod(PsiMethod method,\n PsiSubstitutor substitutor,\n private static void formatMethod(@NotNull PsiMethod method,\n @NotNull PsiSubstitutor substitutor,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6755b5e5a1d9875649fa51e5c0c0a6fb38eb48da", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " * Copyright 2000-2014 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n * Copyright 2000-2014 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n * Copyright 2000-2014 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/4a6c49c8eedeea9b90863ccb5eb6bda3998beda0", "target_edit_idx": 0, "propagatable_edit_idx": [ 10, 7 ] }, { "input": " * Copyright 2000-2009 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n * Copyright 2000-2014 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/6d673343aeb6f3451dd024d5887ae2242de0adbc", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " protected void appendAdditionalActions(DefaultActionGroup actionGroup, JComponent parent) { }\n public void appendAdditionalActions(DefaultActionGroup actionGroup, JComponent parent) { }\n protected void appendAdditionalActions(DefaultActionGroup actionGroup, JComponent parent) {\n public void appendAdditionalActions(DefaultActionGroup actionGroup, JComponent parent) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/01d259f8cccff87078679ca4bcf34631a6a4490d", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " public static final AnAction executeAction = new GrExecuteCommandAction();\n public static final AnAction EXECUTE_ACTION = new GrExecuteCommandAction();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9650a0e9b6b7f4c9b7a988081eb834df27750cb5", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " position = isVirtualSelectionEnabled() ? getVisualPosition() : myEditor.offsetToVisualPosition(getOffset());\n position = isVirtualSelectionEnabled() ? getVisualPosition() : \n myEditor.offsetToVisualPosition(getOffset(), myLogicalCaret.leansForward);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0043550200275313a26aa3da3df601479d7249d8", "target_edit_idx": 6, "propagatable_edit_idx": [ 5, 7, 8, 9, 10, 11, 12 ] }, { "input": " position = myEditor.offsetToVisualPosition(mySelectionMarker.getEndOffset());\n VisualPosition startPosition = myEditor.offsetToVisualPosition(mySelectionMarker.getStartOffset(), true);\n VisualPosition endPosition = myEditor.offsetToVisualPosition(mySelectionMarker.getEndOffset());\n position = startPosition.after(endPosition) ? startPosition : endPosition;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0043550200275313a26aa3da3df601479d7249d8", "target_edit_idx": 7, "propagatable_edit_idx": [ 5, 6, 8, 9, 10, 11, 12 ] }, { "input": " position = isVirtualSelectionEnabled() ? getVisualPosition() : myEditor.offsetToVisualPosition(getOffset());\n position = isVirtualSelectionEnabled() ? getVisualPosition() : \n myEditor.offsetToVisualPosition(getOffset(), myLogicalCaret.leansForward);\n position = myEditor.offsetToVisualPosition(mySelectionMarker.getStartOffset());\n VisualPosition startPosition = myEditor.offsetToVisualPosition(mySelectionMarker.getStartOffset(), true);\n VisualPosition endPosition = myEditor.offsetToVisualPosition(mySelectionMarker.getEndOffset());\n position = startPosition.after(endPosition) ? endPosition : startPosition;\n position = isVirtualSelectionEnabled() ? getVisualPosition() : myEditor.offsetToVisualPosition(getOffset());\n position = isVirtualSelectionEnabled() ? getVisualPosition() : \n myEditor.offsetToVisualPosition(getOffset(), myLogicalCaret.leansForward);\n position = myEditor.offsetToVisualPosition(mySelectionMarker.getEndOffset());\n VisualPosition startPosition = myEditor.offsetToVisualPosition(mySelectionMarker.getStartOffset(), true);\n VisualPosition endPosition = myEditor.offsetToVisualPosition(mySelectionMarker.getEndOffset());\n position = startPosition.after(endPosition) ? startPosition : endPosition;\n doSetSelection(myEditor.offsetToVisualPosition(startOffset), startOffset, myEditor.offsetToVisualPosition(endOffset), endOffset, false,\n updateSystemSelection);\n doSetSelection(myEditor.offsetToVisualPosition(startOffset, true), startOffset, myEditor.offsetToVisualPosition(endOffset), endOffset, \n false, updateSystemSelection);\n startPosition = myEditor.offsetToVisualPosition(startOffset);\n startPosition = myEditor.offsetToVisualPosition(startOffset, true);\n public void setSelection(@Nullable VisualPosition startPosition, int startOffset, @Nullable VisualPosition endPosition, int endOffset, boolean updateSystemSelection) {\n VisualPosition startPositionToUse = startPosition == null ? myEditor.offsetToVisualPosition(startOffset) : startPosition;\n public void setSelection(@Nullable VisualPosition startPosition, int startOffset, @Nullable VisualPosition endPosition, int endOffset, \n boolean updateSystemSelection) {\n VisualPosition startPositionToUse = startPosition == null ? myEditor.offsetToVisualPosition(startOffset, true) : startPosition;\n if (!myEditor.offsetToVisualPosition(marker.getStartOffset()).equals(myRangeMarkerStartPosition) && model.getSoftWrap(marker.getStartOffset()) == null\n || !myEditor.offsetToVisualPosition(marker.getEndOffset()).equals(myRangeMarkerEndPosition) && model.getSoftWrap(marker.getEndOffset()) == null) {\n if (!myEditor.offsetToVisualPosition(marker.getStartOffset(), true).equals(myRangeMarkerStartPosition) &&\n model.getSoftWrap(marker.getStartOffset()) == null ||\n !myEditor.offsetToVisualPosition(marker.getEndOffset()).equals(myRangeMarkerEndPosition)\n && model.getSoftWrap(marker.getEndOffset()) == null) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0043550200275313a26aa3da3df601479d7249d8", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 6, 7, 9, 10, 11, 12 ] }, { "input": " doSetSelection(myEditor.offsetToVisualPosition(startOffset), startOffset, myEditor.offsetToVisualPosition(endOffset), endOffset, false,\n updateSystemSelection);\n doSetSelection(myEditor.offsetToVisualPosition(startOffset, true), startOffset, myEditor.offsetToVisualPosition(endOffset), endOffset, \n false, updateSystemSelection);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/0043550200275313a26aa3da3df601479d7249d8", "target_edit_idx": 9, "propagatable_edit_idx": [ 5, 6, 7, 8, 10, 11, 12 ] }, { "input": " Assert.assertEquals(\"output: \" + buf, \"\\n\" +\n Assert.assertEquals(\"output: \" + buf, \"##teamcity[enteredTheMatrix]\\n\" +\n \"\\n\" +\n Assert.assertEquals(\"output: \" + buf, \"\\n\" +\n Assert.assertEquals(\"output: \" + buf, \"##teamcity[enteredTheMatrix]\\n\" +\n \"\\n\" +\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/JetBrains/intellij-community/commit/09748e14345fa04d94d6e904fc8a136672b1e264", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " return JavaExecutionUtil.getRuntimeQualifiedName(psiClass);\n return psiClass.getQualifiedName();\n return JavaExecutionUtil.getRuntimeQualifiedName(psiclass);\n return psiclass.getQualifiedName();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/50feff7ed301afd1d9784bc4b7c53cbe40794b1a", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " public void addRecentlyFilteredBranchGroup(@NotNull List usersInGroup) {\n addRecentGroup(usersInGroup, myState.RECENTLY_FILTERED_BRANCH_GROUPS);\n public void addRecentlyFilteredBranchGroup(@NotNull List valuesInGroup) {\n addRecentGroup(valuesInGroup, myState.RECENTLY_FILTERED_BRANCH_GROUPS);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9dd68b6857a1c5abba76bb3debe3a7275e74485f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "import com.intellij.openapi.project.DumbModeAction;\nimport com.intellij.openapi.project.DumbModeAction;\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/JetBrains/intellij-community/commit/37128db73effb05aa2f20766210fc8fc72f28067", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " if (!anchorIsEmptyTag && indirectSyntax1) ++textOffset;\n if (!anchorIsEmptyTag && indirectSyntax) ++textOffset;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/dc304b555d8464a161dbf6c472272f7858d7d176", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " // TODO make boolean\n public int NEW_LINE_AT_FILE_END = 1;\n // TODO make boolean (it needs special editor in BlankLinesPanel)\n public int BLANKS_LINES_AT_FILE_END = 1;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/9ade99af07e7ecb423e3c3da588687180accea97", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " public Answer isAcceptableReferencedElement(@NotNull final PsiElement element, final PsiElement referenceOrReferencedElement) {\n if (isEnumConstantReference(element, referenceOrReferencedElement)) return Answer.NO;\n public ThreeState isAcceptableReferencedElement(@NotNull final PsiElement element, final PsiElement referenceOrReferencedElement) {\n if (isEnumConstantReference(element, referenceOrReferencedElement)) return ThreeState.NO;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ba50d34c3fabd58870d8b8cc46c4e7e0b462d363", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " new Pair(\"vasya.pupkin\", \"vasya.pupkin@localhost.com\"));\n new Couple(\"vasya.pupkin\", \"vasya.pupkin@localhost.com\"));\n new Pair(\"vasya.pupkin\", \"vasya.pupkin@localhost.com\"));\n new Couple(\"vasya.pupkin\", \"vasya.pupkin@localhost.com\"));\n new Pair(\"vasya\", \"vasya@localhost.com\"));\n new Couple(\"vasya\", \"vasya@localhost.com\"));\n new Pair(\"Vasya\", \"vas@localhost.com\"));\n new Couple(\"Vasya\", \"vas@localhost.com\"));\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/JetBrains/intellij-community/commit/5f30c04dd0d8ea0ef6ba6bd0a35930355da8c3ac", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": " annotation, vcs);\n getUpToDateLineNumber, annotation, vcs);\n annotation, vcs);\n getUpToDateLineNumber, annotation, vcs);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/feb9141c6017ca80846b3eb8a80ab9eb19c7b26f", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " private final long myCurrentInstructionIndex;\n private final long myStopOffset;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b66000da0cf46727b6702ce077b6ef841f436ba2", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " final TextRange range = psiElement.getTextRange();\n final TextRange range = startElement.getTextRange();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2dee4dfa40baf3b9a02e8a545b34706f9411c0b6", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " protected LocalQuickFix createFix(PsiFile psiFile, PsiElement psiElement, int offsetInElement) {\n protected LocalQuickFix createFix(PsiElement psiElement, int offsetInElement) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/2dee4dfa40baf3b9a02e8a545b34706f9411c0b6", "target_edit_idx": 13, "propagatable_edit_idx": [ 12 ] }, { "input": " if (myDialog.isModal() && appStarted) {\n if (appStarted && myDialog.isModal() && !isProgressDialog()) {\n if (myDialog.isModal() && appStarted) {\n if (appStarted && myDialog.isModal() && !isProgressDialog()) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/576fe087629bf6d8c9987a88f3264535b14c39e6", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " * Copyright 2000-2009 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n * Copyright 2000-2009 JetBrains s.r.o.\n * Copyright 2000-2015 JetBrains s.r.o.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/ad9f7f0a46a46f594002e2fda36a073e1c940734", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " ClassType helperClass = ClassLoadingUtils.getHelperClass(ImageSerializer.class.getName(), evaluationContext, process);\n EvaluationContext copyContext = evaluationContext.createEvaluationContext(obj);\n ClassType helperClass = ClassLoadingUtils.getHelperClass(ImageSerializer.class.getName(), copyContext, process);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/7ad1def206109a628c121ff8e83a8ed2a15f9519", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " protected void paintBackground(Graphics g, Dimension size, int state) {\n void paintBackground(Graphics g, Dimension size, Color background, int state) {\n Color bg = background == null ? JBColor.background() : background;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e7e31c03eaa43c1846c14d8d0a1b8a307525f521", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 1 ] }, { "input": " myLook.paintBackground(g, size, ActionButtonComponent.POPPED);\n myLook.paintBackground(g, size, Gray._235, ActionButtonComponent.POPPED);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e7e31c03eaa43c1846c14d8d0a1b8a307525f521", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " public void showAll() {\n public void expandAll() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e63e2b2bad45aa93bd7591ecc23103a86e057208", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " myUI.showAll();\n myUI.expandAll();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/e63e2b2bad45aa93bd7591ecc23103a86e057208", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " private final ExecutionEnvironment myEnvironment;\n private final Project myProject;\n private final DataContext myDataContext;\n myEnvironment = environment;\n myProject = project;\n myDataContext = DataManager.getInstance().getDataContext(parent);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/f6763a4980378114c1496e9955cc42448670ead4", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " PerformanceWatcher.getInstance().dumpThreads(true);\n PerformanceWatcher.getInstance().dumpThreads(\"newPooledThread/\", true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d8094b30ee98818d1af016b221c282bdd87cf690", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 5 ] }, { "input": " PerformanceWatcher.getInstance().dumpThreads(true);\n PerformanceWatcher.getInstance().dumpThreads(\"emptyLookup/\", true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/d8094b30ee98818d1af016b221c282bdd87cf690", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": " protected void onBeforeRediff() {\n protected void onSlowRediff() {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/91208e3e039d990ee2e2f7c7022ffd9c2181c6d2", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " DiffDrawUtil.drawCurveTrapezium(g, 0, width, myStart1, myEnd1, myStart2, myEnd2, myColor);\n // we need this shift, because editor background highlight is painted in range \"Y(line) - 1 .. Y(line + 1) - 1\"\n DiffDrawUtil.drawCurveTrapezium(g, 0, width, myStart1 - 1, myEnd1 - 1, myStart2 - 1, myEnd2 - 1, myColor);\n DiffDrawUtil.drawTrapezium(g, 0, width, myStart1, myEnd1, myStart2, myEnd2, myColor);\n DiffDrawUtil.drawTrapezium(g, 0, width, myStart1 - 1, myEnd1 - 1, myStart2 - 1, myEnd2 - 1, myColor);\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/JetBrains/intellij-community/commit/acd4b7854e0710bc4dc93b997756e6e5072467f6", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " public LinearBekGraph(@NotNull LinearGraph graph, @NotNull GraphAdditionalEdges hiddenEdges, @NotNull GraphAdditionalEdges newEdges) {\n public LinearBekGraph(@NotNull LinearGraph graph, @NotNull GraphAdditionalEdges hiddenEdges, @NotNull GraphAdditionalEdges dottedEdges) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b01568c99eeefa950911f62217380bb8c7140c1a", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " myNewEdges.appendAdditionalEdges(result, nodeIndex);\n myDottedEdges.appendAdditionalEdges(result, nodeIndex);\n myNewEdges = newEdges;\n myDottedEdges = dottedEdges;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/JetBrains/intellij-community/commit/b01568c99eeefa950911f62217380bb8c7140c1a", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": " EditorTestUtil.configureSoftWraps(myEditor, 16); // wrap right at folded region start\n configureSoftWraps(16); // wrap right at folded region start\n EditorTestUtil.configureSoftWraps(myEditor, 32);\n configureSoftWraps(32);\n EditorTestUtil.configureSoftWraps(myEditor, 100);\n configureSoftWraps(100);\n EditorTestUtil.configureSoftWraps(myEditor, 1000);\n configureSoftWraps(1000);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c1994f0c8141af3ad921aa6ece68b9b9d2c42b86", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": " EditorTestUtil.configureSoftWraps(myEditor, 100);\n configureSoftWraps(100);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c1994f0c8141af3ad921aa6ece68b9b9d2c42b86", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " EditorTestUtil.configureSoftWraps(myEditor, 1000);\n configureSoftWraps(1000);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/c1994f0c8141af3ad921aa6ece68b9b9d2c42b86", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " ActionCallback getScriptSourceMapLoadCallback(@NotNull Script script);\n Promise getScriptSourceMapPromise(@NotNull Script script);\n public ActionCallback getScriptSourceMapLoadCallback(@NotNull Script script) {\n public Promise getScriptSourceMapPromise(@NotNull Script script) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/a9a3532c3c591c1f23b4f3a6a1f2b5b45f03f8bf", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " return isPushAllowed(support);\n return isPushAllowed(support, force);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/901b6f8c2a8c836a12a6a8556bfe89d15d6f033b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": " private boolean isPushAllowed(@NotNull PushSupport pushSupport) {\n private boolean isPushAllowed(@NotNull PushSupport pushSupport, boolean force) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/901b6f8c2a8c836a12a6a8556bfe89d15d6f033b", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": " return myController.isPushAllowed();\n return myController.isPushAllowed(false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/JetBrains/intellij-community/commit/901b6f8c2a8c836a12a6a8556bfe89d15d6f033b", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " commitUpdate(\n instance,\n updatePayload,\n type,\n oldProps,\n newProps,\n finishedWork,\n );\n commitUpdate(instance, type, oldProps, newProps, finishedWork);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/facebook/react/commit/82d8129e585cccff30cc0f5fe1bbee6082dd36a5", "target_edit_idx": 8, "propagatable_edit_idx": [ 0 ] }, { "input": " pass: BabelPluginPass\n pass: CompilerPass\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/2eded946f8e1d75b2e6d078cceb7589439cf5bf4", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 10, 7 ] }, { "input": " pass: BabelPluginPass\n pass: CompilerPass\n pass: BabelPluginPass\n pass: CompilerPass\n pass: BabelPluginPass\n pass: CompilerPass\n pass: BabelPluginPass\n pass: CompilerPass\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/2eded946f8e1d75b2e6d078cceb7589439cf5bf4", "target_edit_idx": 8, "propagatable_edit_idx": [ 10, 6, 7 ] }, { "input": " const customAction: CustomFormAction = formAction.$$FORM_ACTION;\n const customAction: ReactCustomFormAction = formAction.$$FORM_ACTION;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/fa7a447b9ce5a4f0be592fc2946380b0fa3b29c0", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": " if (formAction !== null) {\n if (formAction != null) {\n if (formAction !== null) {\n if (formAction != null) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/facebook/react/commit/fa7a447b9ce5a4f0be592fc2946380b0fa3b29c0", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": " if (formEncType !== null) {\n if (formEncType != null) {\n if (formEncType !== null) {\n if (formEncType != null) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/facebook/react/commit/fa7a447b9ce5a4f0be592fc2946380b0fa3b29c0", "target_edit_idx": 5, "propagatable_edit_idx": [ 10 ] }, { "input": " if (formMethod !== null) {\n if (formMethod != null) {\n if (formMethod !== null) {\n if (formMethod != null) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/facebook/react/commit/fa7a447b9ce5a4f0be592fc2946380b0fa3b29c0", "target_edit_idx": 6, "propagatable_edit_idx": [ 11 ] }, { "input": " if (formTarget !== null) {\n if (formTarget != null) {\n if (formTarget !== null) {\n if (formTarget != null) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/facebook/react/commit/fa7a447b9ce5a4f0be592fc2946380b0fa3b29c0", "target_edit_idx": 7, "propagatable_edit_idx": [ 12 ] }, { "input": "type IdentifierReactivity = Map;\ntype IdentifierReactivity = Map;\n const result = new Set();\n const result = new Set();\nimport { Identifier, ReactiveFunction, ReactiveScopeBlock } from \"../HIR\";\nimport { IdentifierId, ReactiveFunction, ReactiveScopeBlock } from \"../HIR\";\ntype State = Set;\ntype State = Set;\n): Set {\n): Set {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/eda7788c4861e3bd55056a9984e78c9adef99a3f", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 9, 10, 6 ] }, { "input": "): Set {\n): Set {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/eda7788c4861e3bd55056a9984e78c9adef99a3f", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 1, 10, 9 ] }, { "input": " const result = new Set();\n const result = new Set();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/eda7788c4861e3bd55056a9984e78c9adef99a3f", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 10, 6, 9 ] }, { "input": "import { Identifier, ReactiveFunction, ReactiveScopeBlock } from \"../HIR\";\nimport { IdentifierId, ReactiveFunction, ReactiveScopeBlock } from \"../HIR\";\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/eda7788c4861e3bd55056a9984e78c9adef99a3f", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 1, 10, 6 ] }, { "input": "type State = Set;\ntype State = Set;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/eda7788c4861e3bd55056a9984e78c9adef99a3f", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 1, 6, 9 ] }, { "input": "export function hideOverlay() {\nexport function hideOverlay(agent: Agent) {\n if (window.document == null) {\n agent.emit('hideNativeHighlight');\n return;\n }\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/181525338e62a698c05ca04cf91fdccdafd2b5db", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " hideOverlay();\n hideOverlay(agent);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/facebook/react/commit/181525338e62a698c05ca04cf91fdccdafd2b5db", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 5, 6 ] }, { "input": " let blockedOn = attemptToDispatchEvent(\n let blockedOn = findInstanceBlockingEvent(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/ea5a413602e6a3beec9ba929930ebb73eeee8da0", "target_edit_idx": 0, "propagatable_edit_idx": [ 10, 3, 12, 5 ] }, { "input": " const nextBlockedOn = attemptToDispatchEvent(\n const nextBlockedOn = findInstanceBlockingEvent(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/ea5a413602e6a3beec9ba929930ebb73eeee8da0", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 10, 12, 5 ] }, { "input": "// Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked.\nexport function attemptToDispatchEvent(\nexport let return_targetInst = null;\n\n// Returns a SuspenseInstance or Container if it's blocked.\n// The return_targetInst field above is conceptually part of the return value.\nexport function findInstanceBlockingEvent(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/ea5a413602e6a3beec9ba929930ebb73eeee8da0", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 10, 3, 12 ] }, { "input": " if (nextBlockedOn !== null) {\n if (nextBlockedOn === null) {\n dispatchEventForPluginEventSystem(\n queuedEvent.domEventName,\n queuedEvent.eventSystemFlags,\n queuedEvent.nativeEvent,\n return_targetInst,\n targetContainer,\n );\n } else {\n if (nextBlockedOn !== null) {\n if (nextBlockedOn === null) {\n dispatchEventForPluginEventSystem(\n nextDiscreteEvent.domEventName,\n nextDiscreteEvent.eventSystemFlags,\n nextDiscreteEvent.nativeEvent,\n return_targetInst,\n targetContainer,\n );\n } else {\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/facebook/react/commit/ea5a413602e6a3beec9ba929930ebb73eeee8da0", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": " const nextBlockedOn = attemptToDispatchEvent(\n const nextBlockedOn = findInstanceBlockingEvent(\n let blockedOn = attemptToDispatchEvent(\n let blockedOn = findInstanceBlockingEvent(\n const nextBlockedOn = attemptToDispatchEvent(\n const nextBlockedOn = findInstanceBlockingEvent(\n const nextBlockedOn = attemptToDispatchEvent(\n const nextBlockedOn = findInstanceBlockingEvent(\n// Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked.\nexport function attemptToDispatchEvent(\nexport let return_targetInst = null;\n\n// Returns a SuspenseInstance or Container if it's blocked.\n// The return_targetInst field above is conceptually part of the return value.\nexport function findInstanceBlockingEvent(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/ea5a413602e6a3beec9ba929930ebb73eeee8da0", "target_edit_idx": 12, "propagatable_edit_idx": [ 0, 10, 3, 5 ] }, { "input": " } catch (error) {\n // If a scheduler task throws, exit the current browser task so the\n // error can be observed.\n port.postMessage(null);\n throw error;\n } catch (error) {\n // If a scheduler task throws, exit the current browser task so the\n // error can be observed.\n postTask(performWorkUntilDeadline);\n throw error;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/18d7574ae297a24d53fe418e9008e969c29ffba2", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": "if (runESLint({onlyChanged: false})) {\nconst cliOptions = minimist(process.argv.slice(2));\nif (runESLint({onlyChanged: false, ...cliOptions})) {\nif (runESLint({onlyChanged: true})) {\nconst cliOptions = minimist(process.argv.slice(2));\nif (runESLint({onlyChanged: true, ...cliOptions})) {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/facebook/react/commit/73bf2d68efc363810209bb3c35768793b1e40ecb", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " childTarget: null | Element | Document,\n childTarget: Element | Document,\n childTarget: null | Element | Document,\n childTarget: Element | Document,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/facebook/react/commit/ff006451ad792ed26793691402bf7b5f813205f7", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " 'Did you mean to call root.render(element, {hydrate: true})?',\n 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?',\n 'Did you mean to call root.render(element, {hydrate: true})?',\n 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?',\n 'Did you mean to call root.render(element, {hydrate: true})?',\n 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?',\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/1d48b4a68485ce870711e6baa98e5c9f5f213fdf", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " 'This is a no-op, but it might indicate a bug in your application.\\n\\n' +\n 'To fix, assign the initial state in the StatefulComponent constructor. ' +\n 'If the state needs to reflect an external data source, ' +\n 'you may also add a componentDidMount lifecycle hook to StatefulComponent ' +\n 'and call setState there if the external data has changed.',\n 'This is a no-op, but it might indicate a bug in your application. ' +\n 'Instead, assign to `this.state` directly or define a `state = {};` ' +\n 'class property with the desired state in the StatefulComponent component.',\n 'This is a no-op, but it might indicate a bug in your application.\\n\\n' +\n 'To fix, assign the initial state in the MyComponent constructor. ' +\n 'If the state needs to reflect an external data source, ' +\n 'you may also add a componentDidMount lifecycle hook to MyComponent ' +\n 'and call setState there if the external data has changed.',\n 'This is a no-op, but it might indicate a bug in your application. ' +\n 'Instead, assign to `this.state` directly or define a `state = {};` ' +\n 'class property with the desired state in the MyComponent component.',\n 'This is a no-op, but it might indicate a bug in your application.\\n\\n' +\n 'To fix, assign the initial state in the MyComponent constructor. ' +\n 'If the state needs to reflect an external data source, ' +\n 'you may also add a componentDidMount lifecycle hook to MyComponent ' +\n 'and call setState there if the external data has changed.',\n 'This is a no-op, but it might indicate a bug in your application. ' +\n 'Instead, assign to `this.state` directly or define a `state = {};` ' +\n 'class property with the desired state in the MyComponent component.',\n 'This is a no-op, but it might indicate a bug in your application.\\n\\n' +\n 'To fix, assign the initial state in the %s constructor. ' +\n 'If the state needs to reflect an external data source, ' +\n 'you may also add a componentDidMount lifecycle hook to %s ' +\n 'and call setState there if the external data has changed.',\n 'This is a no-op, but it might indicate a bug in your application. ' +\n 'Instead, assign to `this.state` directly or define a `state = {};` ' +\n 'class property with the desired state in the %s component.',\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/a2cc3c38e214c16ff6805312d4353c1faab9ff95", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " 'Use either a ref-setter function or Reacte.createRef().\\n' +\n 'Use either a ref-setter function or React.createRef().\\n' +\n 'Use either a ref-setter function or Reacte.createRef().\\n' +\n 'Use either a ref-setter function or React.createRef().\\n' +\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/facebook/react/commit/d38616d6936542cbf8ca34d3c75cd3b9e44945c9", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "function percentChange(prev, current) {\n const change = Math.floor((current - prev) / prev * 100);\n // When a new package is created\n if (isFinite(change)) {\n return change;\n } else {\n return 100;\n }\nfunction fractionalChange(prev, current) {\n return (current - prev) / prev;\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/facebook/react/commit/2bd1222a8216f578332fcbbbe31a4ab313c204a3", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " prevFileSizeChange: percentChange(prevSize, size),\n prevFileSizeChange: fractionalChange(prevSize, size),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/2bd1222a8216f578332fcbbbe31a4ab313c204a3", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5 ] }, { "input": " prevGzipSizeChange: percentChange(prevGzip, gzip),\n prevGzipSizeChange: fractionalChange(prevGzip, gzip),\nfunction percentChange(prev, current) {\n const change = Math.floor((current - prev) / prev * 100);\n // When a new package is created\n if (isFinite(change)) {\n return change;\n } else {\n return 100;\n }\nfunction fractionalChange(prev, current) {\n return (current - prev) / prev;\n prevFileSizeChange: percentChange(prevSize, size),\n prevFileSizeChange: fractionalChange(prevSize, size),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/2bd1222a8216f578332fcbbbe31a4ab313c204a3", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " syncReactNativeRT(join('build', 'react-native-rt'), syncFbsource)\n syncReactNativeRT(join('build', 'react-rt'), syncFbsource)\n syncReactNativeCS(join('build', 'react-native-cs'), syncFbsource)\n syncReactNativeCS(join('build', 'react-cs'), syncFbsource)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/facebook/react/commit/c7d28a0136857a4d4b36fae19a91e4915c3cdc34", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "function checkPropTypes(typeSpecs, values, location, componentName, formatMessage) {\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/9993fdd957248beb8950cb3a6986ddcff7437ea0", "target_edit_idx": 1, "propagatable_edit_idx": [ 12 ] }, { "input": " componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);\n stack = ReactComponentTreeHook.getStackAddendumByID(debugID);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/9993fdd957248beb8950cb3a6986ddcff7437ea0", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " componentStackInfo = ReactComponentTreeHook.getStackAddendumByWorkInProgressFiber(workInProgress);\n stack = ReactComponentTreeHook.getStackAddendumByWorkInProgressFiber(workInProgress);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/9993fdd957248beb8950cb3a6986ddcff7437ea0", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);\n stack = ReactComponentTreeHook.getCurrentStackAddendum(element);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/9993fdd957248beb8950cb3a6986ddcff7437ea0", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " checkPropTypes(typeSpecs, values, location, componentName, formatMessage);\n checkPropTypes(typeSpecs, values, location, componentName, getStack);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/9993fdd957248beb8950cb3a6986ddcff7437ea0", "target_edit_idx": 12, "propagatable_edit_idx": [ 1 ] }, { "input": "function checkPropTypes(typeSpecs, values, location, componentName, formatMessage, warnOnRepeat) {\nfunction checkPropTypes(typeSpecs, values, location, componentName, formatMessage) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/facebook/react/commit/6ff5211dee0c1734b20d5ce4cd0a9e665f043d72", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": " checkPropTypes(typeSpecs, values, location, componentName, formatMessage, warnOnRepeat);\n checkPropTypes(typeSpecs, values, location, componentName, formatMessage);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/facebook/react/commit/6ff5211dee0c1734b20d5ce4cd0a9e665f043d72", "target_edit_idx": 10, "propagatable_edit_idx": [ 7 ] }, { "input": "var emptyObject = require('emptyObject');\nvar emptyObject = require('emptyObject');\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/3a7d6f53849c932dd226417da6642a735e00e6d2", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " this.refs = emptyObject;\n // emptyObject is inlined to help avoid module mocking referential mismatches\n this.refs = require('emptyObject');\n this.refs = emptyObject;\n // emptyObject is inlined to help avoid module mocking referential mismatches\n this.refs = require('emptyObject');\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/3a7d6f53849c932dd226417da6642a735e00e6d2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " alt.updateQueue = null;\n workInProgress.updateQueue = null;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/288a4c4d6db841da0afe99d057fddf151c339ddb", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " const altQueue = alt.updateQueue || {};\n altQueue.first = sourceQueue.first;\n altQueue.last = sourceQueue.last;\n altQueue.hasForceUpdate = sourceQueue.hasForceUpdate;\n altQueue.callbackList = sourceQueue.callbackList;\n altQueue.isProcessing = sourceQueue.isProcessing;\n alt.updateQueue = altQueue;\n const altQueue = workInProgress.updateQueue || {};\n altQueue.first = currentQueue.first;\n altQueue.last = currentQueue.last;\n\n // These fields are invalid by the time we clone from current. Reset them.\n altQueue.hasForceUpdate = false;\n altQueue.callbackList = null;\n altQueue.isProcessing = false;\n\n workInProgress.updateQueue = altQueue;\n\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/facebook/react/commit/288a4c4d6db841da0afe99d057fddf151c339ddb", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " EventPluginUtils.traverseTwoPhase(\n ReactTreeTraversal.traverseTwoPhase(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/2336b8183d7b2ef6edba34bb2472cf5e3aa90a21", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 4, 5, 7 ] }, { "input": " targetInst ? EventPluginUtils.getParentInstance(targetInst) : null;\n EventPluginUtils.traverseTwoPhase(\n targetInst ? ReactTreeTraversal.getParentInstance(targetInst) : null;\n ReactTreeTraversal.traverseTwoPhase(\n if (EventPluginUtils.isAncestor(responderInst, targetInst)) {\n if (ReactTreeTraversal.isAncestor(responderInst, targetInst)) {\n EventPluginUtils.traverseTwoPhase(\n ReactTreeTraversal.traverseTwoPhase(\n EventPluginUtils.traverseEnterLeave(\n ReactTreeTraversal.traverseEnterLeave(\n EventPluginUtils.getLowestCommonAncestor(responderInst, targetInst);\n ReactTreeTraversal.getLowestCommonAncestor(responderInst, targetInst);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/facebook/react/commit/2336b8183d7b2ef6edba34bb2472cf5e3aa90a21", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 3, 5, 7 ] }, { "input": " EventPluginUtils.traverseEnterLeave(\n ReactTreeTraversal.traverseEnterLeave(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/2336b8183d7b2ef6edba34bb2472cf5e3aa90a21", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 3, 4, 7 ] }, { "input": " EventPluginUtils.getLowestCommonAncestor(responderInst, targetInst);\n ReactTreeTraversal.getLowestCommonAncestor(responderInst, targetInst);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/facebook/react/commit/2336b8183d7b2ef6edba34bb2472cf5e3aa90a21", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 3, 4, 5 ] }, { "input": " if (inst._rootNodeID) {\n // DOM component is still mounted; update\n ReactDOMInput.updateWrapper(inst);\n }\n ReactDOMInput.updateWrapper(inst);\n if (inst._rootNodeID) {\n // DOM component is still mounted; update\n ReactDOMTextarea.updateWrapper(inst);\n }\n // DOM component is still mounted; update\n ReactDOMTextarea.updateWrapper(inst);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/c8d877a4c47211bf141a5ed0e2c75f626e68b45b", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " const partialState = typeof queue.partialState === 'function' ?\n queue.partialState(state, props) :\n queue.partialState;\n const partialState = typeof node.partialState === 'function' ?\n node.partialState(state, props) :\n node.partialState;\n } while (queue = queue.next);\n } while (node = node.next);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/facebook/react/commit/d218158d229ee505a2901184fb2602e08c5645c2", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " } while (queue = queue.next);\n } while (node = node.next);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/facebook/react/commit/d218158d229ee505a2901184fb2602e08c5645c2", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": " 'Input elements should not switch from uncontrolled to controlled (or viceversa). ' +\n 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +\n 'Input elements should not switch from uncontrolled to controlled (or viceversa). ' +\n 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +\n 'Input elements should not switch from uncontrolled to controlled (or viceversa). ' +\n 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +\n 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +\n 'Input elements should not switch from uncontrolled to controlled (or viceversa). ' +\n 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +\n", "class": "clone", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/facebook/react/commit/a10665cac089201c41b4413935f2a1103717ceb4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": " var componentInstance = instantiateReactComponent(nextElement, null);\n var componentInstance = instantiateReactComponent(nextElement);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/facebook/react/commit/14725ba76887a1ceb0e722e169151e0e78ce1d95", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " var componentInstance = instantiateReactComponent(element, null);\n var componentInstance = instantiateReactComponent(element);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/facebook/react/commit/14725ba76887a1ceb0e722e169151e0e78ce1d95", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " childInstances[name] = instantiateReactComponent(child, null);\n childInstances[name] = instantiateReactComponent(child);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/facebook/react/commit/14725ba76887a1ceb0e722e169151e0e78ce1d95", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " var nextChildInstance = instantiateReactComponent(\n nextElement,\n null\n );\n var nextChildInstance = instantiateReactComponent(nextElement);\n var componentInstance = instantiateReactComponent(nextElement, null);\n var componentInstance = instantiateReactComponent(nextElement);\n var componentInstance = instantiateReactComponent(element, null);\n var componentInstance = instantiateReactComponent(element);\n childInstances[name] = instantiateReactComponent(child, null);\n childInstances[name] = instantiateReactComponent(child);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/facebook/react/commit/14725ba76887a1ceb0e722e169151e0e78ce1d95", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " replaceNodeWithMarkupByID: null,\n replaceNodeWithMarkup: null,\n ReactComponentEnvironment.replaceNodeWithMarkupByID =\n environment.replaceNodeWithMarkupByID;\n ReactComponentEnvironment.replaceNodeWithMarkup =\n environment.replaceNodeWithMarkup;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/60491d89f88a04a6be29a52b652090ba276ba7a9", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " ReactComponentEnvironment.replaceNodeWithMarkupByID =\n environment.replaceNodeWithMarkupByID;\n ReactComponentEnvironment.replaceNodeWithMarkup =\n environment.replaceNodeWithMarkup;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/60491d89f88a04a6be29a52b652090ba276ba7a9", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " this._replaceNodeWithMarkupByID(prevComponentID, nextMarkup);\n this._replaceNodeWithMarkup(oldNativeNode, nextMarkup);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/60491d89f88a04a6be29a52b652090ba276ba7a9", "target_edit_idx": 10, "propagatable_edit_idx": [ 12, 14 ] }, { "input": " _replaceNodeWithMarkupByID: function(prevComponentID, nextMarkup) {\n ReactComponentEnvironment.replaceNodeWithMarkupByID(\n prevComponentID,\n _replaceNodeWithMarkup: function(oldNativeNode, nextMarkup) {\n ReactComponentEnvironment.replaceNodeWithMarkup(\n oldNativeNode,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/facebook/react/commit/60491d89f88a04a6be29a52b652090ba276ba7a9", "target_edit_idx": 12, "propagatable_edit_idx": [ 10, 14 ] }, { "input": "var nullComponentIdsRegistry = {};\nvar nullComponentIDsRegistry = {};\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/58d705110e1f29c2a8954a571bd5f152bac91f00", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " nullComponentIdsRegistry[id] = true;\n nullComponentIDsRegistry[id] = true;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/58d705110e1f29c2a8954a571bd5f152bac91f00", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": " delete nullComponentIdsRegistry[id];\n delete nullComponentIDsRegistry[id];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/58d705110e1f29c2a8954a571bd5f152bac91f00", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " return !!nullComponentIdsRegistry[id];\n return !!nullComponentIDsRegistry[id];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/58d705110e1f29c2a8954a571bd5f152bac91f00", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " ' displayName: \\'Whateva\\',',\n ' displayName: \"Whateva\",',\n ' displayName: \\'Whateva\\',',\n ' displayName: \"Whateva\",',\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/facebook/react/commit/eddbb0cfef92f0fdaedae8da00449404f516eb86", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " 'var Component = React.createClass({displayName: \\'Component\\',',\n 'var Component = React.createClass({displayName: \"Component\",',\n 'Component = React.createClass({displayName: \\'Component\\',',\n 'Component = React.createClass({displayName: \"Component\",',\n 'exports.Component = React.createClass({displayName: \\'Component\\',',\n 'exports.Component = React.createClass({displayName: \"Component\",',\n ' Component: React.createClass({displayName: \\'Component\\',',\n ' Component: React.createClass({displayName: \"Component\",',\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/facebook/react/commit/eddbb0cfef92f0fdaedae8da00449404f516eb86", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " this._checkPropTypes(propTypes, props, ReactPropTypeLocations.prop);\n this._checkPropTypes(propTypes, newProps, ReactPropTypeLocations.prop);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/c419cce5c9eeaf4d41f226016c852500bdcb4f71", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " return props;\n return newProps;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/react/commit/c419cce5c9eeaf4d41f226016c852500bdcb4f71", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "import { i18n } from '../../../i18n-config'\nimport { i18n, type Locale } from '../../../i18n-config'\nimport { i18n } from '../../i18n-config'\nimport { i18n, type Locale } from '../../i18n-config'\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/2d52962dfd37c2c52765fbad744680f5a050623d", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "const configreStoreDefaultOptions: ConfigureStoreOptions = { reducer }\nconst configureStoreDefaultOptions: ConfigureStoreOptions = { reducer }\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/67d7219cfd5dc08d01181f06c23a7f57d52382e5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " options: ConfigureStoreOptions = configreStoreDefaultOptions\n options: ConfigureStoreOptions = configureStoreDefaultOptions\nconst configreStoreDefaultOptions: ConfigureStoreOptions = { reducer }\nconst configureStoreDefaultOptions: ConfigureStoreOptions = { reducer }\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/67d7219cfd5dc08d01181f06c23a7f57d52382e5", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "import { useSelectedLayoutSegment } from 'next/navigation'\nimport { useSelectedLayoutSegments } from 'next/navigation'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/4f9e3bf0c2d23fbae6577c376ff837f9a5f8f7f8", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " const selectedLayoutSegment = useSelectedLayoutSegment()\n const selectedLayoutSegment = useSelectedLayoutSegments()\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vercel/next.js/commit/4f9e3bf0c2d23fbae6577c376ff837f9a5f8f7f8", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3, 5, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": "import { useSelectedLayoutSegment } from 'next/navigation'\nimport { useSelectedLayoutSegments } from 'next/navigation'\nexport function useSelectedLayoutSegment(\nexport function useSelectedLayoutSegments(\nimport { useSelectedLayoutSegment } from 'next/navigation'\nimport { useSelectedLayoutSegments } from 'next/navigation'\nimport { useSelectedLayoutSegment } from 'next/navigation'\nimport { useSelectedLayoutSegments } from 'next/navigation'\n const selectedLayoutSegment = useSelectedLayoutSegment()\n const selectedLayoutSegment = useSelectedLayoutSegments()\nimport { useSelectedLayoutSegment } from 'next/navigation'\nimport { useSelectedLayoutSegments } from 'next/navigation'\n const selectedLayoutSegment = useSelectedLayoutSegment()\n const selectedLayoutSegment = useSelectedLayoutSegments()\n const selectedLayoutSegment = useSelectedLayoutSegment()\n const selectedLayoutSegment = useSelectedLayoutSegments()\nimport { useSelectedLayoutSegment } from 'next/navigation'\nimport { useSelectedLayoutSegments } from 'next/navigation'\n const selectedLayoutSegment = useSelectedLayoutSegment()\n const selectedLayoutSegment = useSelectedLayoutSegments()\nimport { useSelectedLayoutSegment } from 'next/navigation'\nimport { useSelectedLayoutSegments } from 'next/navigation'\n const selectedLayoutSegment = useSelectedLayoutSegment()\n const selectedLayoutSegment = useSelectedLayoutSegments()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/4f9e3bf0c2d23fbae6577c376ff837f9a5f8f7f8", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 3, 5, 6, 7, 8, 10, 11, 12, 13, 14 ] }, { "input": " const selectedLayoutSegment = useSelectedLayoutSegment()\n const selectedLayoutSegment = useSelectedLayoutSegments()\nexport function useSelectedLayoutSegment(\nexport function useSelectedLayoutSegments(\nimport { useSelectedLayoutSegment } from 'next/navigation'\nimport { useSelectedLayoutSegments } from 'next/navigation'\nimport { useSelectedLayoutSegment } from 'next/navigation'\nimport { useSelectedLayoutSegments } from 'next/navigation'\n const selectedLayoutSegment = useSelectedLayoutSegment()\n const selectedLayoutSegment = useSelectedLayoutSegments()\nimport { useSelectedLayoutSegment } from 'next/navigation'\nimport { useSelectedLayoutSegments } from 'next/navigation'\n const selectedLayoutSegment = useSelectedLayoutSegment()\n const selectedLayoutSegment = useSelectedLayoutSegments()\nimport { useSelectedLayoutSegment } from 'next/navigation'\nimport { useSelectedLayoutSegments } from 'next/navigation'\nimport { useSelectedLayoutSegment } from 'next/navigation'\nimport { useSelectedLayoutSegments } from 'next/navigation'\n const selectedLayoutSegment = useSelectedLayoutSegment()\n const selectedLayoutSegment = useSelectedLayoutSegments()\nimport { useSelectedLayoutSegment } from 'next/navigation'\nimport { useSelectedLayoutSegments } from 'next/navigation'\n const selectedLayoutSegment = useSelectedLayoutSegment()\n const selectedLayoutSegment = useSelectedLayoutSegments()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/4f9e3bf0c2d23fbae6577c376ff837f9a5f8f7f8", "target_edit_idx": 10, "propagatable_edit_idx": [ 1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14 ] }, { "input": " return response.readRoot()\n const root = response.readRoot()\n rscCache.delete(cacheKey)\n return root\n return response.readRoot()\n const root = response.readRoot()\n rscCache.delete(id)\n return root\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/6581ba9daeebb722056f457f5b50e4236b9edcd3", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " const clientResult = await runCompiler(clientConfig)\n const clientResult = await runCompiler(clientConfig, { runWebpackSpan })\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/vercel/next.js/commit/e920dbc6e69dc003ba056635a0a84b97422db861", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " const serverResult = await runCompiler(configs[1])\n const serverResult = await runCompiler(configs[1], { runWebpackSpan })\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/vercel/next.js/commit/e920dbc6e69dc003ba056635a0a84b97422db861", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "import { RawSource } from 'webpack-sources'\nimport sources from 'webpack-sources'\nimport { RawSource } from 'webpack-sources'\nimport sources from 'webpack-sources'\nimport { RawSource } from 'webpack-sources'\nimport sources from 'webpack-sources'\nimport { RawSource } from 'webpack-sources'\nimport sources from 'webpack-sources'\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/vercel/next.js/commit/d0754993fc46481766c3632ca6f19b62bd8b670b", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 11, 6 ] }, { "input": "export default function Date({ dateString }) {\nexport default function DateComponent({ dateString }) {\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vercel/next.js/commit/1cd6bb5b922b2c452b6efb27015b309ea67fb441", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": "import Date from '../components/date'\nimport DateComponent from '../components/date'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/1cd6bb5b922b2c452b6efb27015b309ea67fb441", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6 ] }, { "input": " \n \n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/1cd6bb5b922b2c452b6efb27015b309ea67fb441", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6 ] }, { "input": " private cacheIdentifier: string\n private parentCacheIdentifier: string\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/74398d09f5e90acf77fb4e35f64f43d58626ddde", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " this.cacheIdentifier = cacheIdentifier\n this.parentCacheIdentifier = cacheIdentifier\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/74398d09f5e90acf77fb4e35f64f43d58626ddde", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 6 ] }, { "input": " .update(this.cacheIdentifier)\n .update(this.parentCacheIdentifier)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/74398d09f5e90acf77fb4e35f64f43d58626ddde", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " const route = getRoute(this)\n const options = loaderUtils.getOptions(this)\n const route = getRoute(this, options)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/c3318d8ef6ba078225f12f6a2a4ed73b5fc0a416", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "function getRoute (loaderContext) {\nfunction getRoute (loaderContext, options) {\n const route = getRoute(this)\n const options = loaderUtils.getOptions(this)\n const route = getRoute(this, options)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/next.js/commit/c3318d8ef6ba078225f12f6a2a4ed73b5fc0a416", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " .use(convertHeadings, { minLevel: 2, maxLevel: 4 })\n .use(transformHeadings, { minLevel: 2, maxLevel: 4 })\nexport const convertHeadings = ({ minLevel, maxLevel }) => {\n// Also, add hash links to headings\nexport const transformHeadings = ({ minLevel, maxLevel }) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Chalarangelo/30-seconds-of-code/commit/a5aca0ca150fb4b1f3043911cfb3b8a90844632e", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " id: getId(snippet),\n id: getId(snippet, sourceDir),\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Chalarangelo/30-seconds-of-code/commit/6cea0839ae76550c619507423a1fd86933c129eb", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 4 ] }, { "input": " id: getId(snippet),\n id: getId(snippet, sourceDir),\n id: getId(snippet),\n id: getId(snippet, sourceDir),\n id: getId(snippet),\n id: getId(snippet, sourceDir),\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Chalarangelo/30-seconds-of-code/commit/6cea0839ae76550c619507423a1fd86933c129eb", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 10 ] }, { "input": " let snippetsArray = Object.keys(snippets).reduce((acc, key) => {\n let snippetsArray = Object.keys(snippets).reduce((acc, snippet) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Chalarangelo/30-seconds-of-code/commit/725cbccbf4f8652f1f4ef6ebc33f06cee5397271", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " ...snippets[key],\n ...snippets[snippet],\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Chalarangelo/30-seconds-of-code/commit/725cbccbf4f8652f1f4ef6ebc33f06cee5397271", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " slug: `/${snippetNode.slugPrefix}${convertToSeoSlug(markdownNode.fields.slug)}`,\n url: `${snippetNode.repoUrlPrefix}${markdownNode.fields.slug.slice(0, -1)}.md`,\n slug: snippetNode.slug,\n url: snippetNode.url,\n slug: `/${snippetNode.slugPrefix}${convertToSeoSlug(markdownNode.fields.slug)}`,\n url: `${snippetNode.repoUrlPrefix}${markdownNode.fields.slug.slice(0, -1)}.md`,\n slug: snippetNode.slug,\n url: snippetNode.url,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Chalarangelo/30-seconds-of-code/commit/725cbccbf4f8652f1f4ef6ebc33f06cee5397271", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " child.stdout.pipe(process.stdout);\n child.stderr.pipe(process.stderr);\n //child.stdout.pipe(process.stdout);\n //child.stderr.pipe(process.stderr);\n\n child.stdout.resume();\n child.stderr.resume();\n child.stdout.pipe(process.stdout);\n child.stderr.pipe(process.stderr);\n //child.stdout.pipe(process.stdout);\n //child.stderr.pipe(process.stderr);\n\n child.stdout.resume();\n child.stderr.resume();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/nodejs/node/commit/de56ffa58b08d69e428fa221681ef305464898a8", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " assert.equal(err.code, 'ECONNRESET');\n switch (err.code) {\n case 'ECONNRESET':\n case 'EPIPE':\n break;\n default:\n assert.equal(err.code, 'ECONNRESET');\n break;\n }\n assert.equal(err.code, 'ECONNRESET');\n switch (err.code) {\n case 'ECONNRESET':\n case 'EPIPE':\n break;\n default:\n assert.equal(err.code, 'ECONNRESET');\n break;\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/nodejs/node/commit/de56ffa58b08d69e428fa221681ef305464898a8", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " if (this.length > kMaxLength)\n throw new RangeError('length > kMaxLength');\n if (this.length > kMaxLength) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength.toString(16) + ' bytes');\n }\n if (length > kMaxLength)\n throw new RangeError('length > kMaxLength');\n if (this.length > kMaxLength) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength.toString(16) + ' bytes');\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nodejs/node/commit/e5346932bcbc523489c9418b82fde31cb666ee99", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " // if we currently have less than the lowWaterMark, then also read some\n if (state.length - n <= state.lowWaterMark)\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length - n <= state.highWaterMark)\n var doRead = rs.needReadable || rs.length <= rs.lowWaterMark;\n var doRead = rs.needReadable || rs.length <= rs.highWaterMark;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nodejs/node/commit/f20fd22abd5e1147d7bb89ff9783169532644671", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " fail('Missing expected exception' + message);\n fail(actual, expected, 'Missing expected exception' + message);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/nodejs/node/commit/72bc4dcda4cfa99ed064419e40d104bd1b2e0e25", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " fail('Got unwanted exception' + message);\n fail(actual, expected, 'Got unwanted exception' + message);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/nodejs/node/commit/72bc4dcda4cfa99ed064419e40d104bd1b2e0e25", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " this._internal = new Process();\n this._internal.onexit = function(exitCode, signalCode) {\n this._handle = new Process();\n this._handle.onexit = function(exitCode, signalCode) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/nodejs/node/commit/4ec77e2e2861cdd43c2837d214d1478ebe5a0783", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7 ] }, { "input": " self._internal.close();\n self._internal = null;\n self._handle.close();\n self._handle = null;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/nodejs/node/commit/4ec77e2e2861cdd43c2837d214d1478ebe5a0783", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7 ] }, { "input": " var r = this._internal.spawn(options);\n var r = this._handle.spawn(options);\n this._internal = new Process();\n this._internal.onexit = function(exitCode, signalCode) {\n this._handle = new Process();\n this._handle.onexit = function(exitCode, signalCode) {\n self._internal.close();\n self._internal = null;\n self._handle.close();\n self._handle = null;\n this._internal.close();\n this._internal = null;\n this._handle.close();\n this._handle = null;\n this.pid = this._internal.pid;\n this.pid = this._handle.pid;\n if (this._internal) {\n if (this._handle) {\n var r = this._internal.kill(signal);\n var r = this._handle.kill(signal);\n child._internal = {\n child._handle = {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nodejs/node/commit/4ec77e2e2861cdd43c2837d214d1478ebe5a0783", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7 ] }, { "input": " this._internal.close();\n this._internal = null;\n this._handle.close();\n this._handle = null;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/nodejs/node/commit/4ec77e2e2861cdd43c2837d214d1478ebe5a0783", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7 ] }, { "input": " this.pid = this._internal.pid;\n this.pid = this._handle.pid;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nodejs/node/commit/4ec77e2e2861cdd43c2837d214d1478ebe5a0783", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7 ] }, { "input": " if (this._internal) {\n if (this._handle) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nodejs/node/commit/4ec77e2e2861cdd43c2837d214d1478ebe5a0783", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7 ] }, { "input": " var r = this._internal.kill(signal);\n var r = this._handle.kill(signal);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nodejs/node/commit/4ec77e2e2861cdd43c2837d214d1478ebe5a0783", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7 ] }, { "input": "function maybeExit(subprocess) {\nfunction maybeClose(subprocess) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nodejs/node/commit/c7b8073afc018901a106564aaf6819b170a9538a", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " maybeExit(self);\n self.emit('exit', self.exitCode, self.signalCode);\n\n maybeClose(self);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/nodejs/node/commit/c7b8073afc018901a106564aaf6819b170a9538a", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": " maybeExit(self);\n maybeClose(self);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nodejs/node/commit/c7b8073afc018901a106564aaf6819b170a9538a", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": " self.resume();\n self.resume(true);\n self.resume();\n self.resume(true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/nodejs/node/commit/8d7aade6634e6daa57164a2c9e634cae360a7c80", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " self._refreshLine();\n self._refreshLine();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/nodejs/node/commit/8d7aade6634e6daa57164a2c9e634cae360a7c80", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "var caPem = fs.readFile(fixturesDir+\"/test_ca.pem\").wait();\nvar certPem = fs.readFile(fixturesDir+\"/test_cert.pem\").wait();\nvar keyPem = fs.readFile(fixturesDir+\"/test_key.pem\").wait();\nvar caPem = fs.readFileSync(fixturesDir+\"/test_ca.pem\");\nvar certPem = fs.readFileSync(fixturesDir+\"/test_cert.pem\");\nvar keyPem = fs.readFileSync(fixturesDir+\"/test_key.pem\");\n var caPem = fs.readFile(fixturesDir+\"/test_ca.pem\").wait();\n var certPem = fs.readFile(fixturesDir+\"/test_cert.pem\").wait();\n var keyPem = fs.readFile(fixturesDir+\"/test_key.pem\").wait();\n var caPem = fs.readFileSync(fixturesDir+\"/test_ca.pem\");\n var certPem = fs.readFileSync(fixturesDir+\"/test_cert.pem\");\n var keyPem = fs.readFileSync(fixturesDir+\"/test_key.pem\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/nodejs/node/commit/c2e58c9dee39accb16d2edd12a1f35394b967d4c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " var args = [];\n for (var i = 0; i < arguments.length; i++) {\n node.debug(JSON.stringify(arguments[i]));\n args.push(arguments[i]);\n }\n\n promise.emitSuccess(args);\n promise.emitSuccess(arguments);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nodejs/node/commit/e7ad8ab4b0b0d5301a0e113e810ac4d7751c43c4", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n\n promise.emitError(args);\n self.emitError(args);\n promise.emitError(arguments);\n self.emitError(arguments);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nodejs/node/commit/e7ad8ab4b0b0d5301a0e113e810ac4d7751c43c4", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "function matchHeaderValue(context, value, header, filter) {\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/axios/axios/commit/ea87ebfe6d1699af072b9e7cd40faf8f14b0ab93", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " if(!matcher || matchHeaderValue(this, this[key], key, matcher)) {\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/axios/axios/commit/ea87ebfe6d1699af072b9e7cd40faf8f14b0ab93", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " assert.notDeepStrictEqual(headers, {foo: 1, 'x-foo': 2, bar: 3});\n assert.deepStrictEqual({...headers.toJSON()}, {foo: '1', 'x-foo': '2', bar: '3'});\n assert.notDeepStrictEqual(headers, {foo: 1, bar: 3});\n assert.deepStrictEqual({...headers.toJSON()}, {foo: '1', bar: '3'});\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/axios/axios/commit/ea87ebfe6d1699af072b9e7cd40faf8f14b0ab93", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "function printFileSizesAfterBuild(webpackStats, previousSizeMap) {\nfunction printFileSizesAfterBuild(webpackStats, previousSizeMap, buildFolder) {\n printFileSizesAfterBuild(stats, previousFileSizes);\n printFileSizesAfterBuild(stats, previousFileSizes, paths.appBuild);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/facebook/create-react-app/commit/b60f55c6bf229890c2f7e23eba27cb825aace5dc", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " printFileSizesAfterBuild(stats, previousFileSizes);\n printFileSizesAfterBuild(stats, previousFileSizes, paths.appBuild);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/facebook/create-react-app/commit/b60f55c6bf229890c2f7e23eba27cb825aace5dc", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t\tcurrentRenderState.init();\n\t\t\tcurrentRenderState.init( camera );\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.037037037037037035, "commit_url": "https://github.com/mrdoob/three.js/commit/c8eb9e6213b97c6aff5e3dc2901d95e471244dff", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tconsole.error( 'THREE.WebGLBufferRenderer: using THREE.BatchedMesh but hardware does not support extension WEBGL_multi_draw.' );\n\t\t\treturn;\n\t\t\tfor ( let i = 0; i < drawCount; i ++ ) {\n\t\t\tconsole.error( 'THREE.WebGLBufferRenderer: using THREE.BatchedMesh but hardware does not support extension WEBGL_multi_draw.' );\n\t\t\treturn;\n\t\t\tfor ( let i = 0; i < drawCount; i ++ ) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/f02b9485ed1b7296314f9430daa36e7054e5641e", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tlet elementCount = 0;\n\t\tfor ( let i = 0; i < drawCount; i ++ ) {\n\t\t} else {\n\t\tlet elementCount = 0;\n\t\tfor ( let i = 0; i < drawCount; i ++ ) {\n\t\t} else {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/f02b9485ed1b7296314f9430daa36e7054e5641e", "target_edit_idx": 3, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\t\telementCount += counts[ i ];\n\t\t\textension.multiDrawArraysWEBGL( mode, starts, 0, counts, 0, drawCount );\n\t\t\telementCount += counts[ i ];\n\t\t\textension.multiDrawElementsWEBGL( mode, counts, 0, type, starts, 0, drawCount );\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/f02b9485ed1b7296314f9430daa36e7054e5641e", "target_edit_idx": 4, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\tinfo.update( elementCount, mode, 1 );\n\t\t\t}\n\n\t\t\tinfo.update( elementCount, mode, 1 );\n\n\t\t}\n\t\tinfo.update( elementCount, mode, 1 );\n\t\t\t}\n\n\t\t\tinfo.update( elementCount, mode, 1 );\n\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/mrdoob/three.js/commit/f02b9485ed1b7296314f9430daa36e7054e5641e", "target_edit_idx": 6, "propagatable_edit_idx": [ 13 ] }, { "input": "import { arrayMax } from '../utils.js';\nimport { arrayNeedsUint32 } from '../utils.js';\nimport { arrayMax } from '../../utils.js';\nimport { arrayNeedsUint32 } from '../../utils.js';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/84f3e57c53357717d84234ccdb4f18be9d234025", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "import { arrayMax } from '../../utils.js';\nimport { arrayNeedsUint32 } from '../../utils.js';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/84f3e57c53357717d84234ccdb4f18be9d234025", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t\tif ( _shadowMapSize.x > maxTextureSize || _shadowMapSize.y > maxTextureSize ) {\n\t\t\tif ( _shadowMapSize.x > _maxTextureSize || _shadowMapSize.y > _maxTextureSize ) {\n\t\t\t\tif ( _shadowMapSize.x > maxTextureSize ) {\n\t\t\t\tif ( _shadowMapSize.x > _maxTextureSize ) {\n\t\t\t\t\t_viewportSize.x = Math.floor( maxTextureSize / shadowFrameExtents.x );\n\t\t\t\t\t_viewportSize.x = Math.floor( _maxTextureSize / shadowFrameExtents.x );\n\t\t\t\tif ( _shadowMapSize.y > maxTextureSize ) {\n\t\t\t\tif ( _shadowMapSize.y > _maxTextureSize ) {\n\t\t\t\t\t_viewportSize.y = Math.floor( maxTextureSize / shadowFrameExtents.y );\n\t\t\t\t\t_viewportSize.y = Math.floor( _maxTextureSize / shadowFrameExtents.y );\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/mrdoob/three.js/commit/6372b2e6a67708c20c68fd7cb97a508a7c21ce65", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10, 11, 12 ] }, { "input": "\t\t\t\tif ( _shadowMapSize.y > maxTextureSize ) {\n\t\t\t\tif ( _shadowMapSize.y > _maxTextureSize ) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/6372b2e6a67708c20c68fd7cb97a508a7c21ce65", "target_edit_idx": 11, "propagatable_edit_idx": [ 8, 9, 10, 12 ] }, { "input": "\t\t\t\t\t_viewportSize.y = Math.floor( maxTextureSize / shadowFrameExtents.y );\n\t\t\t\t\t_viewportSize.y = Math.floor( _maxTextureSize / shadowFrameExtents.y );\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/6372b2e6a67708c20c68fd7cb97a508a7c21ce65", "target_edit_idx": 12, "propagatable_edit_idx": [ 8, 9, 10, 11 ] }, { "input": "\t\t\tvar lineDistances = new Float32Array( 2 * instanceStart.data.count );\n\t\t\tvar lineDistances = new Float32Array( 2 * instanceStart.count );\n\t\t\tvar lineDistances = new Float32Array( 2 * instanceStart.data.count );\n\t\t\tvar lineDistances = new Float32Array( 2 * instanceStart.count );\n\t\t\tvar lineDistances = new Float32Array( 2 * instanceStart.data.count );\n\t\t\tvar lineDistances = new Float32Array( 2 * instanceStart.count );\n\t\t\tvar lineDistances = new Float32Array( 2 * instanceStart.data.count );\n\t\t\tvar lineDistances = new Float32Array( 2 * instanceStart.count );\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/mrdoob/three.js/commit/629e1fd0870c60ad99718093f40a8e1fab2d535b", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 6 ] }, { "input": "\t\t\tfor ( var i = 0, j = 0, l = instanceStart.data.count; i < l; i ++, j += 2 ) {\n\t\t\tfor ( var i = 0, j = 0, l = instanceStart.count; i < l; i ++, j += 2 ) {\n\t\t\tfor ( var i = 0, j = 0, l = instanceStart.data.count; i < l; i ++, j += 2 ) {\n\t\t\tfor ( var i = 0, j = 0, l = instanceStart.count; i < l; i ++, j += 2 ) {\n\t\t\tfor ( var i = 0, j = 0, l = instanceStart.data.count; i < l; i ++, j += 2 ) {\n\t\t\tfor ( var i = 0, j = 0, l = instanceStart.count; i < l; i ++, j += 2 ) {\n\t\t\tfor ( var i = 0, j = 0, l = instanceStart.data.count; i < l; i ++, j += 2 ) {\n\t\t\tfor ( var i = 0, j = 0, l = instanceStart.count; i < l; i ++, j += 2 ) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/mrdoob/three.js/commit/629e1fd0870c60ad99718093f40a8e1fab2d535b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 7 ] }, { "input": "\t\tthis.textureLoader = new THREE.TextureLoader( this.options.manager );\n\t\tthis.textureLoader.setCrossOrigin( this.options.crossOrigin );\n\t\tthis.useImageBitmap = typeof createImageBitmap !== 'undefined';\n\t\tthis.textureLoader = new TextureLoader( this.options.manager );\n\t\tthis.textureLoader.setCrossOrigin( this.options.crossOrigin );\n\t\tthis.useImageBitmap = typeof createImageBitmap !== 'undefined';\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mrdoob/three.js/commit/d86c6c8d15e70bff72415459b18e4a00ba40c113", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tif ( typeof createImageBitmap !== 'undefined' ) {\n\t\t\tthis.textureLoader.setImageLoader( new THREE.ImageBitmapLoader( this.options.manager ) );\n\t\tif ( this.useImageBitmap ) {\n\t\t\tthis.textureLoader = new THREE.ImageBitmapLoader( this.options.manager );\n\t\t} else {\n\t\t\tthis.textureLoader = new THREE.TextureLoader( this.options.manager );\n\t\tif ( typeof createImageBitmap !== 'undefined' ) {\n\t\t\tthis.textureLoader.setImageLoader( new ImageBitmapLoader( this.options.manager ) );\n\t\tif ( this.useImageBitmap ) {\n\t\t\tthis.textureLoader = new ImageBitmapLoader( this.options.manager );\n\t\t} else {\n\t\t\tthis.textureLoader = new TextureLoader( this.options.manager );\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/d86c6c8d15e70bff72415459b18e4a00ba40c113", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\t\tloader.load( resolveURL( sourceURI, options.path ), resolve, undefined, reject );\n\t\t\t\tvar onLoad = resolve;\n\n\t\t\t\tif ( useImageBitmap ) {\n\n\t\t\t\t\tonLoad = function ( imageBitmap ) {\n\n\t\t\t\t\t\tresolve( new THREE.CanvasTexture( imageBitmap ) );\n\n\t\t\t\t\t};\n\n\t\t\t\t}\n\n\t\t\t\tloader.load( resolveURL( sourceURI, options.path ), onLoad, undefined, reject );\n\t\t\t\tloader.load( resolveURL( sourceURI, options.path ), resolve, undefined, reject );\n\t\t\t\tvar onLoad = resolve;\n\n\t\t\t\tif ( useImageBitmap ) {\n\n\t\t\t\t\tonLoad = function ( imageBitmap ) {\n\n\t\t\t\t\t\tresolve( new CanvasTexture( imageBitmap ) );\n\n\t\t\t\t\t};\n\n\t\t\t\t}\n\n\t\t\t\tloader.load( resolveURL( sourceURI, options.path ), onLoad, undefined, reject );\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mrdoob/three.js/commit/d86c6c8d15e70bff72415459b18e4a00ba40c113", "target_edit_idx": 4, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\t\t\tloader.load( resolveURL( sourceURI, options.path ), resolve, undefined, reject );\n\t\t\t\tvar onLoad = resolve;\n\n\t\t\t\tif ( useImageBitmap ) {\n\n\t\t\t\t\tonLoad = function ( imageBitmap ) {\n\n\t\t\t\t\t\tresolve( new CanvasTexture( imageBitmap ) );\n\n\t\t\t\t\t};\n\n\t\t\t\t}\n\n\t\t\t\tloader.load( resolveURL( sourceURI, options.path ), onLoad, undefined, reject );\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mrdoob/three.js/commit/d86c6c8d15e70bff72415459b18e4a00ba40c113", "target_edit_idx": 10, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\tif ( parameters[ key ] !== undefined ) data[ key ] = parameters[ key ];\n\t\t\t\tvar value = parameters[ key ];\n\t\t\t\tif ( value !== undefined ) {\n\n\t\t\t\t\tif ( value.toJSON ) {\n\n\t\t\t\t\t\tdata[ key ] = value.toJSON();\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tdata[ key ] = value;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif ( parameters[ key ] !== undefined ) data[ key ] = parameters[ key ];\n\t\t\t\tvar value = parameters[ key ];\n\t\t\t\tif ( value !== undefined ) {\n\n\t\t\t\t\tif ( value.toJSON ) {\n\n\t\t\t\t\t\tdata[ key ] = value.toJSON();\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tdata[ key ] = value;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/f7253b08c11fbce2962f5fec354a3e3927cd4d95", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tloader.setResponseType( 'json' );\n\t\tloader.load( url, function ( json ) {\n\t\tloader.load( url, function ( text ) {\n\t\tloader.setResponseType( 'json' );\n\t\tloader.load( url, function ( json ) {\n\t\tloader.load( url, function ( text ) {\n\t\tloader.load( url, function ( json ) {\n\t\tloader.load( url, function ( text ) {\n\t\tloader.setResponseType( 'json' );\n\t\tloader.load( url, function ( json ) {\n\t\tloader.load( url, function ( text ) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/49071e5a7770de3bf505705fc593abf2e13bc0af", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 5, 7 ] }, { "input": "\t\t\tonLoad( scope.parse( json ) );\n\t\t\tonLoad( scope.parse( JSON.parse( text ) ) );\n\t\t\tonLoad( scope.parse( json ) );\n\t\t\tonLoad( scope.parse( JSON.parse( text ) ) );\n\t\t\tonLoad( scope.parse( json ) );\n\t\t\tonLoad( scope.parse( JSON.parse( text ) ) );\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/49071e5a7770de3bf505705fc593abf2e13bc0af", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 3 ] }, { "input": "\t\tloader.setResponseType( 'json' );\n\t\tloader.load( url, function ( json ) {\n\t\tloader.load( url, function ( text ) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/49071e5a7770de3bf505705fc593abf2e13bc0af", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 5, 7 ] }, { "input": "\t\tlightPlane.material.color.copy( this.light.color ).multiplyScalar( this.light.intensity );\n\t\tlightPlane.material.color.copy( this.light.color );\n\tmaterial.color.copy( this.light.color ).multiplyScalar( this.light.intensity );\n\tmaterial.color.copy( this.light.color );\n\tthis.material.color.copy( this.light.color ).multiplyScalar( this.light.intensity );\n\tthis.material.color.copy( this.light.color );\n\t\tthis.cone.material.color.copy( this.light.color ).multiplyScalar( this.light.intensity );\n\t\tthis.cone.material.color.copy( this.light.color );\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/mrdoob/three.js/commit/0cc76e6b27e6cbb930235de7bd25ff9a6e668924", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "\tvar objects = new WebGLObjects( _gl, geometries );\n\tvar objects = new WebGLObjects( _gl, geometries, _infoRender );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mrdoob/three.js/commit/c31b30a1b4cc07c0d9a0dde82ba626462aaa88a6", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "function WebGLObjects( gl, geometries ) {\nfunction WebGLObjects( gl, geometries, infoRender ) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mrdoob/three.js/commit/c31b30a1b4cc07c0d9a0dde82ba626462aaa88a6", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "THREE.PointLight.prototype.clone = function () {\n\n\tvar light = new this.constructor( this.color, this.intensity );\n\treturn light.copy( this );\n\n};\n\nTHREE.DirectionalLight.prototype.clone = function() {\n\t\n\tvar light = new this.constructor( this.color, this.intensity );\n\treturn light.copy( this );\n}\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/mrdoob/three.js/commit/d19b117ce78a08fd9847628129474547f312fa55", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "THREE.Light.prototype.clone = function () {\nTHREE.Light.prototype.copy = function ( source ) {\nTHREE.PointLight.prototype.clone = function () {\nTHREE.PointLight.prototype.copy = function ( source ) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/mrdoob/three.js/commit/d19b117ce78a08fd9847628129474547f312fa55", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": "\t \tscope.updateGizmo();\n\t \tscope.update();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/c5cb65982b7114f55f13a6f487520545b879d8a8", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 11 ] }, { "input": "\t\tscope.updateGizmo();\n\t\tscope.update();\n\t\t\tscope.updateGizmo();\n\t\t\tscope.update();\n\t \tscope.updateGizmo();\n\t \tscope.update();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/c5cb65982b7114f55f13a6f487520545b879d8a8", "target_edit_idx": 8, "propagatable_edit_idx": [ 11, 7 ] }, { "input": "\t\tscope.updateGizmo();\n\n\t\t\tscope.updateGizmo();\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mrdoob/three.js/commit/c5cb65982b7114f55f13a6f487520545b879d8a8", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": "\tdelay: number;\n\tduration: number;\n\teasing: EasingFunction;\n\tdelay?: number;\n\tduration?: number;\n\teasing?: EasingFunction;\n\tdelay: number;\n\tduration: number;\n\teasing: EasingFunction;\n\tdelay?: number;\n\tduration?: number;\n\teasing?: EasingFunction;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/sveltejs/svelte/commit/3dfb17873992c8543e1b04b79533ed4896680bd1", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\tdelay: number;\n\tduration: number;\n\teasing: EasingFunction;\n\tx: number;\n\ty: number;\n\topacity: number;\n\tdelay?: number;\n\tduration?: number;\n\teasing?: EasingFunction;\n\tx?: number;\n\ty?: number;\n\topacity?: number;\n\tdelay: number;\n\tduration: number;\n\teasing: EasingFunction;\n\tstart: number;\n\topacity: number;\n\tdelay?: number;\n\tduration?: number;\n\teasing?: EasingFunction;\n\tstart?: number;\n\topacity?: number;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/sveltejs/svelte/commit/3dfb17873992c8543e1b04b79533ed4896680bd1", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\tdelay: number;\n\tspeed: number;\n\tduration: number | ((len: number) => number);\n\teasing: EasingFunction;\n\tdelay?: number;\n\tspeed?: number;\n\tduration?: number | ((len: number) => number);\n\teasing?: EasingFunction;\n\tdelay: number;\n\tduration: number | ((len: number) => number);\n\teasing: EasingFunction;\n\tdelay?: number;\n\tduration?: number | ((len: number) => number);\n\teasing?: EasingFunction;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/sveltejs/svelte/commit/3dfb17873992c8543e1b04b79533ed4896680bd1", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " el.attr('transform', 'translate(' + x + ', ' + y + ')');\n el.attr('transform', `translate(${x}, ${y + subGraphTitleTotalMargin / 2})`);\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n el.attr('transform', `translate(${x}, ${y})`);\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n el.attr('transform', `translate(${x}, ${y})`);\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n el.attr('transform', `translate(${x}, ${y})`);\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n el.attr('transform', `translate(${x}, ${y})`);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mermaid-js/mermaid/commit/a807a58a2956a2285e74f83d5e8a0ee99b9118d0", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": "import type { PieFields, PieDb, Sections, PieDiagramConfig } from './pieTypes.js';\nimport type { PieFields, PieDB, Sections, PieDiagramConfig } from './pieTypes.js';\nexport const db: PieDb = {\nexport const db: PieDB = {\nexport interface PieDb extends DiagramDB {\nexport interface PieDB extends DiagramDB {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mermaid-js/mermaid/commit/09c4a26509c500a526e005e919ea86e9da671016", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 13 ] }, { "input": "// Script variables.\n// Script variables.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/anuraghazra/github-readme-stats/commit/1d10912646dd12f17d2d8f86044d5341e208e690", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "\tfunction slide( h, v, fireEvent ) {\n\tfunction slide( h, v, origin ) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hakimel/reveal.js/commit/a2e021ccdb9d6acfc9cfa92d334430fbc1d1366a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\tfunction navigateTo( h, v, fireEvent ) {\n\t\tslide( h, v, fireEvent );\n\tfunction navigateTo( h, v, origin ) {\n\t\tslide( h, v, origin );\n\tfunction slide( h, v, fireEvent ) {\n\tfunction slide( h, v, origin ) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/hakimel/reveal.js/commit/a2e021ccdb9d6acfc9cfa92d334430fbc1d1366a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " * @param {Mixed} body or status\n * @param {Mixed} body\n * @return {ServerResponse}\n * @param {Mixed} obj or status\n * @param {Mixed} obj\n * @return {ServerResponse}\n * @param {Mixed} obj or status\n * @param {Mixed} obj\n * @return {ServerResponse}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/expressjs/express/commit/9e6b881f8566f26f2d2ea017657455ec7c674ad6", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\t\t\tsuper(JAVASCRIPT_MODULE_TYPE_DYNAMIC, resource);\n\t\t\tsuper(JAVASCRIPT_MODULE_TYPE_DYNAMIC, resource, layer);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/webpack/webpack/commit/e2c80ea97437df0d427cc55dcab5e23713187a36", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tsuper(JAVASCRIPT_MODULE_TYPE_DYNAMIC);\n\t\t\tsuper(JAVASCRIPT_MODULE_TYPE_DYNAMIC, undefined, options.layer);\n\t\t\tsuper(JAVASCRIPT_MODULE_TYPE_DYNAMIC, resource);\n\t\t\tsuper(JAVASCRIPT_MODULE_TYPE_DYNAMIC, resource, layer);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/webpack/webpack/commit/e2c80ea97437df0d427cc55dcab5e23713187a36", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tdata.set(\"url\", this.url);\n\t\tdata.set(\"url\", this.urlBuffer);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/webpack/webpack/commit/17f317bef2b567f73890c4201f37f09a740ada33", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": "\t\thash.update(this.url);\n\t\thash.update(this.urlBuffer);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/webpack/webpack/commit/17f317bef2b567f73890c4201f37f09a740ada33", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 5, 7 ] }, { "input": "\t\twrite(this.url);\n\t\twrite(this.urlBuffer);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/webpack/webpack/commit/17f317bef2b567f73890c4201f37f09a740ada33", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 5, 6 ] }, { "input": "\t\tthis.url = read();\n\t\tthis.urlBuffer = read();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/webpack/webpack/commit/17f317bef2b567f73890c4201f37f09a740ada33", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": "\t\t\tif (current instanceof Promise) {\n\t\t\tif (\n\t\t\t\t!!current &&\n\t\t\t\t(typeof current === \"object\" || typeof current === \"function\") &&\n\t\t\t\ttypeof current.then === \"function\"\n\t\t\t) {\n\t\t\tif (current instanceof Promise) {\n\t\t\tif (\n\t\t\t\t!!current &&\n\t\t\t\t(typeof current === \"object\" || typeof current === \"function\") &&\n\t\t\t\ttypeof current.then === \"function\"\n\t\t\t) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/webpack/webpack/commit/946e96f476bd6de1e01713c5ce4b35519e7970c7", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\tif (r instanceof Promise) return r.then(data => data && serialize(data));\n\t\t\tif (\n\t\t\t\t!!r &&\n\t\t\t\t(typeof r === \"object\" || typeof r === \"function\") &&\n\t\t\t\ttypeof r.then === \"function\"\n\t\t\t) {\n\t\t\t\treturn r.then(data => data && serialize(data));\n\t\t\t}\n\t\t\tif (r instanceof Promise) return r.then(data => deserialize(data));\n\t\t\tif (\n\t\t\t\t!!r &&\n\t\t\t\t(typeof r === \"object\" || typeof r === \"function\") &&\n\t\t\t\ttypeof r.then === \"function\"\n\t\t\t) {\n\t\t\t\treturn r.then(data => deserialize(data));\n\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/webpack/webpack/commit/946e96f476bd6de1e01713c5ce4b35519e7970c7", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\tlog(\"warning\", \"[HMR] \" + (err.stack || err.message));\n\t\t\t\t\tlog(\"warning\", \"[HMR] \" + log.formatError(err));\n\t\t\t\t\tlog(\"warning\", \"[HMR] \" + (err.stack || err.message));\n\t\t\t\t\tlog(\"warning\", \"[HMR] \" + log.formatError(err));\n\t\t\t\t\t\tlog(\"warning\", \"[HMR] \" + (err.stack || err.message));\n\t\t\t\t\t\tlog(\"warning\", \"[HMR] \" + log.formatError(err));\n\t\t\t\t\tlog(\"warning\", \"[HMR] \" + (err.stack || err.message));\n\t\t\t\t\tlog(\"warning\", \"[HMR] \" + log.formatError(err));\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/webpack/webpack/commit/a1d45671c1f0cf6d41347718e5797c8ec50bc280", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 5, 7 ] }, { "input": "\t\t\t\t\tlog(\n\t\t\t\t\t\t\"warning\",\n\t\t\t\t\t\t\"[HMR] Update check failed: \" + (err.stack || err.message)\n\t\t\t\t\t);\n\t\t\t\t\tlog(\"warning\", \"[HMR] Update check failed: \" + log.formatError(err));\n\t\t\t\t\t\tlog(\n\t\t\t\t\t\t\t\"warning\",\n\t\t\t\t\t\t\t\"[HMR] Update failed: \" + (err.stack || err.message)\n\t\t\t\t\t\t);\n\t\t\t\t\t\tlog(\"warning\", \"[HMR] Update failed: \" + log.formatError(err));\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/webpack/webpack/commit/a1d45671c1f0cf6d41347718e5797c8ec50bc280", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\t\t\tthis.errors.push(new AsyncDependencyToInitialChunkWarning(b.chunkName, b.module, b.loc));\n\t\t\t\t\tthis.errors.push(new AsyncDependencyToInitialChunkError(b.chunkName, b.module, b.loc));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/webpack/webpack/commit/370eb38e32408bb3ba00f725666d703e421d0df2", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t\t\tdep = new RequireResolveHeaderDependency(expr.callee.range);\n\t\t\t\tconst dep = new RequireResolveHeaderDependency(expr.callee.range);\n\t\t\t\tdep = new RequireResolveHeaderDependency(expr.callee.range);\n\t\t\t\tconst dep = new RequireResolveHeaderDependency(expr.callee.range);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/webpack/webpack/commit/51ccbd45995d424346846ad2b25845b11e8b5d67", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tconfigurable: false,\n\t\t\tconfigurable: false,\n\t\t\tconfigurable: false,\n\t\t\tconfigurable: false,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/webpack/webpack/commit/af8d49e1f613ed02972b073b3130e685b5dab8c8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": "\tfunction table(array, formats, align, splitter) {\n\tfunction table(array, align, splitter) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/webpack/webpack/commit/7736ebe36778b92c1adcdf5ab989ea69b3216364", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\ttable(t, [colors.green, colors.normal, colors.bold, colors.green, colors.normal], \"rrrll\");\n\t\ttable(t, \"rrrll\");\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/webpack/webpack/commit/7736ebe36778b92c1adcdf5ab989ea69b3216364", "target_edit_idx": 6, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\tvar identifier = makeRelative(compiler, module.identifier());\n\t\t\t\tif(!module.portableId) module.portableId = makeRelative(compiler, module.identifier());\n\t\t\t\tvar identifier = module.portableId;\n\t\t\t\t\tvar identifier = makeRelative(compiler, module.identifier());\n\t\t\t\t\tif(!module.portableId) module.portableId = makeRelative(compiler, module.identifier());\n\t\t\t\t\tvar identifier = module.portableId;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/webpack/webpack/commit/cabfba9ff2623dde744cde78c27df03f2dc2e188", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\n // DEPRECATED: This can be removed at some point (added in Atom 1.17/1.18ish)\n // It removes `layoutMode`\n if (atom.config.get(`${themeName}.layoutMode`)) {\n atom.config.unset(`${themeName}.layoutMode`);\n }\n\n // DEPRECATED: This can be removed at some point (added in Atom 1.17/1.18ish)\n // It removes `layoutMode`\n if (atom.config.get(`${themeName}.layoutMode`)) {\n atom.config.unset(`${themeName}.layoutMode`);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/atom/atom/commit/234adb8748aa4adbb510e9e5e8e006388b3b7d0b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " const {initialPaths} = this.getLoadSettings()\n if (initialPaths && initialPaths.length === 0 && this.workspace.getPaneItems().length === 0) {\n const {initialProjectRoots} = this.getLoadSettings()\n if (initialProjectRoots && initialProjectRoots.length === 0 && this.workspace.getPaneItems().length === 0) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/atom/atom/commit/952c42c0de8cdab2661856f5dd4789a1d69e08ee", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return this.representedDirectoryPaths.length > 0\n return this.projectRoots.length > 0\n defaultPath: this.representedDirectoryPaths[0]\n defaultPath: this.projectRoots[0]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/atom/atom/commit/952c42c0de8cdab2661856f5dd4789a1d69e08ee", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " defaultPath: this.representedDirectoryPaths[0]\n defaultPath: this.projectRoots[0]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/atom/atom/commit/952c42c0de8cdab2661856f5dd4789a1d69e08ee", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " const outerCallback = (event, message, detail) => {\n if (message === 'did-fail-to-read-user-settings') callback(detail)\n }\n ipcRenderer.on('message', outerCallback)\n return new Disposable(() => ipcRenderer.removeListener('message', outerCallback))\n return this.ipcMessageEmitter.on('did-fail-to-read-user-setting', callback)\n const outerCallback = (event, message, detail) => {\n if (message === 'checking-for-update') callback(detail)\n }\n\n ipcRenderer.on('message', outerCallback)\n return new Disposable(() => ipcRenderer.removeListener('message', outerCallback))\n return this.ipcMessageEmitter.on('checking-for-update', callback)\n const outerCallback = (event, message, detail) => {\n if (message === 'update-not-available') callback(detail)\n }\n\n ipcRenderer.on('message', outerCallback)\n return new Disposable(() => ipcRenderer.removeListener('message', outerCallback))\n return this.ipcMessageEmitter.on('update-not-available', callback)\n const outerCallback = (event, message, detail) => {\n if (message === 'update-error') callback(detail)\n }\n\n ipcRenderer.on('message', outerCallback)\n return new Disposable(() => ipcRenderer.removeListener('message', outerCallback))\n return this.ipcMessageEmitter.on('update-error', callback)\n const outerCallback = (event, message, detail) => {\n if (message === 'open-locations') callback(detail)\n }\n\n ipcRenderer.on('message', outerCallback)\n return new Disposable(() => ipcRenderer.removeListener('message', outerCallback))\n return this.ipcMessageEmitter.on('open-locations', callback)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/atom/atom/commit/1e2e461e5e6a0814863b6eb698ed75732720af6d", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 10, 11, 6 ] }, { "input": " return this._suggestedIndentForTokenizedLineAtBufferRow(\n const line = this.buffer.lineForRow(bufferRow)\n const tokenizedLine = this.tokenizedLineForRow(bufferRow)\n const iterator = tokenizedLine.getTokenIterator()\n iterator.next()\n const scopeDescriptor = new ScopeDescriptor({scopes: iterator.getScopes()})\n return this._suggestedIndentForLineWithScopeAtBufferRow(\n return this._suggestedIndentForTokenizedLineAtBufferRow(\n const tokenizedLine = this.buildTokenizedLineForRowWithText(bufferRow, line)\n const iterator = tokenizedLine.getTokenIterator()\n iterator.next()\n const scopeDescriptor = new ScopeDescriptor({scopes: iterator.getScopes()})\n return this._suggestedIndentForLineWithScopeAtBufferRow(\n _suggestedIndentForTokenizedLineAtBufferRow (bufferRow, line, tokenizedLine, tabLength, options) {\n const iterator = tokenizedLine.getTokenIterator()\n iterator.next()\n const scopeDescriptor = new ScopeDescriptor({scopes: iterator.getScopes()})\n\n _suggestedIndentForLineWithScopeAtBufferRow (bufferRow, line, scopeDescriptor, tabLength, options) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/atom/atom/commit/3f11fa57ee7022b5383070427a91f82238cfa1ed", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 5 ] }, { "input": " return this._suggestedIndentForTokenizedLineAtBufferRow(\n const tokenizedLine = this.buildTokenizedLineForRowWithText(bufferRow, line)\n const iterator = tokenizedLine.getTokenIterator()\n iterator.next()\n const scopeDescriptor = new ScopeDescriptor({scopes: iterator.getScopes()})\n return this._suggestedIndentForLineWithScopeAtBufferRow(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/atom/atom/commit/3f11fa57ee7022b5383070427a91f82238cfa1ed", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 5 ] }, { "input": " '

    bbb

    \\n']);\n
    '

    bbb

    \\n']);\n
    '

    asdf (bbb)

    \\n']);\n
    '

    asdf (bbb)

    \\n']);\n
    ", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/adam-p/markdown-here/commit/a6ce2107028e105f1e156f919546d3cd2533f446", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " '

    asdf bbb asdf

    \\n']);\n
    '

    asdf bbb asdf

    \\n']);\n
    '

    asdf qwer bbb asdf

    \\n']);\n
    '

    asdf qwer bbb asdf

    \\n']);\n
    ", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adam-p/markdown-here/commit/a6ce2107028e105f1e156f919546d3cd2533f446", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " processed = preprocessHtml(html);\n processed = preprocessHtml(html, url);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adam-p/markdown-here/commit/5db05836bf43a3791406c82cf7212bfb9380769c", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " function preprocessHtml(html) {\n function preprocessHtml(html, url) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adam-p/markdown-here/commit/5db05836bf43a3791406c82cf7212bfb9380769c", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " showToggleButton(renderable);\n if (renderable !== lastRenderable) {\n showToggleButton(renderable);\n lastRenderable = renderable;\n }\n showToggleButton(renderable);\n if (renderable !== lastRenderable) {\n showToggleButton(renderable);\n lastRenderable = renderable;\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adam-p/markdown-here/commit/ec2b22ba37db1c75a2c92e79b3578ea23c171aca", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " : arrayMap(baseFlatten(iteratees, 1, isFlattenableIteratee), baseUnary(getIteratee()));\n : arrayMap(baseFlatten(iteratees, 1), baseUnary(getIteratee()));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.08, "commit_url": "https://github.com/lodash/lodash/commit/9f6d6d7b3728308ec18451b9674d6c7aa99c4749", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " iteratees = (iteratees.length == 1 && isArray(iteratees[0]))\n ? iteratees[0]\n : baseFlatten(iteratees, 1, isFlattenableIteratee);\n\n return baseOrderBy(collection, iteratees, []);\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.08, "commit_url": "https://github.com/lodash/lodash/commit/9f6d6d7b3728308ec18451b9674d6c7aa99c4749", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " : arrayMap(baseFlatten(transforms, 1, isFlattenableIteratee), baseUnary(getIteratee()));\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.08, "commit_url": "https://github.com/lodash/lodash/commit/9f6d6d7b3728308ec18451b9674d6c7aa99c4749", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " * @param {...(Function|Function[])} predicates The predicates to check.\n * @param {...Function} predicates The predicates to check.\n * @param {...(Function|Function[])} predicates The predicates to check.\n * @param {...Function} predicates The predicates to check.\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/lodash/lodash/commit/b257bb9c9e7346c8965849830ad8df4d5d8d191c", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " QUnit.test('should flatten `predicates`', function(assert) {\n assert.expect(1);\n\n var over = _.overEvery(alwaysTrue, [alwaysFalse]);\n assert.strictEqual(over(), false);\n });\n\n QUnit.test('should flatten `predicates`', function(assert) {\n assert.expect(1);\n\n var over = _.overSome(alwaysFalse, [alwaysTrue]);\n assert.strictEqual(over(), true);\n });\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/lodash/lodash/commit/b257bb9c9e7346c8965849830ad8df4d5d8d191c", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " function baseClone(value, isDeep, customizer, stackA, stackB) {\n var result = customizer ? customizer(value) : undefined;\n function baseClone(value, isDeep, customizer, key, object, stackA, stackB) {\n var result;\n if (customizer) {\n result = object ? customizer(value, key, object) : customizer(value);\n }\n (isArr ? arrayEach : baseForOwn)(value, function(val, key) {\n var computed = customizer ? customizer(val, key) : undefined,\n useComputed = typeof computed != 'undefined',\n isReflexive = useComputed && computed === computed;\n\n if (useComputed && (isReflexive ? val === computed : val !== val)) {\n return;\n }\n result[key] = useComputed ? computed : baseClone(val, isDeep, null, stackA, stackB);\n (isArr ? arrayEach : baseForOwn)(value, function(subValue, key) {\n result[key] = baseClone(subValue, isDeep, customizer, key, value, stackA, stackB);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/lodash/lodash/commit/8bff1e8bc4d1977a8196055caf5eec17b0ce2a85", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " (isArr ? arrayEach : baseForOwn)(value, function(val, key) {\n var computed = customizer ? customizer(val, key) : undefined,\n useComputed = typeof computed != 'undefined',\n isReflexive = useComputed && computed === computed;\n\n if (useComputed && (isReflexive ? val === computed : val !== val)) {\n return;\n }\n result[key] = useComputed ? computed : baseClone(val, isDeep, null, stackA, stackB);\n (isArr ? arrayEach : baseForOwn)(value, function(subValue, key) {\n result[key] = baseClone(subValue, isDeep, customizer, key, value, stackA, stackB);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/lodash/lodash/commit/8bff1e8bc4d1977a8196055caf5eec17b0ce2a85", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " var methods = [\n var methodNames = [\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/lodash/lodash/commit/913406b568f70c38c8b266c97ae172008fe768ec", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " var snippets = source.match(RegExp('^( *)(?:var|function) +(?:' + methods.join('|') + ')\\\\b[\\\\s\\\\S]+?\\\\n\\\\1}', 'gm'));\n // minify `iteratorObject.keys`\n source.replace(/\\b(iteratorObject(?:\\.|\\['))keys\\b/g, function(match, prelude) {\n return prelude + minNames[iteratorOptions.length + props.length];\n });\n\n var snippets = source.match(RegExp('^( *)(?:var|function) +(?:' + methodNames.join('|') + ')\\\\b[\\\\s\\\\S]+?\\\\n\\\\1}', 'gm'));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/lodash/lodash/commit/913406b568f70c38c8b266c97ae172008fe768ec", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " 'errorClass, errorProto, hasOwnProperty, isArguments, isArray, ' +\n 'isString, keys, lodash, objectProto, objectTypes, nonEnumProps, ' +\n 'errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments, ' +\n 'isArray, isString, keys, lodash, objectProto, objectTypes, nonEnumProps, ' +\n errorClass, errorProto, hasOwnProperty, isArguments, isArray,\n isString, keys, lodash, objectProto, objectTypes, nonEnumProps,\n errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments,\n isArray, isString, keys, lodash, objectProto, objectTypes, nonEnumProps,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/lodash/lodash/commit/913406b568f70c38c8b266c97ae172008fe768ec", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " return token + index;\n return tokenHead + index + tokenFoot;\n return token + index;\n return tokenHead + index + tokenFoot;\n return token + index;\n return tokenHead + index + tokenFoot;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/lodash/lodash/commit/2b0bffc3626c09efd46acf1acd05a73d49102fc9", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " var useNativeBind = nativeBind && /\\n|Opera/.test(nativeBind + toString.call(window.opera));\n var isBindFast = nativeBind && /\\n|Opera/.test(nativeBind + toString.call(window.opera));\n else if (useNativeBind || (nativeBind && arguments.length > 2)) {\n else if (isBindFast || (nativeBind && arguments.length > 2)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/lodash/lodash/commit/83e3f830e669572af1ba91412e7cf22444f13add", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " else if (useNativeBind || (nativeBind && arguments.length > 2)) {\n else if (isBindFast || (nativeBind && arguments.length > 2)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/lodash/lodash/commit/83e3f830e669572af1ba91412e7cf22444f13add", "target_edit_idx": 7, "propagatable_edit_idx": [ 2 ] }, { "input": " timeout = undefined;\n timeoutId = undefined;\n var isImmediate = immediate && !timeout;\n var isImmediate = immediate && !timeoutId;\n clearTimeout(timeout);\n timeout = setTimeout(delayed, wait);\n clearTimeout(timeoutId);\n timeoutId = setTimeout(delayed, wait);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/lodash/lodash/commit/d5e2489cadafa60feb2c012017597e864e9460bf", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " var isImmediate = immediate && !timeout;\n var isImmediate = immediate && !timeoutId;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/lodash/lodash/commit/d5e2489cadafa60feb2c012017597e864e9460bf", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " clearTimeout(timeout);\n timeout = setTimeout(delayed, wait);\n clearTimeout(timeoutId);\n timeoutId = setTimeout(delayed, wait);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/lodash/lodash/commit/d5e2489cadafa60feb2c012017597e864e9460bf", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\t\t\t\"focusinBubbles\": false,\n\t\t\t\"focusin\": false,\n\t\t\t\"focusinBubbles\": false,\n\t\t\t\"focusin\": false,\n\t\t\t\"focusinBubbles\": false,\n\t\t\t\"focusin\": false,\n\t\t\t\"focusinBubbles\": false,\n\t\t\t\"focusin\": false,\n\t\t\t\"focusinBubbles\": false,\n\t\t\t\"focusin\": false,\n\t\t\t\"focusinBubbles\": false,\n\t\t\t\"focusin\": false,\n\t\t\t\"focusinBubbles\": false,\n\t\t\t\"focusin\": false,\n\t\t\t\"focusinBubbles\": false,\n\t\t\t\"focusin\": false,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jquery/jquery/commit/c074006a69db73a116dc04ec78844468a8cea7d3", "target_edit_idx": 3, "propagatable_edit_idx": [ 6, 7, 8, 9, 10, 11, 12 ] }, { "input": "\t\t\t\"focusinBubbles\": true,\n\t\t\t\"focusin\": true,\n\t\t\t\"focusinBubbles\": true,\n\t\t\t\"focusin\": true,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jquery/jquery/commit/c074006a69db73a116dc04ec78844468a8cea7d3", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\ttypes = jQuery.trim( types ).split( \" \" );\n\t\ttypes = (types || \"\").match( reventTypes ) || [\"\"];\n\t\ttypes = jQuery.trim( types ).split(\" \");\n\t\ttypes = (types || \"\").match( reventTypes ) || [\"\"];\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jquery/jquery/commit/3fce79484434298fb6ad16030674c14b9600b22e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\t\t\ttype = jQuery.nodeName( elem, \"input\" ) ? elem.type : \"\";\n\t\t\t\t\t\ttype = jQuery.nodeName( elem, \"input\" ) || jQuery.nodeName( elem, \"button\" ) ? elem.type : \"\";\n\t\t\t\t\t\ttype = jQuery.nodeName( elem, \"input\" ) ? elem.type : \"\";\n\t\t\t\t\t\ttype = jQuery.nodeName( elem, \"input\" ) || jQuery.nodeName( elem, \"button\" ) ? elem.type : \"\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jquery/jquery/commit/81c778b2cad268a6208544ae32d2ad5b023051a0", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\tequals( jQuery(\"p\").length, 6, \"Get Number of Elements Found\" );\n\tequals( jQuery(\"#main p\").length, 6, \"Get Number of Elements Found\" );\n\tequals( jQuery(\"p\").size(), 6, \"Get Number of Elements Found\" );\n\tequals( jQuery(\"#main p\").size(), 6, \"Get Number of Elements Found\" );\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jquery/jquery/commit/8e40a84c24271c0a9253902ceb97185f243a3318", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tdata: { callback: \"?\" },\n\t\tjsonp: \"callback\",\n\t\tdata: { callback: \"?\" },\n\t\tjsonp: \"callback\",\n\t\tdata: { callback: \"?\" },\n\t\tjsonp: \"callback\",\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jquery/jquery/commit/b721a2f472b53fec28276d2080d741cf070b686d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\t\t\"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&select1=&select2=3&select3=0&select3=1\",\n\t\t\"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&select1=&select2=3&select3=1&select3=2\",\n\t\t\"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&select1=&select2=3&select3=0&select3=1\",\n\t\t\"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&select1=&select2=3&select3=1&select3=2\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/jquery/jquery/commit/6d71a10ed2b751f0e275506b24b82d5f611bfdac", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&select1=&select2=3&select3=0&select3=1&T3=%3F%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4=\",\n\t\t\"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&select1=&select2=3&select3=1&select3=2&T3=%3F%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4=\",\n\t\t\"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&select1=&select2=3&select3=0&select3=1&T3=%3F%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4=\",\n\t\t\"action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&select1=&select2=3&select3=1&select3=2&T3=%3F%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4=\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jquery/jquery/commit/6d71a10ed2b751f0e275506b24b82d5f611bfdac", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t * @param String|Number speed A string representing one of the three predefined speeds (\"slow\", \"normal\", or \"fast\") or the number of milliseconds to run the animation (e.g. 1000).\n\t * @param String|Number speed (optional) A string representing one of the three predefined speeds (\"slow\", \"normal\", or \"fast\") or the number of milliseconds to run the animation (e.g. 1000).\n\t * @param String|Number speed A string representing one of the three predefined speeds (\"slow\", \"normal\", or \"fast\") or the number of milliseconds to run the animation (e.g. 1000).\n\t * @param String|Number speed (optional) A string representing one of the three predefined speeds (\"slow\", \"normal\", or \"fast\") or the number of milliseconds to run the animation (e.g. 1000).\n\t * @param String|Number speed A string representing one of the three predefined speeds (\"slow\", \"normal\", or \"fast\") or the number of milliseconds to run the animation (e.g. 1000).\n\t * @param String|Number speed (optional) A string representing one of the three predefined speeds (\"slow\", \"normal\", or \"fast\") or the number of milliseconds to run the animation (e.g. 1000).\n\t * @param String|Number speed A string representing one of the three predefined speeds (\"slow\", \"normal\", or \"fast\") or the number of milliseconds to run the animation (e.g. 1000).\n\t * @param String|Number speed (optional) A string representing one of the three predefined speeds (\"slow\", \"normal\", or \"fast\") or the number of milliseconds to run the animation (e.g. 1000).\n\t * @param String|Number speed A string representing one of the three predefined speeds (\"slow\", \"normal\", or \"fast\") or the number of milliseconds to run the animation (e.g. 1000).\n\t * @param String|Number speed (optional) A string representing one of the three predefined speeds (\"slow\", \"normal\", or \"fast\") or the number of milliseconds to run the animation (e.g. 1000).\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/jquery/jquery/commit/df91317ab43254bb0095482c49de080f5cf4f89e", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 10, 12, 7 ] }, { "input": "\tfadeIn: function(speed,callback){\n\tfadeIn: function(speed, callback){\n\tfadeOut: function(speed,callback){\n\tfadeOut: function(speed, callback){\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/jquery/jquery/commit/df91317ab43254bb0095482c49de080f5cf4f89e", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": " existingClasses = existingClasses.replace(' ' + cssClass + ' ', ' ');\n newClasses = newClasses.replace(' ' + cssClass + ' ', ' ');\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/angular/angular.js/commit/57280768e1fc382f643f7db6b782c3cb24a3565a", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " element.setAttribute('class', trim(existingClasses));\n if (newClasses !== existingClasses) {\n element.setAttribute('class', trim(newClasses));\n }\n element.setAttribute('class', trim(existingClasses));\n if (newClasses !== existingClasses) {\n element.setAttribute('class', trim(newClasses));\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular.js/commit/57280768e1fc382f643f7db6b782c3cb24a3565a", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " if (existingClasses.indexOf(' ' + cssClass + ' ') === -1) {\n existingClasses += cssClass + ' ';\n if (newClasses.indexOf(' ' + cssClass + ' ') === -1) {\n newClasses += cssClass + ' ';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/angular/angular.js/commit/57280768e1fc382f643f7db6b782c3cb24a3565a", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": " aElem.on('click', masterSpy);\n aElem.on('click', leaderSpy);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular.js/commit/3651e42e49ded7d410fd1cbd46f717056000afd4", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10, 11, 12 ] }, { "input": " aElem.on('mouseover', masterSpy);\n aElem.on('mouseover', leaderSpy);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular.js/commit/3651e42e49ded7d410fd1cbd46f717056000afd4", "target_edit_idx": 8, "propagatable_edit_idx": [ 7, 9, 10, 11, 12 ] }, { "input": " expect(masterSpy).toHaveBeenCalledTimes(2);\n expect(leaderSpy).toHaveBeenCalledTimes(2);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular.js/commit/3651e42e49ded7d410fd1cbd46f717056000afd4", "target_edit_idx": 9, "propagatable_edit_idx": [ 7, 8, 10, 11, 12 ] }, { "input": " masterSpy.calls.reset();\n leaderSpy.calls.reset();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular.js/commit/3651e42e49ded7d410fd1cbd46f717056000afd4", "target_edit_idx": 10, "propagatable_edit_idx": [ 7, 8, 9, 11, 12 ] }, { "input": " aElem.off('click mouseover', masterSpy);\n aElem.off('click mouseover', leaderSpy);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular.js/commit/3651e42e49ded7d410fd1cbd46f717056000afd4", "target_edit_idx": 11, "propagatable_edit_idx": [ 7, 8, 9, 10, 12 ] }, { "input": " expect(masterSpy).not.toHaveBeenCalled();\n expect(leaderSpy).not.toHaveBeenCalled();\n aElem.on('click', masterSpy);\n aElem.on('click', leaderSpy);\n aElem.on('mouseover', masterSpy);\n aElem.on('mouseover', leaderSpy);\n expect(masterSpy).toHaveBeenCalledTimes(2);\n expect(leaderSpy).toHaveBeenCalledTimes(2);\n masterSpy.calls.reset();\n leaderSpy.calls.reset();\n aElem.off('click mouseover', masterSpy);\n aElem.off('click mouseover', leaderSpy);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular.js/commit/3651e42e49ded7d410fd1cbd46f717056000afd4", "target_edit_idx": 12, "propagatable_edit_idx": [ 7, 8, 9, 10, 11 ] }, { "input": " *
    \n *
    \n *
    \n *
    \n *
    \n *
    \n *
    \n *
    \n", "class": "clone", "binary_label": 1, "regression_label": 0.21428571428571427, "commit_url": "https://github.com/angular/angular.js/commit/4501da327d0d8fe5f6ca6c0322ff9f2d408ffb4c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " expect(log).toEqual('foo >>> foo');\n expect(log).toEqual('foo,bar >>> foo,bar');\n expect(log).toEqual('foo,bar >>> foo,bar');\n expect(log).toEqual('foo >>> foo');\n expect(log).toEqual('foo,bar >>> a,bar');\n expect(log).toEqual('foo >>> bar');\n });\n\n\n it('should call the listener once when the array of watchExpressions is empty', function() {\n scope.$watchGroup([], function(values, oldValues) {\n log(oldValues + ' >>> ' + values);\n });\n\n expect(log).toEqual('');\n scope.$digest();\n expect(log).toEqual(' >>> ');\n expect(log).toEqual('foo >>> bar');\n expect(log).toEqual('foo,bar >>> a,bar');\n\n log.reset();\n scope.a = 'A';\n scope.b = 'B';\n scope.$digest();\n expect(log).toEqual('a,bar >>> A,B');\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/angular/angular.js/commit/bf0e83732aa02c7aa08d0ccdf122116235fcfa11", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 10, 5 ] }, { "input": " scope.a = 'bar';\n scope.a = 'a';\n scope.a = 'a';\n scope.a = 'bar';\n scope.b = 'bar';\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/angular/angular.js/commit/bf0e83732aa02c7aa08d0ccdf122116235fcfa11", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " //no millis\n expect(jsonStringToDate('2003-09-10T13:02:03Z')).\n toEqual(new Date('Sep 10 2003 13:02:03 GMT'));\n expect(jsonStringToDate('2003-09-10T13:02:03.000+00:00')).toEqual(new Date('Sep 10 2003 13:02:03 GMT'));\n //no seconds\n expect(jsonStringToDate('2003-09-10T13:02Z')).\n toEqual(new Date('Sep 10 2003 13:02:00 GMT'));\n expect(jsonStringToDate('20030910T033203-0930')).toEqual(new Date('Sep 10 2003 13:02:03 GMT'));\n //no minutes\n expect(jsonStringToDate('2003-09-10T13Z')).\n toEqual(new Date('Sep 10 2003 13:00:00 GMT'));\n //no millis\n expect(jsonStringToDate('2003-09-10T13:02:03Z')).toEqual(new Date('Sep 10 2003 13:02:03 GMT'));\n //no time\n expect(jsonStringToDate('2003-09-10')).\n toEqual(new Date('Sep 10 2003 00:00:00 GMT'));\n });\n //no seconds\n expect(jsonStringToDate('2003-09-10T13:02Z')).toEqual(new Date('Sep 10 2003 13:02:00 GMT'));\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/angular/angular.js/commit/5ac14f633a69f49973b5512780c6ec7752405967", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10 ] }, { "input": " iterationCount = 0;\n dirtyCount = 0;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular.js/commit/1c9fc1e1dec67c8c05f02da1e0853439238c4d8e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " iterationCount++;\n dirtyCount++;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular.js/commit/1c9fc1e1dec67c8c05f02da1e0853439238c4d8e", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": " iterationCount += child.$digest();\n dirtyCount += child.$digest();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular.js/commit/1c9fc1e1dec67c8c05f02da1e0853439238c4d8e", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " count += iterationCount;\n count += dirtyCount;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular.js/commit/1c9fc1e1dec67c8c05f02da1e0853439238c4d8e", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "}, ['$window'], true);\n}, ['$window']);}, ['$window'], true);\n}, ['$window']);", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/angular/angular.js/commit/a070ff5ad08450a1eb6375790fc90693d624e283", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " log: function log(){ log.logs.push(arguments) },\n warn: function warn(){ warn.logs.push(arguments) },\n info: function info(){ info.logs.push(arguments) },\n error: function error(){ error.logs.push(arguments) }\n log: function(){ $log.logs.push(arguments) },\n warn: function(){ $log.logs.push(arguments) },\n info: function(){ $log.logs.push(arguments) },\n error: function(){ $log.logs.push(arguments) }\n log: function log(){ log.logs.push(arguments) },\n warn: function warn(){ warn.logs.push(arguments) },\n info: function info(){ info.logs.push(arguments) },\n error: function error(){ error.logs.push(arguments) }\n log: function(){ $logMock.log.logs.push(arguments) },\n warn: function(){ $logMock.warn.logs.push(arguments) },\n info: function(){ $logMock.info.logs.push(arguments) },\n error: function(){ $logMock.error.logs.push(arguments) }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular.js/commit/8682befc7284a3c0b35cd5d85d4f42b1484ec71a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "function dateGetter(name, size, option) {\nfunction dateGetter(name, size, offset, trim) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular.js/commit/b96f7369516bbc4f20c82f709a0ae623659905bb", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " yyyy: dateGetter('getFullYear', 4),\n yy: dateGetter('getFullYear', 2, true),\n MM: dateGetter('getMonth', 2, 1),\n dd: dateGetter('getDate', 2),\n HH: dateGetter('getHours', 2),\n KK: dateGetter('getHours', 2, -12),\n mm: dateGetter('getMinutes', 2),\n ss: dateGetter('getSeconds', 2),\n yyyy: dateGetter('FullYear', 4),\n yy: dateGetter('FullYear', 2, 0, true),\n MM: dateGetter('Month', 2, 1),\n M: dateGetter('Month', 1, 1),\n dd: dateGetter('Date', 2),\n d: dateGetter('Date', 1),\n HH: dateGetter('Hours', 2),\n H: dateGetter('Hours', 1),\n hh: dateGetter('Hours', 2, -12),\n h: dateGetter('Hours', 1, -12),\n mm: dateGetter('Minutes', 2),\n m: dateGetter('Minutes', 1),\n ss: dateGetter('Seconds', 2),\n s: dateGetter('Seconds', 1),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.07142857142857142, "commit_url": "https://github.com/angular/angular.js/commit/b96f7369516bbc4f20c82f709a0ae623659905bb", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " cy.go(`back`)\n cy.go(`forward`)\n cy.go(`back`).waitForRouteChange()\n cy.go(`forward`).waitForRouteChange()\n cy.go(`back`)\n cy.go(`forward`)\n cy.go(`back`).waitForRouteChange()\n cy.go(`forward`).waitForRouteChange()\n cy.go(`back`)\n cy.go(`forward`)\n cy.go(`back`).waitForRouteChange()\n cy.go(`forward`).waitForRouteChange()\n cy.go(`back`)\n cy.go(`forward`)\n cy.go(`back`).waitForRouteChange()\n cy.go(`forward`).waitForRouteChange()\n cy.go(`back`)\n cy.go(`forward`)\n cy.go(`back`).waitForRouteChange()\n cy.go(`forward`).waitForRouteChange()\n cy.go(`back`)\n cy.go(`forward`)\n cy.go(`back`).waitForRouteChange()\n cy.go(`forward`).waitForRouteChange()\n cy.go(`back`)\n cy.go(`forward`)\n cy.go(`back`).waitForRouteChange()\n cy.go(`forward`).waitForRouteChange()\n cy.go(`back`)\n cy.go(`forward`)\n cy.go(`back`).waitForRouteChange()\n cy.go(`forward`).waitForRouteChange()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/1cfd9b8a93b0b8426d40a7d579f96f83dd9788d7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5, 6, 8, 9 ] }, { "input": "Cypress.on('uncaught:exception', (err) => {\n if ((err.message.includes('Minified React error #418') || err.message.includes('Minified React error #423') || err.message.includes('Minified React error #425')) && Cypress.env(`TEST_PLUGIN_OFFLINE`)) {\nCypress.on(`uncaught:exception`, err => {\n if (\n (err.message.includes(`Minified React error #418`) ||\n err.message.includes(`Minified React error #423`) ||\n err.message.includes(`Minified React error #425`)) &&\n Cypress.env(`TEST_PLUGIN_OFFLINE`)\n ) {\nCypress.on('uncaught:exception', (err) => {\n if ((err.message.includes('Minified React error #418') || err.message.includes('Minified React error #423') || err.message.includes('Minified React error #425')) && Cypress.env(`TEST_PLUGIN_OFFLINE`)) {\nCypress.on(`uncaught:exception`, err => {\n if (\n (err.message.includes(`Minified React error #418`) ||\n err.message.includes(`Minified React error #423`) ||\n err.message.includes(`Minified React error #425`)) &&\n Cypress.env(`TEST_PLUGIN_OFFLINE`)\n ) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/1cfd9b8a93b0b8426d40a7d579f96f83dd9788d7", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " cy.get(`@consoleLog`).should(\n cy.get(`@hmrConsoleLog`).should(\n cy.get(`@consoleLog`).should(\n cy.get(`@hmrConsoleLog`).should(\n cy.get(`@consoleLog`).should(\n cy.get(`@hmrConsoleLog`).should(\n cy.get(`@consoleLog`).should(\n cy.get(`@hmrConsoleLog`).should(\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/bd4004820acea18b332b54be2ca43d569ef48eda", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4, 6 ] }, { "input": "module.exports = wrapModuleWithTracking(`http`)\nmodule.exports = wrapModuleWithTracking(`http`, { ignore: [`http.Agent`] })", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/331d76e41533db65d896df2c08c55b929219d124", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 1 ] }, { "input": "module.exports = wrapModuleWithTracking(`https`)\nmodule.exports = wrapModuleWithTracking(`https`, { ignore: [`https.Agent`] })", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/331d76e41533db65d896df2c08c55b929219d124", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 8 ] }, { "input": "function createProxyHandler(prefix) {\nfunction createProxyHandler(prefix, options) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/331d76e41533db65d896df2c08c55b929219d124", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " return new Proxy(\n value,\n createProxyHandler(\n key && key.toString ? `${prefix}.${key.toString()}` : prefix\n )\n )\n return new Proxy(value, createProxyHandler(path, options))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/331d76e41533db65d896df2c08c55b929219d124", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 2 ] }, { "input": "function wrapModuleWithTracking(moduleName) {\nfunction wrapModuleWithTracking(moduleName, options = {}) {\n if (!options.ignore) {\n options.ignore = []\n }\n\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/331d76e41533db65d896df2c08c55b929219d124", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " return new Proxy(mod, createProxyHandler(moduleName))\n return new Proxy(mod, createProxyHandler(moduleName, options))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/331d76e41533db65d896df2c08c55b929219d124", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " return move(`${basePath}/public`, `${basePath}/public-0`)\n return copy(`${basePath}/public`, `${basePath}/public-0`)\n return move(`${basePath}/public`, `${basePath}/public-1`)\n return copy(`${basePath}/public`, `${basePath}/public-1`)\n return move(`${basePath}/public`, `${basePath}/public-2`)\n return copy(`${basePath}/public`, `${basePath}/public-2`)\n return move(`${basePath}/public`, `${basePath}/public-3`)\n return copy(`${basePath}/public`, `${basePath}/public-3`)\n return move(`${basePath}/public`, `${basePath}/public-4`)\n return copy(`${basePath}/public`, `${basePath}/public-4`)\n return move(`${basePath}/public`, `${basePath}/public-5`)\n return copy(`${basePath}/public`, `${basePath}/public-5`)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/2d6a1535ca2fa45bc6821d3273c32e18f66913fc", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6 ] }, { "input": " return move(`${basePath}/public`, `${basePath}/public-1`)\n return copy(`${basePath}/public`, `${basePath}/public-1`)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/2d6a1535ca2fa45bc6821d3273c32e18f66913fc", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 5, 6 ] }, { "input": " return move(`${basePath}/public`, `${basePath}/public-2`)\n return copy(`${basePath}/public`, `${basePath}/public-2`)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/2d6a1535ca2fa45bc6821d3273c32e18f66913fc", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 5, 6 ] }, { "input": " return move(`${basePath}/public`, `${basePath}/public-3`)\n return copy(`${basePath}/public`, `${basePath}/public-3`)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/2d6a1535ca2fa45bc6821d3273c32e18f66913fc", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5, 6 ] }, { "input": " return move(`${basePath}/public`, `${basePath}/public-4`)\n return copy(`${basePath}/public`, `${basePath}/public-4`)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/2d6a1535ca2fa45bc6821d3273c32e18f66913fc", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 4, 6 ] }, { "input": " on: { ADD_NODE_MUTATION: { actions: [`markNodesDirty`, `callApi`] } },\n on: { ADD_NODE_MUTATION: { actions: [`markNodesDirty`, `callApi`] } },\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/4b494b6c259d29ec85f78fe5137036fc16e967ce", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " expect(mockActivity.start).toBeCalledTimes(6)\n expect(start).toBeCalledTimes(6)\n expect(mockActivity.end).toBeCalledTimes(6)\n expect(end).toBeCalledTimes(6)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/4fe0a2e96c238dc9a570129e2b7480aaac11a02e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " renameSync(reduxCacheFolder, bakName)\n moveSync(reduxCacheFolder, bakName)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/96f8d4b28c47e6833a057e1bcce41ceb5e54ca45", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4 ] }, { "input": " renameSync(tmpDir, reduxCacheFolder)\n moveSync(tmpDir, reduxCacheFolder)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/96f8d4b28c47e6833a057e1bcce41ceb5e54ca45", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "const interuptActivities = () => {\nconst interruptActivities = () => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/2c089098a841fc74c4db57cc111ebf68988f3397", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " else interuptActivities()\n else interruptActivities()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/2c089098a841fc74c4db57cc111ebf68988f3397", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "const stringSimiliarity = require(`string-similarity`)\nconst stringSimilarity = require(`string-similarity`)\n const similarities = stringSimiliarity.findBestMatch(\n const similarities = stringSimilarity.findBestMatch(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/2c089098a841fc74c4db57cc111ebf68988f3397", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " const imagesDirReponse: {\n const imagesDirResponse: {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/2c089098a841fc74c4db57cc111ebf68988f3397", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " const files = imagesDirReponse.data.map(({ name }) => `${base}/${name}`)\n const files = imagesDirResponse.data.map(({ name }) => `${base}/${name}`)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/2c089098a841fc74c4db57cc111ebf68988f3397", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " type: GraphQLString,\n type: `String`,\n type: GraphQLString,\n type: `String`,\n type: GraphQLString,\n type: `String`,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/1a02b85b0d6c13f125f7a4ded304a4f063294209", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " * import React from \"react\"\n * import Layout from \"./src/components/layout\"\n * const React = require(\"react\")\n * const Layout = require(\"./src/components/layout\")\n * import React from \"react\"\n * import Layout from \"./src/components/layout\"\n * const React = require(\"react\")\n * const Layout = require(\"./src/components/layout\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/e9605d5640318c8e30030de08449c30cb420c3a2", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " * export const wrapPageElement = ({ element, props }) => {\n * exports.wrapPageElement = ({ element, props }) => {\n * export const wrapPageElement = ({ element, props }) => {\n * exports.wrapPageElement = ({ element, props }) => {\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/e9605d5640318c8e30030de08449c30cb420c3a2", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " * import React from \"react\"\n * import { Provider } from \"react-redux\"\n * const React = require(\"react\")\n * const { Provider } = require(\"react-redux\")\n * import React from \"react\"\n * import { Provider } from \"react-redux\"\n * const React = require(\"react\")\n * const { Provider } = require(\"react-redux\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/e9605d5640318c8e30030de08449c30cb420c3a2", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " * import createStore from \"./src/state/createStore\"\n * const createStore = require(\"./src/state/createStore\")\n * import createStore from \"./src/state/createStore\"\n * const createStore = require(\"./src/state/createStore\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/e9605d5640318c8e30030de08449c30cb420c3a2", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " * export const wrapRootElement = ({ element }) => {\n * exports.wrapRootElement = ({ element }) => {\n * export const wrapRootElement = ({ element }) => {\n * exports.wrapRootElement = ({ element }) => {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/e9605d5640318c8e30030de08449c30cb420c3a2", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": " if (!isSSR) use.unshift(loaders.miniCssExtract())\n if (!isSSR) use.unshift(loaders.miniCssExtract({ hmr: !options.modules }))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/97c98e9cf9229369892f5fee04458c9018cd2c07", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " top: `calc(${presets.headerHeight} - 1px)`,\n top: `calc(${presets.headerHeight} + ${presets.bannerHeight} - 1px)`,\n top: `calc(${presets.headerHeight} - 1px)`,\n top: `calc((${presets.headerHeight} + ${presets.bannerHeight}) - 1px)`,\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/c3eba3522d6cec6244a6e70a9ad46404b6f0b70f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " allSitesYaml(\n limit: 10\n filter: { featured: { eq: true }, main_url: { ne: null } }\n ) {\n allSitesYaml(limit: 40, filter: { main_url: { ne: null } }) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/39bb0ce3fe8a1646e3ce374e3da8b88f2805d670", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " const { createNode, deleteNodes, touchNode, setPluginStatus } = actions\n const { createNode, deleteNode, touchNode, setPluginStatus } = actions\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/6269d8bbb52f113b4bff96ebd106116614a43358", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "const { deleteNodes } = boundActionCreators\nconst { deleteNode } = boundActionCreators\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/6269d8bbb52f113b4bff96ebd106116614a43358", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": "const $ = React.createElement\nconst createElement = React.createElement\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/a78d2b25c3b093aafdcbcdf25ab39b951cc123c6", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 5, 6, 7 ] }, { "input": " const bodyComponent = $(\n const bodyComponent = createElement(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/a78d2b25c3b093aafdcbcdf25ab39b951cc123c6", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 4, 6, 7 ] }, { "input": " $(Route, {\n render: props => {\n const page = getPage(props.location.pathname)\n createElement(Route, {\n render: routeProps => {\n const page = getPage(routeProps.location.pathname)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/a78d2b25c3b093aafdcbcdf25ab39b951cc123c6", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 4, 5, 7 ] }, { "input": " return $(withRouter(layout), {\n ...props,\n children: props =>\n $(syncRequires.components[page.componentChunkName], {\n ...props,\n ...syncRequires.json[page.jsonName],\n }),\n return createElement(withRouter(layout), {\n children: layoutProps => {\n const props = layoutProps ? layoutProps : routeProps\n return createElement(\n syncRequires.components[page.componentChunkName],\n {\n ...props,\n ...syncRequires.json[page.jsonName],\n }\n )\n },\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/a78d2b25c3b093aafdcbcdf25ab39b951cc123c6", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 4, 5, 6 ] }, { "input": " window.webpackManifest = ${chunkManifest}\n window.webpackManifest = createElement{chunkManifest}\nconst $ = React.createElement\nconst createElement = React.createElement\n const bodyComponent = $(\n const bodyComponent = createElement(\n $(Route, {\n render: props => {\n const page = getPage(props.location.pathname)\n createElement(Route, {\n render: routeProps => {\n const page = getPage(routeProps.location.pathname)\n return $(withRouter(layout), {\n ...props,\n children: props =>\n $(syncRequires.components[page.componentChunkName], {\n ...props,\n ...syncRequires.json[page.jsonName],\n }),\n return createElement(withRouter(layout), {\n children: layoutProps => {\n const props = layoutProps ? layoutProps : routeProps\n return createElement(\n syncRequires.components[page.componentChunkName],\n {\n ...props,\n ...syncRequires.json[page.jsonName],\n }\n )\n },\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/a78d2b25c3b093aafdcbcdf25ab39b951cc123c6", "target_edit_idx": 8, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": "import { link } from './gatsby-helpers'\nimport { prefixLink } from './gatsby-helpers'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/02339666f1822f23da0ab255bc9170b791467be4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " path: link('/'),\n path: prefixLink('/'),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/02339666f1822f23da0ab255bc9170b791467be4", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5 ] }, { "input": " path: link(templateFile.templatePath),\n path: prefixLink(templateFile.templatePath),\nimport { link } from './gatsby-helpers'\nimport { prefixLink } from './gatsby-helpers'\n path: link('/'),\n path: prefixLink('/'),\n link(page.path) === parentRoute.path) {\n prefixLink(page.path) === parentRoute.path) {\n path: link(page.path),\n path: prefixLink(page.path),\nconst link = (_link) => {\nconst prefixLink = (_link) => {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/02339666f1822f23da0ab255bc9170b791467be4", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5 ] }, { "input": " link(page.path) === parentRoute.path) {\n prefixLink(page.path) === parentRoute.path) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/02339666f1822f23da0ab255bc9170b791467be4", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5 ] }, { "input": " path: link(page.path),\n path: prefixLink(page.path),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/02339666f1822f23da0ab255bc9170b791467be4", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5 ] }, { "input": "const link = (_link) => {\nconst prefixLink = (_link) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/gatsbyjs/gatsby/commit/02339666f1822f23da0ab255bc9170b791467be4", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4 ] }, { "input": " console.log(\"Server Type: HTTPS\");\n log.info(\"server\", \"Server Type: HTTPS\");\n console.log(\"Server Type: HTTP\");\n log.info(\"server\", \"Server Type: HTTP\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/louislam/uptime-kuma/commit/200fdfb808cd92a436976f62de3bbda41e75bcaa", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " const x = cmds.pop();\n const ind = x[0];\n const mode = x[1];\n const doc = x[2];\n const [ind, mode, doc] = cmds.pop();\n const x = cmds.pop();\n const ind = x[0];\n const mode = x[1];\n const doc = x[2];\n const [ind, mode, doc] = cmds.pop();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prettier/prettier/commit/4abd19ae148c35ad35ccdc6bde2d4f14595d2e2d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " ['LLL', 'Februari 14 2010 3:25 PM'],\n ['LLLL', 'Ahad, Februari 14 2010 3:25 PM'],\n ['LLL', 'Februari 14 2010 3:25 Petang'],\n ['LLLL', 'Ahad, Februari 14 2010 3:25 Petang'],\n ['lll', 'Feb 14 2010 3:25 PM'],\n ['llll', 'Ahd, Feb 14 2010 3:25 PM']\n ['lll', 'Feb 14 2010 3:25 Petang'],\n ['llll', 'Ahd, Feb 14 2010 3:25 Petang']\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/moment/moment/commit/25e20ae2538936bcb9cdad156655988aa37182b7", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " async download(options = {}) {\n async download() {\n async downloadOrSave(options = {}) {\n async downloadOrSave() {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/ecbd660609ff3b50c55e2e30b6d7be6a959ff843", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " this.downloadManager.download(\n data,\n this._downloadUrl,\n this._docFilename,\n options\n );\n this.downloadManager.download(data, this._downloadUrl, this._docFilename);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/mozilla/pdf.js/commit/ecbd660609ff3b50c55e2e30b6d7be6a959ff843", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " this.scroll = watchScroll(this.container, this.#scrollUpdated.bind(this));\n this.scroll = watchScroll(\n this.container,\n this.#scrollUpdated.bind(this),\n abortSignal\n );\nfunction watchScroll(viewAreaElement, callback) {\nfunction watchScroll(viewAreaElement, callback, abortSignal = undefined) {\n this.scroll = watchScroll(this.container, this._scrollUpdate.bind(this));\n const { abortSignal } = options;\n abortSignal?.addEventListener(\n \"abort\",\n () => {\n this.#resizeObserver.disconnect();\n this.#resizeObserver = null;\n },\n { once: true }\n );\n\n this.scroll = watchScroll(\n this.container,\n this._scrollUpdate.bind(this),\n abortSignal\n );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/4430b6b703d4567c2d9bc584327c7ed0f5e8e086", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " this.scroll = watchScroll(this.container, this._scrollUpdate.bind(this));\n const { abortSignal } = options;\n abortSignal?.addEventListener(\n \"abort\",\n () => {\n this.#resizeObserver.disconnect();\n this.#resizeObserver = null;\n },\n { once: true }\n );\n\n this.scroll = watchScroll(\n this.container,\n this._scrollUpdate.bind(this),\n abortSignal\n );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/4430b6b703d4567c2d9bc584327c7ed0f5e8e086", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " * CSS-only zooming. The default value is 4096 * 4096 (16 mega-pixels).\n * CSS-only zooming. The default value is 4096 * 8192 (32 mega-pixels).\n * CSS-only zooming. The default value is 4096 * 4096 (16 mega-pixels).\n * CSS-only zooming. The default value is 4096 * 8192 (32 mega-pixels).\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mozilla/pdf.js/commit/a4aca8a20d2b1f7e8de8cae1018eab46aaa6dbb1", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " constructor(options, eventBus, externalServices) {\n constructor(options, eventBus) {\n constructor(options, eventBus, _l10n, nimbusData, externalServices) {\n constructor(options, eventBus, _l10n, nimbusData) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/fe60db27b120c6a646a9c85d833e7d955bbeafc6", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " this.externalServices = externalServices;\n this.#externalServices = externalServices;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/fe60db27b120c6a646a9c85d833e7d955bbeafc6", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": " this.externalServices.reportTelemetry({\n type: \"buttons\",\n data: { id: element.id },\n this.eventBus.dispatch(\"reporttelemetry\", {\n source: this,\n details: {\n type: \"buttons\",\n data: { id: element.id },\n },\n this.#externalServices.reportTelemetry({\n type: \"gv-buttons\",\n data: { id: `${element.id}_tapped` },\n this.#eventBus.dispatch(\"reporttelemetry\", {\n source: this,\n details: {\n type: \"gv-buttons\",\n data: { id: `${element.id}_tapped` },\n },\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/mozilla/pdf.js/commit/fe60db27b120c6a646a9c85d833e7d955bbeafc6", "target_edit_idx": 5, "propagatable_edit_idx": [ 10 ] }, { "input": " constructor(options, eventBus, _l10n, nimbusData, externalServices) {\n constructor(options, eventBus, _l10n, nimbusData) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/fe60db27b120c6a646a9c85d833e7d955bbeafc6", "target_edit_idx": 8, "propagatable_edit_idx": [ 3 ] }, { "input": " this.removeKeyboardManager();\n this.#removeKeyboardManager();\n this.removeKeyboardManager();\n this.#removeKeyboardManager();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/c162b004ce43306303946403950dfb3613ac8bff", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " this.removeKeyboardManager();\n this.#removeKeyboardManager();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/c162b004ce43306303946403950dfb3613ac8bff", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " * @property {HTMLDivElement} viewerContainer - The viewer container\n * (in which the viewer element is placed).\n * @property {HTMLDivElement} sidebarContainer - The sidebar container\n * (in which the views are placed).\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/0fbe5832abce2bb2778744bf047ee0ee00267d94", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " this.viewerContainer = elements.viewerContainer;\n this.sidebarContainer = elements.sidebarContainer;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/0fbe5832abce2bb2778744bf047ee0ee00267d94", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " this.viewerContainer.addEventListener(\"transitionend\", evt => {\n if (evt.target === this.viewerContainer) {\n this.sidebarContainer.addEventListener(\"transitionend\", evt => {\n if (evt.target === this.sidebarContainer) {\n * @property {HTMLDivElement} viewerContainer - The viewer container\n * (in which the viewer element is placed).\n * @property {HTMLDivElement} sidebarContainer - The sidebar container\n * (in which the views are placed).\n this.viewerContainer = elements.viewerContainer;\n this.sidebarContainer = elements.sidebarContainer;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mozilla/pdf.js/commit/0fbe5832abce2bb2778744bf047ee0ee00267d94", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " IsEvalSupportedCached,\n IsEvalSupportedCached,\n FeatureTest,\n", "class": "clone", "binary_label": 1, "regression_label": 0.15, "commit_url": "https://github.com/mozilla/pdf.js/commit/1dc4713a0baa73c2d395713fc955ac7a053dc2a3", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " // name\n if (this._imageMap.has(name)) {\n if (this._imageCache.has(ref)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.38461538461538464, "commit_url": "https://github.com/mozilla/pdf.js/commit/5f25fea0fe6360913dd17106cbe3830eb032a103", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " this._imageMap.set(name, data);\n this._imageCache.put(ref, data);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.38461538461538464, "commit_url": "https://github.com/mozilla/pdf.js/commit/5f25fea0fe6360913dd17106cbe3830eb032a103", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": " constructor(stream, maybeLength, dict, params) {\n constructor(stream, maybeLength, params) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/fb0775525e62c0bc46bc2eea03f1df129b5ed1f9", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " this.dict = dict;\n this.dict = dict;\n this.dict = dict;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/fb0775525e62c0bc46bc2eea03f1df129b5ed1f9", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 5 ] }, { "input": " constructor(stream, maybeLength, dict, params) {\n constructor(stream, maybeLength, params) {\n constructor(stream, maybeLength, dict, params) {\n constructor(stream, maybeLength, params) {\n constructor(stream, maybeLength, dict, params) {\n constructor(stream, maybeLength, params) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/fb0775525e62c0bc46bc2eea03f1df129b5ed1f9", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 6 ] }, { "input": " const opList = new OperatorList(intent, sink, this.pageIndex);\n const opList = new OperatorList(intent, sink);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/02a1d0f6c577f932624cc09de863cd52aca6236c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " function OperatorList(intent, streamSink, pageIndex) {\n function OperatorList(intent, streamSink) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/02a1d0f6c577f932624cc09de863cd52aca6236c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " releaseImageResources,\n releaseImageResources,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/cc4cc8b11b7f346cb272fd21fa0e8fbdaf9ed61d", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " value = this._map[key3] || null;\n value = this._map[key3];\n value = this._map[key3] || null;\n value = this._map[key3];\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/7f18c57c12297abffdddc1dd6af1b0f7e1339d8e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "function createTestSource(testsName) {\nfunction createTestSource(testsName, bot) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/mozilla/pdf.js/commit/482ea2af32fceef8ec5810ad300cedfd42128ae5", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "function makeRef(done, noPrompts) {\nfunction makeRef(done, bot) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/482ea2af32fceef8ec5810ad300cedfd42128ae5", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " if (noPrompts) {\n args.push('--noPrompts');\n if (bot) {\n args.push('--noPrompts', '--strictVerify');\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/482ea2af32fceef8ec5810ad300cedfd42128ae5", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " createTestSource('unit'), createTestSource('font'),\n createTestSource('browser (no reftest)'));\n createTestSource('unit', true), createTestSource('font', true),\n createTestSource('browser (no reftest)', true));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/mozilla/pdf.js/commit/482ea2af32fceef8ec5810ad300cedfd42128ae5", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " this.scrollMode = options.scrollMode || ScrollMode.VERTICAL;\n this.spreadMode = options.spreadMode || SpreadMode.NONE;\n this._scrollMode = options.scrollMode || ScrollMode.VERTICAL;\n this._spreadMode = options.spreadMode || SpreadMode.NONE;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/9515f579c6ff0b9147c852ebb6fd4a6761d907cc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 5, 6, 7, 8 ] }, { "input": " if (this.scrollMode !== ScrollMode.VERTICAL) {\n if (this._scrollMode !== ScrollMode.VERTICAL) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/9515f579c6ff0b9147c852ebb6fd4a6761d907cc", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 5, 6, 7, 8 ] }, { "input": " if (this.spreadMode !== SpreadMode.NONE) {\n if (this._spreadMode !== SpreadMode.NONE) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/9515f579c6ff0b9147c852ebb6fd4a6761d907cc", "target_edit_idx": 2, "propagatable_edit_idx": [ 10, 11, 4, 12 ] }, { "input": " this.scrollMode = mode;\n this._scrollMode = mode;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/9515f579c6ff0b9147c852ebb6fd4a6761d907cc", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 5, 6, 7, 8 ] }, { "input": " this.spreadMode = mode;\n this._spreadMode = mode;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/9515f579c6ff0b9147c852ebb6fd4a6761d907cc", "target_edit_idx": 4, "propagatable_edit_idx": [ 11, 2, 10, 12 ] }, { "input": " // returns subarray of original buffer\n // should only be read\n getBytes: function ChunkedStream_getBytes(length) {\n // Returns subarray of original buffer, should only be read.\n getBytes(length, forceClamped = false) {\n // returns subarray of original buffer\n // should only be read\n getBytes: function Stream_getBytes(length) {\n // Returns subarray of original buffer, should only be read.\n getBytes(length, forceClamped = false) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/32367c596803cff992401f1a69d7ae7b7772a19f", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " return bytes.subarray(pos, strEnd);\n let subarray = bytes.subarray(pos, strEnd);\n // `this.bytes` is always a `Uint8Array` here.\n return (forceClamped ? new Uint8ClampedArray(subarray) : subarray);\n return bytes.subarray(pos, end);\n let subarray = bytes.subarray(pos, end);\n // `this.bytes` is always a `Uint8Array` here.\n return (forceClamped ? new Uint8ClampedArray(subarray) : subarray);\n return bytes.subarray(pos, strEnd);\n let subarray = bytes.subarray(pos, strEnd);\n // `this.bytes` is always a `Uint8Array` here.\n return (forceClamped ? new Uint8ClampedArray(subarray) : subarray);\n return bytes.subarray(pos, end);\n let subarray = bytes.subarray(pos, end);\n // `this.bytes` is always a `Uint8Array` here.\n return (forceClamped ? new Uint8ClampedArray(subarray) : subarray);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/32367c596803cff992401f1a69d7ae7b7772a19f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 5, 6 ] }, { "input": " peekBytes: function ChunkedStream_peekBytes(length) {\n var bytes = this.getBytes(length);\n peekBytes(length, forceClamped = false) {\n var bytes = this.getBytes(length, forceClamped);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/32367c596803cff992401f1a69d7ae7b7772a19f", "target_edit_idx": 3, "propagatable_edit_idx": [ 10, 7 ] }, { "input": " peekBytes: function Stream_peekBytes(length) {\n var bytes = this.getBytes(length);\n peekBytes(length, forceClamped = false) {\n var bytes = this.getBytes(length, forceClamped);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/32367c596803cff992401f1a69d7ae7b7772a19f", "target_edit_idx": 7, "propagatable_edit_idx": [ 10, 3 ] }, { "input": " peekBytes: function DecodeStream_peekBytes(length) {\n var bytes = this.getBytes(length);\n peekBytes(length, forceClamped = false) {\n var bytes = this.getBytes(length, forceClamped);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/32367c596803cff992401f1a69d7ae7b7772a19f", "target_edit_idx": 10, "propagatable_edit_idx": [ 3, 7 ] }, { "input": " const nativeImageDecoderValues = Object.values(NativeImageDecoding);\n const NativeImageDecoderValues = Object.values(NativeImageDecoding);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/b674409397d722a3e1f916d68ee99d51983a1969", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " !nativeImageDecoderValues.includes(params.nativeImageDecoderSupport)) {\n !NativeImageDecoderValues.includes(params.nativeImageDecoderSupport)) {\n const nativeImageDecoderValues = Object.values(NativeImageDecoding);\n const NativeImageDecoderValues = Object.values(NativeImageDecoding);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/b674409397d722a3e1f916d68ee99d51983a1969", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " worker = workerPort ? PDFWorker.fromPort(workerPort) : new PDFWorker();\n if (workerPort) {\n workerParams.port = workerPort;\n worker = PDFWorker.fromPort(workerParams);\n } else {\n worker = new PDFWorker(workerParams);\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/83d52518daba4c6d73ba6dd13c1769f3ea08d80e", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " function PDFWorker(name, port) {\n /**\n * @param {PDFWorkerParameters} params - The worker initialization parameters.\n */\n function PDFWorker({ name = null, port = null, } = {}) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/mozilla/pdf.js/commit/83d52518daba4c6d73ba6dd13c1769f3ea08d80e", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 3 ] }, { "input": " return new PDFWorker(null, port);\n return new PDFWorker(params);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/mozilla/pdf.js/commit/83d52518daba4c6d73ba6dd13c1769f3ea08d80e", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " var worker = new PDFWorker('test1');\n var worker = new PDFWorker({ name: 'test1', });\n var worker = new PDFWorker('test1');\n var worker = new PDFWorker({ name: 'test1', });\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/mozilla/pdf.js/commit/83d52518daba4c6d73ba6dd13c1769f3ea08d80e", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " this.el = div; // TODO replace 'el' property usage\n this.el = div; // TODO: replace 'el' property usage.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/eed67ea8bbba61a05877a99dc2f03b5adad5a288", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " if (this.textLayer)\n if (this.textLayer) {\n if (this.textLayer)\n if (this.textLayer) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/mozilla/pdf.js/commit/cd42ccd4391a73e83963a7871bea5211f9629e4d", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " if (subType.name == 'Type0') {\n if (type.name == 'Type0') {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/4d2b8ea1c8e62e2e7bf8cf19737321bb1b48e561", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " subType = dict.get('Subtype');\n assertWellFormed(IsName(subType), 'invalid font Subtype');\n type = dict.get('Subtype');\n assertWellFormed(IsName(type), 'invalid font Subtype');\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/mozilla/pdf.js/commit/4d2b8ea1c8e62e2e7bf8cf19737321bb1b48e561", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 7 ] }, { "input": " type: subType.name,\n subtype: fileType,\n type: type.name,\n subtype: subtype,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mozilla/pdf.js/commit/4d2b8ea1c8e62e2e7bf8cf19737321bb1b48e561", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " return this[\"$\" + name];\n return ctx[\"$\" + name];\n return this[\"$\" + name] = value;\n return ctx[\"$\" + name] = value;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/mozilla/pdf.js/commit/50d902d9eb41f5aee01bdd36f5ffdaf169dd01c9", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " this.__defineSetter__(name, buildSetterStyle(name));\n ctx.__defineSetter__(name, buildSetterStyle(name));\n this.__defineSetter__(name, buildSetter(name));\n ctx.__defineSetter__(name, buildSetter(name));\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/mozilla/pdf.js/commit/50d902d9eb41f5aee01bdd36f5ffdaf169dd01c9", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " return postsPublicService.api.browse(frame.options);\n return models.Post.findPage(frame.options);\n return postsPublicService.api.browse(frame.options);\n return models.Post.findPage(frame.options);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/33f176a9de16eadff074966d0dd3e2802bc26873", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " return postsPublicService.api.browse(frame.options);\n return models.Post.findPage(frame.options);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/33f176a9de16eadff074966d0dd3e2802bc26873", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "const should = require('should');\nrequire('./utils');\n\nconst should = require('should');\nrequire('./utils');\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/e0a966d6afcdc8e5bae037519553e348dd1d7c3c", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "const PackageJSON = require('../../../../../core/server/lib/fs/package-json/package-json');\nconst PackageJSON = require('../');\nconst PackageJSON = require('../../../../../core/server/lib/fs/package-json/package-json');\nconst PackageJSON = require('../');\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/e0a966d6afcdc8e5bae037519553e348dd1d7c3c", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " const allowedPlans = this.settings.get('portalPlans') || [];\n const portalPlans = this.settings.get('portalPlans') || [];\n const allowedPlans = [...portalPlans];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/TryGhost/Ghost/commit/6a6f50cf1566f819ccb98244f6de4354f2c375e5", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " this.settings.set('portalPlans', [...allowedPlans]);\n this.settings.set('portalPlans', allowedPlans);\n this.settings.set('portalPlans', [...allowedPlans]);\n this.settings.set('portalPlans', allowedPlans);\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/TryGhost/Ghost/commit/6a6f50cf1566f819ccb98244f6de4354f2c375e5", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " handleInputBlur(e, field) {\n this.setState((state) => {\n const fieldErrors = ValidateInputForm({fields: this.getInputFields({state, fieldNames: [field.name]})}) || {};\n return {\n errors: {\n ...(state.errors || {}),\n ...fieldErrors\n }\n };\n });\n }\n\n handleInputBlur(e, field) {\n this.setState((state) => {\n const fieldErrors = ValidateInputForm({fields: this.getInputFields({state, fieldNames: [field.name]})}) || {};\n return {\n errors: {\n ...(state.errors || {}),\n ...fieldErrors\n }\n };\n });\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/e591770e5eef98ad97dc822d41133e3634ddef0a", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " onBlur={(e, field) => this.handleInputBlur(e, field)}\n onBlur={(e, field) => this.handleInputBlur(e, field)}\n onBlur={(e, field) => this.handleInputBlur(e, field)}\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/TryGhost/Ghost/commit/e591770e5eef98ad97dc822d41133e3634ddef0a", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " return urlUtils.redirectToAdmin(302, res, `/editor/${resourceType}/${entry.id}`);\n return urlUtils.redirectToAdmin(302, res, `/#/editor/${resourceType}/${entry.id}`);\n return urlUtils.redirectToAdmin(302, res, `/editor/${resourceType}/${post.id}`);\n return urlUtils.redirectToAdmin(302, res, `/#/editor/${resourceType}/${post.id}`);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/TryGhost/Ghost/commit/dd9bf73a0b107b2392d07e99779f595ca532648a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " .expect('Location', /ghost\\/editor\\/\\w+/)\n .expect('Location', /ghost\\/#\\/editor\\/\\w+/)\n .expect('Location', /ghost\\/editor\\/\\w+/)\n .expect('Location', /ghost\\/#\\/editor\\/\\w+/)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/TryGhost/Ghost/commit/dd9bf73a0b107b2392d07e99779f595ca532648a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "const EDITOR_URL = `/editor/post/`;\nconst EDITOR_URL = `/#/editor/post/`;\nconst EDITOR_URL = '/editor/post/';\nconst EDITOR_URL = '/#/editor/post/';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/TryGhost/Ghost/commit/dd9bf73a0b107b2392d07e99779f595ca532648a", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "const logout = async function (req, res) {\nconst deleteSession = async function (req, res) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/0be2c21f684568442c18888c1f438d4085bf199b", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " result.should.match(/^testblog\\.ghost\\.[0-9]{4}-[0-9]{2}-[0-9]{2}\\.json$/);\n result.should.match(/^testblog\\.ghost\\.[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{2}-[0-9]{2}-[0-9]{2}\\.json$/);\n result.should.match(/^ghost\\.[0-9]{4}-[0-9]{2}-[0-9]{2}\\.json$/);\n result.should.match(/^ghost\\.[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{2}-[0-9]{2}-[0-9]{2}\\.json$/);\n result.should.match(/^ghost\\.[0-9]{4}-[0-9]{2}-[0-9]{2}\\.json$/);\n result.should.match(/^ghost\\.[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{2}-[0-9]{2}-[0-9]{2}\\.json$/);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/TryGhost/Ghost/commit/56b6c633f662f9b6206022a6b32f416d1dca17b1", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " posts[0].html.should.eql('

    Post Content

    \\n
    ');\n
    posts[0].html.should.eql('

    Post Content

    \\n
    ');\n
    posts[0].html.should.eql('

    Post Content

    \\n
    ');\n
    posts[0].html.should.eql('

    Post Content

    \\n
    ');\n
    ", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/897247978b290076d5f2aa70330bc17a13654155", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " posts[1].html.should.eql('

    Post Content

    \\n');\n
    posts[1].html.should.eql('

    Post Content

    \\n');\n
    posts[1].html.should.eql('

    Post Content

    \\n');\n
    posts[1].html.should.eql('

    Post Content

    \\n');\n
    ", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/897247978b290076d5f2aa70330bc17a13654155", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " res.body.should.match(new RegExp(`${config.get('url')}/content/images/\\\\d+/\\\\d+/ghost-logo.png`));\n res.body.url.should.match(new RegExp(`${config.get('url')}/content/images/\\\\d+/\\\\d+/ghost-logo.png`));\n res.body.should.match(new RegExp(`${config.get('url')}/content/images/\\\\d+/\\\\d+/loadingcat_square.gif`));\n res.body.url.should.match(new RegExp(`${config.get('url')}/content/images/\\\\d+/\\\\d+/loadingcat_square.gif`));\n res.body.should.match(new RegExp(`${config.get('url')}/content/images/\\\\d+/\\\\d+/ghosticon.jpg`));\n res.body.url.should.match(new RegExp(`${config.get('url')}/content/images/\\\\d+/\\\\d+/ghosticon.jpg`));\n res.body.should.match(new RegExp(`${config.get('url')}/content/images/\\\\d+/\\\\d+/loadingcat.gif`));\n res.body.url.should.match(new RegExp(`${config.get('url')}/content/images/\\\\d+/\\\\d+/loadingcat.gif`));\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/55289d04c8620a955b8ac653806b3cf9459dd6a5", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 4, 6 ] }, { "input": " images.push(res.body.replace(config.get('url'), ''));\n images.push(res.body.url.replace(config.get('url'), ''));\n images.push(res.body.replace(config.get('url'), ''));\n images.push(res.body.url.replace(config.get('url'), ''));\n images.push(res.body.replace(config.get('url'), ''));\n images.push(res.body.url.replace(config.get('url'), ''));\n images.push(res.body.replace(config.get('url'), ''));\n images.push(res.body.url.replace(config.get('url'), ''));\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/TryGhost/Ghost/commit/55289d04c8620a955b8ac653806b3cf9459dd6a5", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 5, 7 ] }, { "input": " createComponentCard('hr'),\n createComponentCard('image'),\n createComponentCard('hr', {hasEditMode: false, selectAfterInsert: false}),\n createComponentCard('image', {hasEditMode: false}),\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/77fa4439de6e2a7f1dcd451a2e94e98e52ea3a09", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " let expectedUrl = `http://www.gravatar.com/avatar/${md5(email)}?s=100&d=blank`;\n let expectedUrl = `//www.gravatar.com/avatar/${md5(email)}?s=100&d=blank`;\n let expectedUrl = `http://www.gravatar.com/avatar/${md5(email)}?s=100&d=blank`;\n let expectedUrl = `//www.gravatar.com/avatar/${md5(email)}?s=100&d=blank`;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/TryGhost/Ghost/commit/cbd9ec358c1b9a794061ee4f0116148e96b705ef", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " $('.content-list').animate({right: '100%', left: '-100%', 'margin-right': '15px'}, 300);\n $('.content-preview').animate({right: '0', left: '0', 'margin-left': '0'}, 300);\n self.send('showContentPreview');\n $('.content-list').animate({right: '0', left: '0', 'margin-right': '0'}, 300);\n $('.content-preview').animate({right: '-100%', left: '100%', 'margin-left': '15px'}, 300);\n self.send('hideContentPreview');\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/188265115a546130e8f0b6fe6e2ff8b74ff4b4a9", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " jsonResponse.posts[0].title = changedValue;\n jsonResponse.posts[0].title = changedTitle;\n jsonResponse.posts[0].author = changedAuthor;\n putBody.posts[0].title.should.eql(changedValue);\n putBody.posts[0].title.should.eql(changedTitle);\n putBody.posts[0].author.should.eql(changedAuthor);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/62c1ce128e1c0d61b5e228ebb893740028f50735", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " putBody.posts[0].title.should.eql(changedValue);\n putBody.posts[0].title.should.eql(changedTitle);\n putBody.posts[0].author.should.eql(changedAuthor);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/62c1ce128e1c0d61b5e228ebb893740028f50735", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " ghost.registerThemeHelper('dateFormat', function (context, block) {\n var f = block.hash.format || \"MMM Do, YYYY\",\n timeago = block.hash.timeago,\n ghost.registerThemeHelper('dateFormat', function (context, options) {\n var f = options.hash.format || \"MMM Do, YYYY\",\n timeago = options.hash.timeago,\n * @param {*} block\n * @param {*} options\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/TryGhost/Ghost/commit/2b132f32b1f1cc214d42913bae070238f482d7a3", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " this.passed = props.passed\n this.selector = props.selector\n // this.$el = props.$el\n this.highlightAttr = props.highlightAttr\n this.event = props.event\n this.number = props.number\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/cypress-io/cypress/commit/507345e7c10f5a164a2e99c65a88cc68dd937d62", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " this.number = props.number\n this.event = props.event\n this.number = props.number\n this.event = props.event\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cypress-io/cypress/commit/507345e7c10f5a164a2e99c65a88cc68dd937d62", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " if (TRACKING_IS_DISABLED && !isForced) return null;\n if (isTrackingDisabled && !isForced) return null;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/serverless/serverless/commit/2fd9aa2e1139bf4dee44a399c3fab7ee32766471", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " .then(dirName => {\n .then(serviceName => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/serverless/serverless/commit/63b2d617043dc509246f1e003093d175de623913", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " `Successfully installed \"${dirName}\" `,\n `${this.options.name && this.options.name !== dirName ? `as \"${dirName}\"` : ''}`,\n `Successfully installed \"${serviceName}\" `,\n `${this.options.name &&\n this.options.name !== serviceName ? `as \"${this.options.name}\"` : ''}`,\n .then(dirName => {\n .then(serviceName => {\n .then(dirName => {\n .then(serviceName => {\n `Successfully installed \"${dirName}\" `,\n `${this.options.name && this.options.name !== dirName ? `as \"${dirName}\"` : ''}`,\n `Successfully installed \"${serviceName}\" `,\n `${this.options.name &&\n this.options.name !== serviceName ? `as \"${this.options.name}\"` : ''}`,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/serverless/serverless/commit/63b2d617043dc509246f1e003093d175de623913", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " const updateFinishedEvent = {\n const updateFailedEvent = {\n describeStackEventsStub.onCall(1).returns(BbPromise.resolve(updateFinishedEvent));\n describeStackEventsStub.onCall(1).returns(BbPromise.resolve(updateFailedEvent));\n describeStackEventsStub.onCall(2).returns(BbPromise.resolve(updateRollbackEvent));\n describeStackEventsStub.onCall(3).returns(BbPromise.resolve(updateRollbackComplete));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/serverless/serverless/commit/ddc6e43764a5cd9ef69ceb61a1c48d7104e17331", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " describeStackEventsStub.onCall(1).returns(BbPromise.resolve(updateFinishedEvent));\n describeStackEventsStub.onCall(1).returns(BbPromise.resolve(updateFailedEvent));\n describeStackEventsStub.onCall(2).returns(BbPromise.resolve(updateRollbackEvent));\n describeStackEventsStub.onCall(3).returns(BbPromise.resolve(updateRollbackComplete));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/serverless/serverless/commit/ddc6e43764a5cd9ef69ceb61a1c48d7104e17331", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": " writeTemplateToDisk() {\n writeCreateTemplateToDisk() {\n writeTemplateToDisk() {\n writeUpdateTemplateToDisk() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.07142857142857142, "commit_url": "https://github.com/serverless/serverless/commit/53a544c3644af699858353e5ed8f9e1ec63002bd", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " const writeTemplateToDiskStub = sinon\n .stub(awsDeploy, 'writeTemplateToDisk').returns(BbPromise.resolve());\n const writeCreateTemplateToDiskStub = sinon\n .stub(awsDeploy, 'writeCreateTemplateToDisk').returns(BbPromise.resolve());\n expect(writeTemplateToDiskStub.calledOnce).to.be.equal(true);\n expect(writeCreateTemplateToDiskStub.calledOnce).to.be.equal(true);\n const writeTemplateToDiskStub = sinon\n .stub(awsDeploy, 'writeTemplateToDisk').returns(BbPromise.resolve());\n const writeCreateTemplateToDiskStub = sinon\n .stub(awsDeploy, 'writeCreateTemplateToDisk').returns(BbPromise.resolve());\n expect(writeTemplateToDiskStub.calledOnce).to.be.equal(true);\n expect(createStub.calledAfter(writeTemplateToDiskStub)).to.be.equal(true);\n expect(writeCreateTemplateToDiskStub.calledOnce).to.be.equal(true);\n expect(createStub.calledAfter(writeCreateTemplateToDiskStub)).to.be.equal(true);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/serverless/serverless/commit/53a544c3644af699858353e5ed8f9e1ec63002bd", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": " expect(writeTemplateToDiskStub.calledOnce).to.be.equal(true);\n expect(createStub.calledAfter(writeTemplateToDiskStub)).to.be.equal(true);\n expect(writeCreateTemplateToDiskStub.calledOnce).to.be.equal(true);\n expect(createStub.calledAfter(writeCreateTemplateToDiskStub)).to.be.equal(true);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/serverless/serverless/commit/53a544c3644af699858353e5ed8f9e1ec63002bd", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " const writeTeplateStub = sinon\n .stub(awsDeploy, 'writeTemplateToDisk').returns();\n const writeUpdateTemplateStub = sinon\n .stub(awsDeploy, 'writeUpdateTemplateToDisk').returns();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/serverless/serverless/commit/53a544c3644af699858353e5ed8f9e1ec63002bd", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10, 11 ] }, { "input": " expect(writeTeplateStub.calledOnce).to.be.equal(true);\n expect(writeUpdateTemplateStub.calledOnce).to.be.equal(true);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/serverless/serverless/commit/53a544c3644af699858353e5ed8f9e1ec63002bd", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 10, 11 ] }, { "input": " const writeTeplateStub = sinon\n .stub(awsDeploy, 'writeTemplateToDisk').returns();\n const writeUpdateTemplateStub = sinon\n .stub(awsDeploy, 'writeUpdateTemplateToDisk').returns();\n const writeTeplateStub = sinon\n .stub(awsDeploy, 'writeTemplateToDisk').returns();\n const writeUpdateTemplateStub = sinon\n .stub(awsDeploy, 'writeUpdateTemplateToDisk').returns();\n expect(writeTeplateStub.calledOnce).to.be.equal(true);\n expect(writeUpdateTemplateStub.calledOnce).to.be.equal(true);\n expect(writeTeplateStub.calledOnce).to.be.equal(true);\n expect(updateStub.calledAfter(writeTeplateStub)).to.be.equal(true);\n expect(writeUpdateTemplateStub.calledOnce).to.be.equal(true);\n expect(updateStub.calledAfter(writeUpdateTemplateStub)).to.be.equal(true);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/serverless/serverless/commit/53a544c3644af699858353e5ed8f9e1ec63002bd", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9, 11 ] }, { "input": " firstMethod0ApigEvent: {\n Method0ApigEvent: {\n firstMethod1ApigEvent: {\n Method1ApigEvent: {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/serverless/serverless/commit/21a68b07e3d0c662770fc9d65c9254921d791b7c", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " ResourceId: { Ref: 'firstResource0ApigEvent' },\n ResourceId: { Ref: 'Resource0ApigEvent' },\n ResourceId: { Ref: 'firstResource1ApigEvent' },\n ResourceId: { Ref: 'Resource1ApigEvent' },\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/serverless/serverless/commit/21a68b07e3d0c662770fc9d65c9254921d791b7c", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " constructor(S) {\n this.S = S;\n constructor(serverless) {\n this.serverless = serverless;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/serverless/serverless/commit/47b3ab27ffc99ed4708957c932012b395a6f249f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " let S;\n let serverless;\n constructor(S) {\n this.S = S;\n constructor(serverless) {\n this.serverless = serverless;\n S = new Serverless({});\n pluginManager = new PluginManager(S);\n serverless = new Serverless({});\n pluginManager = new PluginManager(serverless);\n expect(pluginManager.S).to.deep.equal(S);\n expect(pluginManager.serverless).to.deep.equal(serverless);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/serverless/serverless/commit/47b3ab27ffc99ed4708957c932012b395a6f249f", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " CmdNewStageRegion.run(JAWS, 'stage', tempStage, usEast1Region, config.usEast1Bucket, config.noExecuteCf)\n CmdNewStageRegion.run(JAWS, 'stage', config.stage2, config.region, config.noExecuteCf)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/serverless/serverless/commit/fd2a727ac9febbe6bffe754402d49a712ab0fa74", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " var jawsJson = utils.readAndParseJsonSync(path.join(process.cwd(), '../jaws.json'));\n var jawsJson = utils.readAndParseJsonSync(path.join(process.cwd(), 'jaws.json'));\n var jawsJson = utils.readAndParseJsonSync(path.join(process.cwd(), '../jaws.json'));\n var jawsJson = utils.readAndParseJsonSync(path.join(process.cwd(), 'jaws.json'));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/serverless/serverless/commit/fd2a727ac9febbe6bffe754402d49a712ab0fa74", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " CmdNewStageRegion.run(JAWS, 'region', tempStage, euWest1Region, config.euWest1Bucket, config.noExecuteCf)\n CmdNewStageRegion.run(JAWS, 'region', config.stage2, config.region2, config.noExecuteCf)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/serverless/serverless/commit/fd2a727ac9febbe6bffe754402d49a712ab0fa74", "target_edit_idx": 7, "propagatable_edit_idx": [ 4 ] }, { "input": " eventCenter.subscribe('backspace', this.backspaceKeyHandler.bind(this))\n eventCenter.subscribe('backspace', this.backspaceHandler.bind(this))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/marktext/marktext/commit/60024472350c228ca2daa79770ab24e6044133e4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " backspaceKeyHandler (event) {\n backspaceHandler (event) {\n eventCenter.subscribe('backspace', this.backspaceKeyHandler.bind(this))\n eventCenter.subscribe('backspace', this.backspaceHandler.bind(this))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/marktext/marktext/commit/60024472350c228ca2daa79770ab24e6044133e4", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " parser.trustedSource = true;\n parser.options.trustedSource = true;\n parser.trustedSource = false;\n parser.options.trustedSource = false;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/gorhill/uBlock/commit/f1889b02ee4f4770d625d9c9330a449e316b160a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " url: 'http://guide.meteor.com',\n url: 'https://guide.meteor.com',\n url: 'http://guide.meteor.com',\n url: 'https://guide.meteor.com',\n url: 'http://guide.meteor.com',\n url: 'https://guide.meteor.com',\n url: 'http://guide.meteor.com',\n url: 'https://guide.meteor.com',\n url: 'http://guide.meteor.com',\n url: 'https://guide.meteor.com',\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/meteor/meteor/commit/7abe8df1345a0eb93ca37d0c9a75ce484272226f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": " api.use('templating', 'client');\n api.use('templating@1.2.13', 'client');\n api.use('templating', 'client');\n api.use('templating@1.2.13', 'client');\n api.use('templating', 'client');\n api.use('templating@1.2.13', 'client');\n api.use(['templating'], 'client');\n api.use(['templating@1.2.13'], 'client');\n api.use('templating', 'client');\n api.use('templating@1.2.13', 'client');\n api.use('templating', 'client');\n api.use('templating@1.2.13', 'client');\n", "class": "clone", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/meteor/meteor/commit/1b48f1dcd778a5b12b76977705d25379e4e3a4bf", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 8, 9, 10 ] }, { "input": " api.use(['random', 'templating'], 'client');\n api.use(['random', 'templating@1.2.13'], 'client');\n api.use(['random', 'templating'], 'client');\n api.use(['random', 'templating@1.2.13'], 'client');\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/meteor/meteor/commit/1b48f1dcd778a5b12b76977705d25379e4e3a4bf", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " const unpackedRule = packedRule(rootPaths)\n\n // extract rule by passing getMeta in\n const plainRule = packedRule(getMeta)\n unpackedRule[key] = packedRule[key]\n plainRule[key] = packedRule[key]\n return unpackedRule\n return plainRule\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/meteor/meteor/commit/b6ca598cc22cec22f8efa1747b2f1df0570bf5d0", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " unpackedRule[key] = packedRule[key]\n plainRule[key] = packedRule[key]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/b6ca598cc22cec22f8efa1747b2f1df0570bf5d0", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " return unpackedRule\n return plainRule\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/b6ca598cc22cec22f8efa1747b2f1df0570bf5d0", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "export function parseServerOptionsForRunCommand(options) {\nexport function parseServerOptionsForRunCommand(options, runTargets) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/a5a5b4c7586ef2edbe9b2c8540f0bc75683029e6", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 5 ] }, { "input": " parseServerOptionsForRunCommand(options);\n parseServerOptionsForRunCommand(options, runTargets);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/a5a5b4c7586ef2edbe9b2c8540f0bc75683029e6", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 8 ] }, { "input": " parseServerOptionsForRunCommand(options);\n parseServerOptionsForRunCommand(options, runTargets);\nexport function parseServerOptionsForRunCommand(options) {\nexport function parseServerOptionsForRunCommand(options, runTargets) {\n parseServerOptionsForRunCommand(options);\n parseServerOptionsForRunCommand(options, runTargets);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/a5a5b4c7586ef2edbe9b2c8540f0bc75683029e6", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 5 ] }, { "input": " port: \"3000\",\n args: [\"ios-device\"]\n }).parsedMobileServerUrl, { host: utils.ipAddress(), port: \"3000\", protocol: \"http://\" });\n port: \"3000\"\n }, parseRunTargets([\"ios-device\"])).parsedMobileServerUrl, { host: utils.ipAddress(), port: \"3000\", protocol: \"http://\" });\n port: \"example.com:3000\",\n args: [\"android-device\"]\n }).parsedMobileServerUrl, { host: utils.ipAddress(), port: \"3000\", protocol: \"http://\" });\n port: \"example.com:3000\"\n }, parseRunTargets([\"android-device\"])).parsedMobileServerUrl, { host: utils.ipAddress(), port: \"3000\", protocol: \"http://\" });\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/meteor/meteor/commit/a5a5b4c7586ef2edbe9b2c8540f0bc75683029e6", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " run.match(\"Do you agree\");\n run.write(\"Y\\n\");\n run.match(\"Do you agree\");\n run.write(\"Y\\n\");\n run.match(\"Do you agree\");\n run.write(\"Y\\n\");\n run.match(\"Do you agree\");\n run.write(\"Y\\n\");\n run.match(\"Do you agree\");\n run.write(\"Y\\n\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/meteor/meteor/commit/5556c85b81add32abd6672665df30a4bc768f4b1", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 2, 6, 7 ] }, { "input": "Logic.Solver.prototype.minimize = function (solution, costTerms, costWeights,\n options) {\n return minMax(this, solution, costTerms, costWeights, options, true);\n// (\"costTerms\" is kind of a misnomer since they may be Formulas or Terms.)\nLogic.Solver.prototype.minimizeWeightedSum = function (solution, costTerms,\n costWeights, options) {\n return minMaxWS(this, solution, costTerms, costWeights, options, true);\nLogic.Solver.prototype.maximize = function (solution, costTerms, costWeights,\n options) {\n return minMax(this, solution, costTerms, costWeights, options, false);\nLogic.Solver.prototype.maximizeWeightedSum = function (solution, costTerms,\n costWeights, options) {\n return minMaxWS(this, solution, costTerms, costWeights, options, false);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/meteor/meteor/commit/2fabf95c92f99f785708179d1526349126e25747", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " self.ignoreUnknownVariables = false;\n self._ignoreUnknownVariables = false;\n};\n\nLogic.Solution.prototype.ignoreUnknownVariables = function () {\n // We only make this settable one way (false to true).\n // Setting it back and forth would be questionable, since we keep\n // a cache of Formula evaluations.\n this._ignoreUnknownVariables = true;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/b96cedc2209968a30321f382db710b182efdef93", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " var ignoreUnknownVariables = self.ignoreUnknownVariables;\n var ignoreUnknownVariables = self._ignoreUnknownVariables;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/b96cedc2209968a30321f382db710b182efdef93", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " var n = self.getVarNum(t, false, noCreate);\n var n = self.getVarNum(t, noCreate);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/meteor/meteor/commit/a161fe467d9e86b37b7e71ba025fb323fcaacb68", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " var updateIndexes = function (from, to) {\n var updateIndicies = function (from, to) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/c622dc4804d8405f1fdaeaa6e9e69a4b1609769e", "target_edit_idx": 4, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " updateIndexes(index);\n updateIndicies(index);\n updateIndexes(index);\n updateIndicies(index);\n var updateIndexes = function (from, to) {\n var updateIndicies = function (from, to) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/c622dc4804d8405f1fdaeaa6e9e69a4b1609769e", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 4 ] }, { "input": " updateIndexes(index);\n updateIndicies(index);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/c622dc4804d8405f1fdaeaa6e9e69a4b1609769e", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 4 ] }, { "input": " refresh: function (options) {\n refreshLocalPackages: function (options) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/meteor/meteor/commit/4ec3cb2a5555db90d3c3795c9b16c34c7004736f", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " combineCostFunction(costFunction(startState, opts),\n estimateCostFunction(startState, opts));\n combineCostFunction(costFunction(startState),\n estimateCostFunction(startState));\n combineCostFunction(costFunction(state, opts),\n estimateCostFunction(state, opts));\n combineCostFunction(costFunction(state),\n estimateCostFunction(state));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/meteor/meteor/commit/7065cc50f6007d829aeafc3ca1ebbe8a6f60ef5e", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " combineCostFunction(costFunction(state, opts),\n estimateCostFunction(state, opts));\n combineCostFunction(costFunction(state),\n estimateCostFunction(state));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/meteor/meteor/commit/7065cc50f6007d829aeafc3ca1ebbe8a6f60ef5e", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": "MinMaxHeap = function (comparator, initialData) {\nMinMaxHeap = function (comparator, options) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/9451416f2767314266e024638bf23db472eec444", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " MaxHeap.call(self, comparator, initialData);\n MaxHeap.call(self, comparator, options);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/9451416f2767314266e024638bf23db472eec444", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " pkg.installNpmDependencies();\n // If the package isn't in the warehouse, maybe update the NPM\n // dependencies. (Warehouse packages shouldn't change after they're\n // installed, so we skip this slow step.)\n if (!pkg.inWarehouse)\n pkg.installNpmDependencies();\n pkg.installNpmDependencies();\n // If the package isn't in the warehouse, maybe update the NPM\n // dependencies. (Warehouse packages shouldn't change after they're\n // installed, so we skip this slow step.)\n if (!pkg.inWarehouse)\n pkg.installNpmDependencies();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/meteor/meteor/commit/3cac15d23ec7276ef60bf9ffba465f2e71d2ccf3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " test.equal(doc.name, \"foobar\");\n test.equal(doc.name, \"f\\noobar\");\n test.equal(doc.name, \"foobar\");\n test.equal(doc.name, \"f\\noobar\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/meteor/meteor/commit/3d870954ca5b63ab0037c1ca41085cab579bcd0e", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " match({$or: []}, {}); // should throw error!\n match({$or: []}, {a: 1}); // should throw error!\n test.throws(function () {\n match({$or: []}, {});\n });\n test.throws(function () {\n match({$or: []}, {a: 1});\n });\n match({$nor: []}, {}); // should throw error!\n match({$nor: []}, {a: 1}); // should throw error!\n test.throws(function () {\n match({$nor: []}, {});\n });\n test.throws(function () {\n match({$nor: []}, {a: 1});\n });\n match({$and: []}, {}); // should throw error!\n match({$and: []}, {a: 1}); // should throw error!\n\n test.throws(function () {\n match({$and: []}, {});\n });\n test.throws(function () {\n match({$and: []}, {a: 1});\n });\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/eca9d705ae80d2a69cc7ca1acc505ef59f23d1e3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " Accounts.sendVerificationEmail = function (userId, email) {\n Accounts.sendVerificationEmail = function (userId, address) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/ef8e61fca0718c1cea6ccde8f459e8aa50b6d1ed", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 12 ] }, { "input": " // pick the first unverified email if we weren't passed an email.\n if (!email) {\n email = _.find(user.emails || [], function (e) { return !e.verified; });\n email = (email || {}).address;\n // pick the first unverified address if we weren't passed an address.\n if (!address) {\n var email = _.find(user.emails || [],\n function (e) { return !e.verified; });\n address = (email || {}).address;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/meteor/meteor/commit/ef8e61fca0718c1cea6ccde8f459e8aa50b6d1ed", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 12, 6 ] }, { "input": " // make sure we have a valid email\n if (!email || !_.contains(_.pluck(user.emails || [], 'address'), email))\n throw new Error(\"No such email for user.\");\n // make sure we have a valid address\n if (!address || !_.contains(_.pluck(user.emails || [], 'address'), address))\n throw new Error(\"No such email address for user.\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/meteor/meteor/commit/ef8e61fca0718c1cea6ccde8f459e8aa50b6d1ed", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 12, 6 ] }, { "input": " to: email,\n to: address,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/ef8e61fca0718c1cea6ccde8f459e8aa50b6d1ed", "target_edit_idx": 12, "propagatable_edit_idx": [ 8, 9, 6 ] }, { "input": " this.isSimulation = isSimulation;\n this.isSimulation = options.isSimulation;\n this.is_simulation = isSimulation;\n this.is_simulation = this.isSimulation;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/meteor/meteor/commit/04e2baa6143d6daffc5a25082443d0e1bc478a58", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " if (typeof DocumentFragment !== 'undefined' ?\n what instanceof DocumentFragment : what instanceof HTMLDocument)\n if (typeof what === 'object' && what.nodeType === 11 /* DocumentFragment */)\n if (typeof DocumentFragment !== 'undefined' ?\n result instanceof DocumentFragment : result instanceof HTMLDocument)\n if (typeof what === 'object' && what.nodeType === 11 /* DocumentFragment */)\n if (typeof DocumentFragment !== 'undefined' ?\n what instanceof DocumentFragment : what instanceof HTMLDocument) {\n if (typeof what === 'object' && what.nodeType === 11 /* DocumentFragment */) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/meteor/meteor/commit/75e387aaa0987366f3f319e44179c0a97066d3cb", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " isNodeLazy = isGlobMatch(\n fromProjectPathRelative(node.value.filePath),\n this.lazyIncludes,\n isNodeLazy = this.lazyIncludes.some(lazyIncludeRegex =>\n relativePath.match(lazyIncludeRegex),\n isNodeLazy = !isGlobMatch(\n fromProjectPathRelative(node.value.filePath),\n this.lazyExcludes,\n isNodeLazy = !this.lazyExcludes.some(lazyExcludeRegex =>\n relativePath.match(lazyExcludeRegex),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/parcel-bundler/parcel/commit/df8f72b85fb4381e464a559f48fc011cae8b8016", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " let lazyIncludes = initialOptions.lazyIncludes ?? [];\n let lazyIncludes = compileGlobs(initialOptions.lazyIncludes ?? []);\n let lazyExcludes = initialOptions.lazyExcludes ?? [];\n let lazyExcludes = compileGlobs(initialOptions.lazyExcludes ?? []);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/parcel-bundler/parcel/commit/df8f72b85fb4381e464a559f48fc011cae8b8016", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " tree.children = tree.children.filter(child => filterTree(child, filters));\n tree.children = tree.children.filter(child => filterTree(child, filters, pattern));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/yarnpkg/yarn/commit/03f1ecc6ee559fe4247096c9387bc252a740703d", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " trees = trees.filter(tree => filterTree(tree, args));\n reporter.warn(reporter.lang('deprecatedListArgs'));\n }\n if (args.length || flags.pattern) {\n trees = trees.filter(tree => filterTree(tree, args, flags.pattern));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/yarnpkg/yarn/commit/03f1ecc6ee559fe4247096c9387bc252a740703d", "target_edit_idx": 9, "propagatable_edit_idx": [ 7 ] }, { "input": " for (const pattern of rawPatterns) {\n for (const pattern of patterns) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/yarnpkg/yarn/commit/caa94a6404328ce801f47eb7dcae9a896950a199", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " const match = await install.matchesIntegrityHash(rawPatterns);\n const match = await install.matchesIntegrityHash(patterns);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/yarnpkg/yarn/commit/caa94a6404328ce801f47eb7dcae9a896950a199", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " const res = await install.linker.getFlatHoistedTree(rawPatterns);\n const res = await install.linker.getFlatHoistedTree(patterns);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/yarnpkg/yarn/commit/caa94a6404328ce801f47eb7dcae9a896950a199", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " this.reporter = reporter;\n this.reporter = config.reporter;\n this.reporter = reporter;\n this.reporter = config.reporter;\n this.reporter = reporter;\n this.reporter = config.reporter;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/yarnpkg/yarn/commit/09dbf445081973ec274dd15c915ce515cb714ce7", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 10 ] }, { "input": " if (data.event != 'online' || !self.processes[data.process.name])\n return false;\n if (data.event !== 'online' || !self.processes[data.process.name]) return false;\n if (data.event != 'stop' || !self.processes[data.process.name])\n return false;\n if (data.event !== 'stop' || !self.processes[data.process.name]) return false;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Unitech/pm2/commit/a93b662c3fd517c0c38201eca17ce61bae15ffbd", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\texpect(child.style.outline).to.be.equal(child.style.outline);\n\t\t\tel.appendChild(child);\n\n\t\t\texpect(child.style.outline).to.be.equal(child.style.outline);\n\t\t\texpect(child.style.outlineStyle).to.be.equal(originalStyle);\n\t\t\texpect(child.style.outline).to.be.equal(child.style.outline);\n\t\t\texpect(child.style.outlineStyle).to.be.equal(originalStyle);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Leaflet/Leaflet/commit/fd0fed279aebe88d2b2a50ab14d2c0f28f3524c4", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 7 ] }, { "input": "\t\t\texpect(child.style.outline).to.match(/(?:none)/);\n\t\t\texpect(child.style.outlineStyle).to.equal('none');\n\t\t\texpect(child.style.outline).to.match(/(?:none)/);\n\t\t\texpect(child.style.outlineStyle).to.equal('none');\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Leaflet/Leaflet/commit/fd0fed279aebe88d2b2a50ab14d2c0f28f3524c4", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tvar geoJSON = {\n\t\tvar geojson = {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Leaflet/Leaflet/commit/5e6ef5ce123d24161d904585bf69655312caea72", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 9, 2, 3 ] }, { "input": "\t\t}, geoJSONEmpty = {\n\t\t}, geojsonEmpty = {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Leaflet/Leaflet/commit/5e6ef5ce123d24161d904585bf69655312caea72", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tlayer.addData(geoJSON);\n\t\t\texpect(layer.getLayers()[0].feature).to.eql(geoJSON);\n\t\t\tlayer.addData(geojson);\n\t\t\texpect(layer.getLayers()[0].feature).to.eql(geojson);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/Leaflet/Leaflet/commit/5e6ef5ce123d24161d904585bf69655312caea72", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 8, 3, 9 ] }, { "input": "\t\t\tlayer.addData(geoJSON.geometry);\n\t\t\texpect(layer.getLayers()[0].feature).to.eql(geoJSON);\n\t\t\tlayer.addData(geojson.geometry);\n\t\t\texpect(layer.getLayers()[0].feature).to.eql(geojson);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/Leaflet/Leaflet/commit/5e6ef5ce123d24161d904585bf69655312caea72", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 8, 2, 9 ] }, { "input": "\t\t\tlayer.addData(geoJSONEmpty);\n\t\t\tlayer.addData(geojsonEmpty);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Leaflet/Leaflet/commit/5e6ef5ce123d24161d904585bf69655312caea72", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": "\tasFeature: function (geoJSON) {\n\t\tif (geoJSON.type === 'Feature') {\n\t\t\treturn geoJSON;\n\tasFeature: function (geojson) {\n\t\tif (geojson.type === 'Feature') {\n\t\t\treturn geojson;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/Leaflet/Leaflet/commit/5e6ef5ce123d24161d904585bf69655312caea72", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 9, 2, 3 ] }, { "input": "\t\t\tgeometry: geoJSON\n\t\t\tgeometry: geojson\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Leaflet/Leaflet/commit/5e6ef5ce123d24161d904585bf69655312caea72", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 8, 2, 3 ] }, { "input": "\t\t\texpect(p.project(new L.LatLng(90, 180))).near(new L.Point(20037508, 20037508));\n\t\t\texpect(p.project(new L.LatLng(85.0840591556, 180))).near(new L.Point(20037508, 20037508));\n\t\t\texpect(p.project(new L.LatLng(-90, -180))).near(new L.Point(-20037508, -20037508));\n\t\t\texpect(p.project(new L.LatLng(-85.0840591556, -180))).near(new L.Point(-20037508, -20037508));\n\t\t\texpect(p.project(new L.LatLng(90, 180))).near(new L.Point(20037508, 20037508));\n\t\t\texpect(p.project(new L.LatLng(85.0511287798, 180))).near(new L.Point(20037508, 20037508));\n\t\t\texpect(p.project(new L.LatLng(-90, -180))).near(new L.Point(-20037508, -20037508));\n\t\t\texpect(p.project(new L.LatLng(-85.0511287798, -180))).near(new L.Point(-20037508, -20037508));\n", "class": "clone", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/Leaflet/Leaflet/commit/dab0cbfc14a486017d8a580adc26e31632a517bd", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "server = subprocess.Popen(['python', '../http-server-node.py', port])\nserver = subprocess.Popen(['python', '../http-server-node.py', port])\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nwjs/nw.js/commit/af71a2649c1867f2f46f4c98c1ff8f4cde5bd7ea", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " tileToWorldY: function (tileX, camera, layer)\n tileToWorldY: function (tileY, camera, layer)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/20ebc6f7a2d0da287940c32d91dcadd7376b8b6e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " return this._convert.TileToWorldY(tileX, camera, layer);\n return this._convert.TileToWorldY(tileY, camera, layer);\n tileToWorldY: function (tileX, camera, layer)\n tileToWorldY: function (tileY, camera, layer)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/20ebc6f7a2d0da287940c32d91dcadd7376b8b6e", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " this._dirty = false;\n\n GetBitmapTextSize(this, round, bounds);\n GetBitmapTextSize(this, round, true, bounds);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/phaserjs/phaser/commit/a4577e2135cfaaec2ee38c1fad77d753df99eb34", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " GetBitmapTextSize(this, false, this._bounds);\n GetBitmapTextSize(this, false, true, this._bounds);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/phaserjs/phaser/commit/a4577e2135cfaaec2ee38c1fad77d753df99eb34", "target_edit_idx": 9, "propagatable_edit_idx": [ 6 ] }, { "input": " if (src.text !== '')\n if ((src.width === 0) || (src.height === 0))\n if (src.text === '')\n if ((src.width === 0) || (src.height === 0))\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/9a958631fc5219c5028f7476fbb56e6480e2d4bd", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " ox = TileCheckX(body, tile, tilemapLayer, tileBias);\n ox = TileCheckX(body, tile, tileLeft, tileRight, tileBias);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/phaserjs/phaser/commit/814e5af815949e8f3e21f52723798a417fb7cd6f", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " oy = TileCheckY(body, tile, tilemapLayer, tileBias);\n oy = TileCheckY(body, tile, tileTop, tileBottom, tileBias);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/phaserjs/phaser/commit/814e5af815949e8f3e21f52723798a417fb7cd6f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "var TileCheckX = function (body, tile, tilemapLayer, tileBias)\nvar TileCheckX = function (body, tile, tileLeft, tileRight, tileBias)\nvar TileCheckY = function (body, tile, tilemapLayer, tileBias)\nvar TileCheckY = function (body, tile, tileTop, tileBottom, tileBias)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/phaserjs/phaser/commit/814e5af815949e8f3e21f52723798a417fb7cd6f", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " this.widthInPixels = GetFastValue(config, 'widthInPixels', this.width * this.tileWidth);\n this.heightInPixels = GetFastValue(config, 'heightInPixels', this.height * this.tileHeight);\n this.baseTileWidth = GetFastValue(config, 'baseTileWidth', this.tileWidth);\n this.baseTileHeight = GetFastValue(config, 'baseTileHeight', this.tileHeight);\n this.widthInPixels = GetFastValue(config, 'widthInPixels', this.width * this.baseTileWidth);\n this.heightInPixels = GetFastValue(config, 'heightInPixels', this.height * this.baseTileHeight);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/phaserjs/phaser/commit/a8fdcbc56b500524bffae6735a872ac91bab1732", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " copy: function (srcTileX, srcTileY, width, height, destTileX, destTileY, layer)\n copy: function (srcTileX, srcTileY, width, height, destTileX, destTileY, recalculateFaces, layer)\n copy: function (srcTileX, srcTileY, width, height, destTileX, destTileY)\n copy: function (srcTileX, srcTileY, width, height, destTileX, destTileY, recalculateFaces)\nvar Copy = function (srcTileX, srcTileY, width, height, destTileX, destTileY, layer)\nvar Copy = function (srcTileX, srcTileY, width, height, destTileX, destTileY, recalculateFaces, layer)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/phaserjs/phaser/commit/6ca7c9ecfde64d8a4a84f24e73e2b5d2fda61e3c", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 4 ] }, { "input": " TilemapComponents.Copy(srcTileX, srcTileY, width, height, destTileX, destTileY, layer);\n TilemapComponents.Copy(srcTileX, srcTileY, width, height, destTileX, destTileY, recalculateFaces, layer);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/phaserjs/phaser/commit/6ca7c9ecfde64d8a4a84f24e73e2b5d2fda61e3c", "target_edit_idx": 2, "propagatable_edit_idx": [ 9 ] }, { "input": " TilemapComponents.Copy(srcTileX, srcTileY, width, height, destTileX, destTileY, this.layer);\n TilemapComponents.Copy(srcTileX, srcTileY, width, height, destTileX, destTileY, recalculateFaces, this.layer);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/phaserjs/phaser/commit/6ca7c9ecfde64d8a4a84f24e73e2b5d2fda61e3c", "target_edit_idx": 9, "propagatable_edit_idx": [ 2 ] }, { "input": " // console.log('register', type);\n\n // console.log('register', type);\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/ea989edca13f5626b3010def99c824eb019cd079", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " // data: null (2D array of tile indices)\n // data: null (2D array of tile indices),\n // insertNull: false\n // data: null (2D array of tile indices)\n // data: null (2D array of tile indices),\n // insertNull: false\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/phaserjs/phaser/commit/3f08689c44d70bf3346bb07a921a64cace58a524", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " parsedData = Parse(key, Formats.TILEMAP_2D_ARRAY, data, tileWidth, tileHeight, width, height);\n parsedData = Parse(key, Formats.TILEMAP_2D_ARRAY, data, tileWidth, tileHeight, insertNull);\n parsedData = Parse(key, Formats.TILEMAP_2D_ARRAY, data, tileWidth, tileHeight, width, height);\n parsedData = Parse(key, Formats.TILEMAP_2D_ARRAY, data, tileWidth, tileHeight, insertNull);\n parsedData = Parse(key, tilemapData.format, tilemapData.data, tileWidth, tileHeight, width, height);\n parsedData = Parse(key, tilemapData.format, tilemapData.data, tileWidth, tileHeight, insertNull);\n parsedData = Parse(key, tilemapData.format, tilemapData.data, tileWidth, tileHeight, width, height);\n parsedData = Parse(key, tilemapData.format, tilemapData.data, tileWidth, tileHeight, insertNull);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/phaserjs/phaser/commit/3f08689c44d70bf3346bb07a921a64cace58a524", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 10, 6 ] }, { "input": " parsedData = Parse(key, tilemapData.format, tilemapData.data, tileWidth, tileHeight, width, height);\n parsedData = Parse(key, tilemapData.format, tilemapData.data, tileWidth, tileHeight, insertNull);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/phaserjs/phaser/commit/3f08689c44d70bf3346bb07a921a64cace58a524", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 10, 5 ] }, { "input": " parsedData = Parse(key, Formats.TILEMAP_2D_ARRAY, data, tileWidth, tileHeight, width, height);\n parsedData = Parse(key, Formats.TILEMAP_2D_ARRAY, data, tileWidth, tileHeight, insertNull);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/phaserjs/phaser/commit/3f08689c44d70bf3346bb07a921a64cace58a524", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 5, 6 ] }, { "input": " setSize: function (width, height)\n setBodySize: function (width, height)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/100f4fc01313055570554dc5ea531db7c8985c4e", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " this.setSize(width, height);\n this.setBodySize(width, height);\n setSize: function (width, height)\n setBodySize: function (width, height)\n this.setSize(gameObject.width, gameObject.height);\n this.setBodySize(gameObject.width, gameObject.height);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/100f4fc01313055570554dc5ea531db7c8985c4e", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " // OnComplete\n component.stop();\n this.completeAnimation(component);\n // OnComplete\n component.stop();\n this.completeAnimation(component);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/f303996f0746cb73a1d4d30b54968ca9ff65d3ed", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " return new PIXI.BaseTexture(canvas, scaleMode);\n resolution = resolution || 1;\n\n return new PIXI.BaseTexture(canvas, scaleMode, resolution);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2222222222222222, "commit_url": "https://github.com/phaserjs/phaser/commit/04689f0c22a55b8feb3754255e965e8748807d6f", "target_edit_idx": 13, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 14 ] }, { "input": " this._UID = Phaser._UID++;\n this._UID = renderer.getShaderID(this);\n this._UID = Phaser._UID++;\n this._UID = renderer.getShaderID(this);\n this._UID = Phaser._UID++;\n this._UID = renderer.getShaderID(this);\n this._UID = Phaser._UID++;\n this._UID = renderer.getShaderID(this);\n\n console.log('Sprite Shader', this._UID);\n this._UID = Phaser._UID++;\n this._UID = renderer.getShaderID(this);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/b18bdab447ca0dcb4d8b3e3b15c5dba5e80d7ea9", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 4, 5, 7 ] }, { "input": " this.tileWide = tileWidth;\n this.tileWidth = tileWidth;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/8832680aa03ac0412ed32d54217d22147a3e4b67", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 8, 10 ] }, { "input": " this.tileHigh = tileHeight;\n this.tileHeight = tileHeight;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/8832680aa03ac0412ed32d54217d22147a3e4b67", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 2 ] }, { "input": " this.mapWide = mapWidth;\n this.mapWidth = mapWidth;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/8832680aa03ac0412ed32d54217d22147a3e4b67", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 4 ] }, { "input": " this.mapHigh = mapHeight;\n this.mapHeight = mapHeight;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/8832680aa03ac0412ed32d54217d22147a3e4b67", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 6 ] }, { "input": " this.width = this.mapWide * this.tileWide;\n this.pxWidth = this.mapWidth * this.tileWidth;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/8832680aa03ac0412ed32d54217d22147a3e4b67", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 4, 5, 10 ] }, { "input": " this.height = this.mapHigh * this.tileHigh;\n this.pxHeight = this.mapHeight * this.tileHeight;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/8832680aa03ac0412ed32d54217d22147a3e4b67", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 3, 6, 7 ] }, { "input": " var wide = this.tileWide * 0.5 / screenWide2;\n var high = this.tileHigh * 0.5 / screenHigh2;\n var wide = this.tileWidth * 0.5 / screenWide2;\n var high = this.tileHeight * 0.5 / screenHigh2;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/phaserjs/phaser/commit/8832680aa03ac0412ed32d54217d22147a3e4b67", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 8 ] }, { "input": "Object.defineProperty(Phaser.TilemapLayerGL.prototype, \"displayWidth\", {\nObject.defineProperty(Phaser.TilemapLayerGL.prototype, \"width\", {\nObject.defineProperty(Phaser.TilemapLayerGL.prototype, \"displayHeight\", {\nObject.defineProperty(Phaser.TilemapLayerGL.prototype, \"height\", {\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/phaserjs/phaser/commit/8832680aa03ac0412ed32d54217d22147a3e4b67", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " var documentFragment = parseHTML(\"\", 0);\n var fragment = parseHTML(\"\", 0);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bigskysoftware/htmx/commit/ef791c51ebf6407ebc757df84b9f695b9f6930dc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return documentFragment.querySelector('template').content;\n if (htmx.config.allowScriptTags) {\n // if there is a nonce set up, set it on the new script tags\n forEach(fragment.querySelectorAll(\"script\"), function (script) {\n if (htmx.config.inlineScriptNonce) {\n script.nonce = htmx.config.inlineScriptNonce;\n }\n getInternalData(script).executed = true; // mark as executed due to template insertion semantics\n })\n } else {\n forEach(fragment.querySelectorAll(\"script\"), function (script) {\n // remove all script tags if scripts are disabled\n removeElement(script);\n })\n }\n return fragment.querySelector('template').content;\n var documentFragment = parseHTML(\"\", 0);\n var fragment = parseHTML(\"\", 0);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bigskysoftware/htmx/commit/ef791c51ebf6407ebc757df84b9f695b9f6930dc", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " htmx.config.useTemplateFragments = oldUseTemplateFragmentsValue\n htmx.config.useTemplateFragments = oldUseTemplateFragmentsValue\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/bigskysoftware/htmx/commit/ef791c51ebf6407ebc757df84b9f695b9f6930dc", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tdiff(this._vnode._dom, this._parentDom, this._vnode, this._vnode, this.context, this._parentDom.ownerSVGElement!==undefined, true, null, mounts, this._ancestorComponent);\n\t\tcommitRoot(mounts, this._vnode);\n\t\tdom = diff(dom, parentDom, vnode, vnode, this.context, parentDom.ownerSVGElement!==undefined, null, mounts, this._ancestorComponent);\n\t\tif (dom!=null && dom.parentNode!==parentDom) {\n\t\t\tparentDom.appendChild(dom);\n\t\t}\n\t\tcommitRoot(mounts, vnode);\n\t\tnewDom = diff(oldVNode==null ? null : oldVNode._dom, parentDom, childVNode, oldVNode, context, isSvg, false, excessDomChildren, mounts, ancestorComponent);\n\t\tnewDom = diff(oldVNode==null ? null : oldVNode._dom, parentDom, childVNode, oldVNode, context, isSvg, excessDomChildren, mounts, ancestorComponent);\nexport function diff(dom, parentDom, newVNode, oldVNode, context, isSvg, append, excessDomChildren, mounts, ancestorComponent) {\nexport function diff(dom, parentDom, newVNode, oldVNode, context, isSvg, excessDomChildren, mounts, ancestorComponent) {\n\t\t\tc.base = dom = diff(dom, parentDom, vnode, prev, context, isSvg, append, excessDomChildren, mounts, c);\n\t\t\tc.base = dom = diff(dom, parentDom, vnode, prev, context, isSvg, excessDomChildren, mounts, c);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/preactjs/preact/commit/86c96dff52a43dc58b0ec14fb743c14cb21086ad", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 6, 7 ] }, { "input": "export function diff(dom, parentDom, newVNode, oldVNode, context, isSvg, append, excessDomChildren, mounts, ancestorComponent) {\nexport function diff(dom, parentDom, newVNode, oldVNode, context, isSvg, excessDomChildren, mounts, ancestorComponent) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/preactjs/preact/commit/86c96dff52a43dc58b0ec14fb743c14cb21086ad", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 4, 7 ] }, { "input": "\t\t\tc.base = dom = diff(dom, parentDom, vnode, prev, context, isSvg, append, excessDomChildren, mounts, c);\n\t\t\tc.base = dom = diff(dom, parentDom, vnode, prev, context, isSvg, excessDomChildren, mounts, c);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/preactjs/preact/commit/86c96dff52a43dc58b0ec14fb743c14cb21086ad", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 4, 6 ] }, { "input": "\t\tlet isOldVNodeFragment;\n\t\touter: if ((isOldVNodeFragment = oldVNode.type === Fragment) || newType === Fragment) {\n\t\t\toldVNode = oldVNode===EMPTY_OBJ ? EMPTY_ARR : !isOldVNodeFragment ? [oldVNode] : getVNodeChildren(oldVNode);\n\t\t\tdiffChildren(parentDom, getVNodeChildren(newVNode), oldVNode, context, isSvg, excessDomChildren, mounts, c, newVNode);\n\t\tconst isOldVNodeFragment = oldVNode.type === Fragment;\n\n\t\touter: if (isOldVNodeFragment || newType === Fragment) {\n\t\t\tconst oldVNodeChildren = oldVNode===EMPTY_OBJ ? EMPTY_ARR : !isOldVNodeFragment ? [oldVNode] : getVNodeChildren(oldVNode);\n\t\t\tdiffChildren(parentDom, getVNodeChildren(newVNode), oldVNodeChildren, context, isSvg, excessDomChildren, mounts, c, newVNode, oldVNode._dom);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/preactjs/preact/commit/a666604194a75d670bdc0698473ddfe9bbf9f3ec", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4 ] }, { "input": "\t\tdiffChildren(dom, getVNodeChildren(newVNode), oldVNode==EMPTY_OBJ ? EMPTY_ARR : getVNodeChildren(oldVNode), context, isSvg, excessDomChildren, mounts, ancestorComponent, newVNode);\n\t\tdiffChildren(dom, getVNodeChildren(newVNode), oldVNode==EMPTY_OBJ ? EMPTY_ARR : getVNodeChildren(oldVNode), context, isSvg, excessDomChildren, mounts, ancestorComponent, newVNode, dom.firstChild);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/preactjs/preact/commit/a666604194a75d670bdc0698473ddfe9bbf9f3ec", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": "\tdiffChildren(parentDom, [vnode], EMPTY_ARR, EMPTY_OBJ, parentDom.ownerSVGElement!==undefined, EMPTY_ARR.slice.call(parentDom.childNodes), mounts, null, {});\n\tdiffChildren(parentDom, [vnode], EMPTY_ARR, EMPTY_OBJ, parentDom.ownerSVGElement!==undefined, EMPTY_ARR.slice.call(parentDom.childNodes), mounts, null, {}, parentDom.firstChild);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/preactjs/preact/commit/a666604194a75d670bdc0698473ddfe9bbf9f3ec", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": "\tfor (i=oldChildren.length; i--; ) if (oldChildren[i]!=null) unmount(oldChildren[i]);\n\tfor (i=oldChildren.length; i--; ) if (oldChildren[i]!=null) unmount(oldChildren[i], ancestorComponent);\n\t\tif (oldTree!=null) {\n\t\t\tunmount(oldTree);\n\t\tif (oldTree != null) {\n\t\t\tunmount(oldTree, ancestorComponent);\n\t\t\tif (prev) unmount(prev);\n\t\t\tif (prev) unmount(prev, ancestorComponent);\n\t\tif (r = r._previousVTree) unmount(r);\n\t\tif (r._previousTree) unmount(r._previousVTree, ancestorComponent);\n\t\t\tunmount(r[i]);\n\t\t\tunmount(r[i], ancestorComponent);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/preactjs/preact/commit/03a62fd3725b5c21b8afe8dc027bc4df606957d9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": "\t\t\tif (prev) unmount(prev);\n\t\t\tif (prev) unmount(prev, ancestorComponent);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/preactjs/preact/commit/03a62fd3725b5c21b8afe8dc027bc4df606957d9", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": "\t\tif (r = r._previousVTree) unmount(r);\n\t\tif (r._previousTree) unmount(r._previousVTree, ancestorComponent);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/preactjs/preact/commit/03a62fd3725b5c21b8afe8dc027bc4df606957d9", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4 ] }, { "input": "\t\tif (callback) (this._renderCallbacks = (this._renderCallbacks || [])).push(callback);\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\tif (callback) (this._renderCallbacks = (this._renderCallbacks || [])).push(callback);\n\t\tif (callback) this._renderCallbacks.push(callback);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/preactjs/preact/commit/feb96b50832f55abd9ac55ec549bd813feac9fc0", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\texpect(ref).to.have.been.calledOnce.and.calledWith(scratch.firstChild);\n\t\texpect(ref).to.have.been.calledOnce;\n\t\texpect(ref).to.have.been.calledOnce.and.calledWith(scratch.firstChild);\n\t\texpect(ref).to.have.been.calledOnce;\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/preactjs/preact/commit/4015bad9ecf6f995eb0d627b38ecd04ab023bd96", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\tbase = diff(cbase, rendered, context, mountAll || !isUpdate);\n\t\t\t\tbase = diff(cbase, rendered, context, mountAll || !isUpdate, null, true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/preactjs/preact/commit/f287048ef1db480dabf9a11d523cacc563394547", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\tinst = createComponent(childComponent, childProps, context, false);\n\t\t\t\tinst = createComponent(childComponent, childProps, context);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/preactjs/preact/commit/515dac5b0e78936df27518340239604208628243", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t\t\tinst = createComponent(childComponent, childProps, context);\n\t\t\t\tinst = createComponent(childComponent, childProps, context, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/preactjs/preact/commit/9eab631d9801ac55d7940e9ba11aab302a1ed401", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 9 ] }, { "input": "\t\t\t\trenderComponent(inst, DOM_RENDER);\n\t\t\t\trenderComponent(inst, SYNC_RENDER);\n\t\t\tif (initialBase || opts===DOM_RENDER) {\n\t\t\tif (initialBase || opts===SYNC_RENDER) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/preactjs/preact/commit/9eab631d9801ac55d7940e9ba11aab302a1ed401", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\tif (initialBase || opts===DOM_RENDER) {\n\t\t\tif (initialBase || opts===SYNC_RENDER) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/preactjs/preact/commit/9eab631d9801ac55d7940e9ba11aab302a1ed401", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "\tlet component = createComponent(vnode.nodeName, props, context);\n\tlet component = createComponent(vnode.nodeName, props, context, !!dom);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/preactjs/preact/commit/9eab631d9801ac55d7940e9ba11aab302a1ed401", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 4 ] }, { "input": "\t\t\tunmountComponent(toUnmount.base, toUnmount);\n\t\t\tunmountComponent(toUnmount.base, toUnmount, true);\n\t\t\tunmountComponent(dom, c);\n\t\t\tunmountComponent(dom, c, true);\n\t\tunmountComponent(dom, inner, remove);\n\t\t// high order components do not own their rendered nodes:\n\t\tcomponent.base = component._component = null;\n\t\tunmountComponent(dom, inner);\n\t\tunmountComponent(node, component);\n\t\tunmountComponent(node, component, !unmountOnly);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/preactjs/preact/commit/5dfc116d9c69db9a9e2543927aa80027ad6eb6ac", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 7 ] }, { "input": "\t\t\tunmountComponent(dom, c);\n\t\t\tunmountComponent(dom, c, true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/preactjs/preact/commit/5dfc116d9c69db9a9e2543927aa80027ad6eb6ac", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4, 7 ] }, { "input": "\t\tunmountComponent(dom, inner, remove);\n\t\t// high order components do not own their rendered nodes:\n\t\tcomponent.base = component._component = null;\n\t\tunmountComponent(dom, inner);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/preactjs/preact/commit/5dfc116d9c69db9a9e2543927aa80027ad6eb6ac", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 7 ] }, { "input": "\t\tunmountComponent(node, component);\n\t\tunmountComponent(node, component, !unmountOnly);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/preactjs/preact/commit/5dfc116d9c69db9a9e2543927aa80027ad6eb6ac", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": "\t\t\t\tbase = diff(cbase, rendered || EMPTY_BASE, childContext, component);\n\t\t\t\tbase = diff(cbase, rendered || EMPTY_BASE, childContext);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/preactjs/preact/commit/cee2a4328d29c626b9ade53ae75fa1a938b04f13", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "export default function diff(dom, vnode, context, component) {\nexport default function diff(dom, vnode, context) {\n\tlet originalAttributes = vnode.attributes;\n\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/preactjs/preact/commit/cee2a4328d29c626b9ade53ae75fa1a938b04f13", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "import { empty } from './util';\nimport { falsey } from './util';\n\t\t\tif (empty(p)) continue;\n\t\t\tif (falsey(p)) continue;\n\t\t\t\t\tsimple = !empty(child) && !(child instanceof VNode);\n\t\t\t\t\tsimple = !falsey(child) && !(child instanceof VNode);\n\t\t\t\telse if (!empty(child)) {\n\t\t\t\telse if (!falsey(child)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/preactjs/preact/commit/a3d7a6334593fc87f35b7f49ecdb947b9e7b09bb", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\t\t\tif (empty(p)) continue;\n\t\t\tif (falsey(p)) continue;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/preactjs/preact/commit/a3d7a6334593fc87f35b7f49ecdb947b9e7b09bb", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": "\t\t\t\t\tsimple = !empty(child) && !(child instanceof VNode);\n\t\t\t\t\tsimple = !falsey(child) && !(child instanceof VNode);\nimport { empty } from './util';\nimport { falsey } from './util';\n\t\t\tif (empty(p)) continue;\n\t\t\tif (falsey(p)) continue;\n\t\t\t\telse if (!empty(child)) {\n\t\t\t\telse if (!falsey(child)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/preactjs/preact/commit/a3d7a6334593fc87f35b7f49ecdb947b9e7b09bb", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\t\t\t\tbase = diff(cbase, rendered || EMPTY_BASE, childContext);\n\t\t\t\tbase = diff(cbase, rendered || EMPTY_BASE, childContext, component);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/preactjs/preact/commit/fb0dd2be58881021cf2f44a73d5134bd3f94fe2d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "export default function diff(dom, vnode, context) {\nexport default function diff(dom, vnode, context, component) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/preactjs/preact/commit/fb0dd2be58881021cf2f44a73d5134bd3f94fe2d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\thook(component, 'componentWillUnmount');\n\tdeepHook(component, 'componentWillUnmount');\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/preactjs/preact/commit/2136889deb362bc66347fb5dcff2f95a6ec58302", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\thook(component, 'componentDidUnmount');\n\tdeepHook(component, 'componentDidUnmount');\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/preactjs/preact/commit/2136889deb362bc66347fb5dcff2f95a6ec58302", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " handleSetActiveEnvironment: Function;\n handleSetActiveEnvironment: (id: string | null) => void;\n handleSetActiveEnvironment: Function;\n handleSetActiveEnvironment: (id: string | null) => void;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Kong/insomnia/commit/f2bf39a2d9eee70ebda8fa257bf26faefd123a2f", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " var watchedRoot = new WatchedRoot(entry, filter);\n var watchedRoot = new WatchedRoot(entry, filter, nodeFilter);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/adobe/brackets/commit/412e5edbb74340c9410999fcf5d930d26987daae", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " function WatchedRoot(entry, filter) {\n function WatchedRoot(entry, filter, nodeFilter) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/adobe/brackets/commit/412e5edbb74340c9410999fcf5d930d26987daae", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " function doSearch(searchObject) {\n function doSearch(searchObject, nextPages) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/adobe/brackets/commit/725129d88a9ce9ef22674acb35a10cf75b26678a", "target_edit_idx": 9, "propagatable_edit_idx": [ 14 ] }, { "input": " return doSearch(savedSearchObject);\n return doSearch(savedSearchObject, true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/adobe/brackets/commit/725129d88a9ce9ef22674acb35a10cf75b26678a", "target_edit_idx": 14, "propagatable_edit_idx": [ 9 ] }, { "input": " exports.isRegistryObjectUpdated = true;\n exports.hasDownloadedRegistry = true;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/3aa045164670667437309cc70837b11946415797", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " exports.isRegistryObjectUpdated = false;\n exports.hasDownloadedRegistry = false;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/3aa045164670667437309cc70837b11946415797", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " var label = _.escape(StringUtils.format(Strings.STATUSBAR_SET_DEFAULT_LANG, FileUtils.getSmartFileExtension(document.file.fullPath)));\n var label = _.escape(StringUtils.format(Strings.STATUSBAR_SET_DEFAULT_LANG, LanguageManager.getCompoundFileExtension(document.file.fullPath)));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/008a1538dd9f62d0a2310f28b6af93c8793ba188", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " fileExtensionMap[FileUtils.getSmartFileExtension(fullPath)] = document.getLanguage().getId();\n fileExtensionMap[LanguageManager.getCompoundFileExtension(fullPath)] = document.getLanguage().getId();\n var label = _.escape(StringUtils.format(Strings.STATUSBAR_SET_DEFAULT_LANG, FileUtils.getSmartFileExtension(document.file.fullPath)));\n var label = _.escape(StringUtils.format(Strings.STATUSBAR_SET_DEFAULT_LANG, LanguageManager.getCompoundFileExtension(document.file.fullPath)));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/008a1538dd9f62d0a2310f28b6af93c8793ba188", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " var ctrlA = _.cloneDeep(ctrlEvent);\n ctrlA.keyIdentifier = null;\n ctrlA.keyCode = \"A\".charCodeAt(0);\n var ctrlEvent1 = _.cloneDeep(ctrlEvent);\n // Simulate a Ctrl-A shortcut\n KeyBindingManager._handleKeyEvent(ctrlA);\n // Simulate holding down Ctrl key and execute a Ctrl shortcut in native shell code\n // No need to call the actual Ctrl shortcut since it is not handled in KBM anyway.\n KeyBindingManager._handleKeyEvent(ctrlEvent1);\n ctrlEvent1.repeat = true;\n KeyBindingManager._handleKeyEvent(ctrlEvent1);\n KeyBindingManager._handleKeyEvent(ctrlEvent1);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/adobe/brackets/commit/9e01a9ecb0997308c62b151dab5a314c24ab85b1", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " // Simulate a Ctrl-A shortcut\n KeyBindingManager._handleKeyEvent(ctrlA);\n // Simulate holding down Ctrl key and execute a Ctrl shortcut in native shell code\n // No need to call the actual Ctrl shortcut since it is not handled in KBM anyway.\n KeyBindingManager._handleKeyEvent(ctrlEvent1);\n ctrlEvent1.repeat = true;\n KeyBindingManager._handleKeyEvent(ctrlEvent1);\n KeyBindingManager._handleKeyEvent(ctrlEvent1);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/9e01a9ecb0997308c62b151dab5a314c24ab85b1", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " console.log(\"Success in performRename\");\n console.log(\"Failure in performRename\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/793d4250eeef7f1a84c66a26a32c7363537bf664", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " console.log(\"Success in createAtPath\");\n console.log(\"Failure in createAtPath\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/793d4250eeef7f1a84c66a26a32c7363537bf664", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " function _getFilenameWithoutExtension(filename) {\n function getFilenameWithoutExtension(filename) {\n filename1 = _getFilenameWithoutExtension(filename1);\n filename2 = _getFilenameWithoutExtension(filename2);\n filename1 = getFilenameWithoutExtension(filename1);\n filename2 = getFilenameWithoutExtension(filename2);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/3b12b48d3749bbbad6de9227c52dbc68b7c7b6df", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " filename1 = _getFilenameWithoutExtension(filename1);\n filename2 = _getFilenameWithoutExtension(filename2);\n filename1 = getFilenameWithoutExtension(filename1);\n filename2 = getFilenameWithoutExtension(filename2);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adobe/brackets/commit/3b12b48d3749bbbad6de9227c52dbc68b7c7b6df", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " this.$dropdown.append(this._renderList());\n \n // Also trigger openDropdown handler so that custom event handlers can be\n // set up for any custom UI in the list.\n $(this).triggerHandler(\"openDropdown\", [this.$dropdown]);\n this._renderList(this.$dropdown);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/1b957c4b1bc63a2e1c4de5b5743c9d5b57b93abd", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " .addClass(this.dropdownExtraClasses) // (no-op if unspecified)\n .append(this._renderList())\n .addClass(this.dropdownExtraClasses); // (no-op if unspecified)\n \n this.$dropdown = $dropdown;\n this._renderList(this.$dropdown)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/1b957c4b1bc63a2e1c4de5b5743c9d5b57b93abd", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " entriesToWatchOrUnwatch.push(child);\n entriesToWatch.push(child);\n var count = entriesToWatchOrUnwatch.length;\n var count = entriesToWatch.length;\n entriesToWatchOrUnwatch.forEach(function (entry) {\n watchOrUnwatch(entry.fullPath, watchOrUnwatchCallback);\n entriesToWatch.forEach(function (entry) {\n impl.watchPath(entry.fullPath, watchCallback);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/02877d137f6d99a79d27d3315789439006edec38", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " var count = entriesToWatchOrUnwatch.length;\n var count = entriesToWatch.length;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/02877d137f6d99a79d27d3315789439006edec38", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 7 ] }, { "input": " entriesToWatchOrUnwatch.forEach(function (entry) {\n watchOrUnwatch(entry.fullPath, watchOrUnwatchCallback);\n entriesToWatch.forEach(function (entry) {\n impl.watchPath(entry.fullPath, watchCallback);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/02877d137f6d99a79d27d3315789439006edec38", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " if (results.length >= FIND_REPLACE_MAX) {\n if (results.length >= REPLACE_ALL_MAX) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/1b20e50633c963e31c65d8bdb756af9e93e27b3c", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " resultsLength >= FIND_REPLACE_MAX ? Strings.FIND_IN_FILES_MORE_THAN : \"\"\n resultsLength >= REPLACE_ALL_MAX ? Strings.FIND_IN_FILES_MORE_THAN : \"\"\n if (results.length >= FIND_REPLACE_MAX) {\n if (results.length >= REPLACE_ALL_MAX) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/1b20e50633c963e31c65d8bdb756af9e93e27b3c", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " edits.push(newEdit);\n newEdits.push(newEdit);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/adobe/brackets/commit/da72fc8f51f27ea46668a8fad6a8628673de3cbe", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " this._state = AFTER_CLOSING_TAG_NAME;\n this._state = AFTER_SELFCLOSE_SLASH;\n this._state = AFTER_CLOSING_TAG_NAME;\n this._state = AFTER_SELFCLOSE_SLASH;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/adobe/brackets/commit/aa8256c6ae30019e27ababc4a2a04a51ff843532", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " this._state = AFTER_CLOSING_TAG_NAME;\n this._state = AFTER_SELFCLOSE_SLASH;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/adobe/brackets/commit/aa8256c6ae30019e27ababc4a2a04a51ff843532", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": " selStr = StringUtils.format(Strings.STATUSBAR_LINE_SELECTION_LEN, lines);\n selStr = _formatCountable(lines, Strings.STATUSBAR_SELECTION_LINE_SINGULAR, Strings.STATUSBAR_SELECTION_LINE_PLURAL);\n selStr = StringUtils.format(Strings.STATUSBAR_CH_SELECTION_LEN, cols);\n selStr = _formatCountable(cols, Strings.STATUSBAR_SELECTION_CH_SINGULAR, Strings.STATUSBAR_SELECTION_CH_PLURAL);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/04536cceef5fa8df45fcbdc764ac41becccb94d6", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " Document.prototype.setLanguage = function (language) {\n Document.prototype.forceLanguage = function (language) {\n document.setLanguage(\n document.forceLanguage(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/d37f69b1e78c84b5906773411e97e0bed5b340ea", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " jump = _indentUnit - jump;\n jump = indentUnit - jump;\n jump = _indentUnit;\n jump = indentUnit;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/eb8eb01c1a6c4599901c439128b1bf92f1a5f981", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " jump = _indentUnit;\n jump = indentUnit;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/eb8eb01c1a6c4599901c439128b1bf92f1a5f981", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " function createMockEditor(doc, mode) {\n mode = mode || \"\";\n \n function createMockEditor(doc) {\n testEditor = createMockEditor(testDoc, \"javascript\");\n testEditor = createMockEditor(testDoc);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/5a026ec9ff873275ec05f2d6fe34b66d6eb6e82f", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " testEditor = createMockEditor(testDoc, \"javascript\");\n testEditor = createMockEditor(testDoc);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/5a026ec9ff873275ec05f2d6fe34b66d6eb6e82f", "target_edit_idx": 6, "propagatable_edit_idx": [ 4 ] }, { "input": " function _updateIndentSize(inc) {\n var editor = getFocusedEditor(),\n size = editor._codeMirror.getOption(\"tabSize\");\n \n editor._codeMirror.setOption(\"tabSize\", size + inc);\n \n _updateIndentInfo(editor);\n function _changeIndentSize(inc) {\n Editor.setTabSize(Editor.getTabSize() + inc);\n _updateIndentSize();\n $indentDecrement.on(\"click\", function () { _updateIndentSize(-1); });\n $indentIncrement.on(\"click\", function () { _updateIndentSize(1); });\n $indentDecrement.on(\"click\", function () { _changeIndentSize(-1); });\n $indentIncrement.on(\"click\", function () { _changeIndentSize(1); });\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adobe/brackets/commit/03b949b74e4d1beca1260b15e1f08cbd55c8dd08", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " $indentDecrement.on(\"click\", function () { _updateIndentSize(-1); });\n $indentIncrement.on(\"click\", function () { _updateIndentSize(1); });\n $indentDecrement.on(\"click\", function () { _changeIndentSize(-1); });\n $indentIncrement.on(\"click\", function () { _changeIndentSize(1); });\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adobe/brackets/commit/03b949b74e4d1beca1260b15e1f08cbd55c8dd08", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " shouldShowHintsOnKeyUp = false;\n shouldShowHintsOnChange = false;\n shouldShowHintsOnKeyUp = false;\n shouldShowHintsOnChange = false;\n shouldShowHintsOnKeyUp = !!provider;\n } else if (event.type === \"keyup\") {\n if (shouldShowHintsOnKeyUp) {\n shouldShowHintsOnKeyUp = false;\n showHint(editor);\n }\n shouldShowHintsOnChange = !!provider;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/d382220e961c45ffb0af909dcf23b5e8fccdfd19", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " shouldShowHintsOnKeyUp = !!provider;\n } else if (event.type === \"keyup\") {\n if (shouldShowHintsOnKeyUp) {\n shouldShowHintsOnKeyUp = false;\n showHint(editor);\n }\n shouldShowHintsOnChange = !!provider;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adobe/brackets/commit/d382220e961c45ffb0af909dcf23b5e8fccdfd19", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " function createTagInfo(tokenType, offset, tagName, attrName, attrValue) {\n function createTagInfo(tokenType, offset, tagName, attrName, attrValue, valueAssigned) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.05555555555555555, "commit_url": "https://github.com/adobe/brackets/commit/2ce0226bc8d448fba4af20b7966e7f25fa310079", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " return createTagInfo(ATTR_NAME, offset, tagName, attrName, attrVal);\n return createTagInfo(ATTR_NAME, offset, tagName, attrName, attrVal, true);\n function createTagInfo(tokenType, offset, tagName, attrName, attrValue) {\n function createTagInfo(tokenType, offset, tagName, attrName, attrValue, valueAssigned) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.05555555555555555, "commit_url": "https://github.com/adobe/brackets/commit/2ce0226bc8d448fba4af20b7966e7f25fa310079", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " // skip invisible files on mac\n if (brackets.platform === \"mac\" && entry.name.charAt(0) === \".\") {\n // skip invisible files\n if (!ProjectManager.shouldShow(entry)) {\n // skip invisible directories on mac\n if (brackets.platform === \"mac\" && dirEntry.name.charAt(0) === \".\") {\n // skip invisible directories\n if (!ProjectManager.shouldShow(dirEntry)) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/b09165b5f5212289a7625a097dc263bbdd94c821", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " function _shouldShowInTree(entry) {\n function shouldShow(entry) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/b09165b5f5212289a7625a097dc263bbdd94c821", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " if (_shouldShowInTree(entry)) {\n if (shouldShow(entry)) {\n function _shouldShowInTree(entry) {\n function shouldShow(entry) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/b09165b5f5212289a7625a097dc263bbdd94c821", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " function _extractAllSelectors(text) {\n function extractAllSelectors(text) {\n var allSelectors = _extractAllSelectors(text);\n var allSelectors = extractAllSelectors(text);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/0edf60017a075eff945cd2406acca1c16365bbe3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " this.selector = rangeResult.selector;\n this.name = rangeResult.name;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/79978fcb4677dd87280dc521f70032cb582e3582", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " SearchResultItem.prototype.selector = null;\n SearchResultItem.prototype.name = null;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/79978fcb4677dd87280dc521f70032cb582e3582", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5 ] }, { "input": " function setSearchFieldValue(initialValue) {\n initialValue = initialValue || \"\";\n\n function setSearchFieldValue(prefix, initialString) {\n prefix = prefix || \"\";\n initialString = initialString || \"\";\n initialString = prefix + initialString;\n\n \n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/cd6f34f5dc7ffbaf991b614efd892a11eb0a5757", "target_edit_idx": 2, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " setSearchFieldValue(initialValue);\n setSearchFieldValue(prefix, initialString);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/cd6f34f5dc7ffbaf991b614efd892a11eb0a5757", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " setSearchFieldValue(initialString);\n setSearchFieldValue(prefix, initialString);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/adobe/brackets/commit/cd6f34f5dc7ffbaf991b614efd892a11eb0a5757", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 5 ] }, { "input": " if (query.indexOf(\"@\") !== -1) {\n // TODO: match any location of @ when QuickFileOpen._handleItemFocus() is modified to\n // dynamic open files\n //if (query.indexOf(\"@\") !== -1) {\n if (query.indexOf(\"@\") === 0) {\n if (query.indexOf(\"@\") !== -1) {\n // TODO: match any location of @ when QuickFileOpen._handleItemFocus() is modified to\n // dynamic open files\n //if (query.indexOf(\"@\") !== -1) {\n if (query.indexOf(\"@\") === 0) {\n if (query.indexOf(\"@\") !== -1) {\n // TODO: match any location of @ when QuickFileOpen._handleItemFocus() is modified to\n // dynamic open files\n //if (query.indexOf(\"@\") !== -1) {\n if (query.indexOf(\"@\") === 0) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adobe/brackets/commit/cd6f34f5dc7ffbaf991b614efd892a11eb0a5757", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " if (change.to.line < range.startLine) {\n if (change.to.line <= range.startLine) {\n if (change.to.line < range.endLine) {\n if (change.to.line <= range.endLine) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adobe/brackets/commit/f6887096ebeab3b73b2b1eb512d727185789c447", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " allFiles = result;\n dir2Files = result;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adobe/brackets/commit/f7ed3e91ad38ac1b82a4ee4c45dc3e15f859fde6", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " waitsFor(function () { return allFiles; }, \"FileIndexManager.getFileInfoList() timeout\", 1000);\n waitsFor(function () { return dir2Files; }, \"FileIndexManager.getFileInfoList() timeout\", 1000);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adobe/brackets/commit/f7ed3e91ad38ac1b82a4ee4c45dc3e15f859fde6", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " expect(allFiles.length).toEqual(2);\n expect(allFiles[0].name).toEqual(\"file_eight.css\");\n expect(allFiles[1].name).toEqual(\"file_seven.js\");\n expect(dir2Files.length).toEqual(2);\n expect(dir2Files[0].name).toEqual(\"file_eight.css\");\n expect(dir2Files[1].name).toEqual(\"file_seven.js\");\n waitsFor(function () { return allFiles; }, \"FileIndexManager.getFileInfoList() timeout\", 1000);\n waitsFor(function () { return dir2Files; }, \"FileIndexManager.getFileInfoList() timeout\", 1000);\n allFiles = result;\n dir2Files = result;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/adobe/brackets/commit/f7ed3e91ad38ac1b82a4ee4c45dc3e15f859fde6", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " allFiles = result;\n files = result;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adobe/brackets/commit/f7ed3e91ad38ac1b82a4ee4c45dc3e15f859fde6", "target_edit_idx": 11, "propagatable_edit_idx": [ 12, 13 ] }, { "input": " waitsFor(function () { return allFiles; }, \"FileIndexManager.getFileInfoList() timeout\", 1000);\n waitsFor(function () { return files; }, \"FileIndexManager.getFileInfoList() timeout\", 1000);\n allFiles = result;\n files = result;\n expect(allFiles.length).toEqual(fileCount);\n expect(files.length).toEqual(fileCount);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adobe/brackets/commit/f7ed3e91ad38ac1b82a4ee4c45dc3e15f859fde6", "target_edit_idx": 12, "propagatable_edit_idx": [ 11, 13 ] }, { "input": " function handleFileClose( doc ) {\n function handleFileClose( doc, promptOnly ) {\n handleFileClose( unsavedDocs[0] ).done( function() {\n DocumentManager.closeAll();\n handleFileClose( unsavedDocs[0], promptOnly ).done( function() {\n // still need to close any other, non-unsaved documents\n doCloseAll();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adobe/brackets/commit/a7658ece2ac446f98dc02fc5d961bb20bcc6de30", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " DocumentManager.closeAll();\n doCloseAll();\n DocumentManager.closeAll();\n doCloseAll();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/adobe/brackets/commit/a7658ece2ac446f98dc02fc5d961bb20bcc6de30", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " * @param {function} successCallback\n * @param {function} errorCallback\n * @param {function(...)} successCallback\n * @param {function(...)} errorCallback\n * @param {function} successCallback\n * @param {function} errorCallback\n * @param {function(...)} successCallback\n * @param {function(...)} errorCallback\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/adobe/brackets/commit/642090d55f8fdbd07c8d876c95c856567e820b4d", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " latest = await getAndCacheLatestVersion(cached)\n latest = await getAndCacheLatestVersion(cached, includePrerelease)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vuejs/vue-cli/commit/debc3f19b224df7cccfd313bfd47331a7d860681", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " getAndCacheLatestVersion(cached)\n getAndCacheLatestVersion(cached, includePrerelease)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vuejs/vue-cli/commit/debc3f19b224df7cccfd313bfd47331a7d860681", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "async function getAndCacheLatestVersion (cached) {\n const version = await pm.getRemoteVersion('vue-cli-version-marker', 'latest')\nasync function getAndCacheLatestVersion (cached, includePrerelease) {\n let version = await pm.getRemoteVersion('vue-cli-version-marker', 'latest')\n\n if (includePrerelease) {\n const next = await pm.getRemoteVersion('vue-cli-version-marker', 'next')\n version = semver.gt(next, version) ? next : version\n }\n\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vuejs/vue-cli/commit/debc3f19b224df7cccfd313bfd47331a7d860681", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " } catch (pre) {\n pre = $__3.value;\n } catch (prefix) {\n prefix = $__3.value;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/aosabook/500lines/commit/30f0ef62becab55450fe84f6cc43405054bb3ea1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " if ((Object.getOwnPropertyDescriptor(self, pre + cr) || {}).get) {\n if ((Object.getOwnPropertyDescriptor(self, prefix + cr) || {}).get) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/aosabook/500lines/commit/30f0ef62becab55450fe84f6cc43405054bb3ea1", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": " Object.defineProperty(self, pre + cr, {get: (function() {\n Object.defineProperty(self, prefix + cr, {get: (function() {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/aosabook/500lines/commit/30f0ef62becab55450fe84f6cc43405054bb3ea1", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": " for (const pre of [ '', '$' ]) {\n for (const prefix of [ '', '$' ]) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/aosabook/500lines/commit/30f0ef62becab55450fe84f6cc43405054bb3ea1", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4 ] }, { "input": " if (( Object.getOwnPropertyDescriptor( self, pre+cr ) || {} ).get) { continue }\n Object.defineProperty( self, pre+cr, { get: ()=>{\n if (( Object.getOwnPropertyDescriptor( self, prefix+cr ) || {} ).get) { continue }\n Object.defineProperty( self, prefix+cr, { get: ()=>{\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/aosabook/500lines/commit/30f0ef62becab55450fe84f6cc43405054bb3ea1", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " xaxis = numpy.array((modelmatrix[0, 0], modelmatrix[1, 0], modelmatrix[2, 0]))\n xaxis = numpy.array((modelmatrix[0, 0], modelmatrix[0, 1], modelmatrix[0, 2]))\n yaxis = numpy.array((modelmatrix[0, 1], modelmatrix[1, 1], modelmatrix[2, 1]))\n yaxis = numpy.array((modelmatrix[1, 0], modelmatrix[1, 1], modelmatrix[1, 2]))\n zaxis = numpy.array((modelmatrix[0, 2], modelmatrix[1, 2], modelmatrix[2, 2]))\n zaxis = numpy.array((modelmatrix[2, 0], modelmatrix[2, 1], modelmatrix[2, 2]))\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/aosabook/500lines/commit/51779e1873cb2b53e49894b8a288df09bd7848f2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " callback(errOutputInvalid);\n callback(err);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/lovell/sharp/commit/7017af303d23b6bfa099479b7b3488756880fd24", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " return Promise.reject(errOutputInvalid);\n return Promise.reject(err);\n callback(errOutputInvalid);\n callback(err);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/lovell/sharp/commit/7017af303d23b6bfa099479b7b3488756880fd24", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " var ANGLE = 90;\n element.setAttribute('transform', 'rotate(' + ANGLE + ')');\n var ANGLE_DEG = 90;\n var ANGLE = ANGLE_DEG * Math.PI / 180;\n element.setAttribute('transform', 'rotate(' + ANGLE_DEG + ')');\n var ANGLE = 90;\n var ANGLE_DEG = 90;\n var ANGLE = ANGLE_DEG * Math.PI / 180;\n elPath.setAttribute('transform', 'rotate(' + ANGLE + ')');\n elPath.setAttribute('transform', 'rotate(' + ANGLE_DEG + ')');\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/fabricjs/fabric.js/commit/63fa09e8eef2f6642f363dfd615cbe15f908f743", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " elPath.setAttribute('transform', 'rotate(' + ANGLE + ')');\n elPath.setAttribute('transform', 'rotate(' + ANGLE_DEG + ')');\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/fabricjs/fabric.js/commit/63fa09e8eef2f6642f363dfd615cbe15f908f743", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " { error: 'error' },\n { error: 'error2' },\n { value: 2 }\n { error: 'error', value: 1 },\n { error: 'error2', value: 2 },\n { value: 2 },\n { error: 'error3' },\n { error: 'error' },\n { error: 'error2' },\n { value: 1 }\n { error: 'error', value: 1 },\n { error: 'error2', value: 2 },\n { value: 1 },\n { error: 'error3' },\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/caolan/async/commit/cc7a84ffedba2c326668f604384d730cc09fd8e6", "target_edit_idx": 6, "propagatable_edit_idx": [ 14 ] }, { "input": " three: { value: 'three' }\n three: { value: 'three' },\n four: { error: 'four', value: 4 }\n three: { error: 'three' }\n three: { error: 'three', value: 3 }\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/caolan/async/commit/cc7a84ffedba2c326668f604384d730cc09fd8e6", "target_edit_idx": 8, "propagatable_edit_idx": [ 12 ] }, { "input": " callback('one');\n callback('one', 1);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/caolan/async/commit/cc7a84ffedba2c326668f604384d730cc09fd8e6", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " callback('three');\n callback('three', 3);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/caolan/async/commit/cc7a84ffedba2c326668f604384d730cc09fd8e6", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": " continueOperation: function(err) {\n errorFilter: function(err) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/caolan/async/commit/0af976cc89096ee64db3bd08fe65e2b3445f56d5", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 2, 4, 5, 6, 7 ] }, { "input": " cb(count < 5);\n cb(null, count < 5);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/caolan/async/commit/d599c38c9b0617395e526a9e36df3045a81fc262", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " * In seconds.\n * TODO: make ms.\n * In seconds.\n * TODO: make ms.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/GoogleChrome/lighthouse/commit/e1b4ca20ebd5ad65a2adb029fdf45165172dbc65", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " * @param {number} minimumSize\n * @param {number} padding\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/GoogleChrome/lighthouse/commit/d52421ccf86d87e3abca0abdb64cd067e08cc016", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "function getBoundingRectWithPadding(rects, minimumSize) {\nfunction getBoundingRectWithPadding(rects, padding) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/GoogleChrome/lighthouse/commit/d52421ccf86d87e3abca0abdb64cd067e08cc016", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " const halfMinSize = minimumSize / 2;\n const halfMinSize = padding / 2;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/GoogleChrome/lighthouse/commit/d52421ccf86d87e3abca0abdb64cd067e08cc016", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "function getBoundingRect(rectA, rectB) {\n const left = Math.min(rectA.left, rectB.left);\n const right = Math.max(rectA.right, rectB.right);\n const top = Math.min(rectA.top, rectB.top);\n const bottom = Math.max(rectA.bottom, rectB.bottom);\n return addRectWidthAndHeight({\n left,\n right,\n top,\n bottom,\n });\nfunction getBoundingRect(rects) {\n return getBoundingRectWithPadding(rects, 0);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/GoogleChrome/lighthouse/commit/d52421ccf86d87e3abca0abdb64cd067e08cc016", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " const replacementClientRect = getBoundingRect(crA, crB);\n const replacementClientRect = getBoundingRect([crA, crB]);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/GoogleChrome/lighthouse/commit/d52421ccf86d87e3abca0abdb64cd067e08cc016", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " rawValue: false,\n rawValue: false,\n score: 0,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/GoogleChrome/lighthouse/commit/0ad3440842dd1b1f52e231eb1d93b4c53b08c093", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " rawValue: true,\n score: 1,\n rawValue: true,\n score: null,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/GoogleChrome/lighthouse/commit/0ad3440842dd1b1f52e231eb1d93b4c53b08c093", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " valueEl.textContent = Util.formatNumber(score);\n valueEl.textContent = Util.formatNumber(scoreOutOf100);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/GoogleChrome/lighthouse/commit/544b7c6c6c9d4d676ebeff2f844bb723283d49c1", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " const score = Math.round(category.score * 100);\n const fillRotation = Math.floor((score / 100) * 180);\n const scoreOutOf100 = Math.round(category.score * 100);\n const fillRotation = Math.floor((scoreOutOf100 / 100) * 180);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/GoogleChrome/lighthouse/commit/544b7c6c6c9d4d676ebeff2f844bb723283d49c1", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 5, 6 ] }, { "input": " gauge.setAttribute('data-progress', score); // .dataset not supported in jsdom.\n gauge.classList.add(`lh-gauge--${Util.calculateRating(score)}`);\n gauge.setAttribute('data-progress', scoreOutOf100); // .dataset not supported in jsdom.\n gauge.classList.add(`lh-gauge--${Util.calculateRating(category.score)}`);\n valueEl.textContent = Util.formatNumber(score);\n valueEl.textContent = Util.formatNumber(scoreOutOf100);\n const score = Math.round(category.score * 100);\n const fillRotation = Math.floor((score / 100) * 180);\n const scoreOutOf100 = Math.round(category.score * 100);\n const fillRotation = Math.floor((scoreOutOf100 / 100) * 180);\n this.dom.find('.lh-gauge__percentage', gauge).textContent = score;\n this.dom.find('.lh-gauge__percentage', gauge).textContent = scoreOutOf100;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/GoogleChrome/lighthouse/commit/544b7c6c6c9d4d676ebeff2f844bb723283d49c1", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 4, 6 ] }, { "input": " assert.equal(value.textContent, Math.round(category.score), 'category score is rounded');\n const scoreInDom = Number(value.textContent);\n assert.ok(Number.isInteger(scoreInDom) && scoreInDom > 10, 'category score is rounded');\n assert.equal(value.textContent, Math.round(category.score), 'category score is rounded');\n const scoreInDom = Number(value.textContent);\n assert.ok(Number.isInteger(scoreInDom) && scoreInDom > 10, 'score is rounded out of 100');\n assert.equal(value.textContent, Math.round(category.score), 'category score is rounded');\n const scoreInDom = Number(value.textContent);\n assert.ok(Number.isInteger(scoreInDom) && scoreInDom > 10, 'category score is rounded');\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/GoogleChrome/lighthouse/commit/544b7c6c6c9d4d676ebeff2f844bb723283d49c1", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 12 ] }, { "input": " test(\"nested `'change'` with silent\", 3, function() {\n test(\"nested `change` with silent\", 3, function() {\n test(\"nested `'change:attr'` with silent\", 0, function() {\n test(\"nested `change:attr` with silent\", 0, function() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/jashkenas/backbone/commit/4488374104e273e1624e4f69468a95bde8fb8c77", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " deepEqual(this.changedAttributes(), {x: true, y: true});\n deepEqual(this.changedAttributes(), {x: true, y: true, z: true});\n deepEqual(this.changedAttributes(), {z: true});\n deepEqual(this.changedAttributes(), {z: false});\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/jashkenas/backbone/commit/4488374104e273e1624e4f69468a95bde8fb8c77", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " var f = _.once(function() {\n this.off(event, f);\n var wrapped = _.once(function() {\n this.off(event, wrapped);\n f._callback = callback;\n this.on(event, f, this);\n wrapped._callback = callback;\n this.on(event, wrapped, this);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/jashkenas/backbone/commit/aa4c056ef64b78f640b192fca6cd06889696784e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " f._callback = callback;\n this.on(event, f, this);\n wrapped._callback = callback;\n this.on(event, wrapped, this);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/jashkenas/backbone/commit/aa4c056ef64b78f640b192fca6cd06889696784e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " this.on(key, events[key], callback);\n this.on(key, events[key], context || callback);\n this.off(key, events[key], callback);\n this.off(key, events[key], context || callback);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jashkenas/backbone/commit/049425244696d7f5b67e775d3d3fd0a416b87823", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " var triggerDestroy = function() {\n var destroy = function() {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jashkenas/backbone/commit/b6b9ec72ff3edbe0005e6bd134ae18627c0ed703", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " if (!options.wait) triggerDestroy();\n if (!options.wait) destroy();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jashkenas/backbone/commit/b6b9ec72ff3edbe0005e6bd134ae18627c0ed703", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " equals(null, e.collection);\n equals(undefined, e.collection);\n equals(null, e.collection);\n equals(undefined, e.collection);\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/jashkenas/backbone/commit/a49bb4f3e19b34dfcf34afa1050b934d6b6b13b4", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " href = toURL(href)\n href = toURL(href, null, currentPath)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/docsifyjs/docsify/commit/a70620387953f8f50bc0e7564610f38c029b76b2", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "import { getRoot } from '../route/util'\nimport { getParentPath } from '../route/util'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/docsifyjs/docsify/commit/f3fc5969512941416fb5082654f146153943715b", "target_edit_idx": 0, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " const root = getRoot(this.route.path)\n const root = getParentPath(this.route.path)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/docsifyjs/docsify/commit/f3fc5969512941416fb5082654f146153943715b", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 6 ] }, { "input": " doc[i] = obj[i];\n doc[i] = value;\n doc[i] = obj[i];\n doc[i] = value;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Automattic/mongoose/commit/635c79510160fcf4aab3fd5212bb80f2d649f9d8", "target_edit_idx": 3, "propagatable_edit_idx": [ 10 ] }, { "input": " schema.pre('save', function(next) {\n schema.pre('save', function timestampsPreSave(next) {\n schema.pre('remove', function(next) {\n schema.pre('remove', function shardingPluginPreRemove(next) {\n schema.post('save', function() {\n schema.post('save', function shardingPluginPostSave() {\n schema.pre('save', function() {\n schema.pre('save', function trackTransactionPreSave() {\n schema.pre('save', function(next) {\n schema.pre('save', function shardingPluginPreSave(next) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Automattic/mongoose/commit/f58a320a9a8da0c6b4acecbb6f5fc35b0f4f6dbf", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 9, 10, 7 ] }, { "input": " schema.s.hooks.pre('remove', false, function(next) {\n schema.s.hooks.pre('remove', false, function removeSubDocsPreRemove(next) {\n schema.s.hooks.pre('save', false, function(next) {\n schema.s.hooks.pre('save', false, function saveSubdocsPreSave(next) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/Automattic/mongoose/commit/f58a320a9a8da0c6b4acecbb6f5fc35b0f4f6dbf", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " const ownerDocument = this.ownerDocument();\n if (ownerDocument == null) {\n if (parent == null) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Automattic/mongoose/commit/cd6735bd2468b6ec73a47fe645ccbe7b5bf0ed58", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " this.$session(ownerDocument.$session());\n this.$session(parent.$session());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Automattic/mongoose/commit/cd6735bd2468b6ec73a47fe645ccbe7b5bf0ed58", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " if (SchemaType._isRef(this, value, doc, init)) {\n if (typeof value === 'number') {\n return value;\n }\n\n if (typeof value !== 'number' && SchemaType._isRef(this, value, doc, init)) {\n if (SchemaType._isRef(this, value, doc, init)) {\n if (typeof value === 'string') {\n return value;\n }\n\n if (typeof value !== 'string' && SchemaType._isRef(this, value, doc, init)) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Automattic/mongoose/commit/cd6735bd2468b6ec73a47fe645ccbe7b5bf0ed58", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": " $__applyDefaults(this, fields, exclude, hasIncludedChildren, true, null, skipId);\n $__applyDefaults(this, fields, exclude, hasIncludedChildren, true, null);\n $__applyDefaults(this, fields, exclude, hasIncludedChildren, false, options.skipDefaults, skipId);\n $__applyDefaults(this, fields, exclude, hasIncludedChildren, false, options.skipDefaults);\nfunction $__applyDefaults(doc, fields, exclude, hasIncludedChildren, isBeforeSetters, pathsToSkip, skipId) {\nfunction $__applyDefaults(doc, fields, exclude, hasIncludedChildren, isBeforeSetters, pathsToSkip) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/Automattic/mongoose/commit/4c85c7008677db89ee9eb142785a09076a548a14", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " $__applyDefaults(this, fields, exclude, hasIncludedChildren, false, options.skipDefaults, skipId);\n $__applyDefaults(this, fields, exclude, hasIncludedChildren, false, options.skipDefaults);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/Automattic/mongoose/commit/4c85c7008677db89ee9eb142785a09076a548a14", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "function $__applyDefaults(doc, fields, exclude, hasIncludedChildren, isBeforeSetters, pathsToSkip, skipId) {\nfunction $__applyDefaults(doc, fields, exclude, hasIncludedChildren, isBeforeSetters, pathsToSkip) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/Automattic/mongoose/commit/4c85c7008677db89ee9eb142785a09076a548a14", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " casted.$session(options.session);\n if (options.session != null) {\n casted.$session(options.session);\n }\n casted.$session(options.session);\n if (options.session != null) {\n casted.$session(options.session);\n }\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Automattic/mongoose/commit/184f10ff34b74def0029377129a4854196239bc4", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " model = getDiscriminatorByValue(model, object[discriminatorKey]) || model;\n model = getDiscriminatorByValue(model.discriminators, object[discriminatorKey]) || model;\n model = getDiscriminatorByValue(model, obj[discriminatorKey]) || model;\n model = getDiscriminatorByValue(model.discriminators, obj[discriminatorKey]) || model;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/Automattic/mongoose/commit/06c6a8b9aaf00888e0adb7206b769a9b396bbb3d", "target_edit_idx": 3, "propagatable_edit_idx": [ 9 ] }, { "input": " const constructorByValue = getDiscriminatorByValue(Constructor, val[Constructor.schema.options.discriminatorKey]);\n const constructorByValue = getDiscriminatorByValue(Constructor.discriminators, val[Constructor.schema.options.discriminatorKey]);\n const constructorByValue = getDiscriminatorByValue(Constructor, value[Constructor.schema.options.discriminatorKey]);\n const constructorByValue = getDiscriminatorByValue(Constructor.discriminators, value[Constructor.schema.options.discriminatorKey]);\n const constructorByValue = getDiscriminatorByValue(Constructor, obj[Constructor.schema.options.discriminatorKey]);\n const constructorByValue = getDiscriminatorByValue(Constructor.discriminators, obj[Constructor.schema.options.discriminatorKey]);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Automattic/mongoose/commit/06c6a8b9aaf00888e0adb7206b769a9b396bbb3d", "target_edit_idx": 11, "propagatable_edit_idx": [ 12, 13 ] }, { "input": " return target[prop];\n return arr[prop];\n target[prop] = value;\n arr[prop] = value;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Automattic/mongoose/commit/f7287836a82079f86ea87c3fcb14758ea1d884a1", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " target[prop] = value;\n arr[prop] = value;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Automattic/mongoose/commit/f7287836a82079f86ea87c3fcb14758ea1d884a1", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " value = MongooseArray(value, this._arrayPath || this.path, doc);\n value = MongooseArray(value, this._arrayPath || this.path, doc, this);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/Automattic/mongoose/commit/82c84e8af5db8b908d203b5f6de9b22a5a1c87bf", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "function MongooseArray(values, path, doc) {\nfunction MongooseArray(values, path, doc, schematype) {\n value = MongooseArray(value, this._arrayPath || this.path, doc);\n value = MongooseArray(value, this._arrayPath || this.path, doc, this);\n value = MongooseArray(value, this._arrayPath || this.path, doc);\n value = MongooseArray(value, this._arrayPath || this.path, doc, this);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Automattic/mongoose/commit/82c84e8af5db8b908d203b5f6de9b22a5a1c87bf", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " * `criteria` (as opposed to just the first one) regardless of the value of\n * `filter` (as opposed to just the first one) regardless of the value of\n * `criteria` (as opposed to just the first one) regardless of the value of\n * `filter` (as opposed to just the first one) regardless of the value of\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Automattic/mongoose/commit/0f32774a6b8af6b69ea7161408bc6c756b9088c8", "target_edit_idx": 0, "propagatable_edit_idx": [ 10 ] }, { "input": " * @param {Object} conditions\n * @param {Object} filter\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Automattic/mongoose/commit/0f32774a6b8af6b69ea7161408bc6c756b9088c8", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " * - MongoDB will update _only_ the first document that matches `criteria` regardless of the value of the `multi` option.\n * - MongoDB will update _only_ the first document that matches `filter` regardless of the value of the `multi` option.\n * - MongoDB will update _only_ the first document that matches `criteria` regardless of the value of the `multi` option.\n * - MongoDB will update _only_ the first document that matches `filter` regardless of the value of the `multi` option.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Automattic/mongoose/commit/0f32774a6b8af6b69ea7161408bc6c756b9088c8", "target_edit_idx": 2, "propagatable_edit_idx": [ 12 ] }, { "input": " * @param {Object} conditions\n * @param {Object} filter\n * @param {Object} conditions\n * @param {Object} filter\n * @param {Object} conditions\n * @param {Object} filter\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Automattic/mongoose/commit/0f32774a6b8af6b69ea7161408bc6c756b9088c8", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " return inspect(this.toObject(true));\n return inspect(this.toObject());\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Automattic/mongoose/commit/ddd3d3211bf3562d5cb4010e2de12a29f11a03df", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " ? new VirtualType()\n ? new VirtualType(options)\nfunction VirtualType () {\nfunction VirtualType (options) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Automattic/mongoose/commit/90634900b1c8533bb0102fbf00ebaefdf1c1ad2e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "function VirtualType () {\nfunction VirtualType (options) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Automattic/mongoose/commit/90634900b1c8533bb0102fbf00ebaefdf1c1ad2e", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " if (cm.openDialog) cm.openDialog(text, f, {value: deflt, selectValueOnOpen: true});\n if (cm.openDialog) cm.openDialog(text, f, {value: deflt, selectValueOnOpen: true, bottom: cm.options.search.bottom});\n if (cm.openDialog) cm.openDialog(text, f, {value: deflt, selectValueOnOpen: true});\n if (cm.openDialog) cm.openDialog(text, f, {value: deflt, selectValueOnOpen: true, bottom: cm.options.search.bottom});\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/codemirror/codemirror5/commit/f65b46d154af2ba7e83fb78b449bea41e1c23c43", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " let l = pos.line + dir\n let l = pos.line + lineDir\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/codemirror/codemirror5/commit/995f39476a153df6cf5b2b38884fa196c7af6698", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir)\n pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir)\n let l = pos.line + dir\n let l = pos.line + lineDir\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/codemirror/codemirror5/commit/995f39476a153df6cf5b2b38884fa196c7af6698", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " } else if (ch == \"<\" && (m = stream.match(/^<-?[\\`\\\"\\']?([a-zA-Z_?]\\w*)[\\`\\\"\\']?(?:;|$)/))) {\n return chain(readHereDoc(m[1]), stream, state);\n } else if (ch == \"<\" && (m = stream.match(/^<(-)?[\\`\\\"\\']?([a-zA-Z_?]\\w*)[\\`\\\"\\']?(?:;|$)/))) {\n return chain(readHereDoc(m[2], m[1]), stream, state);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/codemirror/codemirror5/commit/64f7d4ce108468545012d0f6e6584054b7964261", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " function readHereDoc(phrase) {\n function readHereDoc(phrase, mayIndent) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/codemirror/codemirror5/commit/64f7d4ce108468545012d0f6e6584054b7964261", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " state.tokenize = tokenStringFactory(stream.current());\n state.tokenize = tokenStringFactory(stream.current(), state.tokenize);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/codemirror/codemirror5/commit/b7b9b73f9c57eb7a51c4a5a270f32d6927c7b28e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " function tokenStringFactory(delimiter) {\n function tokenStringFactory(delimiter, tokenOuter) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/codemirror/codemirror5/commit/b7b9b73f9c57eb7a51c4a5a270f32d6927c7b28e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " state.tokenize = tokenBase;\n state.tokenize = tokenOuter;\n state.tokenize = tokenBase;\n state.tokenize = tokenOuter;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/codemirror/codemirror5/commit/b7b9b73f9c57eb7a51c4a5a270f32d6927c7b28e", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " state.tokenize = tokenBase;\n state.tokenize = tokenOuter;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/codemirror/codemirror5/commit/b7b9b73f9c57eb7a51c4a5a270f32d6927c7b28e", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " if (match && match[0].length)\n if (match)\n if (match && match[0].length) {\n if (match) {\n if (match && match[0].length)\n if (match)\n if (match && match[0].length) {\n if (match) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/codemirror/codemirror5/commit/db794e83988688245dd0c8b58ae9614d4ca695e4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " helpers.assertCursorAt(1, 0);\n helpers.doKeys('n');\n helpers.assertCursorAt(0, 4);\n helpers.doKeys('n');\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/codemirror/codemirror5/commit/db794e83988688245dd0c8b58ae9614d4ca695e4", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " if (type == \"keyword a\") return cont(pushlex(\"form\"), expression, statement, poplex);\n if (type == \"keyword a\") return cont(pushlex(\"form\"), parenExpr, statement, poplex);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.08, "commit_url": "https://github.com/codemirror/codemirror5/commit/14c8a436efa943060682c1b9845c63bbcee491cf", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " return cont(pushlex(\"form\"), expression, statement, poplex, maybeelse);\n return cont(pushlex(\"form\"), parenExpr, statement, poplex, maybeelse);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.08, "commit_url": "https://github.com/codemirror/codemirror5/commit/14c8a436efa943060682c1b9845c63bbcee491cf", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " if (type == \"switch\") return cont(pushlex(\"form\"), expression, pushlex(\"}\", \"switch\"), expect(\"{\"),\n if (type == \"switch\") return cont(pushlex(\"form\"), parenExpr, pushlex(\"}\", \"switch\"), expect(\"{\"),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.08, "commit_url": "https://github.com/codemirror/codemirror5/commit/14c8a436efa943060682c1b9845c63bbcee491cf", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " while (isStatement(ctx)) ctx = popContext(state);\n while (isStatement(ctx.type)) ctx = popContext(state);\n while (isStatement(ctx)) ctx = popContext(state);\n while (isStatement(ctx.type)) ctx = popContext(state);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/codemirror/codemirror5/commit/01c4b0edbcdf96721cffa62c60459ba773b379e8", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " CodeMirror.defineExtension(\"annotateScrollbar\", function(className) {\n return new Annotation(this, className);\n CodeMirror.defineExtension(\"annotateScrollbar\", function(options) {\n if (typeof options == \"string\") options = {className: options};\n return new Annotation(this, options);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/codemirror/codemirror5/commit/4f2e8b16ac1cf5d56fb487cd1dbbe996844d2f1e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " function Annotation(cm, className) {\n function Annotation(cm, options) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/codemirror/codemirror5/commit/4f2e8b16ac1cf5d56fb487cd1dbbe996844d2f1e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " this.className = className;\n this.options = options;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/codemirror/codemirror5/commit/4f2e8b16ac1cf5d56fb487cd1dbbe996844d2f1e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " function readToken(mode, stream, state) {\n function readToken(mode, stream, state, inner) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/codemirror/codemirror5/commit/e9d3c124ed8c707f4c26098a73486ad4770ce1fc", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " style = extractLineClasses(readToken(mode, stream, state), lineClasses);\n style = extractLineClasses(readToken(mode, stream, state, inner), lineClasses);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/codemirror/codemirror5/commit/e9d3c124ed8c707f4c26098a73486ad4770ce1fc", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " return html(stream, state);\n return null;\n return html(stream, state);\n return null;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/codemirror/codemirror5/commit/e9d3c124ed8c707f4c26098a73486ad4770ce1fc", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " CodeMirror.defineExtension(\"openDialog\", function(template, callback, bottom) {\n var dialog = dialogDiv(this, template, bottom);\n CodeMirror.defineExtension(\"openDialog\", function(template, callback, options) {\n var dialog = dialogDiv(this, template, options && options.bottom);\n CodeMirror.defineExtension(\"openConfirm\", function(template, callbacks, bottom) {\n var dialog = dialogDiv(this, template, bottom);\n CodeMirror.defineExtension(\"openConfirm\", function(template, callbacks, options) {\n var dialog = dialogDiv(this, template, options && options.bottom);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/codemirror/codemirror5/commit/0a83f784c5e635abc6c77fbc9a97f1e690c58a2f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " CodeMirror.defineExtension(\"openConfirm\", function(template, callbacks, bottom) {\n var dialog = dialogDiv(this, template, bottom);\n CodeMirror.defineExtension(\"openConfirm\", function(template, callbacks, options) {\n var dialog = dialogDiv(this, template, options && options.bottom);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/codemirror/codemirror5/commit/0a83f784c5e635abc6c77fbc9a97f1e690c58a2f", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " items: insertNoteAfterEnabled ? await noteTypesService.getNoteTypeItems(\"insertNoteAfter\", {removeDeprecatedTypes: true}) : null,\n items: insertNoteAfterEnabled ? await noteTypesService.getNoteTypeItems(\"insertNoteAfter\") : null,\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zadam/trilium/commit/305d28b5b3c6cef9e98bc4c61cb04658be97d690", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " items: notSearch ? await noteTypesService.getNoteTypeItems(\"insertChildNote\", {removeDeprecatedTypes: true}) : null,\n items: notSearch ? await noteTypesService.getNoteTypeItems(\"insertChildNote\") : null,\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zadam/trilium/commit/305d28b5b3c6cef9e98bc4c61cb04658be97d690", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " if (entity.type === 'label' && ['sorted', 'sortDirection', 'sortFoldersFirst', 'sortNatural'].includes(entity.name)) {\n if (entity.type === 'label' && ['sorted', 'sortDirection', 'sortFoldersFirst', 'sortNatural', 'sortLocale'].includes(entity.name)) {\n else if (entity.type === 'label' && ['sorted', 'sortDirection', 'sortFoldersFirst', 'sortNatural'].includes(entity.name)) {\n else if (entity.type === 'label' && ['sorted', 'sortDirection', 'sortFoldersFirst', 'sortNatural', 'sortLocale'].includes(entity.name)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zadam/trilium/commit/93ad83d2aeba01276b33a6871f8755cf53a96fe2", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "function sortNotes(parentNoteId, customSortBy = 'title', reverse = false, foldersFirst = false, sortNatural = false) {\nfunction sortNotes(parentNoteId, customSortBy = 'title', reverse = false, foldersFirst = false, sortNatural = false, sortLocale) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zadam/trilium/commit/93ad83d2aeba01276b33a6871f8755cf53a96fe2", "target_edit_idx": 9, "propagatable_edit_idx": [ 12 ] }, { "input": " sortNotes(parentNoteId, sortedLabel.value, sortReversed, sortFoldersFirst, sortNatural);\n const sortLocale = parentNote.getLabelValue('sortLocale');\n\n sortNotes(parentNoteId, sortedLabel.value, sortReversed, sortFoldersFirst, sortNatural, sortLocale);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zadam/trilium/commit/93ad83d2aeba01276b33a6871f8755cf53a96fe2", "target_edit_idx": 12, "propagatable_edit_idx": [ 9 ] }, { "input": " if (entity.type === 'label' && ['sorted', 'sortDirection', 'sortFoldersFirst'].includes(entity.name)) {\n if (entity.type === 'label' && ['sorted', 'sortDirection', 'sortFoldersFirst', 'sortNatural'].includes(entity.name)) {\n else if (entity.type === 'label' && ['sorted', 'sortDirection', 'sortFoldersFirst'].includes(entity.name)) {\n else if (entity.type === 'label' && ['sorted', 'sortDirection', 'sortFoldersFirst', 'sortNatural'].includes(entity.name)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zadam/trilium/commit/d3ec9f022c6aecaa95caa2cc5691bc6235c50f01", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "function sortNotes(parentNoteId, customSortBy = 'title', reverse = false, foldersFirst = false) {\nfunction sortNotes(parentNoteId, customSortBy = 'title', reverse = false, foldersFirst = false, sortNatural = false) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zadam/trilium/commit/d3ec9f022c6aecaa95caa2cc5691bc6235c50f01", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": "\n sortNotes(parentNoteId, sortedLabel.value, sortReversed, sortFoldersFirst);\n const sortNaturalLabel = parentNote.getLabel('sortNatural');\n const sortNatural = sortNaturalLabel && sortNaturalLabel.value.toLowerCase() !== \"false\";\n sortNotes(parentNoteId, sortedLabel.value, sortReversed, sortFoldersFirst, sortNatural);\nfunction sortNotes(parentNoteId, customSortBy = 'title', reverse = false, foldersFirst = false) {\nfunction sortNotes(parentNoteId, customSortBy = 'title', reverse = false, foldersFirst = false, sortNatural = false) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zadam/trilium/commit/d3ec9f022c6aecaa95caa2cc5691bc6235c50f01", "target_edit_idx": 11, "propagatable_edit_idx": [ 9 ] }, { "input": " .filter(attr => !(attr.type === 'label' && attr.name === 'template'))\n .filter(attr => !(attr.type === 'label' && (attr.name === 'template' || attr.name === 'workspacetemplate')))\n .filter(attr => !(attr.type === 'label' && attr.name === 'template'))\n .filter(attr => !(attr.type === 'label' && (attr.name === 'template' || attr.name === 'workspacetemplate')))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zadam/trilium/commit/05231bd1c2973f89e26944e136c29a7b2442a2a4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " .bulk-assign-attributes-dialog .bulk-existing-action-list {\n .bulk-actions-dialog .bulk-existing-action-list {\n .bulk-assign-attributes-dialog .bulk-existing-action-list td {\n .bulk-actions-dialog .bulk-existing-action-list td {\n .bulk-assign-attributes-dialog .bulk-existing-action-list .button-column {\n .bulk-actions-dialog .bulk-existing-action-list .button-column {\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/zadam/trilium/commit/c727a2bc1b41c3c589b636cd8195e3b44c926024", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " if (!this.tokens.find(token => !content.includes(token))) {\n const nonMatchingToken = this.tokens.find(token =>\n !content.includes(token) &&\n (\n // in case of default fulltext search we should consider both title, attrs and content\n // so e.g. \"hello world\" should match when \"hello\" is in title and \"world\" in content\n !this.flatText\n || !becca.notes[noteId].getFlatText().includes(token)\n )\n );\n\n if (!nonMatchingToken) {\n if (!this.tokens.find(token => !content.includes(token))) {\n const nonMatchingToken = this.tokens.find(token =>\n !content.includes(token) &&\n (\n // in case of default fulltext search we should consider both title, attrs and content\n // so e.g. \"hello world\" should match when \"hello\" is in title and \"world\" in content\n !this.flatText\n || !becca.notes[noteId].getFlatText().includes(token)\n )\n );\n\n if (!nonMatchingToken) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zadam/trilium/commit/f705c432fd1dcea973413655ba9a1cbc082eb01a", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " this.allNoteSet = new NoteSet(allNotes);\n this.allNoteSetCache = new NoteSet(allNotes);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zadam/trilium/commit/e10e18e63ac102c407f132e8d5cc20152d1420db", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return this.allNoteSet;\n return this.allNoteSetCache;\n this.allNoteSet = new NoteSet(allNotes);\n this.allNoteSetCache = new NoteSet(allNotes);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zadam/trilium/commit/e10e18e63ac102c407f132e8d5cc20152d1420db", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "import { challengeTypeToTemplate } from './helpers/get-challenge-template';\nimport { getTemplate } from './helpers/get-challenge-template';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/fab633088f3d7aef9e5e9771a66ec7406bc737c6", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " const templateGenerator = challengeTypeToTemplate[options.challengeType];\n if (!templateGenerator) {\n return;\n }\n const template = getTemplate(options.challengeType);\n\n const templateGenerator = challengeTypeToTemplate[options.challengeType];\n if (!templateGenerator) {\n return;\n }\n const template = getTemplate(options.challengeType);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/fab633088f3d7aef9e5e9771a66ec7406bc737c6", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " const template = templateGenerator({ ...options, challengeId });\n createChallengeFile(options.dashedName, template, path);\n const challengeText = template({ ...options, challengeId });\n\n createChallengeFile(options.dashedName, challengeText, path);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/fab633088f3d7aef9e5e9771a66ec7406bc737c6", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " challengeFiles: null,\n files: null,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/d95962e4055ee41ed0db53c76f562a94a966115e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4, 5, 6 ] }, { "input": " const { solution, githubLink, challengeFiles } = completedProject;\n const { solution, githubLink, files } = completedProject;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/d95962e4055ee41ed0db53c76f562a94a966115e", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4, 5, 6 ] }, { "input": " if (challengeFiles) {\n if (files) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/d95962e4055ee41ed0db53c76f562a94a966115e", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 5, 6 ] }, { "input": " this.OnScriptLoad\n this.onScriptLoad\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/a45df11de1c76c2a6fac84bee3dde6cc4aea824e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " OnScriptLoad = () => {\n onScriptLoad = () => {\n this.OnScriptLoad\n this.onScriptLoad\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/a45df11de1c76c2a6fac84bee3dde6cc4aea824e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "import WorkerExecutor from '../utils/worker-executor';\nimport createWorker from '../utils/worker-executor';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/dcca74ab92947b1b2c7c8fc12f92784abf3b2c51", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " disableJSOnError\n disableJSOnError,\n isJSEnabledSelector\n disableJSOnError,\n", "class": "clone", "binary_label": 1, "regression_label": 0.15384615384615385, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/a62e459c2ab4fa3ad3947706933c52474520f7bb", "target_edit_idx": 5, "propagatable_edit_idx": [ 13 ] }, { "input": " return buildBackendChallenge(state)\n .do(frameTests)\n .ignoreElements()\n .startWith(initConsole('// running test'))\n .catch(err => disableJSOnError(err));\n return buildBackendChallenge(state).pipe(\n tap(frameTests),\n ignoreElements(),\n startWith(initConsole('// running test')),\n catchError(err => of(disableJSOnError(err)))\n );\n return buildFromFiles(state, false)\n .do(frameTests)\n .ignoreElements()\n .startWith(initConsole('// running test'))\n .catch(err => disableJSOnError(err));\n return buildFromFiles(state, false).pipe(\n tap(frameTests),\n ignoreElements(),\n startWith(initConsole('// running test')),\n catchError(err => of(disableJSOnError(err)))\n );\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/a62e459c2ab4fa3ad3947706933c52474520f7bb", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " FieldGuide.find({'name': new RegExp(fieldGuideName, 'i')}, function(err, fieldGuide) {\n FieldGuide.find({'name': new RegExp(fieldGuideName, 'i')}, function(err, fieldGuideFromMongo) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/b3929f693b116ac1bb1ddd39edc4124167df17c7", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " if (fieldGuide.length < 1) {\n if (fieldGuideFromMongo.length < 1) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/b3929f693b116ac1bb1ddd39edc4124167df17c7", "target_edit_idx": 6, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " fieldGuide = fieldGuide.pop();\n fieldGuide = fieldGuideFromMongo.pop();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/freeCodeCamp/freeCodeCamp/commit/b3929f693b116ac1bb1ddd39edc4124167df17c7", "target_edit_idx": 7, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " Cookies.set(TOKEN_COOKIE_NAME, response.token);\n Cookies.set(TOKEN_COOKIE_NAME, response.token, {\n path: '/',\n expires: 30,\n });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kamranahmedse/developer-roadmap/commit/82a44ddfef1f4f479c50ec9e028b22e2e19eb8ef", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4, 5 ] }, { "input": " Cookies.set(TOKEN_COOKIE_NAME, token);\n Cookies.set(TOKEN_COOKIE_NAME, token, {\n path: '/',\n expires: 30,\n });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kamranahmedse/developer-roadmap/commit/82a44ddfef1f4f479c50ec9e028b22e2e19eb8ef", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 5 ] }, { "input": " computedSharedDefinition.get = createComputedGetter(key)\n computedSharedDefinition.set = noop\n sharedPropertyDefinition.get = createComputedGetter(key)\n sharedPropertyDefinition.set = noop\n computedSharedDefinition.get = userDef.get\n sharedPropertyDefinition.get = userDef.get\n computedSharedDefinition.set = userDef.set\n sharedPropertyDefinition.set = userDef.set\n Object.defineProperty(target, key, computedSharedDefinition)\n Object.defineProperty(target, key, sharedPropertyDefinition)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/vuejs/vue/commit/e870e6c6afd31aac94e21573eb5522a1c4d8cc8a", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10 ] }, { "input": " computedSharedDefinition.get = userDef.get\n sharedPropertyDefinition.get = userDef.get\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vuejs/vue/commit/e870e6c6afd31aac94e21573eb5522a1c4d8cc8a", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10, 7 ] }, { "input": " Object.defineProperty(target, key, computedSharedDefinition)\n Object.defineProperty(target, key, sharedPropertyDefinition)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vuejs/vue/commit/e870e6c6afd31aac94e21573eb5522a1c4d8cc8a", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9, 7 ] }, { "input": " function createElm (vnode, insertedVnodeQueue) {\n function createElm (vnode, insertedVnodeQueue, nested) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/vuejs/vue/commit/40b93e6527d9ecdb308925114bf14cb60b36eae0", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " nodeOps.appendChild(elm, createElm(children[i], insertedVnodeQueue))\n nodeOps.appendChild(elm, createElm(children[i], insertedVnodeQueue, true))\n function createElm (vnode, insertedVnodeQueue) {\n function createElm (vnode, insertedVnodeQueue, nested) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/vuejs/vue/commit/40b93e6527d9ecdb308925114bf14cb60b36eae0", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "\tlayout(dimension: dom.IDimension): number | undefined;\n\tlayout(dimension: dom.IDimension, hasMultipleFrames: boolean): number | undefined;\n\tpublic layout(dimensions: dom.IDimension) {\n\tpublic layout(dimensions: dom.IDimension, hasMultipleFrames: boolean) {\n\tpublic layout(dimensions: dom.IDimension) {\n\tpublic layout(dimensions: dom.IDimension, hasMultipleFrames: boolean) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/4886bb58387f9176e2bca2dfc8735ab880395d10", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\tpublic layout(dimensions: dom.IDimension) {\n\tpublic layout(dimensions: dom.IDimension, hasMultipleFrames: boolean) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/4886bb58387f9176e2bca2dfc8735ab880395d10", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\t\t\t\ttopFrame.height.set(provider.layout(this.dimension)!, undefined);\n\t\t\t\ttopFrame.height.set(provider.layout(this.dimension, hasMultipleFrames)!, undefined);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/microsoft/vscode/commit/4886bb58387f9176e2bca2dfc8735ab880395d10", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "\t\t\t\t\t\ttopFrame.height.set(provider.layout(this.dimension)!, undefined);\n\t\t\t\t\t\ttopFrame.height.set(provider.layout(this.dimension, hasMultipleFrames)!, undefined);\n\t\t\tconst frameHeight = provider.layout({ height: dimension.height, width });\n\t\t\tconst frameHeight = provider.layout({ height: dimension.height, width }, !!this.currentTopFrame?.showHeader.get());\n\t\t\t\ttopFrame.height.set(provider.layout(this.dimension)!, undefined);\n\t\t\t\ttopFrame.height.set(provider.layout(this.dimension, hasMultipleFrames)!, undefined);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/microsoft/vscode/commit/4886bb58387f9176e2bca2dfc8735ab880395d10", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "\t\t\tprecondition: ContextKeyExpr.and(accessibilityHelpIsShown),\n\t\t\tprecondition: ContextKeyExpr.and(accessibilityHelpIsShown, accessibleViewHasUnassignedKeybindings),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.04, "commit_url": "https://github.com/microsoft/vscode/commit/53301ea0e6a3a21c65095f08d974b1b902bfc1f3", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\t\tprecondition: ContextKeyExpr.and(accessibilityHelpIsShown),\n\t\t\tprecondition: ContextKeyExpr.and(accessibilityHelpIsShown, accessibleViewHasAssignedKeybindings),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.04, "commit_url": "https://github.com/microsoft/vscode/commit/53301ea0e6a3a21c65095f08d974b1b902bfc1f3", "target_edit_idx": 13, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\tif (textEditorService.activeTextEditorControl?.getEditorType() === EditorType.ICodeEditor && activeUri && [Schemas.file, Schemas.vscodeRemote].includes(activeUri.scheme)) {\n\t\tif (textEditorService.activeTextEditorControl?.getEditorType() === EditorType.ICodeEditor && activeUri && [Schemas.file, Schemas.vscodeRemote, Schemas.untitled].includes(activeUri.scheme)) {\n\t\tif (textEditorService.activeTextEditorControl?.getEditorType() === EditorType.ICodeEditor && activeUri && [Schemas.file, Schemas.vscodeRemote].includes(activeUri.scheme)) {\n\t\tif (textEditorService.activeTextEditorControl?.getEditorType() === EditorType.ICodeEditor && activeUri && [Schemas.file, Schemas.vscodeRemote, Schemas.untitled].includes(activeUri.scheme)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/ead2adc1c3902695d606ef7e65f983a9f7ec3b29", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tconst content = await renderMarkdownDocument(contents, this.extensionService, this.languageService, extension.type !== ExtensionType.System, false, token);\n\t\tconst content = await renderMarkdownDocument(contents, this.extensionService, this.languageService, { shouldSanitize: extension.type !== ExtensionType.System, token });\n\t\tconst content = await renderMarkdownDocument(text, this._extensionService, this._languageService, false, undefined, undefined, this._simpleSettingRenderer);\n\t\tconst renderer = new marked.Renderer();\n\t\trenderer.html = this._simpleSettingRenderer.getHtmlRenderer();\n\n\t\tconst content = await renderMarkdownDocument(text, this._extensionService, this._languageService, { shouldSanitize: false, renderer });\n\t\t\tconst markdownContents = await renderMarkdownDocument(transformUris(contents, base), this.extensionService, this.languageService, true, true);\n\t\t\tconst markdownContents = await renderMarkdownDocument(transformUris(contents, base), this.extensionService, this.languageService, { allowUnknownProtocols: true });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/79abdbc1fcc5bb39561e411bb3bc58ca27018d84", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 10 ] }, { "input": "\t\tconst content = await renderMarkdownDocument(text, this._extensionService, this._languageService, false, undefined, undefined, this._simpleSettingRenderer);\n\t\tconst renderer = new marked.Renderer();\n\t\trenderer.html = this._simpleSettingRenderer.getHtmlRenderer();\n\n\t\tconst content = await renderMarkdownDocument(text, this._extensionService, this._languageService, { shouldSanitize: false, renderer });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/79abdbc1fcc5bb39561e411bb3bc58ca27018d84", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 10 ] }, { "input": "\t\t\tconst markdownContents = await renderMarkdownDocument(transformUris(contents, base), this.extensionService, this.languageService, true, true);\n\t\t\tconst markdownContents = await renderMarkdownDocument(transformUris(contents, base), this.extensionService, this.languageService, { allowUnknownProtocols: true });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/79abdbc1fcc5bb39561e411bb3bc58ca27018d84", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 9 ] }, { "input": "\t\t\t\tawait chatService.resendRequest(request, { noCommandDetection: false, attempt: request.attempt + 1, location: widget.location, implicitVariablesEnabled: true });\n\t\t\t\tawait chatService.resendRequest(request, { noCommandDetection: false, attempt: request.attempt + 1, location: widget.location });\n\t\t\t\tawait chatService.resendRequest(request, { noCommandDetection: true, attempt: request.attempt, location: widget.location, implicitVariablesEnabled: true });\n\t\t\t\tawait chatService.resendRequest(request, { noCommandDetection: true, attempt: request.attempt, location: widget.location });\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/6ffbf8bff214dd5ec98e541b27559e70f75bfc24", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tconst implicitVariablesEnabled = options?.implicitVariablesEnabled ?? false;\n\n\t\tconst implicitVariablesEnabled = options?.implicitVariablesEnabled ?? false;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6ffbf8bff214dd5ec98e541b27559e70f75bfc24", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tawait this._sendRequestAsync(model, model.sessionId, request.message, attempt, enableCommandDetection, implicitVariablesEnabled, defaultAgent, location, options);\n\t\tawait this._sendRequestAsync(model, model.sessionId, request.message, attempt, enableCommandDetection, defaultAgent, location, options);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6ffbf8bff214dd5ec98e541b27559e70f75bfc24", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\t...this._sendRequestAsync(model, sessionId, parsedRequest, attempt, !options?.noCommandDetection, implicitVariablesEnabled, defaultAgent, location, options),\n\t\t\t...this._sendRequestAsync(model, sessionId, parsedRequest, attempt, !options?.noCommandDetection, defaultAgent, location, options),\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6ffbf8bff214dd5ec98e541b27559e70f75bfc24", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": "\tprivate readonly universalPathsToWatch: IUniversalWatchRequest[] = [];\n\tprivate readonly universalWatchRequests: IUniversalWatchRequest[] = [];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/32111287f061d8c435b059aeba8c2de5ad71e8d1", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": "\t\tconst pathToWatch: IUniversalWatchRequest = { path: this.toFilePath(resource), excludes: opts.excludes, includes: opts.includes, recursive: opts.recursive, filter: opts.filter, correlationId: opts.correlationId };\n\t\tconst remove = insert(this.universalPathsToWatch, pathToWatch);\n\t\tconst request: IUniversalWatchRequest = {\n\t\t\tpath: this.toWatchPath(resource),\n\t\t\texcludes: opts.excludes,\n\t\t\tincludes: opts.includes,\n\t\t\trecursive: opts.recursive,\n\t\t\tfilter: opts.filter,\n\t\t\tcorrelationId: opts.correlationId\n\t\t};\n\t\tconst remove = insert(this.universalWatchRequests, request);\n\t\tconst pathToWatch: INonRecursiveWatchRequest = { path: this.toFilePath(resource), excludes: opts.excludes, includes: opts.includes, recursive: false, filter: opts.filter, correlationId: opts.correlationId };\n\t\tconst remove = insert(this.nonRecursivePathsToWatch, pathToWatch);\n\t\tconst request: INonRecursiveWatchRequest = {\n\t\t\tpath: this.toWatchPath(resource),\n\t\t\texcludes: opts.excludes,\n\t\t\tincludes: opts.includes,\n\t\t\trecursive: false,\n\t\t\tfilter: opts.filter,\n\t\t\tcorrelationId: opts.correlationId\n\t\t};\n\t\tconst remove = insert(this.nonRecursiveWatchRequests, request);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/32111287f061d8c435b059aeba8c2de5ad71e8d1", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\tfor (const request of this.universalPathsToWatch) {\n\t\t\tfor (const request of this.universalWatchRequests) {\n\tprivate readonly universalPathsToWatch: IUniversalWatchRequest[] = [];\n\tprivate readonly universalWatchRequests: IUniversalWatchRequest[] = [];\n\t\t\tfor (const request of this.universalPathsToWatch) {\n\t\t\tfor (const request of this.universalWatchRequests) {\n\t\treturn this.universalWatcher.watch(this.universalPathsToWatch);\n\t\treturn this.universalWatcher.watch(this.universalWatchRequests);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/32111287f061d8c435b059aeba8c2de5ad71e8d1", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5, 6 ] }, { "input": "\tprivate readonly nonRecursivePathsToWatch: INonRecursiveWatchRequest[] = [];\n\tprivate readonly nonRecursiveWatchRequests: INonRecursiveWatchRequest[] = [];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/32111287f061d8c435b059aeba8c2de5ad71e8d1", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\treturn this.nonRecursiveWatcher.watch(this.nonRecursivePathsToWatch);\n\t\treturn this.nonRecursiveWatcher.watch(this.nonRecursiveWatchRequests);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/32111287f061d8c435b059aeba8c2de5ad71e8d1", "target_edit_idx": 9, "propagatable_edit_idx": [ 7 ] }, { "input": "\tprotected _saneDescription?: string;\n\tprivate _saneDescription?: string;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/cb9524cf4b3252559442979f20cb1c1300b297e8", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\tprotected _saneTooltip?: string | IMarkdownString | HTMLElement;\n\tprivate _saneTooltip?: string | IMarkdownString | HTMLElement;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/cb9524cf4b3252559442979f20cb1c1300b297e8", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\tprivate buildStepMarkdownDescription(container: HTMLElement, text: LinkedText[]) {\n\tprivate buildMarkdownDescription(container: HTMLElement, text: LinkedText[]) {\n\t\t\t\t\tthis.buildStepMarkdownDescription(container, step.description);\n\t\t\t\t\tthis.buildMarkdownDescription(container, step.description);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/a09d363346b1d784bf87873f733b84c0cf26c518", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\tthis.buildStepMarkdownDescription(container, step.description);\n\t\t\t\t\tthis.buildMarkdownDescription(container, step.description);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/a09d363346b1d784bf87873f733b84c0cf26c518", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tthis._register(languageFeaturesService.documentOnDropEditProvider.register('*', new DefaultTextProvider()));\n\t\tthis._register(languageFeaturesService.documentOnDropEditProvider.register('*', new DefaultTextPasteOrDropEditProvider()));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/654c74db64a2e7f12c92efc7dc5744db4bede8d9", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\tthis._register(languageFeaturesService.documentPasteEditProvider.register('*', new DefaultTextProvider()));\n\t\tthis._register(languageFeaturesService.documentPasteEditProvider.register('*', new DefaultTextPasteOrDropEditProvider()));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/654c74db64a2e7f12c92efc7dc5744db4bede8d9", "target_edit_idx": 11, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\t\tconst command = prepareCommand(shell, args.args, !!args.argsCanBeInterpretedByShell, cwdForPrepareCommand, args.env);\n\t\t\tconst command = prepareCommand(shell, args.args, !!args.argsCanBeInterpretedByShell, cwdForPrepareCommand);\nexport function prepareCommand(shell: string, args: string[], argsCanBeInterpretedByShell: boolean, cwd?: string, env?: { [key: string]: string | null }): string {\nexport function prepareCommand(shell: string, args: string[], argsCanBeInterpretedByShell: boolean, cwd?: string): string {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/6b6da7928db8f9b00ba8c1551e955c068ebaef76", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\tprivate parentElement: HTMLElement;\n\tprivate _container: HTMLElement;\n\tget container() { return this._container; }\n\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/microsoft/vscode/commit/1ade6d25cb230c85b7e9fb0408e1af4af8c828bf", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 6, 7 ] }, { "input": "\t\tthis.parentElement = options.container;\n\t\tthis._container = options.container;\n\tprivate parentElement: HTMLElement;\n\tprivate _container: HTMLElement;\n\tget container() { return this._container; }\n\n\t\tconst container = dom.append(this.parentElement, $('.quick-input-widget.show-file-icons'));\n\t\tconst container = dom.append(this._container, $('.quick-input-widget.show-file-icons'));\n\t\t\tthis.parentElement = container;\n\t\t\tdom.append(this.parentElement, this.ui.container);\n\t\t\tthis._container = container;\n\t\t\tdom.append(this._container, this.ui.container);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/1ade6d25cb230c85b7e9fb0408e1af4af8c828bf", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 6, 7 ] }, { "input": "\t\tconst container = dom.append(this.parentElement, $('.quick-input-widget.show-file-icons'));\n\t\tconst container = dom.append(this._container, $('.quick-input-widget.show-file-icons'));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/1ade6d25cb230c85b7e9fb0408e1af4af8c828bf", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 7 ] }, { "input": "\t\t\tthis.parentElement = container;\n\t\t\tdom.append(this.parentElement, this.ui.container);\n\t\t\tthis._container = container;\n\t\t\tdom.append(this._container, this.ui.container);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/microsoft/vscode/commit/1ade6d25cb230c85b7e9fb0408e1af4af8c828bf", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 2, 6 ] }, { "input": "\tset valueSelection(valueSelection: Readonly<[number, number]>) {\n\tget valueSelection() {\n\t\tconst selection = this.ui.inputBox.getSelection();\n\t\tif (!selection) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn [selection.start, selection.end];\n\t}\n\n\tset valueSelection(valueSelection: Readonly<[number, number]> | undefined) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/3154b5f948de18462d34394aef216e585e25e7ba", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tthis._register(this.editorGroupsContainer.onDidChangeEditorPartOptions(e => this.onDidChangeEditorPartOptions(e)));\n\t\tthis._register(this.editorGroupService.onDidChangeEditorPartOptions(e => this.onDidChangeEditorPartOptions(e)));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2608695652173913, "commit_url": "https://github.com/microsoft/vscode/commit/b94347eebfc0484b23ee7bb011b8a7921cd8dfa9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": "\t\t\t!this.editorGroupsContainer.partOptions.limit?.enabled ||\n\t\t\ttypeof this.editorGroupsContainer.partOptions.limit.value !== 'number' ||\n\t\t\tthis.editorGroupsContainer.partOptions.limit.value <= 0\n\t\t\t!this.editorGroupService.partOptions.limit?.enabled ||\n\t\t\ttypeof this.editorGroupService.partOptions.limit.value !== 'number' ||\n\t\t\tthis.editorGroupService.partOptions.limit.value <= 0\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.17391304347826086, "commit_url": "https://github.com/microsoft/vscode/commit/b94347eebfc0484b23ee7bb011b8a7921cd8dfa9", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6 ] }, { "input": "\t\tconst limit = this.editorGroupsContainer.partOptions.limit.value;\n\t\tconst limit = this.editorGroupService.partOptions.limit.value;\n\t\tthis._register(this.editorGroupsContainer.onDidChangeEditorPartOptions(e => this.onDidChangeEditorPartOptions(e)));\n\t\tthis._register(this.editorGroupService.onDidChangeEditorPartOptions(e => this.onDidChangeEditorPartOptions(e)));\n\t\t\t!this.editorGroupsContainer.partOptions.limit?.enabled ||\n\t\t\ttypeof this.editorGroupsContainer.partOptions.limit.value !== 'number' ||\n\t\t\tthis.editorGroupsContainer.partOptions.limit.value <= 0\n\t\t\t!this.editorGroupService.partOptions.limit?.enabled ||\n\t\t\ttypeof this.editorGroupService.partOptions.limit.value !== 'number' ||\n\t\t\tthis.editorGroupService.partOptions.limit.value <= 0\n\t\tif (this.editorGroupsContainer.partOptions.limit?.perEditorGroup) {\n\t\tif (this.editorGroupService.partOptions.limit?.perEditorGroup) {\n\t\tif (this.editorGroupsContainer.partOptions.limit?.excludeDirty) {\n\t\tif (this.editorGroupService.partOptions.limit?.excludeDirty) {\n\t\treturn this.editorGroupsContainer.partOptions.editorActionsLocation === 'titleBar' ||\n\t\treturn this.editorGroupService.partOptions.editorActionsLocation === 'titleBar' ||\n\t\t\t\tthis.editorGroupsContainer.partOptions.editorActionsLocation === 'default' &&\n\t\t\t\tthis.editorGroupsContainer.partOptions.showTabs === 'none'\n\t\t\t\tthis.editorGroupService.partOptions.editorActionsLocation === 'default' &&\n\t\t\t\tthis.editorGroupService.partOptions.showTabs === 'none'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2608695652173913, "commit_url": "https://github.com/microsoft/vscode/commit/b94347eebfc0484b23ee7bb011b8a7921cd8dfa9", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6 ] }, { "input": "\t\t\t\tthis.editorGroupsContainer.partOptions.editorActionsLocation === 'default' &&\n\t\t\t\tthis.editorGroupsContainer.partOptions.showTabs === 'none'\n\t\t\t\tthis.editorGroupService.partOptions.editorActionsLocation === 'default' &&\n\t\t\t\tthis.editorGroupService.partOptions.showTabs === 'none'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/microsoft/vscode/commit/b94347eebfc0484b23ee7bb011b8a7921cd8dfa9", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5 ] }, { "input": "\tdisableHideOnMouseDown?: boolean;\n\tdisableHideOnClick?: boolean;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/12443ca030f93843ca5e9dfb5682ad92d2c6400c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 5, 6 ] }, { "input": "\t\tif (!options?.disableHideOnMouseDown) {\n\t\tif (!options?.disableHideOnClick) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/12443ca030f93843ca5e9dfb5682ad92d2c6400c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 5, 6 ] }, { "input": "import { searchDetailsIcon, searchOpenInFileIcon, searchSeeMoreIcon } from 'vs/workbench/contrib/search/browser/searchIcons';\nimport { searchDetailsIcon, searchOpenInFileIcon, searchActivityBarIcon } from 'vs/workbench/contrib/search/browser/searchIcons';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/d2a02721bda2db82641c143b5deea699a4ef005c", "target_edit_idx": 1, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "\t\t\t\t\t\ticonClass: ThemeIcon.asClassName(searchSeeMoreIcon),\n\t\t\t\t\t\ticonClass: ThemeIcon.asClassName(searchActivityBarIcon),\nimport { searchDetailsIcon, searchOpenInFileIcon, searchSeeMoreIcon } from 'vs/workbench/contrib/search/browser/searchIcons';\nimport { searchDetailsIcon, searchOpenInFileIcon, searchActivityBarIcon } from 'vs/workbench/contrib/search/browser/searchIcons';\nexport const searchSeeMoreIcon = registerIcon('search-see-more', Codicon.arrowRight, localize('searchSeeMoreIcon', 'Icon to view more context in the search view.'));\nexport const searchActivityBarIcon = registerIcon('search-see-more', Codicon.arrowRight, localize('searchSeeMoreIcon', 'Icon to view more context in the search view.'));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/d2a02721bda2db82641c143b5deea699a4ef005c", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 6 ] }, { "input": "\t\twalkTreeAndAnnotateReferenceLinks(result.element);\n\t\twalkTreeAndAnnotateReferenceLinks(result.element, this.keybindingService);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/b141c5accd99034811099fb30ae856e997db14dc", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tthis._updateLightBulbTitleAndIcon();\n\t\t\tthis.updateLightBulbTitleAndIcon();\n\t\tthis._updateLightBulbTitleAndIcon();\n\t\tthis.updateLightBulbTitleAndIcon();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/4d4bcb9b346aed18bc8aa304ee8bda18ba51ca41", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\tid: MenuId.ChatContext\n\t\t\t\t\tid: MenuId.ChatContext,\n\t\t\t\t\tgroup: 'copy',\n\t\t\t\t\tid: MenuId.ChatContext\n\t\t\t\t\tid: MenuId.ChatContext,\n\t\t\t\t\tgroup: 'copy',\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/956bfb6a02107c785ed5bdbc1c9deaeda2a080fc", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tif (this.groupsView.groups.length === 1) {\n\t\tif (!this.canLock()) {\n\t\tif (this.groupsView.groups.length === 1) {\n\t\tif (!this.canLock()) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/d8bca5efc201a1661ada3c116f268f14b6deaf8f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "import { IWorkbenchAssignmentService } from 'vs/workbench/services/assignment/common/assignmentService';\nimport { IWorkbenchAssignmentService } from 'vs/workbench/services/assignment/common/assignmentService';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/89e6f7ec9e1bbd0a51b9c646acecef18b1157ba2", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tconst toggleData = await getExperimentalExtensionToggleData(this.extensionGalleryService, this.workbenchAssignmentService, this.environmentService, this.productService);\n\t\tconst toggleData = await getExperimentalExtensionToggleData(this.extensionGalleryService, this.environmentService, this.productService);\nexport async function getExperimentalExtensionToggleData(extensionGalleryService: IExtensionGalleryService, workbenchAssignmentService: IWorkbenchAssignmentService, environmentService: IEnvironmentService, productService: IProductService): Promise {\nexport async function getExperimentalExtensionToggleData(extensionGalleryService: IExtensionGalleryService, environmentService: IEnvironmentService, productService: IProductService): Promise {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/89e6f7ec9e1bbd0a51b9c646acecef18b1157ba2", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\treadonly onDidResize: Event;\n\treadonly onWillLayout: Event;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/8988b0fd433594c15563af2385b2bf99024a16f6", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 7, 8, 9 ] }, { "input": "\t\tconst { onDidResize, onDidClose } = this.registerListeners(auxiliaryWindow, container, disposables);\n\t\tconst { onWillLayout, onDidClose } = this.registerListeners(auxiliaryWindow, container, disposables);\n\t\tdisposables.add(auxiliaryWindow.onDidResize(dimension => editorPart.layout(dimension.width, dimension.height, 0, 0)));\n\n\t\tdisposables.add(auxiliaryWindow.onWillLayout(dimension => editorPart.layout(dimension.width, dimension.height, 0, 0)));\n\t\tauxiliaryWindow.layout();\n\treadonly onDidResize: Event;\n\treadonly onWillLayout: Event;\n\t\t\tonDidResize: onDidResize.event,\n\t\t\tonWillLayout: onWillLayout.event,\n\t\tconst onDidResize = disposables.add(new Emitter());\n\t\tconst onWillLayout = disposables.add(new Emitter());\n\t\t\tonDidResize.fire(dimension);\n\t\t\tonWillLayout.fire(dimension);\n\t\treturn { onDidResize, onDidClose };\n\t\treturn { onWillLayout, onDidClose };\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/8988b0fd433594c15563af2385b2bf99024a16f6", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 4, 7, 8, 9 ] }, { "input": "\t\t\tonDidResize: onDidResize.event,\n\t\t\tonWillLayout: onWillLayout.event,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/8988b0fd433594c15563af2385b2bf99024a16f6", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3, 7, 8, 9 ] }, { "input": "\t\tconst onDidResize = disposables.add(new Emitter());\n\t\tconst onWillLayout = disposables.add(new Emitter());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/8988b0fd433594c15563af2385b2bf99024a16f6", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 3, 4, 8, 9 ] }, { "input": "\t\t\tonDidResize.fire(dimension);\n\t\t\tonWillLayout.fire(dimension);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/8988b0fd433594c15563af2385b2bf99024a16f6", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 3, 4, 7, 9 ] }, { "input": "export type IDialogResult = IConfirmationResult | IInputResult | IPromptResult;\nexport interface IAsyncPromptResult extends ICheckboxResult {\n\n\t/**\n\t * The result of the `IPromptButton` that was pressed or `undefined` if none.\n\t */\n\treadonly result?: Promise;\n}\n\nexport interface IAsyncPromptResultWithCancel extends IAsyncPromptResult {\n\treadonly result: Promise;\n}\n\nexport type IDialogResult = IConfirmationResult | IInputResult | IAsyncPromptResult;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/microsoft/vscode/commit/f7d2b9148670bdcbaf3330bf3becbff3692a6e98", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 5, 6, 7, 8 ] }, { "input": "\tprompt(prompt: IPrompt): Promise>;\n\tprompt(prompt: IPrompt): Promise>;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/microsoft/vscode/commit/f7d2b9148670bdcbaf3330bf3becbff3692a6e98", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4, 5, 6, 7, 8 ] }, { "input": "\tabstract prompt(prompt: IPrompt): Promise>;\n\tabstract prompt(prompt: IPrompt): Promise>;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/microsoft/vscode/commit/f7d2b9148670bdcbaf3330bf3becbff3692a6e98", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 5, 6, 7, 8 ] }, { "input": "import { IConfirmation, IConfirmationResult, IInputResult, ICheckbox, IInputElement, ICustomDialogOptions, IInput, AbstractDialogHandler, DialogType, IPrompt, IPromptResult } from 'vs/platform/dialogs/common/dialogs';\nimport { IConfirmation, IConfirmationResult, IInputResult, ICheckbox, IInputElement, ICustomDialogOptions, IInput, AbstractDialogHandler, DialogType, IPrompt, IAsyncPromptResult } from 'vs/platform/dialogs/common/dialogs';\nexport type IDialogResult = IConfirmationResult | IInputResult | IPromptResult;\nexport interface IAsyncPromptResult extends ICheckboxResult {\n\n\t/**\n\t * The result of the `IPromptButton` that was pressed or `undefined` if none.\n\t */\n\treadonly result?: Promise;\n}\n\nexport interface IAsyncPromptResultWithCancel extends IAsyncPromptResult {\n\treadonly result: Promise;\n}\n\nexport type IDialogResult = IConfirmationResult | IInputResult | IAsyncPromptResult;\n\tprompt(prompt: IPrompt): Promise>;\n\tprompt(prompt: IPrompt): Promise>;\n\tabstract prompt(prompt: IPrompt): Promise>;\n\tabstract prompt(prompt: IPrompt): Promise>;\n\tasync prompt(prompt: IPrompt): Promise> {\n\tasync prompt(prompt: IPrompt): Promise> {\nimport { AbstractDialogHandler, IConfirmation, IConfirmationResult, IPrompt, IPromptResult } from 'vs/platform/dialogs/common/dialogs';\nimport { AbstractDialogHandler, IConfirmation, IConfirmationResult, IPrompt, IAsyncPromptResult } from 'vs/platform/dialogs/common/dialogs';\n\tasync prompt(prompt: IPrompt): Promise> {\n\tasync prompt(prompt: IPrompt): Promise> {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f7d2b9148670bdcbaf3330bf3becbff3692a6e98", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 4, 6, 7, 8 ] }, { "input": "\tasync prompt(prompt: IPrompt): Promise> {\n\tasync prompt(prompt: IPrompt): Promise> {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f7d2b9148670bdcbaf3330bf3becbff3692a6e98", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 4, 5, 7, 8 ] }, { "input": "import { AbstractDialogHandler, IConfirmation, IConfirmationResult, IPrompt, IPromptResult } from 'vs/platform/dialogs/common/dialogs';\nimport { AbstractDialogHandler, IConfirmation, IConfirmationResult, IPrompt, IAsyncPromptResult } from 'vs/platform/dialogs/common/dialogs';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f7d2b9148670bdcbaf3330bf3becbff3692a6e98", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 4, 5, 6, 8 ] }, { "input": "\t\t\treturn this.openTestView();\n\t\t\treturn this.openResultsView();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/b6bc92b3a9b0cbd522bfabf6fcb9ea619ad8c320", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\tthis.openTestView();\n\t\t\t\tthis.openResultsView();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/b6bc92b3a9b0cbd522bfabf6fcb9ea619ad8c320", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "export function getHoverAriaLabel(shouldHaveHint?: boolean, keybinding?: any): string | undefined {\n\tif (shouldHaveHint) {\n\t\tconst hint = keybinding ? localize('hoverAccessibleViewHint', \"Inspect this in the accessible view with {0}\", keybinding) : localize('hoverAccessibleViewHintNoKb', \"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding\");\n\t\treturn hint;\n\t}\n\treturn;\nexport function getHoverAriaLabel(shouldHaveHint?: boolean, keybinding?: string | null): string | undefined {\n\treturn shouldHaveHint ? localize('acessibleViewHint', \"Inspect this in the accessible view with {0}.\", keybinding) : localize('acessibleViewHintNoKbOpen', \"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding.\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/bc1404e5db5833d28cbdd94fa79147d6dfc0436a", "target_edit_idx": 0, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "\t\t\tthis._editorWidget.updateOptions({ ariaLabel: provider.next && provider.previous ? localize('accessibleViewAriaLabelWithNav', \"{0} {1}\", provider.options.ariaLabel, this._getNavigationAriaHint(provider.verbositySettingKey)) : localize('accessibleViewAriaLabel', \"{0}\", provider.options.ariaLabel) });\n\t\t\tlet ariaLabel = undefined;\n\t\t\tconst label = provider.options.ariaLabel;\n\t\t\tconst navigationHint = this._getNavigationAriaHint(provider.verbositySettingKey);\n\t\t\tconst disableHint = this._getDisableVerbosityHint(provider.verbositySettingKey);\n\t\t\tif (label && navigationHint && disableHint) {\n\t\t\t\tariaLabel = localize('ariaLabelAll', '{0}, {1}, {2}', label, navigationHint, disableHint);\n\t\t\t} else if (label && navigationHint) {\n\t\t\t\tariaLabel = localize('ariaLabelLabelNavigation', '{0}, {1}', label, navigationHint);\n\t\t\t} else if (label && disableHint) {\n\t\t\t\tariaLabel = localize('ariaLabelLabelDisable', '{0}, {1}', label, disableHint);\n\t\t\t} else if (navigationHint && disableHint) {\n\t\t\t\tariaLabel = localize('ariaLabelNavigationDisable', '{0}, {1}', navigationHint, disableHint);\n\t\t\t}\n\t\t\tthis._editorWidget.updateOptions({ ariaLabel });\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2608695652173913, "commit_url": "https://github.com/microsoft/vscode/commit/bc1404e5db5833d28cbdd94fa79147d6dfc0436a", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 6 ] }, { "input": "\t\t\thint = (nextKeybinding && previousKeybinding) ? localize('chatAccessibleViewNextPreviousHint', \"Show the next {0} or previous {1} item in the accessible view\", nextKeybinding, previousKeybinding) : localize('chatAccessibleViewNextPreviousHintNoKb', \"Show the next or previous item in the accessible view by configuring keybindings for Show Next / Previous in Accessible View\");\n\t\t\thint = (nextKeybinding && previousKeybinding) ? localize('accessibleViewNextPreviousHint', \"Show the next {0} or previous {1} item in the accessible view\", nextKeybinding, previousKeybinding) : localize('chatAccessibleViewNextPreviousHintNoKb', \"Show the next or previous item in the accessible view by configuring keybindings for Show Next / Previous in Accessible View\");\nexport function getHoverAriaLabel(shouldHaveHint?: boolean, keybinding?: any): string | undefined {\n\tif (shouldHaveHint) {\n\t\tconst hint = keybinding ? localize('hoverAccessibleViewHint', \"Inspect this in the accessible view with {0}\", keybinding) : localize('hoverAccessibleViewHintNoKb', \"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding\");\n\t\treturn hint;\n\t}\n\treturn;\nexport function getHoverAriaLabel(shouldHaveHint?: boolean, keybinding?: string | null): string | undefined {\n\treturn shouldHaveHint ? localize('acessibleViewHint', \"Inspect this in the accessible view with {0}.\", keybinding) : localize('acessibleViewHintNoKbOpen', \"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding.\");\n\t\t\tthis._editorWidget.updateOptions({ ariaLabel: provider.next && provider.previous ? localize('accessibleViewAriaLabelWithNav', \"{0} {1}\", provider.options.ariaLabel, this._getNavigationAriaHint(provider.verbositySettingKey)) : localize('accessibleViewAriaLabel', \"{0}\", provider.options.ariaLabel) });\n\t\t\tlet ariaLabel = undefined;\n\t\t\tconst label = provider.options.ariaLabel;\n\t\t\tconst navigationHint = this._getNavigationAriaHint(provider.verbositySettingKey);\n\t\t\tconst disableHint = this._getDisableVerbosityHint(provider.verbositySettingKey);\n\t\t\tif (label && navigationHint && disableHint) {\n\t\t\t\tariaLabel = localize('ariaLabelAll', '{0}, {1}, {2}', label, navigationHint, disableHint);\n\t\t\t} else if (label && navigationHint) {\n\t\t\t\tariaLabel = localize('ariaLabelLabelNavigation', '{0}, {1}', label, navigationHint);\n\t\t\t} else if (label && disableHint) {\n\t\t\t\tariaLabel = localize('ariaLabelLabelDisable', '{0}, {1}', label, disableHint);\n\t\t\t} else if (navigationHint && disableHint) {\n\t\t\t\tariaLabel = localize('ariaLabelNavigationDisable', '{0}, {1}', navigationHint, disableHint);\n\t\t\t}\n\t\t\tthis._editorWidget.updateOptions({ ariaLabel });\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3, "commit_url": "https://github.com/microsoft/vscode/commit/bc1404e5db5833d28cbdd94fa79147d6dfc0436a", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 5 ] }, { "input": "import { IMouseEvent } from 'vs/base/browser/mouseEvent';\nimport { StandardMouseEvent } from 'vs/base/browser/mouseEvent';\nimport { IMouseEvent } from 'vs/base/browser/mouseEvent';\nimport { StandardMouseEvent } from 'vs/base/browser/mouseEvent';\n\tgetAnchor(): HTMLElement | IMouseEvent | IAnchor;\n\t/**\n\t * The anchor where to position the context view.\n\t * Use a `HTMLElement` to position the view at the element,\n\t * a `StandardMouseEvent` to position it at the mouse position\n\t * or an `IAnchor` to position it at a specific location.\n\t */\n\tgetAnchor(): HTMLElement | StandardMouseEvent | IAnchor;\nimport { IMouseEvent } from 'vs/base/browser/mouseEvent';\nimport { StandardMouseEvent } from 'vs/base/browser/mouseEvent';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/5055118e96f96b6d135c651588dd4462fc3613e4", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "\tgetAnchor(): HTMLElement | IMouseEvent | OmitOptional;\n\t/**\n\t * The anchor where to position the context view.\n\t * Use a `HTMLElement` to position the view at the element,\n\t * a `StandardMouseEvent` to position it at the mouse position\n\t * or an `ContextMenuLocation` to position it at a specific location.\n\t */\n\tgetAnchor(): HTMLElement | StandardMouseEvent | ContextMenuLocation;\n\tgetAnchor(): HTMLElement | IMouseEvent | OmitOptional;\n\t/**\n\t * The anchor where to position the context view.\n\t * Use a `HTMLElement` to position the view at the element,\n\t * a `StandardMouseEvent` to position it at the mouse position\n\t * or an `IAnchor` to position it at a specific location.\n\t */\n\tgetAnchor(): HTMLElement | StandardMouseEvent | IAnchor;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/5055118e96f96b6d135c651588dd4462fc3613e4", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": "import { IMouseEvent } from 'vs/base/browser/mouseEvent';\nimport { StandardMouseEvent } from 'vs/base/browser/mouseEvent';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/5055118e96f96b6d135c651588dd4462fc3613e4", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4, 5 ] }, { "input": "\tgetAnchor(): HTMLElement | IMouseEvent | IAnchor;\n\t/**\n\t * The anchor where to position the context view.\n\t * Use a `HTMLElement` to position the view at the element,\n\t * a `StandardMouseEvent` to position it at the mouse position\n\t * or an `IAnchor` to position it at a specific location.\n\t */\n\tgetAnchor(): HTMLElement | StandardMouseEvent | IAnchor;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/5055118e96f96b6d135c651588dd4462fc3613e4", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 3, 5 ] }, { "input": "\t#disposed = false;\n\tprivate _disposed = false;\n\t#isDisposed = false;\n\tprivate _disposed = false;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/microsoft/vscode/commit/ff81f6cb82c29590844e8d5fd07f498bbea7692e", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tthis.#disposed = true;\n\t\tthis._disposed = true;\n\t\tif (this.#disposed) {\n\t\tif (this._disposed) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/ff81f6cb82c29590844e8d5fd07f498bbea7692e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tif (this.#isDisposed) {\n\t\tif (this._disposed) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/ff81f6cb82c29590844e8d5fd07f498bbea7692e", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": "\t\tthis.#isDisposed = true;\n\t\tthis._disposed = true;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/ff81f6cb82c29590844e8d5fd07f498bbea7692e", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6, 7 ] }, { "input": "\t\tif (!skipNotify && !this.#isDisposed) {\n\t\tif (!skipNotify && !this._disposed) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/ff81f6cb82c29590844e8d5fd07f498bbea7692e", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": "\t\tthis.#resolvePromise?.cancel();\n\t\tthis.#resolvePromise = undefined;\n\t\tthis._resolvePromise?.cancel();\n\t\tthis._resolvePromise = undefined;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/microsoft/vscode/commit/ff81f6cb82c29590844e8d5fd07f498bbea7692e", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\tif (!this.#resolved) {\n\t\t\tthis.#resolved = true;\n\t\t\tthis.#resolvePromise = createCancelablePromise(token => this._webviewWorkbenchService.resolveWebview(this, token));\n\t\tif (!this._resolved) {\n\t\t\tthis._resolved = true;\n\t\t\tthis._resolvePromise = createCancelablePromise(token => this._webviewWorkbenchService.resolveWebview(this, token));\n\t\tother.#resolved = this.#resolved;\n\t\tother._resolved = this._resolved;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/microsoft/vscode/commit/ff81f6cb82c29590844e8d5fd07f498bbea7692e", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": "\t\t\t\tawait this.#resolvePromise;\n\t\t\t\tawait this._resolvePromise;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/ff81f6cb82c29590844e8d5fd07f498bbea7692e", "target_edit_idx": 11, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\tother.#resolved = this.#resolved;\n\t\tother._resolved = this._resolved;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/microsoft/vscode/commit/ff81f6cb82c29590844e8d5fd07f498bbea7692e", "target_edit_idx": 12, "propagatable_edit_idx": [ 10 ] }, { "input": "\tpublic convertModelPositionToViewPosition(_modelLineNumber: number, _modelColumn: number, affinity: PositionAffinity = PositionAffinity.None): Position {\n\tpublic convertModelPositionToViewPosition(_modelLineNumber: number, _modelColumn: number, affinity: PositionAffinity = PositionAffinity.None, allowZeroLineNumber: boolean = false): Position {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/microsoft/vscode/commit/ccf1d56201aad88aaf06c09918c0cf5fc72b2e6d", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4 ] }, { "input": "\t\t\tconst dirtyCountBeforeSave = this.workingCopyService.dirtyCount;\n\t\t\tconst needToBeSavedCount = this.workingCopyService.dirtyCount;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/186d20e0daa069a89eedb4d83d04c2e530a8adaf", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\tconst savedWorkingCopies = dirtyCountBeforeSave - this.workingCopyService.dirtyCount;\n\t\t\tconst savedWorkingCopies = needToBeSavedCount - this.workingCopyService.dirtyCount;\n\t\t\tconst dirtyCountBeforeSave = this.workingCopyService.dirtyCount;\n\t\t\tconst needToBeSavedCount = this.workingCopyService.dirtyCount;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/186d20e0daa069a89eedb4d83d04c2e530a8adaf", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": "\tprotected abstract getAdditionalCommandPicks(allPicks: ICommandQuickPick[], picksSoFar: ICommandQuickPick[], filter: string, token: CancellationToken): Promise>;\n\tprotected abstract getAdditionalCommandPicks(allPicks: ICommandQuickPick[], picksSoFar: ICommandQuickPick[], filter: string, token: CancellationToken): Promise>;\n\tprotected async getAdditionalCommandPicks(allPicks: ICommandQuickPick[], picksSoFar: ICommandQuickPick[], filter: string, token: CancellationToken): Promise {\n\tprotected async getAdditionalCommandPicks(allPicks: ICommandQuickPick[], picksSoFar: ICommandQuickPick[], filter: string, token: CancellationToken): Promise> {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/c32c5fec2f5d07936f146370dbcd21d38ce9f80c", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\tprivate targetPlaform: TargetPlatform = TargetPlatform.UNKNOWN;\n\tprivate targetPlatform: TargetPlatform = TargetPlatform.UNKNOWN;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/9608bd186ccb31493fbc532ecd33220b093338a8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\tthis.targetPlaform = await this.extensionManagementService.getTargetPlatform();\n\t\tthis.targetPlatform = await this.extensionManagementService.getTargetPlatform();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/9608bd186ccb31493fbc532ecd33220b093338a8", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "\t\tconst canInstall = galleryExtension.allTargetPlatforms.some(targetPlatform => isTargetPlatformCompatible(targetPlatform, galleryExtension.allTargetPlatforms, this.targetPlaform));\n\t\tconst canInstall = galleryExtension.allTargetPlatforms.some(targetPlatform => isTargetPlatformCompatible(targetPlatform, galleryExtension.allTargetPlatforms, this.targetPlatform));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/9608bd186ccb31493fbc532ecd33220b093338a8", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "const enableVerboseLayoutTracing = false;\nconst forceVerboseLayoutTracing = false;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/99002e1d0104dec40d2fb038a604dd5b432bcd0f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\tif (enableVerboseLayoutTracing) {\n\t\tif (forceVerboseLayoutTracing) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/99002e1d0104dec40d2fb038a604dd5b432bcd0f", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "\tgetBreakpoints(filter?: { uri?: uri; lineNumber?: number; column?: number; enabledOnly?: boolean }): ReadonlyArray;\n\tgetBreakpoints(filter?: { uri?: uri; originalUri?: uri; lineNumber?: number; column?: number; enabledOnly?: boolean }): ReadonlyArray;\n\tgetBreakpoints(filter?: { uri?: uri; lineNumber?: number; column?: number; enabledOnly?: boolean }): IBreakpoint[] {\n\tgetBreakpoints(filter?: { uri?: uri; originalUri?: uri; lineNumber?: number; column?: number; enabledOnly?: boolean }): IBreakpoint[] {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/b0b73ee333534add58d2fe48dc48b46b3533a221", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": "export function fromNow(date: number | Date, appendAgoLabel?: boolean, useFullTimeWords?: boolean): string {\n/**\n * Create a localized of the time between now and the specified date.\n * @param date The date to generate the difference from.\n * @param appendAgoLabel Whether to append the \" ago\" to the end.\n * @param useFullTimeWords Whether to use full words (eg. seconds) instead of\n * shortened (eg. secs).\n * @param disallowNow Whether to disallow the string \"now\" when the difference\n * is less than 30 seconds.\n */\nexport function fromNow(date: number | Date, appendAgoLabel?: boolean, useFullTimeWords?: boolean, disallowNow?: boolean): string {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/a25db44d1d2ae2839a4224a56af7fe178bcfbb7c", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\tconst d = fromNow(last, true);\n\t\t\tconst d = fromNow(last, true, undefined, true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/a25db44d1d2ae2839a4224a56af7fe178bcfbb7c", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\taction: IAction;\n\taction: ITerminalAction;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/392aa77168254170ce87fe6c9ce951b3b27f4887", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tconstructor(action: IAction, type: string, source: string, title?: string, disabled?: boolean) {\n\tconstructor(action: ITerminalAction, type: string, source: string, title?: string, disabled?: boolean) {\n\taction: IAction;\n\taction: ITerminalAction;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/392aa77168254170ce87fe6c9ce951b3b27f4887", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "// VSCODE_GLOBALS: node_modules\nglobalThis._VSCODE_NODE_MODULES = new Proxy(Object.create(null), { get: (_target, mod) => require(String(mod)) });\n\n// VSCODE_GLOBALS: package/product.json\nglobalThis._VSCODE_PRODUCT_JSON = require('../product.json');\nglobalThis._VSCODE_PACKAGE_JSON = require('../package.json');\n\n\t// VSCODE_GLOBALS: node_modules\n\tglobalThis._VSCODE_NODE_MODULES = new Proxy(Object.create(null), { get: (_target, mod) => require(String(mod)) });\n\n\t// VSCODE_GLOBALS: package/product.json\n\tglobalThis._VSCODE_PRODUCT_JSON = require('../product.json');\n\tglobalThis._VSCODE_PACKAGE_JSON = require('../package.json');\n\n\t\t// VSCODE_GLOBALS: node_modules\n\t\tglobalThis._VSCODE_NODE_MODULES = new Proxy(Object.create(null), { get: (_target, mod) => require(String(mod)) });\n\n\t\t// VSCODE_GLOBALS: package/product.json\n\t\tglobalThis._VSCODE_PRODUCT_JSON = require('../product.json');\n\t\tglobalThis._VSCODE_PACKAGE_JSON = require('../package.json');\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/cd0a2721ed7bd56c4a6037e8a76131c85d1ee63d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "import { registerEditorContribution } from 'vs/editor/browser/editorExtensions';\nimport { EditorContributionInstantiation, registerEditorContribution } from 'vs/editor/browser/editorExtensions';\nimport { registerEditorContribution } from 'vs/editor/browser/editorExtensions';\nimport { EditorContributionInstantiation, registerEditorContribution } from 'vs/editor/browser/editorExtensions';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/18cf7911c10216320c685b927632a55846b956b1", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "registerEditorContribution(CopyPasteController.ID, CopyPasteController);\nregisterEditorContribution(CopyPasteController.ID, CopyPasteController, EditorContributionInstantiation.Idle);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/18cf7911c10216320c685b927632a55846b956b1", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "registerEditorContribution(DropIntoEditorController.ID, DropIntoEditorController);\nregisterEditorContribution(DropIntoEditorController.ID, DropIntoEditorController, EditorContributionInstantiation.Idle);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/18cf7911c10216320c685b927632a55846b956b1", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tif (this._options.isReadOnly) {\n\t\t\treturn null;\n\t\t}\n\t\tif (this._options.isReadOnly) {\n\t\t\treturn null;\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/833cbca95b3163b3d1c63515ee70633281deccc3", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\tgetContext(respectMultiSelection: boolean): ExplorerItem[];\n\tgetContext(respectMultiSelection: boolean, ignoreNestedChildren?: boolean): ExplorerItem[];\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/0ccec43747162cfcebf727fc255a2296f0801fbb", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\n\t\tconst id = await this._ptyService.createProcess(shellLaunchConfig, initialCwd, args.cols, args.rows, args.unicodeVersion, env, baseEnv, args.options, args.shouldPersistTerminal, args.workspaceId, args.workspaceName);\n\t\tthis._ptyService.onProcessExit(e => e.id === id && cliServer.dispose());\n\t\tthis._ptyService.onProcessExit(e => e.id === persistentProcessId && cliServer.dispose());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/677b083284ed89d2d237c583dbb6a3d6a8edc2e4", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tpersistentTerminalId: id,\n\t\t\tpersistentTerminalId: persistentProcessId,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/677b083284ed89d2d237c583dbb6a3d6a8edc2e4", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\tprivate async doReadFileAtomic(provider: IFileSystemProviderWithFileReadWriteCapability | IFileSystemProviderWithOpenReadWriteCloseCapability | IFileSystemProviderWithFileReadStreamCapability, resource: URI, options?: IReadFileOptions, token?: CancellationToken): Promise {\n\tprivate async doReadFileAtomic(provider: IFileSystemProviderWithFileReadWriteCapability | IFileSystemProviderWithOpenReadWriteCloseCapability | IFileSystemProviderWithFileReadStreamCapability | IFileSystemProviderWithFileReadCapability, resource: URI, options?: IReadFileOptions, token?: CancellationToken): Promise {\n\tprivate async doReadFile(provider: IFileSystemProviderWithFileReadWriteCapability | IFileSystemProviderWithOpenReadWriteCloseCapability | IFileSystemProviderWithFileReadStreamCapability, resource: URI, options?: IReadFileOptions, token?: CancellationToken): Promise {\n\tprivate async doReadFile(provider: IFileSystemProviderWithFileReadWriteCapability | IFileSystemProviderWithOpenReadWriteCloseCapability | IFileSystemProviderWithFileReadStreamCapability | IFileSystemProviderWithFileReadCapability, resource: URI, options?: IReadFileOptions, token?: CancellationToken): Promise {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/cd477d6fa18b6c6cc811a13b048b8bcd0462b860", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\tprivate readonly contextMenu: IMenu;\n\tprivate readonly titleContextMenu: IMenu;\n\t\tthis.contextMenu = this._register(menuService.createMenu(MenuId.TitleBarContext, contextKeyService));\n\t\tthis.titleContextMenu = this._register(menuService.createMenu(MenuId.TitleBarTitleContext, contextKeyService));\n\t\tconst actionsDisposable = createAndFillInContextMenuActions(this.contextMenu, undefined, actions);\n\t\tconst actionsDisposable = createAndFillInContextMenuActions(this.titleContextMenu, undefined, actions);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/27bb32d00a7e309787e8f3cea271d67f7921dbba", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\t\tthis.contextMenu = this._register(menuService.createMenu(MenuId.TitleBarContext, contextKeyService));\n\t\tthis.titleContextMenu = this._register(menuService.createMenu(MenuId.TitleBarTitleContext, contextKeyService));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/27bb32d00a7e309787e8f3cea271d67f7921dbba", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": "\t\tconst actionsDisposable = createAndFillInContextMenuActions(this.contextMenu, undefined, actions);\n\t\tconst actionsDisposable = createAndFillInContextMenuActions(this.titleContextMenu, undefined, actions);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/27bb32d00a7e309787e8f3cea271d67f7921dbba", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\t\t * @returns {IpcRenderer}\n\t\t\t * @returns {IpcRenderer | never}\n\t\t\t * @returns {IpcRenderer}\n\t\t\t * @returns {IpcRenderer | never}\n\t\t\t * @returns {IpcRenderer}\n\t\t\t * @returns {IpcRenderer | never}\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/microsoft/vscode/commit/4404dc63561a286e13f9ba5a669e5403a367425a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "import { getOrDefault } from 'vs/base/common/objects';\nimport { getOrDefault } from 'vs/base/common/objects';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/395380a6b7560f9d67323b98ebdd392805f819b7", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tindex: number,\n\t\tid: number,\n\t\tsuper(stackFrame.thread.session, stackFrame.thread.threadId, reference, `scope:${name}:${index}`, namedVariables, indexedVariables);\n\t\tsuper(stackFrame.thread.session, stackFrame.thread.threadId, reference, `scope:${name}:${id}`, namedVariables, indexedVariables);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/a7d2cfe5c56ac960584c9b8a7127fd5450792aa4", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tsuper(stackFrame.thread.session, stackFrame.thread.threadId, reference, `scope:${name}:${index}`, namedVariables, indexedVariables);\n\t\tsuper(stackFrame.thread.session, stackFrame.thread.threadId, reference, `scope:${name}:${id}`, namedVariables, indexedVariables);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/a7d2cfe5c56ac960584c9b8a7127fd5450792aa4", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\t\t\"scopes\": { \"classification\": \"PublicNonPersonalData\", \"purpose\": \"FeatureInsight\" }\n\t\t\t\t\t\"owner\": \"TylerLeonhardt\",\n\t\t\t\t\t\"comment\": \"Used to determine how much usage the GitHub Auth Provider gets.\",\n\t\t\t\t\t\"scopes\": { \"classification\": \"PublicNonPersonalData\", \"purpose\": \"FeatureInsight\", \"comment\": \"Used to determine what scope combinations are being requested.\" }\n\t\t\t\t\t\t\"scopes\": { \"classification\": \"PublicNonPersonalData\", \"purpose\": \"FeatureInsight\" }\n\t\t\t\t\t\t\"owner\": \"TylerLeonhardt\",\n\t\t\t\t\t\t\"comment\": \"Used to determine the usage of the Microsoft Auth Provider.\",\n\t\t\t\t\t\t\"scopes\": { \"classification\": \"PublicNonPersonalData\", \"purpose\": \"FeatureInsight\", \"comment\": \"Used to determine what scope combinations are being requested.\" }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/847629239b57682528b3e5892c0ef1703eb39f55", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\t\"loginFailed\" : { }\n\t\t\t\t\"loginFailed\" : { \"owner\": \"TylerLeonhardt\", \"comment\": \"Used to determine how often users run into an error login flow.\" }\n\t\t\t\t\t\"logoutFailed\" : { }\n\t\t\t\t\t\"logoutFailed\" : { \"owner\": \"TylerLeonhardt\", \"comment\": \"Used to determine how often fail to log out.\" }\n\t\t\t\t\"logoutFailed\" : { }\n\t\t\t\t\"logoutFailed\" : { \"owner\": \"TylerLeonhardt\", \"comment\": \"Used to determine how often logging out of an account fails.\" }\n\t\t\t\t\t\"loginFailed\" : { }\n\t\t\t\t\t\"loginFailed\" : { \"owner\": \"TylerLeonhardt\", \"comment\": \"Used to determine how often users run into issues with the login flow.\" }\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/microsoft/vscode/commit/847629239b57682528b3e5892c0ef1703eb39f55", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 4, 6 ] }, { "input": "interface ITabsTitleControlLayoutOtions {\ninterface ITabsTitleControlLayoutOptions {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/e39f02c7ec872f48afe8859b95b2e88f9836765c", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 8, 9, 10, 11 ] }, { "input": "\toptions?: ITabsTitleControlLayoutOtions;\n\toptions?: ITabsTitleControlLayoutOptions;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/e39f02c7ec872f48afe8859b95b2e88f9836765c", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5, 8, 9, 10, 11 ] }, { "input": "\tprivate redraw(options?: ITabsTitleControlLayoutOtions): void {\n\tprivate redraw(options?: ITabsTitleControlLayoutOptions): void {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/e39f02c7ec872f48afe8859b95b2e88f9836765c", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4, 8, 9, 10, 11 ] }, { "input": "\tlayout(dimensions: ITitleControlDimensions, options?: ITabsTitleControlLayoutOtions): Dimension {\n\tlayout(dimensions: ITitleControlDimensions, options?: ITabsTitleControlLayoutOptions): Dimension {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/e39f02c7ec872f48afe8859b95b2e88f9836765c", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 4, 5, 9, 10, 11 ] }, { "input": "\tprivate doLayout(dimensions: ITitleControlDimensions, options?: ITabsTitleControlLayoutOtions): void {\n\tprivate doLayout(dimensions: ITitleControlDimensions, options?: ITabsTitleControlLayoutOptions): void {\ninterface ITabsTitleControlLayoutOtions {\ninterface ITabsTitleControlLayoutOptions {\n\toptions?: ITabsTitleControlLayoutOtions;\n\toptions?: ITabsTitleControlLayoutOptions;\n\tprivate redraw(options?: ITabsTitleControlLayoutOtions): void {\n\tprivate redraw(options?: ITabsTitleControlLayoutOptions): void {\n\tlayout(dimensions: ITitleControlDimensions, options?: ITabsTitleControlLayoutOtions): Dimension {\n\tlayout(dimensions: ITitleControlDimensions, options?: ITabsTitleControlLayoutOptions): Dimension {\n\tprivate doLayoutTabs(activeTab: HTMLElement, activeIndex: number, dimensions: ITitleControlDimensions, options?: ITabsTitleControlLayoutOtions): void {\n\tprivate doLayoutTabs(activeTab: HTMLElement, activeIndex: number, dimensions: ITitleControlDimensions, options?: ITabsTitleControlLayoutOptions): void {\n\tprivate doLayoutTabsNonWrapping(activeTab: HTMLElement, activeIndex: number, options?: ITabsTitleControlLayoutOtions): void {\n\tprivate doLayoutTabsNonWrapping(activeTab: HTMLElement, activeIndex: number, options?: ITabsTitleControlLayoutOptions): void {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/e39f02c7ec872f48afe8859b95b2e88f9836765c", "target_edit_idx": 9, "propagatable_edit_idx": [ 3, 4, 5, 8, 10, 11 ] }, { "input": "\tprivate doLayoutTabsNonWrapping(activeTab: HTMLElement, activeIndex: number, options?: ITabsTitleControlLayoutOtions): void {\n\tprivate doLayoutTabsNonWrapping(activeTab: HTMLElement, activeIndex: number, options?: ITabsTitleControlLayoutOptions): void {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/e39f02c7ec872f48afe8859b95b2e88f9836765c", "target_edit_idx": 11, "propagatable_edit_idx": [ 3, 4, 5, 8, 9, 10 ] }, { "input": "\t\t\t\t\tshowProgressBar(this._collapsedProgressBar);\n\t\t\t\t\tthis._updateForExecutionState(element);\n\t\t\t\t\tshowProgressBar(this._progressBar);\n\t\t\t\t\tthis._updateForExecutionState(element);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6e622ca1a23363c656a564d035364e850d6d9a64", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "import { CodeCellExecutionIcon } from 'vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon';\nimport { CollapsedCodeCellExecutionIcon } from 'vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6e622ca1a23363c656a564d035364e850d6d9a64", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": "\tprivate _collapsedExecutionIcon: CodeCellExecutionIcon;\n\tprivate _collapsedExecutionIcon: CollapsedCodeCellExecutionIcon;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6e622ca1a23363c656a564d035364e850d6d9a64", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6, 7 ] }, { "input": "\t\tthis._collapsedExecutionIcon = this.instantiationService.createInstance(CodeCellExecutionIcon, this.notebookEditor, this.viewCell, executionItemElement);\n\t\tthis._collapsedExecutionIcon = this.instantiationService.createInstance(CollapsedCodeCellExecutionIcon, this.notebookEditor, this.viewCell, executionItemElement);\nimport { CodeCellExecutionIcon } from 'vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon';\nimport { CollapsedCodeCellExecutionIcon } from 'vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon';\n\tprivate _collapsedExecutionIcon: CodeCellExecutionIcon;\n\tprivate _collapsedExecutionIcon: CollapsedCodeCellExecutionIcon;\nexport class CodeCellExecutionIcon extends Disposable {\nexport class CollapsedCodeCellExecutionIcon extends Disposable {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6e622ca1a23363c656a564d035364e850d6d9a64", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5, 7 ] }, { "input": "\t\t\t\t\tconst r = this._matchFoundBracket(foundBracket, currentModeBrackets.textIsBracket[foundBracketText], currentModeBrackets.textIsOpenBracket[foundBracketText], null);\n\t\t\t\t\tconst r = this._matchFoundBracket(foundBracket, currentModeBrackets.textIsBracket[foundBracketText], currentModeBrackets.textIsOpenBracket[foundBracketText], continueSearchPredicate);\n\t\t\t\t\tconst r = this._matchFoundBracket(foundBracket, prevModeBrackets.textIsBracket[foundBracketText], prevModeBrackets.textIsOpenBracket[foundBracketText], null);\n\t\t\t\t\tconst r = this._matchFoundBracket(foundBracket, prevModeBrackets.textIsBracket[foundBracketText], prevModeBrackets.textIsOpenBracket[foundBracketText], continueSearchPredicate);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/bf04e7327f59ecf7f48c7edf8318aab1c4c7e21b", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\tconst primarySelection = this.templateData.editor.getSelection();\n\t\t\tconst selections = this.templateData.editor.getSelections();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/cc82516a2d15c97d5a2af0baa92be40f3572f439", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\tconst primarySelection = editor.getSelection();\n\t\t\tconst selections = editor.getSelections();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/cc82516a2d15c97d5a2af0baa92be40f3572f439", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "const DEFAULT_EVENT_MERGER: IEventMerger = function (lastEvent: DOMEvent | null, currentEvent: DOMEvent) {\nconst DEFAULT_EVENT_MERGER: IEventMerger = function (lastEvent: Event | null, currentEvent: Event) {\nexport function finalHandler(fn: (event: T) => any): (event: T) => any {\nexport function finalHandler(fn: (event: T) => any): (event: T) => any {\nclass TimeoutThrottledDomListener extends Disposable {\nclass TimeoutThrottledDomListener extends Disposable {\nexport function addDisposableThrottledListener(node: any, type: string, handler: (event: R) => void, eventMerger?: IEventMerger, minimumTimeMs?: number): IDisposable {\nexport function addDisposableThrottledListener(node: any, type: string, handler: (event: R) => void, eventMerger?: IEventMerger, minimumTimeMs?: number): IDisposable {\n\tprotected onEvent(e: DOMEvent, activeElement: HTMLElement): void {\n\tprotected onEvent(_e: Event, activeElement: HTMLElement): void {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/microsoft/vscode/commit/442227c0db5b9d298d896efd4c72f8c762e4e59b", "target_edit_idx": 4, "propagatable_edit_idx": [ 10, 5, 6, 14 ] }, { "input": "export function addDisposableThrottledListener(node: any, type: string, handler: (event: R) => void, eventMerger?: IEventMerger, minimumTimeMs?: number): IDisposable {\nexport function addDisposableThrottledListener(node: any, type: string, handler: (event: R) => void, eventMerger?: IEventMerger, minimumTimeMs?: number): IDisposable {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/microsoft/vscode/commit/442227c0db5b9d298d896efd4c72f8c762e4e59b", "target_edit_idx": 6, "propagatable_edit_idx": [ 10, 4, 5, 14 ] }, { "input": "\tprivate readonly _onDidFocus = this._register(new Emitter());\n\tpublic readonly onDidFocus: Event = this._onDidFocus.event;\n\tprivate readonly _onDidFocus = this._register(new event.Emitter());\n\tpublic readonly onDidFocus: event.Event = this._onDidFocus.event;\n\tprivate readonly _onDidBlur = this._register(new Emitter());\n\tpublic readonly onDidBlur: Event = this._onDidBlur.event;\n\tprivate readonly _onDidBlur = this._register(new event.Emitter());\n\tpublic readonly onDidBlur: event.Event = this._onDidBlur.event;\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/442227c0db5b9d298d896efd4c72f8c762e4e59b", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "export function finalHandler(fn: (event: T) => any): (event: T) => any {\nexport function finalHandler(fn: (event: T) => any): (event: T) => any {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/442227c0db5b9d298d896efd4c72f8c762e4e59b", "target_edit_idx": 10, "propagatable_edit_idx": [ 4, 5, 6, 14 ] }, { "input": "\tprotected onEvent(e: DOMEvent, activeElement: HTMLElement): void {\n\tprotected onEvent(_e: Event, activeElement: HTMLElement): void {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/442227c0db5b9d298d896efd4c72f8c762e4e59b", "target_edit_idx": 14, "propagatable_edit_idx": [ 10, 4, 5, 6 ] }, { "input": "\t\tthis.scrollable = new Scrollable(getOrDefault(options, o => o.smoothScrolling, false) ? 125 : 0, cb => scheduleAtNextAnimationFrame(cb));\n\t\tthis.scrollable = new Scrollable({\n\t\t\tforceIntegerValues: true,\n\t\t\tsmoothScrollDuration: getOrDefault(options, o => o.smoothScrolling, false) ? 125 : 0,\n\t\t\tscheduleAtNextAnimationFrame: cb => scheduleAtNextAnimationFrame(cb)\n\t\t});\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/d44362c7294d23590a83c002ee592c3acb461480", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 13, 5 ] }, { "input": "\t\tconst scrollable = new Scrollable(0, (callback) => dom.scheduleAtNextAnimationFrame(callback));\n\t\tconst scrollable = new Scrollable({\n\t\t\tforceIntegerValues: true,\n\t\t\tsmoothScrollDuration: 0,\n\t\t\tscheduleAtNextAnimationFrame: (callback) => dom.scheduleAtNextAnimationFrame(callback)\n\t\t});\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/d44362c7294d23590a83c002ee592c3acb461480", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 13, 5 ] }, { "input": "\t\tthis.scrollable = new Scrollable(125, scheduleAtNextAnimationFrame);\n\t\tthis.scrollable = new Scrollable({\n\t\t\tforceIntegerValues: true,\n\t\t\tsmoothScrollDuration: 125,\n\t\t\tscheduleAtNextAnimationFrame\n\t\t});\n\t\tthis.scrollable = new Scrollable(getOrDefault(options, o => o.smoothScrolling, false) ? 125 : 0, cb => scheduleAtNextAnimationFrame(cb));\n\t\tthis.scrollable = new Scrollable({\n\t\t\tforceIntegerValues: true,\n\t\t\tsmoothScrollDuration: getOrDefault(options, o => o.smoothScrolling, false) ? 125 : 0,\n\t\t\tscheduleAtNextAnimationFrame: cb => scheduleAtNextAnimationFrame(cb)\n\t\t});\n\t\tconst scrollable = new Scrollable(0, (callback) => dom.scheduleAtNextAnimationFrame(callback));\n\t\tconst scrollable = new Scrollable({\n\t\t\tforceIntegerValues: true,\n\t\t\tsmoothScrollDuration: 0,\n\t\t\tscheduleAtNextAnimationFrame: (callback) => dom.scheduleAtNextAnimationFrame(callback)\n\t\t});\n\t\tthis._scrollable = this._register(new Scrollable(smoothScrollDuration, scheduleAtNextAnimationFrame));\n\t\tthis._scrollable = this._register(new Scrollable({\n\t\t\tforceIntegerValues: true,\n\t\t\tsmoothScrollDuration,\n\t\t\tscheduleAtNextAnimationFrame\n\t\t}));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/d44362c7294d23590a83c002ee592c3acb461480", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 13 ] }, { "input": "\t\tthis._scrollable = this._register(new Scrollable(smoothScrollDuration, scheduleAtNextAnimationFrame));\n\t\tthis._scrollable = this._register(new Scrollable({\n\t\t\tforceIntegerValues: true,\n\t\t\tsmoothScrollDuration,\n\t\t\tscheduleAtNextAnimationFrame\n\t\t}));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/d44362c7294d23590a83c002ee592c3acb461480", "target_edit_idx": 13, "propagatable_edit_idx": [ 0, 1, 5 ] }, { "input": "\t\tonDeprecatedOption: (deprecatedOption: string, actualOption: string) => {\n\t\t\tconsole.warn(localize('deprecatedArgument', \"Option '{0}' is deprecated, please use '{1}' instead\", deprecatedOption, actualOption));\n\t\tonDeprecatedOption: (deprecatedOption: string, message: string) => {\n\t\t\tconsole.warn(localize('deprecatedArgument', \"Option '{0}' is deprecated: {1}\", deprecatedOption, message));\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/a800639e4732c18f84edbbaa8df1d374866716e4", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tonDeprecatedOption: (deprecatedOption: string, actualOption: string) => {\n\t\t\tconsole.warn(`Option '${deprecatedOption}' is deprecated, please use '${actualOption}' instead`);\n\t\tonDeprecatedOption: (deprecatedOption: string, message: string) => {\n\t\t\tconsole.warn(`Option '${deprecatedOption}' is deprecated: ${message}`);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/a800639e4732c18f84edbbaa8df1d374866716e4", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\treturn this._createHorizontalRangesFromClientRects(clientRects, clientRectDeltaLeft);\n\t\t\treturn this._createHorizontalRangesFromClientRects(clientRects, clientRectDeltaLeft, clientRectScale);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/0165b0b2a543ae365cf4b75abce3d7f5b20d67bc", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tasync createProcess(shellLaunchConfig: IShellLaunchConfig, activeWorkspaceRootUri: URI | undefined, cols: number, rows: number, unicodeVersion: '6' | '11', shouldPersist: boolean): Promise {\n\tasync createProcess(\n\t\tshellLaunchConfig: IShellLaunchConfig,\n\t\tcwd: string, // TODO: This is ignored\n\t\tcols: number,\n\t\trows: number,\n\t\tunicodeVersion: '6' | '11',\n\t\tenv: IProcessEnvironment, // TODO: This is ignored\n\t\twindowsEnableConpty: boolean, // TODO: This is ignored\n\t\tshouldPersist: boolean\n\t): Promise {\n\tcreateProcess(\n\t\tshellLaunchConfig: IShellLaunchConfig,\n\t\tactiveWorkspaceRootUri: URI | undefined,\n\t\tcols: number,\n\t\trows: number,\n\t\tunicodeVersion: '6' | '11',\n\t\tshouldPersist: boolean\n\t): Promise;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/b1084be4dad7777cdbad27c16fcfed57476f1041", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tconst isBigSur = isMacintosh && release() > '20.0.0';\n\t\tconst isMacOSBigSurOrNewer = isMacintosh && release() > '20.0.0';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/0e11dc34f45fec3d9cd7a0d6994eb1c0fb5d3fd2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\t\t\tif (isBigSur) {\n\t\t\t\tif (isMacOSBigSurOrNewer) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/0e11dc34f45fec3d9cd7a0d6994eb1c0fb5d3fd2", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\t\treturn Iterable.find(this.runTracker.trackers, t => t.id === runId)?.getCoverage(taskId)?.provideFileCoverage(token) ?? Promise.resolve([]);\n\t\tconst coverage = mapFind(this.runTracker.trackers, t => t.id === runId ? t.getCoverage(taskId) : undefined);\n\t\treturn coverage?.provideFileCoverage(token) ?? Promise.resolve([]);\n\t\treturn Iterable.find(this.runTracker.trackers, t => t.id === runId)?.getCoverage(taskId)?.resolveFileCoverage(fileIndex, token) ?? Promise.resolve([]);\n\t\tconst coverage = mapFind(this.runTracker.trackers, t => t.id === runId ? t.getCoverage(taskId) : undefined);\n\t\treturn coverage?.resolveFileCoverage(fileIndex, token) ?? Promise.resolve([]);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/604dd1418fe540861768d54276e227b7922378b5", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "function doFindFreePort(startPort: number, giveUpAfter: number, clb: (port: number) => void): void {\nfunction doFindFreePort(startPort: number, giveUpAfter: number, stride: number, clb: (port: number) => void): void {\n\t\treturn doFindFreePort(startPort + 1, giveUpAfter - 1, clb);\n\t\treturn doFindFreePort(startPort + stride, giveUpAfter - 1, stride, clb);\n\t\t\treturn doFindFreePort(startPort + 1, giveUpAfter - 1, clb);\n\t\t\treturn doFindFreePort(startPort + stride, giveUpAfter - 1, stride, clb);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/a24bd09b0b8b38999a96a3f22e47344f763a2446", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\t\treturn doFindFreePort(startPort + 1, giveUpAfter - 1, clb);\n\t\treturn doFindFreePort(startPort + stride, giveUpAfter - 1, stride, clb);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/a24bd09b0b8b38999a96a3f22e47344f763a2446", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\t\tconst port = await findFreePort(expected, 10 /* try 10 ports */, 5000 /* try up to 5 seconds */);\n\t\tconst port = await findFreePort(expected, 10 /* try 10 ports */, 5000 /* try up to 5 seconds */, 2048 /* skip 2048 ports between attempts */);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/a24bd09b0b8b38999a96a3f22e47344f763a2446", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\ttruncatedArrayOfString(notebookUri, output.cellViewModel, Math.max(lineLimit, 6), contentNode, [text], linkDetector, this.openerService, this.themeService);\n\t\ttruncatedArrayOfString(notebookUri, output.cellViewModel, Math.max(lineLimit, 6), contentNode, [text], disposables, linkDetector, this.openerService, this.themeService);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/baa68c6e276f3baaa2c47b7f7a70ccb55cbd04a3", "target_edit_idx": 1, "propagatable_edit_idx": [ 11, 3 ] }, { "input": "\t\ttruncatedArrayOfString(notebookUri, output.cellViewModel, Math.max(lineLimit, 6), contentNode, [str], linkDetector, this.openerService, this.themeService);\n\t\ttruncatedArrayOfString(notebookUri, output.cellViewModel, Math.max(lineLimit, 6), contentNode, [str], disposables, linkDetector, this.openerService, this.themeService);\n\t\ttruncatedArrayOfString(notebookUri, output.cellViewModel, Math.max(lineLimit, 6), contentNode, [text], linkDetector, this.openerService, this.themeService);\n\t\ttruncatedArrayOfString(notebookUri, output.cellViewModel, Math.max(lineLimit, 6), contentNode, [text], disposables, linkDetector, this.openerService, this.themeService);\nexport function truncatedArrayOfString(notebookUri: URI, cellViewModel: IGenericCellViewModel, linesLimit: number, container: HTMLElement, outputs: string[], linkDetector: LinkDetector, openerService: IOpenerService, themeService: IThemeService) {\nexport function truncatedArrayOfString(notebookUri: URI, cellViewModel: IGenericCellViewModel, linesLimit: number, container: HTMLElement, outputs: string[], disposables: DisposableStore, linkDetector: LinkDetector, openerService: IOpenerService, themeService: IThemeService) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/baa68c6e276f3baaa2c47b7f7a70ccb55cbd04a3", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 11 ] }, { "input": "\t\t\tcontainer.appendChild(generateViewMoreElement(notebookUri, cellViewModel, outputs, openerService));\n\t\t\tcontainer.appendChild(generateViewMoreElement(notebookUri, cellViewModel, disposables, openerService));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/microsoft/vscode/commit/baa68c6e276f3baaa2c47b7f7a70ccb55cbd04a3", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\t\t\tv8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : undefined,\n\t\t\t\tv8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : 'none',\n\t\t\t\tv8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : undefined,\n\t\t\t\tv8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : 'none',\n\t\t\t\t\tv8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : undefined,\n\t\t\t\t\tv8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : 'none',\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/microsoft/vscode/commit/a0afddd8767c9c4a320b8c793defdbe669b12142", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\tsuper(viewType, model, UUID.generateUuid(), viewContext, configurationService, modelService);\n\t\tsuper(viewType, model, UUID.generateUuid(), viewContext, configurationService, modelService, undoRedoService);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/1d9ac5e14a9ee2bcc1dc26cb69f87eb5af0bd4b3", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tsuper(viewType, model, UUID.generateUuid(), viewContext, configurationService, textModelService);\n\t\tsuper(viewType, model, UUID.generateUuid(), viewContext, configurationService, textModelService, undoRedoService);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/1d9ac5e14a9ee2bcc1dc26cb69f87eb5af0bd4b3", "target_edit_idx": 8, "propagatable_edit_idx": [ 5 ] }, { "input": "\n\t\tthis.tree = >this.instantiationService.createInstance(WorkbenchAsyncDataTree, 'DebugHover', this.treeContainer, new DebugHoverDelegate(), [this.instantiationService.createInstance(VariablesRenderer)],\n\t\tconst linkeDetector = this.instantiationService.createInstance(LinkDetector);\n\t\tthis.tree = >this.instantiationService.createInstance(WorkbenchAsyncDataTree, 'DebugHover', this.treeContainer, new DebugHoverDelegate(), [this.instantiationService.createInstance(VariablesRenderer, linkeDetector)],\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/58d4666a348734ac621a939540b0e5b1d6e25456", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 5 ] }, { "input": "\tprivate _increaseVersionId(undoStackEmpty: boolean): void {\n\tprivate _increaseVersionId(transient: boolean): void {\n\t\tif (!undoStackEmpty) {\n\t\tif (!transient) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/cd121a7976bd0c8cc5bb93eda6f34ae7e5f4ab2e", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "import { ITextEditorPane } from 'vs/workbench/common/editor';\nimport { IEditorPane } from 'vs/workbench/common/editor';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/a94415c48d82f19f84033efe1f522e836ff92e9b", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\tasync openInEditor(editorService: IEditorService, preserveFocus?: boolean, sideBySide?: boolean, pinned?: boolean): Promise {\n\tasync openInEditor(editorService: IEditorService, preserveFocus?: boolean, sideBySide?: boolean, pinned?: boolean): Promise {\n\t\t// if DisassemblyView is openned and has disassembly instruction,\n\t\t// then stay with DisassemblyView\n\t\tif (editorService.activeEditorPane?.getId() === `workbench.debug.disassemblyView` && this.instructionPointerReference) {\n\t\t\treturn editorService.activeEditorPane;\n\t\t}\n\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/a94415c48d82f19f84033efe1f522e836ff92e9b", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "function getVsCodeApiScript(allowMultipleAPIAcquire, useParentPostMessage, state) {\nfunction getVsCodeApiScript(allowMultipleAPIAcquire, state) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/612a37387b130592b362b14a36aaeb88c0ec4897", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\tdefaultScript.textContent = getVsCodeApiScript(options.allowMultipleAPIAcquire, host.useParentPostMessage, data.state);\n\t\t\tdefaultScript.textContent = getVsCodeApiScript(options.allowMultipleAPIAcquire, data.state);\nfunction getVsCodeApiScript(allowMultipleAPIAcquire, useParentPostMessage, state) {\nfunction getVsCodeApiScript(allowMultipleAPIAcquire, state) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/612a37387b130592b362b14a36aaeb88c0ec4897", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": "\tsetActiveInstanceByIndex(index: number): void {\n\tsetActiveInstanceByIndex(index: number, force?: boolean): void {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/47f1a28dede4a18a442b901e6297e7479d5034f0", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\t// Extract resources from URIs or Editors\n\tconst resources = coalesce(resourcesOrEditors.map(resourceOrEditor => {\n\t// Extract resources from URIs or Editors that\n\t// can be handled by the file service\n\tconst fileSystemResources = coalesce(resourcesOrEditors.map(resourceOrEditor => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/e57462fd1f6bd1cb30e35cc69d1127f9c2325a5f", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "\tconst firstFile = resources.find(({ isDirectory }) => !isDirectory);\n\tconst firstFile = fileSystemResources.find(({ isDirectory }) => !isDirectory);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/e57462fd1f6bd1cb30e35cc69d1127f9c2325a5f", "target_edit_idx": 7, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tthis.addWebviewListeners(webview);\n\t\tthis.registerNewWebview(webview);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/1ecba0426a9450188871a362e4542564be0cf920", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 6, 7 ] }, { "input": "\tprotected addWebviewListeners(webview: Webview) {\n\tprotected registerNewWebview(webview: Webview) {\n\t\tthis._webviews.add(webview);\n\n\t\tthis.addWebviewListeners(webview);\n\t\tthis.registerNewWebview(webview);\n\t\tthis.addWebviewListeners(webview);\n\t\tthis.registerNewWebview(webview);\n\t\tthis.addWebviewListeners(webview);\n\t\tthis.registerNewWebview(webview);\n\t\tthis.addWebviewListeners(webview);\n\t\tthis.registerNewWebview(webview);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/1ecba0426a9450188871a362e4542564be0cf920", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 6, 7 ] }, { "input": "\t\t\tinstance = this._terminalService.createInstance(undefined, shellLaunchConfigOrInstance);\n\t\t\tinstance = this._terminalService.createInstance(shellLaunchConfigOrInstance);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/387012dab49d20654d3906da0bf6339b1fd7b976", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tconst instance = this._terminalService.createInstance(undefined, shellLaunchConfig);\n\t\tconst instance = this._terminalService.createInstance(shellLaunchConfig);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/387012dab49d20654d3906da0bf6339b1fd7b976", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\tcreateInstance(container: HTMLElement | undefined, shellLaunchConfig: IShellLaunchConfig): ITerminalInstance {\n\tcreateInstance(shellLaunchConfig: IShellLaunchConfig): ITerminalInstance {\n\tcreateInstance(container: HTMLElement | undefined, shellLaunchConfig: IShellLaunchConfig): ITerminalInstance;\n\tcreateInstance(shellLaunchConfig: IShellLaunchConfig): ITerminalInstance;\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/387012dab49d20654d3906da0bf6339b1fd7b976", "target_edit_idx": 8, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tuseRemoteAuthority?: string;\n\t\tuseRootAuthority?: boolean;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/19cda32aafccb88db45622e7ae9be90cb71c9744", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\tconst resourceToLoad = getResourceToLoad(requestUri, options.roots, options.extensionLocation, options.useRemoteAuthority);\n\tconst resourceToLoad = getResourceToLoad(requestUri, options.roots, options.extensionLocation, options.useRootAuthority);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/19cda32aafccb88db45622e7ae9be90cb71c9744", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\tuseRemoteAuthority: string | undefined\n\tuseRootAuthority: boolean | undefined\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/19cda32aafccb88db45622e7ae9be90cb71c9744", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\t\t\treturn normalizeResourcePath(requestUri, extensionLocation);\n\t\t\treturn normalizeResourcePath(requestUri, extensionLocation, useRemoteAuthority);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/7b0a8177fac9dcc0d7a2d01e5c901685fc30ccd8", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "function normalizeResourcePath(resource: URI, extensionLocation: URI | undefined): URI {\nfunction normalizeResourcePath(resource: URI, extensionLocation: URI | undefined, useRemoteAuthority: string | undefined): URI {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/7b0a8177fac9dcc0d7a2d01e5c901685fc30ccd8", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\trestorePromises.push((async () => {\n\t\tblockingRestorePromises.push((async () => {\n\t\trestorePromises.push(restoreDefaultViewsPromise);\n\t\tblockingRestorePromises.push(restoreDefaultViewsPromise);\n\t\trestorePromises.push((async () => {\n\t\tblockingRestorePromises.push((async () => {\n\t\trestorePromises.push((async () => {\n\t\tblockingRestorePromises.push((async () => {\n\t\t// Await restore to be done\n\t\tawait Promises.settled(restorePromises);\n\t\t// Await blocking restore promises here\n\t\tawait Promises.settled(blockingRestorePromises);\n\n\t\t// Do not await non-blocking restore promises\n\t\t// here, but update our `whenRestored` condition\n\t\t// properly when the promises have settled\n\t\tPromises.settled(nonBlockingRestorePromises).finally(() => {\n\t\t\tthis.restored = true;\n\t\t\tthis.whenRestoredResolve?.();\n\t\t});\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/4ea838bcce9232034b679ed074a93762350e9c97", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 10, 11, 12 ] }, { "input": "\t\trestorePromises.push(restoreDefaultViewsPromise);\n\t\tblockingRestorePromises.push(restoreDefaultViewsPromise);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/4ea838bcce9232034b679ed074a93762350e9c97", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11, 4, 12 ] }, { "input": "\t\trestorePromises.push((async () => {\n\t\tblockingRestorePromises.push((async () => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/4ea838bcce9232034b679ed074a93762350e9c97", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 11, 4, 12 ] }, { "input": "\t\t// Await restore to be done\n\t\tawait Promises.settled(restorePromises);\n\t\t// Await blocking restore promises here\n\t\tawait Promises.settled(blockingRestorePromises);\n\n\t\t// Do not await non-blocking restore promises\n\t\t// here, but update our `whenRestored` condition\n\t\t// properly when the promises have settled\n\t\tPromises.settled(nonBlockingRestorePromises).finally(() => {\n\t\t\tthis.restored = true;\n\t\t\tthis.whenRestoredResolve?.();\n\t\t});\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/4ea838bcce9232034b679ed074a93762350e9c97", "target_edit_idx": 12, "propagatable_edit_idx": [ 9, 10, 11, 4 ] }, { "input": "export interface IUpdateMarkdownPreviewSelectionState {\n\treadonly type: 'updateMarkdownPreviewSelectionState',\n\treadonly id: string;\n\treadonly isSelected: boolean;\nexport interface IUpdateSelectedMarkdownPreviews {\n\treadonly type: 'updateSelectedMarkdownPreviews',\n\treadonly selectedCellIds: readonly string[]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/0e5ecf116f0e27d111448c15ffbfa11320a39d08", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t| IUpdateMarkdownPreviewSelectionState\n\t| IUpdateSelectedMarkdownPreviews\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/0e5ecf116f0e27d111448c15ffbfa11320a39d08", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "import { newQuickLaunchProfileIcon } from 'vs/workbench/contrib/terminal/browser/terminalIcons';\nimport { configureTerminalProfileIcon } from 'vs/workbench/contrib/terminal/browser/terminalIcons';\n\t\t\t\ticonClass: ThemeIcon.asClassName(newQuickLaunchProfileIcon),\n\t\t\t\ttooltip: nls.localize('createQuickLaunchProfile', \"Create a quick launch profile based on this shell\")\n\t\t\t\ticonClass: ThemeIcon.asClassName(configureTerminalProfileIcon),\n\t\t\t\ttooltip: nls.localize('createQuickLaunchProfile', \"Configure Terminal Profile\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/8aac8643d77aa03300f7c62452b0583a0db2b741", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\ticonClass: ThemeIcon.asClassName(newQuickLaunchProfileIcon),\n\t\t\t\ttooltip: nls.localize('createQuickLaunchProfile', \"Create a quick launch profile based on this shell\")\n\t\t\t\ticonClass: ThemeIcon.asClassName(configureTerminalProfileIcon),\n\t\t\t\ttooltip: nls.localize('createQuickLaunchProfile', \"Configure Terminal Profile\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/8aac8643d77aa03300f7c62452b0583a0db2b741", "target_edit_idx": 5, "propagatable_edit_idx": [ 1 ] }, { "input": "function notificationToMetrics(notification: INotification): NotificationMetrics {\nexport function notificationToMetrics(message: NotificationMessage, source: string | undefined, silent: boolean): NotificationMetrics {\n\t\t\tif (!notification.silent) {\n\t\t\t\tthis.telemetryService.publicLog2('notification:close', notificationToMetrics(notification));\n\t\t\t}\n\t\t\tconst source = notification.source && typeof notification.source !== 'string' ? notification.source.id : notification.source;\n\t\t\tthis.telemetryService.publicLog2('notification:close', notificationToMetrics(notification.message, source, !!notification.silent));\n\t\t\tif (!notification.silent) {\n\t\t\t\tthis.telemetryService.publicLog2('notification:show', notificationToMetrics(notification));\n\t\t\t}\n\t\t\tconst source = notification.source && typeof notification.source !== 'string' ? notification.source.id : notification.source;\n\t\t\tthis.telemetryService.publicLog2('notification:show', notificationToMetrics(notification.message, source, !!notification.silent));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/421d67ec41a85a63d7cc02b5785ba67def857bf2", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "\t\t\tif (!notification.silent) {\n\t\t\t\tthis.telemetryService.publicLog2('notification:close', notificationToMetrics(notification));\n\t\t\t}\n\t\t\tconst source = notification.source && typeof notification.source !== 'string' ? notification.source.id : notification.source;\n\t\t\tthis.telemetryService.publicLog2('notification:close', notificationToMetrics(notification.message, source, !!notification.silent));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/421d67ec41a85a63d7cc02b5785ba67def857bf2", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 7 ] }, { "input": "\t\tconst forceReadFromDisk = options?.forceReadFromDisk;\n\t\tconst forceReadFromFile = options?.forceReadFromFile;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f841a70b0c0b9f064909f4524254d55b81c6c97d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 5, 6, 7, 8, 9 ] }, { "input": "\t\tif (forceReadFromDisk) {\n\t\tif (forceReadFromFile) {\n\t\t\t\tawait this.load({ forceReadFromDisk: true });\n\t\t\t\tawait this.load({ forceReadFromFile: true });\n\t\tconst forceReadFromDisk = options?.forceReadFromDisk;\n\t\tconst forceReadFromFile = options?.forceReadFromFile;\n\t\t\t\tforceReadFromDisk: true\t// because encoding has changed\n\t\t\t\tforceReadFromFile: true\t// because encoding has changed\n\tforceReadFromDisk?: boolean;\n\tforceReadFromFile?: boolean;\n\tforceReadFromDisk?: boolean;\n\tforceReadFromFile?: boolean;\n\t\tconst forceReadFromDisk = options?.forceReadFromDisk;\n\t\tconst forceReadFromFile = options?.forceReadFromFile;\n\t\tif (forceReadFromDisk) {\n\t\tif (forceReadFromFile) {\n\t\t\t\tawait this.resolve({ forceReadFromDisk: true });\n\t\t\t\tawait this.resolve({ forceReadFromFile: true });\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f841a70b0c0b9f064909f4524254d55b81c6c97d", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 5, 6, 7, 8, 9 ] }, { "input": "\tforceReadFromDisk?: boolean;\n\tforceReadFromFile?: boolean;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f841a70b0c0b9f064909f4524254d55b81c6c97d", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 7, 8, 9 ] }, { "input": "\t\tif (forceReadFromDisk) {\n\t\tif (forceReadFromFile) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f841a70b0c0b9f064909f4524254d55b81c6c97d", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 9 ] }, { "input": "\t\t\t\tawait this.resolve({ forceReadFromDisk: true });\n\t\t\t\tawait this.resolve({ forceReadFromFile: true });\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f841a70b0c0b9f064909f4524254d55b81c6c97d", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8 ] }, { "input": "\t\t\t\t\tcreateMarkdownPreview(cell.cellId, cell.content, cell.offset, /* version*/ 0);\n\t\t\t\t\tcreateMarkdownPreview(cell.cellId, cell.content, cell.offset);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/498449fa8c1de9bdd3e3923b1f5a8fbde5d26fdb", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "\t\t\t\tcreateMarkdownPreview(event.data.id, event.data.content, event.data.top, event.data.contentVersion);\n\t\t\t\tcreateMarkdownPreview(event.data.id, event.data.content, event.data.top);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/498449fa8c1de9bdd3e3923b1f5a8fbde5d26fdb", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "\t\t\t\t\tupdateMarkdownPreview(data.id, data.content, data.contentVersion);\n\n\t\t\t\t\tif (typeof data.content === 'string') {\n\t\t\t\t\t\tupdateMarkdownPreview(data.id, data.content);\n\t\t\t\t\t}\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/498449fa8c1de9bdd3e3923b1f5a8fbde5d26fdb", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "\tfunction createMarkdownPreview(cellId: string, content: string, top: number, contentVersion: number) {\n\tfunction createMarkdownPreview(cellId: string, content: string, top: number) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/498449fa8c1de9bdd3e3923b1f5a8fbde5d26fdb", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\tfunction updateMarkdownPreview(cellId: string, content: string, contentVersion: number) {\n\tfunction updateMarkdownPreview(cellId: string, content: string) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/498449fa8c1de9bdd3e3923b1f5a8fbde5d26fdb", "target_edit_idx": 7, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\t\treturn localize('extension-arialabel', \"{0}, {1}, {2}, press enter for extension details.\", extension.displayName, extension.version, extension.publisherDisplayName);\n\t\t\t\t\t\treturn localize('extension-arialabel', \"{0}, {1}, {2}, {3}\", extension.displayName, extension.version, extension.publisherDisplayName, extension.description);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/0657df6e82ff9e6900c32a7edffce9aa98879857", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\t\treturn extension ? localize('extension-arialabel', \"{0}, {1}, {2}, press enter for extension details.\", extension.displayName, extension.version, extension.publisherDisplayName) : '';\n\t\t\t\t\treturn extension ? localize('extension-arialabel', \"{0}, {1}, {2}, {3}\", extension.displayName, extension.version, extension.publisherDisplayName, extension.description) : '';\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/0657df6e82ff9e6900c32a7edffce9aa98879857", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\treadonly ellapsedSharedProcesConnectionCreate: number;\n\t\treadonly ellapsedSharedProcesConnected: number;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/5bc7c69ff66f578d26cd25279b0a4e78dadebdf3", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\tellapsedSharedProcesConnectionCreate: this._marks.getDuration('code/willConnectSharedProcess', 'code/didConnectSharedProcess'),\n\t\t\t\tellapsedSharedProcesConnected: this._marks.getDuration('code/willConnectSharedProcess', 'code/didConnectSharedProcess'),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/5bc7c69ff66f578d26cd25279b0a4e78dadebdf3", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\tgetActions(): IAction[];\n\tgetActions(): readonly IAction[];\n\tgetActions(): IAction[];\n\tgetActions(): readonly IAction[];\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/eb5f9becd90af302d3afc2683410fcd427298fd1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tactions.push(disposables.add(new Action('hide', nls.localize('hide', \"Hide\"), undefined, true, async () => {\n\t\tactions.push(disposables.add(new Action('hide', nls.localize('hide', \"Hide Home Button\"), undefined, true, async () => {\n\t\tmenus.push(disposables.add(new Action('hide', nls.localize('hide', \"Hide\"), undefined, true, async () => {\n\t\tmenus.push(disposables.add(new Action('hide', nls.localize('hideAccounts', \"Hide Accounts\"), undefined, true, async () => {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/448d0497e688670423a73055d7d1d5aafbb58548", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "import { EventHelper, createStyleSheet, addDisposableListener, EventType, hide, show, isAncestor, appendChildren } from 'vs/base/browser/dom';\nimport { EventHelper, createStyleSheet, addDisposableListener, EventType, hide, show, isAncestor, append } from 'vs/base/browser/dom';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/51ea16966b6fc47dec26f34676fca73586e29d8e", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\tappendChildren(this.container, ...renderLabelWithIcons(textContent));\n\t\t\tappend(this.container, ...renderLabelWithIcons(textContent));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/51ea16966b6fc47dec26f34676fca73586e29d8e", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "\tsubmitPerformanceMarks(source: string, marks: perf.PerformanceMark[]): void;\n\tsetPerformanceMarks(source: string, marks: perf.PerformanceMark[]): void;\n\n\tgetPerformanceMarks(): [source: string, marks: readonly perf.PerformanceMark[]][];\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/4df387f5ad1a72bfb87f6de4b8915e104fe80b00", "target_edit_idx": 3, "propagatable_edit_idx": [ 12 ] }, { "input": "\trenderTemplate(container: HTMLElement): IReplEvaluationInputTemplateData {\n\t\tconst input = dom.append(container, $('.expression'));\n\t\tconst label = new HighlightedLabel(input, false);\n\trenderTemplate(container: HTMLElement): IReplGroupTemplateData {\n\t\tconst label = dom.append(container, $('.expression'));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/microsoft/vscode/commit/92d6f00d6e2f01efedd26b657c7218baf8c9d5e9", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\tdisposeTemplate(_templateData: IReplEvaluationInputTemplateData): void {\n\tdisposeTemplate(_templateData: IReplGroupTemplateData): void {\n\trenderTemplate(container: HTMLElement): IReplEvaluationInputTemplateData {\n\t\tconst input = dom.append(container, $('.expression'));\n\t\tconst label = new HighlightedLabel(input, false);\n\trenderTemplate(container: HTMLElement): IReplGroupTemplateData {\n\t\tconst label = dom.append(container, $('.expression'));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/microsoft/vscode/commit/92d6f00d6e2f01efedd26b657c7218baf8c9d5e9", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\treturn this.openerService.open(uri, { fromUserGesture: true });\n\t\t\t\treturn this.openerService.open(uri, { fromUserGesture: true, editorOptions: { pinned: true } });\n\t\t\t\treturn this.openerService.open(uri, { fromUserGesture: true });\n\t\t\t\treturn this.openerService.open(uri, { fromUserGesture: true, editorOptions: { pinned: true } });\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/1357f6d4940ee109222d3469b88363e35caa2d73", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tlet payload = Object.create(null);\n\tlet payloadRaw = Object.create(null);\n\tlet payloadMap = new Map();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/57fc7c21ac975fb3c886d6c6ade74a6ead825b4d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\t\t\t\t\tpayload = JSON.parse(value);\n\t\t\t\t\tpayloadRaw = JSON.parse(value);\n\t\t\t\t\tif (Array.isArray(payloadRaw)) {\n\t\t\t\t\t\tpayloadMap = new Map(payloadRaw);\n\t\t\t\t\t}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/57fc7c21ac975fb3c886d6c6ade74a6ead825b4d", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\tconst workspaceProvider = new WorkspaceProvider(workspace, payload);\n\tconst workspaceProvider = new WorkspaceProvider(workspace, payloadRaw);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/57fc7c21ac975fb3c886d6c6ade74a6ead825b4d", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "import { getCodeEditor } from 'vs/editor/browser/editorBrowser';\nimport { getIEditor } from 'vs/editor/browser/editorBrowser';\n\tconst activeGroupCodeEditor = group.activeEditorPane ? getCodeEditor(group.activeEditorPane.getControl()) : undefined;\n\tconst activeGroupCodeEditor = group.activeEditorPane ? getIEditor(group.activeEditorPane.getControl()) : undefined;\nimport { getCodeEditor } from 'vs/editor/browser/editorBrowser';\nimport { getIEditor } from 'vs/editor/browser/editorBrowser';\n\t\t\t\t\tstate: withNullAsUndefined(getCodeEditor(activeEditorPane.getControl())?.saveViewState())\n\t\t\t\t\tstate: withNullAsUndefined(getIEditor(activeEditorPane.getControl())?.saveViewState())\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/fca5c66e0dc2ecfa4f0c2308887a58d6332e1d1a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "\tconst activeGroupCodeEditor = group.activeEditorPane ? getCodeEditor(group.activeEditorPane.getControl()) : undefined;\n\tconst activeGroupCodeEditor = group.activeEditorPane ? getIEditor(group.activeEditorPane.getControl()) : undefined;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/fca5c66e0dc2ecfa4f0c2308887a58d6332e1d1a", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": "import { getCodeEditor } from 'vs/editor/browser/editorBrowser';\nimport { getIEditor } from 'vs/editor/browser/editorBrowser';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/fca5c66e0dc2ecfa4f0c2308887a58d6332e1d1a", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": "\t\t\t\t\tstate: withNullAsUndefined(getCodeEditor(activeEditorPane.getControl())?.saveViewState())\n\t\t\t\t\tstate: withNullAsUndefined(getIEditor(activeEditorPane.getControl())?.saveViewState())\nimport { getCodeEditor } from 'vs/editor/browser/editorBrowser';\nimport { getIEditor } from 'vs/editor/browser/editorBrowser';\n\tconst activeGroupCodeEditor = group.activeEditorPane ? getCodeEditor(group.activeEditorPane.getControl()) : undefined;\n\tconst activeGroupCodeEditor = group.activeEditorPane ? getIEditor(group.activeEditorPane.getControl()) : undefined;\nimport { getCodeEditor } from 'vs/editor/browser/editorBrowser';\nimport { getIEditor } from 'vs/editor/browser/editorBrowser';\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/fca5c66e0dc2ecfa4f0c2308887a58d6332e1d1a", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\t\t\t\t\t\treturn localize('extension-arialabel', \"{0}. Press enter for extension details.\", extensionData.extension.displayName);\n\t\t\t\t\t\tconst extension = extensionData.extension;\n\t\t\t\t\t\treturn localize('extension-arialabel', \"{0}, {1}, {2}, press enter for extension details.\", extension.displayName, extension.version, extension.publisherDisplayName);\n\t\t\t\t\treturn extension ? localize('extension-arialabel', \"{0}. Press enter for extension details.\", extension.displayName) : '';\n\t\t\t\t\treturn extension ? localize('extension-arialabel', \"{0}, {1}, {2}, press enter for extension details.\", extension.displayName, extension.version, extension.publisherDisplayName) : '';\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/55e09d6bf8426a70b27ca46f405c3377f79c8b1d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "import { StatefullMarkdownCell } from 'vs/workbench/contrib/notebook/browser/view/renderers/markdownCell';\nimport { StatefulMarkdownCell } from 'vs/workbench/contrib/notebook/browser/view/renderers/markdownCell';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/0736d1bfa68df1a9d612ce4db52a3e595ed8b576", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\n\t\tthis.viewCell.editorHeight = realContentHeight;\n\t\tthis.relayoutCell();\n\n\t\tthis.viewCell.editorHeight = newHeight;\n\t\tthis.relayoutCell();\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/79fa27d2bd09eaa5b1c6598e0dba0e1b6040914e", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\twhen: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EXECUTING_NOTEBOOK.toNegated(), NOTEBOOK_EDITOR_RUNNABLE)\n\twhen: ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EXECUTING_NOTEBOOK.toNegated(), NOTEBOOK_EDITOR_RUNNABLE)\n\twhen: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EXECUTING_NOTEBOOK)\n\twhen: ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EXECUTING_NOTEBOOK)\n\t\t\t\twhen: NOTEBOOK_EDITOR_FOCUSED,\n\t\t\t\twhen: NOTEBOOK_IS_ACTIVE_EDITOR,\n\t\t\t\twhen: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_HAS_MULTIPLE_KERNELS),\n\t\t\t\twhen: ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_HAS_MULTIPLE_KERNELS),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.05555555555555555, "commit_url": "https://github.com/microsoft/vscode/commit/b9a0407103b37ec029334225497b80ac9baf96bd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\twhen: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EXECUTING_NOTEBOOK)\n\twhen: ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EXECUTING_NOTEBOOK)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.05555555555555555, "commit_url": "https://github.com/microsoft/vscode/commit/b9a0407103b37ec029334225497b80ac9baf96bd", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": "\t\t\t\twhen: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_HAS_MULTIPLE_KERNELS),\n\t\t\t\twhen: ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_HAS_MULTIPLE_KERNELS),\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/b9a0407103b37ec029334225497b80ac9baf96bd", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "\t\tthis.updateWindowZoomLevel();\n\t\tthis.updateWindowZoomLevel(false);\n\t\t\t\tthis.updateWindowZoomLevel();\n\t\t\t\tthis.updateWindowZoomLevel(true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/2e8b1458ad9fc6df9783cb1d20d888d25e73b119", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\tthis.updateWindowZoomLevel();\n\t\t\t\tthis.updateWindowZoomLevel(true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/2e8b1458ad9fc6df9783cb1d20d888d25e73b119", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tlet newZoomLevel = 0;\n\t\tlet configuredZoomLevel = 0;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/2e8b1458ad9fc6df9783cb1d20d888d25e73b119", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": "\t\t\tnewZoomLevel = windowConfig.window.zoomLevel;\n\t\t\tconfiguredZoomLevel = windowConfig.window.zoomLevel;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/2e8b1458ad9fc6df9783cb1d20d888d25e73b119", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 5, 7 ] }, { "input": "\t\t\tif (this.previousConfiguredZoomLevel === newZoomLevel) {\n\t\t\tif (this.previousConfiguredZoomLevel === configuredZoomLevel) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/2e8b1458ad9fc6df9783cb1d20d888d25e73b119", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 5, 6 ] }, { "input": "\t\t\tthis.previousConfiguredZoomLevel = newZoomLevel;\n\t\t\tthis.previousConfiguredZoomLevel = configuredZoomLevel;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/2e8b1458ad9fc6df9783cb1d20d888d25e73b119", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": "\t\t\t// See https://github.com/Microsoft/vscode/issues/26151\n\t\t\t// See https://github.com/Microsoft/vscode/issues/26151\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/microsoft/vscode/commit/2e8b1458ad9fc6df9783cb1d20d888d25e73b119", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": "\t\t\tbrowser.setZoomLevel(webFrame.getZoomLevel(), /*isTrusted*/false);\n\t\t\t// See https://github.com/Microsoft/vscode/issues/26151\n\t\t\tbrowser.setZoomLevel(webFrame.getZoomLevel(), false /* isTrusted */);\n\t\t\tbrowser.setZoomLevel(webFrame.getZoomLevel(), /*isTrusted*/false);\n\t\t\t// See https://github.com/Microsoft/vscode/issues/26151\n\t\t\tbrowser.setZoomLevel(webFrame.getZoomLevel(), false /* isTrusted */);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/2e8b1458ad9fc6df9783cb1d20d888d25e73b119", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\treturn this._instantiationService.createInstance(IFrameWebview, id, options, contentOptions, extension, this._webviewThemeDataProvider, false);\n\t\treturn this._instantiationService.createInstance(IFrameWebview, id, options, contentOptions, extension, this._webviewThemeDataProvider);\n\t\t\treturn this._instantiationService.createInstance(IFrameWebview, id, options, contentOptions, extension, this._webviewThemeDataProvider, false);\n\t\t\treturn this._instantiationService.createInstance(IFrameWebview, id, options, contentOptions, extension, this._webviewThemeDataProvider);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/0cca8611cb707c524951a1207668f930c63ef9e1", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": "\t\tprimary: KeyChord(KeyMod.CtrlCmd | KeyCode.KEY_K, KeyMod.CtrlCmd | KeyCode.Enter),\n\t\tprimary: KeyChord(KeyMod.CtrlCmd | KeyCode.KEY_K, KeyMod.Shift | KeyCode.Enter),\n\t\tprimary: KeyChord(KeyMod.CtrlCmd | KeyCode.KEY_K, KeyMod.CtrlCmd | KeyCode.Enter),\n\t\tprimary: KeyChord(KeyMod.CtrlCmd | KeyCode.KEY_K, KeyMod.Shift | KeyCode.Enter),\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/af3d37848c49e763416cf927dcaf65ff3091cfd7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tthis._mdRenderer = instantiationService.createInstance(MarkdownRenderer);\n\t\tthis._mdRenderer = instantiationService.createInstance(MarkdownRenderer, undefined);\n\t\treturn instantiationService.createInstance(MarkdownCellViewModel, notebookViewModel.viewType, cell, notebookViewModel.layoutInfo, notebookViewModel, notebookViewModel.eventDispatcher);\n\t\tconst mdRenderer = instantiationService.createInstance(MarkdownRenderer, dirname(notebookViewModel.uri));\n\t\treturn instantiationService.createInstance(MarkdownCellViewModel, notebookViewModel.viewType, cell, notebookViewModel.layoutInfo, notebookViewModel, notebookViewModel.eventDispatcher, mdRenderer);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/93c2e7b0f615febd75c8dcb84a4bfbde025aa425", "target_edit_idx": 5, "propagatable_edit_idx": [ 14 ] }, { "input": "\t\treturn instantiationService.createInstance(MarkdownCellViewModel, notebookViewModel.viewType, cell, notebookViewModel.layoutInfo, notebookViewModel, notebookViewModel.eventDispatcher);\n\t\tconst mdRenderer = instantiationService.createInstance(MarkdownRenderer, dirname(notebookViewModel.uri));\n\t\treturn instantiationService.createInstance(MarkdownCellViewModel, notebookViewModel.viewType, cell, notebookViewModel.layoutInfo, notebookViewModel, notebookViewModel.eventDispatcher, mdRenderer);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/93c2e7b0f615febd75c8dcb84a4bfbde025aa425", "target_edit_idx": 14, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\treadonly provider: DocumentSymbolProvider,\n\t\treadonly providerIndex: number,\n\t\treadonly label: string,\n\t\treadonly order: number,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/microsoft/vscode/commit/20f06ed034df9eea10ea17cfc1725aa455036e8e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tlet res = new OutlineGroup(this.id, parent, this.provider, this.providerIndex);\n\t\tlet res = new OutlineGroup(this.id, parent, this.label, this.order);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/20f06ed034df9eea10ea17cfc1725aa455036e8e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 6 ] }, { "input": "\t\t\treturn element.provider.displayName || element.id;\n\t\t\treturn element.label;\n\t\t\treturn element.provider.displayName || element.id;\n\t\t\treturn element.label;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/20f06ed034df9eea10ea17cfc1725aa455036e8e", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\tcase 'extensionData':\n\t\t\t\t\tcase 'extensionData':\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/8b0ff0312b831f6dcf59d2f27b512ec44f31e46e", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tlocation: this.location,\n\t\t\tlocation: this.location?.toJSON(),\n\t\t\tlocation: this.location,\n\t\t\tlocation: this.location?.toJSON(),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/8b0ff0312b831f6dcf59d2f27b512ec44f31e46e", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "import { IViewsService } from 'vs/workbench/common/views';\nimport { IViewsService, IViewDescriptorService } from 'vs/workbench/common/views';\nimport { IViewsService } from 'vs/workbench/common/views';\nimport { IViewsService, IViewDescriptorService, ViewContainerLocation } from 'vs/workbench/common/views';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/92b9e7f53e105f850c76840b5c70d8bd8589e56c", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tif ((keyMods.ctrlCmd || forceSideBySide) && this.editorService.activeEditor) {\n\t\tif ((options.keyMods.ctrlCmd || options.forceSideBySide) && this.editorService.activeEditor) {\n\t\tif ((keyMods.ctrlCmd || forceSideBySide) && this.editorService.activeEditor) {\n\t\tif ((options.keyMods.ctrlCmd || options.forceSideBySide) && this.editorService.activeEditor) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/89522537066163dd038bb8e6e98c2ce75a728d76", "target_edit_idx": 8, "propagatable_edit_idx": [ 12 ] }, { "input": "\t\t\t\tselection: range,\n\t\t\t\tpinned: keyMods.alt || this.configuration.openEditorPinned\n\t\t\t\tselection: options.range,\n\t\t\t\tpinned: options.keyMods.alt || this.configuration.openEditorPinned\n\t\t\t\tselection: range,\n\t\t\t\tpinned: keyMods.alt || this.configuration.openEditorPinned\n\t\t\t\tselection: options.range,\n\t\t\t\tpinned: options.keyMods.alt || this.configuration.openEditorPinned\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/89522537066163dd038bb8e6e98c2ce75a728d76", "target_edit_idx": 9, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\t\tvalues = values.concat(map.get(SETTINGS_GROUP_KEY));\n\t\t\tvalues = values.concat(map.get(USER_TASKS_GROUP_KEY));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/2c1ad8e921b36d3b6e9f80a9b75814535514a616", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\t\t\tresult.set(SETTINGS_GROUP_KEY, userTasks);\n\t\t\t\t\tresult.set(USER_TASKS_GROUP_KEY, userTasks);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/2c1ad8e921b36d3b6e9f80a9b75814535514a616", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\t\t\t\t\t\t? getReportIssueArgsForError(previousState.error, previousVersion)\n\t\t\t\t\t\t\t\t? getReportIssueArgsForError(previousState.error)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/d17a017c0bc0efee06a07cce49d16d4a55d08914", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "function getReportIssueArgsForError(error: TypeScriptServerError, apiVersion: API): { issueTitle: string, issueBody: string } | undefined {\nfunction getReportIssueArgsForError(error: TypeScriptServerError): { issueTitle: string, issueBody: string } | undefined {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/d17a017c0bc0efee06a07cce49d16d4a55d08914", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\t\tif (range && range.end.isAfter(position) && range.start.isBeforeOrEqual(position)) {\n\t\t\t\t\t\titem.range2 = { inserting: new Range(range.start, position), replacing: range };\n\t\t\t\t\t\titem.range = undefined;\n\t\t\t\t\tif (range instanceof Range && range.end.isAfter(position) && range.start.isBeforeOrEqual(position)) {\n\t\t\t\t\t\titem.range = { inserting: new Range(range.start, position), replacing: range };\n\n\t\t\t\t\tif (range && range.end.isAfter(position) && range.start.isBeforeOrEqual(position)) {\n\t\t\t\t\t\titem.range2 = { inserting: new Range(range.start, position), replacing: range };\n\t\t\t\t\t\titem.range = undefined;\n\t\t\t\t\tif (range instanceof Range && range.end.isAfter(position) && range.start.isBeforeOrEqual(position)) {\n\t\t\t\t\t\titem.range = { inserting: new Range(range.start, position), replacing: range };\n\t\t\t\t\tif (range && range.end.isAfter(position) && range.start.isBeforeOrEqual(position)) {\n\t\t\t\t\t\titem.range2 = { inserting: new Range(range.start, position), replacing: range };\n\t\t\t\t\t\titem.range = undefined;\n\t\t\t\t\tif (range instanceof Range && range.end.isAfter(position) && range.start.isBeforeOrEqual(position)) {\n\t\t\t\t\t\titem.range = { inserting: new Range(range.start, position), replacing: range };\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/microsoft/vscode/commit/430de16fef29e537abf081176d0c2dcc74424de4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\t\tgetSimpleEditorOptions(),\n\t\t\tgetSimpleEditorOptions(false),\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/9d47191895b0705f689a234c1a4e1e790303cb70", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t// TODO@semantic: could we reduce the event here?\n\t\t// TODO@semantic: could we reduce the event here?\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/0065b37836099fce037c4665abdce9d34f0d2e93", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tthis._setSemanticTokens(currentRequestVersion, res || null);\n\t\t\tcontentChangeListener.dispose();\n\t\t\tthis._setSemanticTokens(res || null, pendingChanges);\n\t\t\tthis._setSemanticTokens(currentRequestVersion, null);\n\t\t\tcontentChangeListener.dispose();\n\t\t\tthis._setSemanticTokens(null, pendingChanges);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/0065b37836099fce037c4665abdce9d34f0d2e93", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\tconst target = (e.target as HTMLElement);\n\t\t\t\tthis._widgetManager.showMessage(target.offsetLeft, target.offsetTop, this._getLinkHoverString());\n\t\t\t\tconst font = this._configHelper.getFont();\n\t\t\t\tconst charWidth = font.charWidth;\n\t\t\t\tconst charHeight = font.charHeight;\n\n\t\t\t\tconst leftPosition = (location.start.col - 1) * (charWidth! + (font.letterSpacing / window.devicePixelRatio));\n\t\t\t\tconst bottomPosition = offsetRow * (charHeight! * font.lineHeight);\n\n\t\t\t\tthis._widgetManager.showMessage(leftPosition, bottomPosition, this._getLinkHoverString(), useTopPosition);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/microsoft/vscode/commit/771dffb5265b6eb68d5fbc305e8c6f7268cb6c41", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\tthis._widgetManager.showMessage(e.offsetX, e.offsetY, this._getLinkHoverString());\n\t\t\t\tconst target = (e.target as HTMLElement);\n\t\t\t\tconst colWidth = target.offsetWidth / this._xterm.cols;\n\t\t\t\tconst rowHeight = target.offsetHeight / this._xterm.rows;\n\n\t\t\t\tconst leftPosition = (location.start.col - 1) * colWidth;\n\t\t\t\tconst bottomPosition = offsetRow * rowHeight;\n\t\t\t\tthis._widgetManager.showMessage(leftPosition, bottomPosition, this._getLinkHoverString(), useTopPosition);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/microsoft/vscode/commit/771dffb5265b6eb68d5fbc305e8c6f7268cb6c41", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "\tprivate readonly _onDidClickLink = this._register(new Emitter());\n\tpublic readonly onDidClickLink = this._onDidClickLink.event;\n\n\tprivate readonly _onDidScroll = this._register(new Emitter<{ scrollYPercentage: number }>());\n\tpublic readonly onDidScroll = this._onDidScroll.event;\n\n\tprivate readonly _onDidClickLink = this._register(new Emitter());\n\tpublic readonly onDidClickLink = this._onDidClickLink.event;\n\n\tprivate readonly _onDidScroll = this._register(new Emitter<{ scrollYPercentage: number; }>());\n\tpublic readonly onDidScroll = this._onDidScroll.event;\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/95f8e3a1d3c8a309156ef7cfd3ed08e910896651", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": "\tprivate readonly _onMessage = this._register(new Emitter());\n\tpublic readonly onMessage = this._onMessage.event;\n\n\tprivate readonly _onMessage = this._register(new Emitter());\n\tpublic readonly onMessage = this._onMessage.event;\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/95f8e3a1d3c8a309156ef7cfd3ed08e910896651", "target_edit_idx": 5, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\t\tconst handled = await opener.open(resolved, options);\n\t\t\tconst handled = await opener.open(resource, options);\n\t\treturn this._doOpen(resolved, options);\n\t\treturn this._doOpen(resource, options);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/8283078f9305d1c4dec90179fbba5dede1ef3432", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\treturn this._doOpen(resolved, options);\n\t\treturn this._doOpen(resource, options);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/8283078f9305d1c4dec90179fbba5dede1ef3432", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tdom.windowOpenNoOpener(encodeURI(resource.toString(true)));\n\t\tconst { resolved } = await this.resolveExternalUri(resource, options);\n\t\tdom.windowOpenNoOpener(encodeURI(resolved.toString(true)));\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/8283078f9305d1c4dec90179fbba5dede1ef3432", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\t\t\t\t\tconst success = await this.windowsService.openExternal(encodeURI(resource.toString(true)));\n\t\t\t\t\tif (!success && resource.scheme === Schemas.file) {\n\t\t\t\t\tconst { resolved } = await this.openerService.resolveExternalUri(resource);\n\t\t\t\t\tconst success = await this.windowsService.openExternal(encodeURI(resolved.toString(true)));\n\t\t\t\t\tif (!success && resolved.scheme === Schemas.file) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/8283078f9305d1c4dec90179fbba5dede1ef3432", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "\t\t\t\t\t\tawait this.electronService.showItemInFolder(resource.fsPath);\n\t\t\t\t\t\tawait this.electronService.showItemInFolder(resolved.fsPath);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/8283078f9305d1c4dec90179fbba5dede1ef3432", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\t\tif (_explainMode) {\n\t\tif (explainMode) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/e1367743984e2a49002904ddf798a81f2fa78bab", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tif (!_explainMode && !canExpandCompletionItem(item)) {\n\t\tif (!explainMode && !canExpandCompletionItem(item)) {\n\t\tif (_explainMode) {\n\t\tif (explainMode) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/e1367743984e2a49002904ddf798a81f2fa78bab", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "\t// If whitespace exists, replace until it\n\n\t// If whitespace exists, replace until there is no more remaining.\n\t\t// If whitespace exists, replace until it\n\n\t\t// If whitespace exists, replace until there is no more remaining.\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/10b924d2d3a7b1273c009527bd781e38cfbe6287", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tthis.scheme = this.getScheme(options.defaultUri, options.availableFileSystems);\n\t\tthis.scheme = this.getScheme(options.availableFileSystems);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/985de26b3446636f86e2bb2b14dbeb9ec1e33207", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\tconst shellEnv = await getShellEnvironment(this.logService);\n\t\t\t\tconst shellEnv = await getShellEnvironment(this.logService, this.environmentService);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/205337f4ad3879b84bfd0e458085c89257fb49fd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\t\t\tconst userEnv = await getShellEnvironment(this.logService);\n\t\t\t\tconst userEnv = await getShellEnvironment(this.logService, this.environmentService);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/205337f4ad3879b84bfd0e458085c89257fb49fd", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\t\t\tvalue.suppressTaskName = false;\n\t\t\tvalue.suppressTaskName = (context.schemaVersion === Tasks.JsonSchemaVersion.V2_0_0);\n\t\t\tvalue.suppressTaskName = false;\n\t\t\tvalue.suppressTaskName = (context.schemaVersion === Tasks.JsonSchemaVersion.V2_0_0);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/c8fafc7d7382a4b4cb1066d110964a2daf104ebf", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "import { ExtensionActivationError, MissingDependenciesError } from 'vs/workbench/services/extensions/common/extensions';\nimport { ExtensionActivationError, MissingDependencyError } from 'vs/workbench/services/extensions/common/extensions';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/275fb51519bd68ad9853575dbf5ad58d61bcfd85", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "export type ExtensionActivationError = string | MissingDependenciesError;\nexport class MissingDependenciesError {\n\tconstructor(readonly dependencies: string[]) { }\nexport type ExtensionActivationError = string | MissingDependencyError;\nexport class MissingDependencyError {\n\tconstructor(readonly dependency: string) { }\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/275fb51519bd68ad9853575dbf5ad58d61bcfd85", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "function moveActiveTab(args: ActiveEditorMoveArguments, control: IEditor, accessor: ServicesAccessor): void {\nfunction moveActiveTab(args: ActiveEditorMoveArguments, control: IActiveEditor, accessor: ServicesAccessor): void {\nfunction moveActiveEditorToGroup(args: ActiveEditorMoveArguments, control: IEditor, accessor: ServicesAccessor): void {\nfunction moveActiveEditorToGroup(args: ActiveEditorMoveArguments, control: IActiveEditor, accessor: ServicesAccessor): void {\n\treadonly activeControl: IEditor;\n\treadonly activeControl: IActiveEditor;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/bdfb6157618d523cf9b57d9100afcf2800b2fbd5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "function moveActiveEditorToGroup(args: ActiveEditorMoveArguments, control: IEditor, accessor: ServicesAccessor): void {\nfunction moveActiveEditorToGroup(args: ActiveEditorMoveArguments, control: IActiveEditor, accessor: ServicesAccessor): void {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/bdfb6157618d523cf9b57d9100afcf2800b2fbd5", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4 ] }, { "input": "\treadonly activeControl: IEditor;\n\treadonly activeControl: IActiveEditor;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/bdfb6157618d523cf9b57d9100afcf2800b2fbd5", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "\t\t\t\tlet task = resolver.resolve(dependency.workspaceFolder, dependency.task!);\n\t\t\t\tif (task) {\n\t\t\t\t\tlet key = task.getMapKey();\n\t\t\t\tlet dependencyTask = resolver.resolve(dependency.workspaceFolder, dependency.task!);\n\t\t\t\tif (dependencyTask) {\n\t\t\t\t\tlet key = dependencyTask.getMapKey();\n\t\t\t\t\t\tpromise = this.executeTask(task, resolver, trigger);\n\t\t\t\t\t\tthis._onDidStateChange.fire(TaskEvent.create(TaskEventKind.DependsOnStarted, task));\n\t\t\t\t\t\tpromise = this.executeTask(dependencyTask, resolver, trigger);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/80a1a06e715b402ca8cd1641108611e150a49984", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\t\tpromise = this.executeTask(task, resolver, trigger);\n\t\t\t\t\t\tthis._onDidStateChange.fire(TaskEvent.create(TaskEventKind.DependsOnStarted, task));\n\t\t\t\t\t\tpromise = this.executeTask(dependencyTask, resolver, trigger);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/80a1a06e715b402ca8cd1641108611e150a49984", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tproblemPatternExtPoint.setHandler((extensions) => {\n\t\t\tproblemPatternExtPoint.setHandler((extensions, delta) => {\n\t\t\tproblemMatchersExtPoint.setHandler((extensions) => {\n\t\t\tproblemMatchersExtPoint.setHandler((extensions, delta) => {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/48d48a0388fb0067dd8b9e5fb5cd4b7749a32a41", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\textensions.forEach(extension => {\n\t\t\t\t\tdelta.removed.forEach(extension => {\n\t\t\t\t\t\tlet problemPatterns = extension.value as Config.NamedProblemPatterns;\n\t\t\t\t\t\tfor (let pattern of problemPatterns) {\n\t\t\t\t\t\t\tif (this.patterns[pattern.name]) {\n\t\t\t\t\t\t\t\tdelete this.patterns[pattern.name];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tdelta.added.forEach(extension => {\n\t\t\t\t\textensions.forEach(extension => {\n\t\t\t\t\tdelta.removed.forEach(extension => {\n\t\t\t\t\t\tlet problemMatchers = extension.value;\n\t\t\t\t\t\tfor (let matcher of problemMatchers) {\n\t\t\t\t\t\t\tif (this.matchers[matcher.name]) {\n\t\t\t\t\t\t\t\tdelete this.matchers[matcher.name];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tdelta.added.forEach(extension => {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/48d48a0388fb0067dd8b9e5fb5cd4b7749a32a41", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\t\tthis._decodeStream.end();\n\t\t\t\t\tthis._decodeStream.end(callback);\n\t\t\t\t\tthis._startDecodeStream(() => this._decodeStream.end());\n\t\t\t\t\tthis._startDecodeStream(() => this._decodeStream.end(callback));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/microsoft/vscode/commit/1934d4b269cc5bb3dfaf72e2c00118a3567e9030", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\tthis._startDecodeStream(() => this._decodeStream.end());\n\t\t\t\t\tthis._startDecodeStream(() => this._decodeStream.end(callback));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/microsoft/vscode/commit/1934d4b269cc5bb3dfaf72e2c00118a3567e9030", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "class OutlineAdapter {\nclass DocumentSymbolAdapter {\n\t\treturn this._withAdapter(handle, OutlineAdapter, adapter => adapter.provideDocumentSymbols(URI.revive(resource), token));\n\t\treturn this._withAdapter(handle, DocumentSymbolAdapter, adapter => adapter.provideDocumentSymbols(URI.revive(resource), token));\ntype Adapter = OutlineAdapter | CodeLensAdapter | DefinitionAdapter | HoverAdapter\ntype Adapter = DocumentSymbolAdapter | CodeLensAdapter | DefinitionAdapter | HoverAdapter\n\t\tconst handle = this._addNewAdapter(new OutlineAdapter(this._documents, provider), extension);\n\t\tconst handle = this._addNewAdapter(new DocumentSymbolAdapter(this._documents, provider), extension);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f9dac5925447293678b81e817fa077a5bc1b9d3c", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": "\t\t\t\tname: info.name,\n\t\t\t\tname: info.name || '!!MISSING: name!!',\n\t\t\tname: info.name,\n\t\t\tname: info.name || '!!MISSING: name!!',\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/f9dac5925447293678b81e817fa077a5bc1b9d3c", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": "type Adapter = OutlineAdapter | CodeLensAdapter | DefinitionAdapter | HoverAdapter\ntype Adapter = DocumentSymbolAdapter | CodeLensAdapter | DefinitionAdapter | HoverAdapter\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f9dac5925447293678b81e817fa077a5bc1b9d3c", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 8, 7 ] }, { "input": "\t\t\tthis.viewer.setFocus([nextFocusElement]);\n\t\t\tthis.viewer.setFocus([nextFocusElement], getKeyboardEventForEditorOpen());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/d97fce931ec92e95c9c4e57bb929647896eaf1a4", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "\t\t\t\tthis.viewer.setFocus([elementToFocus]);\n\t\t\t\tthis.viewer.setFocus([elementToFocus], getKeyboardEventForEditorOpen());\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/d97fce931ec92e95c9c4e57bb929647896eaf1a4", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "\t\t\t\t\t\tthread.fetchCallStack(19).then(() => this._onDidChangeCallStack.fire());\n\t\t\t\t\t\tthread.fetchCallStack(19).then(() => this._onDidChangeCallStack.fire(thread));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/microsoft/vscode/commit/b995df24fa0cf4c3e99463296601e76ae2e3ba73", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\tthis._onDidChangeCallStack.fire();\n\t\t\t\tthis._onDidChangeCallStack.fire(thread);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/microsoft/vscode/commit/b995df24fa0cf4c3e99463296601e76ae2e3ba73", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\treturn new LanguageSelection(this._registry, () => {\n\t\treturn new LanguageSelection(this.onLanguagesMaybeChanged, () => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.11764705882352941, "commit_url": "https://github.com/microsoft/vscode/commit/ba61718a035fa2d08cf9873d659f867b268f653e", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "\t\t\t\tlet processStartedSignaled: boolean = false;\n\t\t\t\tlet processStartedSignaled = false;\n\t\t\t\tlet processStartedSignaled: boolean = false;\n\n\t\t\t\tlet processStartedSignaled = false;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/cbda7166a0afa959fa33133b20ddafc9d35a2542", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\t\tprocessStartedSignaled = true;\n\t\t\t\t\tthis._onDidStateChange.fire(TaskEvent.create(TaskEventKind.ProcessStarted, task, terminal.processId));\n\t\t\t\t\tif (!processStartedSignaled) {\n\t\t\t\t\t\tthis._onDidStateChange.fire(TaskEvent.create(TaskEventKind.ProcessStarted, task, terminal.processId));\n\t\t\t\t\t\tprocessStartedSignaled = true;\n\t\t\t\t\t}\n\t\t\t\t\tprocessStartedSignaled = true;\n\t\t\t\t\tthis._onDidStateChange.fire(TaskEvent.create(TaskEventKind.ProcessStarted, task, terminal.processId));\n\t\t\t\t\tif (!processStartedSignaled) {\n\t\t\t\t\t\tthis._onDidStateChange.fire(TaskEvent.create(TaskEventKind.ProcessStarted, task, terminal.processId));\n\t\t\t\t\t\tprocessStartedSignaled = true;\n\t\t\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/microsoft/vscode/commit/cbda7166a0afa959fa33133b20ddafc9d35a2542", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\t\t\tif (processStartedSignaled) {\n\t\t\t\t\t\tthis._onDidStateChange.fire(TaskEvent.create(TaskEventKind.ProcessEnded, task, exitCode));\n\t\t\t\t\tif (!processStartedSignaled) {\n\t\t\t\t\t\tthis._onDidStateChange.fire(TaskEvent.create(TaskEventKind.ProcessStarted, task, terminal.processId));\n\t\t\t\t\t\tprocessStartedSignaled = true;\n\t\t\t\t\tif (processStartedSignaled) {\n\t\t\t\t\t\tthis._onDidStateChange.fire(TaskEvent.create(TaskEventKind.ProcessEnded, task, exitCode));\n\t\t\t\t\tif (!processStartedSignaled) {\n\t\t\t\t\t\tthis._onDidStateChange.fire(TaskEvent.create(TaskEventKind.ProcessStarted, task, terminal.processId));\n\t\t\t\t\t\tprocessStartedSignaled = true;\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/microsoft/vscode/commit/cbda7166a0afa959fa33133b20ddafc9d35a2542", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": "\tprotected readonly _outlineSort: BreadcrumbsConfig<'position' | 'name' | 'type'>;\n\tprotected readonly _symbolSortOrder: BreadcrumbsConfig<'position' | 'name' | 'type'>;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/096a54b98aa367db3d0366410d4f4756206998eb", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": "\t\tthis._outlineSort = BreadcrumbsConfig.OutlineSort.bindTo(this._configurationService);\n\t\tthis._symbolSortOrder = BreadcrumbsConfig.SymbolSortOrder.bindTo(this._configurationService);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/096a54b98aa367db3d0366410d4f4756206998eb", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6, 7 ] }, { "input": "\t\tthis._outlineSort.dispose();\n\t\tthis._symbolSortOrder.dispose();\n\tprotected readonly _outlineSort: BreadcrumbsConfig<'position' | 'name' | 'type'>;\n\tprotected readonly _symbolSortOrder: BreadcrumbsConfig<'position' | 'name' | 'type'>;\n\t\tthis._outlineSort = BreadcrumbsConfig.OutlineSort.bindTo(this._configurationService);\n\t\tthis._symbolSortOrder = BreadcrumbsConfig.SymbolSortOrder.bindTo(this._configurationService);\n\t\tswitch (this._outlineSort.getValue()) {\n\t\tswitch (this._symbolSortOrder.getValue()) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/096a54b98aa367db3d0366410d4f4756206998eb", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5, 7 ] }, { "input": "\t\tswitch (this._outlineSort.getValue()) {\n\t\tswitch (this._symbolSortOrder.getValue()) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/096a54b98aa367db3d0366410d4f4756206998eb", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": "import { TPromise } from 'vs/base/common/winjs.base';\nimport { TPromise } from 'vs/base/common/winjs.base';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6b661d0240380ba5d5f2825ba032650500cec66a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\tprivate writeConfiguration(target: ConfigurationTarget, key: string, value: any, resource: URI): TPromise {\n\tprivate writeConfiguration(target: ConfigurationTarget, key: string, value: any, resource: URI): Promise {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6b661d0240380ba5d5f2825ba032650500cec66a", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "\t\t\t\treturn TPromise.wrapError(err);\n\t\t\t\treturn Promise.reject(err);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6b661d0240380ba5d5f2825ba032650500cec66a", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": "namespace SchemaRetryNotification {\n\texport const type: NotificationType = new NotificationType('json/schemaRetry');\nnamespace ForceValidateRequest {\n\texport const type: RequestType = new RequestType('json/validate');\n\t\t\t\tclient.sendNotification(SchemaRetryNotification.type, window.activeTextEditor.document.uri.toString());\n\t\t\t\tclient.sendRequest(ForceValidateRequest.type, window.activeTextEditor.document.uri.toString());\nnamespace SchemaRetryNotification {\n\texport const type: NotificationType = new NotificationType('json/schemaRetry');\nnamespace ForceValidateRequest {\n\texport const type: RequestType = new RequestType('json/validate');\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/54f4967761ca9567295ec14d35d6b530714359ab", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\t\t\tclient.sendNotification(SchemaRetryNotification.type, window.activeTextEditor.document.uri.toString());\n\t\t\t\tclient.sendRequest(ForceValidateRequest.type, window.activeTextEditor.document.uri.toString());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/54f4967761ca9567295ec14d35d6b530714359ab", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\tapply(edit: WorkspaceEdit, options: IBulkEditOptions): TPromise;\n\tapply(edit: WorkspaceEdit, options: IBulkEditOptions): Promise;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/c8ce044fa38ed5f19069f4a3a13bd6b3188ff362", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 8, 9, 10 ] }, { "input": "\tapply(workspaceEdit: WorkspaceEdit, options: IBulkEditOptions): TPromise {\n\tapply(workspaceEdit: WorkspaceEdit, options: IBulkEditOptions): Promise {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.10714285714285714, "commit_url": "https://github.com/microsoft/vscode/commit/c8ce044fa38ed5f19069f4a3a13bd6b3188ff362", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 5, 8, 9, 10 ] }, { "input": "\t\t\t\treturn TPromise.wrapError(new Error('bad edit - only text edits are supported'));\n\t\t\t\treturn Promise.reject(new Error('bad edit - only text edits are supported'));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.10714285714285714, "commit_url": "https://github.com/microsoft/vscode/commit/c8ce044fa38ed5f19069f4a3a13bd6b3188ff362", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 5, 8, 9, 10 ] }, { "input": "\t\t\t\treturn TPromise.wrapError(new Error('bad edit - model not found'));\n\t\t\t\treturn Promise.reject(new Error('bad edit - model not found'));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.10714285714285714, "commit_url": "https://github.com/microsoft/vscode/commit/c8ce044fa38ed5f19069f4a3a13bd6b3188ff362", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5, 8, 9, 10 ] }, { "input": "\t\treturn TPromise.as({\n\t\treturn Promise.resolve({\n\tapply(edit: WorkspaceEdit, options: IBulkEditOptions): TPromise;\n\tapply(edit: WorkspaceEdit, options: IBulkEditOptions): Promise;\n\tapply(workspaceEdit: WorkspaceEdit, options: IBulkEditOptions): TPromise {\n\tapply(workspaceEdit: WorkspaceEdit, options: IBulkEditOptions): Promise {\n\t\t\t\treturn TPromise.wrapError(new Error('bad edit - only text edits are supported'));\n\t\t\t\treturn Promise.reject(new Error('bad edit - only text edits are supported'));\n\t\t\t\treturn TPromise.wrapError(new Error('bad edit - model not found'));\n\t\t\t\treturn Promise.reject(new Error('bad edit - model not found'));\n\t\tawait TPromise.join(promises);\n\t\tawait Promise.all(promises);\n\tapply(edit: WorkspaceEdit, options: IBulkEditOptions = {}): TPromise {\n\tapply(edit: WorkspaceEdit, options: IBulkEditOptions = {}): Promise {\n\t\t\t\t\treturn TPromise.wrapError(new Error(`${model.uri.toString()} has changed in the meantime`));\n\t\t\t\t\treturn Promise.reject(new Error(`${model.uri.toString()} has changed in the meantime`));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.10714285714285714, "commit_url": "https://github.com/microsoft/vscode/commit/c8ce044fa38ed5f19069f4a3a13bd6b3188ff362", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 4, 8, 9, 10 ] }, { "input": "\t\t\t\t\treturn TPromise.wrapError(new Error(`${model.uri.toString()} has changed in the meantime`));\n\t\t\t\t\treturn Promise.reject(new Error(`${model.uri.toString()} has changed in the meantime`));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/c8ce044fa38ed5f19069f4a3a13bd6b3188ff362", "target_edit_idx": 10, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 8, 9 ] }, { "input": "\tconst activeBackgroundColor = theme.getColor(ACTIVITY_BAR_FOREGROUND);\n\tif (activeBackgroundColor) {\n\tconst activeForegroundColor = theme.getColor(ACTIVITY_BAR_FOREGROUND);\n\tif (activeForegroundColor) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/39b0433444b52c0a7d748b2c66d3b8e2f840d24c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\tbackground-color: ${activeBackgroundColor} !important;\n\t\t\t\tbackground-color: ${activeForegroundColor} !important;\n\tconst activeBackgroundColor = theme.getColor(ACTIVITY_BAR_FOREGROUND);\n\tif (activeBackgroundColor) {\n\tconst activeForegroundColor = theme.getColor(ACTIVITY_BAR_FOREGROUND);\n\tif (activeForegroundColor) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/39b0433444b52c0a7d748b2c66d3b8e2f840d24c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t\tconsole.log('%c[File Watcher (node.js)]%c', 'color: blue', 'color: black', event.type === FileChangeType.ADDED ? '[ADDED]' : event.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]', event.path);\n\t\t\tconsole.log('%c[File Watcher (node.js)]%c', 'color: blue', 'color: black', `${event.type === FileChangeType.ADDED ? '[ADDED]' : event.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]'} ${event.path}`);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.29411764705882354, "commit_url": "https://github.com/microsoft/vscode/commit/25558ca524e62b782014e5ef97438474cc32f42e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": "\t\t\t\t\tconsole.log('%c[File Watcher (node.js)]%c >> normalized', 'color: blue', 'color: black', r.type === FileChangeType.ADDED ? '[ADDED]' : r.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]', r.path);\n\t\t\t\t\tconsole.log('%c[File Watcher (node.js)]%c >> normalized', 'color: blue', 'color: black', `${r.type === FileChangeType.ADDED ? '[ADDED]' : r.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]'} ${r.path}`);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.29411764705882354, "commit_url": "https://github.com/microsoft/vscode/commit/25558ca524e62b782014e5ef97438474cc32f42e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5 ] }, { "input": "\t\t\t\t\tconsole.log(e.action === nsfw.actions.CREATED ? '[CREATED]' : e.action === nsfw.actions.DELETED ? '[DELETED]' : e.action === nsfw.actions.MODIFIED ? '[CHANGED]' : '[RENAMED]', logPath);\n\t\t\t\t\tconsole.log(`${e.action === nsfw.actions.CREATED ? '[CREATED]' : e.action === nsfw.actions.DELETED ? '[DELETED]' : e.action === nsfw.actions.MODIFIED ? '[CHANGED]' : '[RENAMED]'} ${logPath}`);\n\t\t\tconsole.log('%c[File Watcher (node.js)]%c', 'color: blue', 'color: black', event.type === FileChangeType.ADDED ? '[ADDED]' : event.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]', event.path);\n\t\t\tconsole.log('%c[File Watcher (node.js)]%c', 'color: blue', 'color: black', `${event.type === FileChangeType.ADDED ? '[ADDED]' : event.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]'} ${event.path}`);\n\t\t\t\t\tconsole.log('%c[File Watcher (node.js)]%c >> normalized', 'color: blue', 'color: black', r.type === FileChangeType.ADDED ? '[ADDED]' : r.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]', r.path);\n\t\t\t\t\tconsole.log('%c[File Watcher (node.js)]%c >> normalized', 'color: blue', 'color: black', `${r.type === FileChangeType.ADDED ? '[ADDED]' : r.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]'} ${r.path}`);\n\t\t\t\t\t\tconsole.log(' >> normalized', r.type === FileChangeType.ADDED ? '[ADDED]' : r.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]', r.path);\n\t\t\t\t\t\tconsole.log(` >> normalized ${r.type === FileChangeType.ADDED ? '[ADDED]' : r.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]'} ${r.path}`);\n\t\t\t\tconsole.log(eventType === FileChangeType.ADDED ? '[ADDED]' : eventType === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]', path);\n\t\t\t\tconsole.log(`${eventType === FileChangeType.ADDED ? '[ADDED]' : eventType === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]'} ${path}`);\n\t\t\t\t\t\tconsole.log(' >> normalized', r.type === FileChangeType.ADDED ? '[ADDED]' : r.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]', r.path);\n\t\t\t\t\t\tconsole.log(` >> normalized ${r.type === FileChangeType.ADDED ? '[ADDED]' : r.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]'} ${r.path}`);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.29411764705882354, "commit_url": "https://github.com/microsoft/vscode/commit/25558ca524e62b782014e5ef97438474cc32f42e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5 ] }, { "input": "\t\t\t\t\t\tconsole.log(' >> normalized', r.type === FileChangeType.ADDED ? '[ADDED]' : r.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]', r.path);\n\t\t\t\t\t\tconsole.log(` >> normalized ${r.type === FileChangeType.ADDED ? '[ADDED]' : r.type === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]'} ${r.path}`);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.29411764705882354, "commit_url": "https://github.com/microsoft/vscode/commit/25558ca524e62b782014e5ef97438474cc32f42e", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5 ] }, { "input": "\t\t\t\tconsole.log(eventType === FileChangeType.ADDED ? '[ADDED]' : eventType === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]', path);\n\t\t\t\tconsole.log(`${eventType === FileChangeType.ADDED ? '[ADDED]' : eventType === FileChangeType.DELETED ? '[DELETED]' : '[CHANGED]'} ${path}`);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.29411764705882354, "commit_url": "https://github.com/microsoft/vscode/commit/25558ca524e62b782014e5ef97438474cc32f42e", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5 ] }, { "input": "function createEmptyView() {\nfunction createEmptyView(background: Color): ISplitViewView {\n\tconst element = $('.centered-layout-margin');\n\telement.style.height = '100%';\n\telement.style.backgroundColor = background.toString();\n\n\t\t\tthis.splitView.addView(createEmptyView(), this.state.leftMarginRatio * this.width, 0);\n\t\t\tthis.splitView.addView(createEmptyView(), this.state.rightMarginRatio * this.width, 2);\n\t\t\tthis.emptyViews = [createEmptyView(this.style.background), createEmptyView(this.style.background)];\n\t\t\tthis.splitView.addView(this.emptyViews[0], this.state.leftMarginRatio * this.width, 0);\n\t\t\tthis.splitView.addView(this.emptyViews[1], this.state.rightMarginRatio * this.width, 2);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/82b74e2679f0009e33338c2339cdebe1d0cad256", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": "\tprivate style: ISplitViewStyles;\n\tprivate style: ICenteredViewStyles;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/82b74e2679f0009e33338c2339cdebe1d0cad256", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\tstyles(style: ISplitViewStyles): void {\n\tstyles(style: ICenteredViewStyles): void {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/82b74e2679f0009e33338c2339cdebe1d0cad256", "target_edit_idx": 6, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tthis.splitView.addView(createEmptyView(), this.state.leftMarginRatio * this.width, 0);\n\t\t\tthis.splitView.addView(createEmptyView(), this.state.rightMarginRatio * this.width, 2);\n\t\t\tthis.emptyViews = [createEmptyView(this.style.background), createEmptyView(this.style.background)];\n\t\t\tthis.splitView.addView(this.emptyViews[0], this.state.leftMarginRatio * this.width, 0);\n\t\t\tthis.splitView.addView(this.emptyViews[1], this.state.rightMarginRatio * this.width, 2);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/82b74e2679f0009e33338c2339cdebe1d0cad256", "target_edit_idx": 8, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tlet done = (err: Error, stdout?: string, last?: boolean) => {\n\t\tlet onData = (err: Error, stdout?: string, last?: boolean) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6d1ee0697b9de4f959e1c26ca24e988ece0ebd76", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5, 9, 11, 12, 13 ] }, { "input": "\t\t\t\tdone = () => { };\n\t\t\t\tonData = () => { };\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6d1ee0697b9de4f959e1c26ca24e988ece0ebd76", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 5, 9, 11, 12, 13 ] }, { "input": "\t\t\tdone(err);\n\t\t\tonData(err);\n\t\tlet done = (err: Error, stdout?: string, last?: boolean) => {\n\t\tlet onData = (err: Error, stdout?: string, last?: boolean) => {\n\t\t\t\tdone = () => { };\n\t\t\t\tonData = () => { };\n\t\t\t\tdone(new Error(`command failed with error code ${code}: ${displayMsg}`));\n\t\t\t\tonData(new Error(`command failed with error code ${code}: ${displayMsg}`));\n\t\t\t\tdone(null, '', true);\n\t\t\t\tonData(null, '', true);\n\t\t\t\tdone = () => { };\n\t\t\t\tonData = () => { };\n\t\t\tdone(err);\n\t\t\tonData(err);\n\t\t\t\tdone(new Error(`command failed with error code ${code}: ${this.decodeData(stderr, encoding)}`));\n\t\t\t\tonData(new Error(`command failed with error code ${code}: ${this.decodeData(stderr, encoding)}`));\n\t\t\t\tdone(null, '', true);\n\t\t\t\tonData(null, '', true);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6d1ee0697b9de4f959e1c26ca24e988ece0ebd76", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 4, 5, 9, 11, 12, 13 ] }, { "input": "\t\t\t\tdone(new Error(`command failed with error code ${code}: ${displayMsg}`));\n\t\t\t\tonData(new Error(`command failed with error code ${code}: ${displayMsg}`));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6d1ee0697b9de4f959e1c26ca24e988ece0ebd76", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3, 5, 9, 11, 12, 13 ] }, { "input": "\t\t\t\tdone(null, '', true);\n\t\t\t\tonData(null, '', true);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6d1ee0697b9de4f959e1c26ca24e988ece0ebd76", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 3, 4, 9, 11, 12, 13 ] }, { "input": "\t\tthis.collectStdout(cmd, 'utf8', useRipgrep, (err: Error, stdout?: string, last?: boolean) => {\n\t\tthis.collectStdout(cmd, 'utf8', useRipgrep, onMessage, (err: Error, stdout?: string, last?: boolean) => {\n\t\tthis.collectStdout(cmd, encoding, isRipgrep, (err: Error, stdout?: string, last?: boolean) => {\n\t\tthis.collectStdout(cmd, encoding, isRipgrep, () => { }, (err: Error, stdout?: string, last?: boolean) => {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/6d1ee0697b9de4f959e1c26ca24e988ece0ebd76", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\tdone(err);\n\t\t\tonData(err);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6d1ee0697b9de4f959e1c26ca24e988ece0ebd76", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 9, 12, 13 ] }, { "input": "\t\t\t\tdone(new Error(`command failed with error code ${code}: ${this.decodeData(stderr, encoding)}`));\n\t\t\t\tonData(new Error(`command failed with error code ${code}: ${this.decodeData(stderr, encoding)}`));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6d1ee0697b9de4f959e1c26ca24e988ece0ebd76", "target_edit_idx": 12, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 9, 11, 13 ] }, { "input": "\topenConfigFile(sideBySide: boolean, type?: string): TPromise;\n\topenConfigFile(sideBySide: boolean, type?: string): TPromise<{ editor: IEditor, created: boolean }>;\n\tpublic openConfigFile(sideBySide: boolean, type?: string): TPromise {\n\tpublic openConfigFile(sideBySide: boolean, type?: string): TPromise<{ editor: IEditor, created: boolean }> {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/6a1ca0a6d502333bcc0cbdce66581e48084e7dcd", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\tlet pinned = false;\n\t\t\tlet created = false;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6a1ca0a6d502333bcc0cbdce66581e48084e7dcd", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\tpinned = true; // pin only if config file is created #8727\n\t\t\t\t\tcreated = true; // pin only if config file is created #8727\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/6a1ca0a6d502333bcc0cbdce66581e48084e7dcd", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tconst manager = new LanguageProvider(this.client, description, this.commandManager, this.client.telemetryReporter, this.typingsStatus, this.fileConfigurationManager);\n\t\t\tconst manager = new LanguageProvider(this.client, description, this.commandManager, this.client.telemetryReporter, this.typingsStatus, this.fileConfigurationManager, this.bufferSyncSupport);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/microsoft/vscode/commit/9197a53fe8c1146c642dd7487eaab54b8adc5ca8", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "import { ICommandService } from 'vs/platform/commands/common/commands';\nimport { ICommandService } from 'vs/platform/commands/common/commands';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/ca4f18dca9ea0bcfb82d58952fae604c2f02c7f7", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\t\tlet zoneWidget = new ReviewZoneWidget(this.instantiationService, this.modeService, this.modelService, this.editor, info.owner, thread, info.reply, {}, this.themeService, this.commandService, this.commentService);\n\t\t\t\t\tlet zoneWidget = new ReviewZoneWidget(this.instantiationService, this.modeService, this.modelService, this.themeService, this.commentService, this.editor, info.owner, thread, {});\n\t\t\t\tlet zoneWidget = new ReviewZoneWidget(this.instantiationService, this.modeService, this.modelService, this.editor, e.owner, thread, thread.reply, {}, this.themeService, this.commandService, this.commentService);\n\t\t\t\tlet zoneWidget = new ReviewZoneWidget(this.instantiationService, this.modeService, this.modelService, this.themeService, this.commentService, this.editor, e.owner, thread, {});\n\t\t\t\tlet zoneWidget = new ReviewZoneWidget(this.instantiationService, this.modeService, this.modelService, this.editor, info.owner, thread, info.reply, {}, this.themeService, this.commandService, this.commentService);\n\t\t\t\tlet zoneWidget = new ReviewZoneWidget(this.instantiationService, this.modeService, this.modelService, this.themeService, this.commentService, this.editor, info.owner, thread, {});\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/ca4f18dca9ea0bcfb82d58952fae604c2f02c7f7", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 11 ] }, { "input": "\t\t\t\tlet zoneWidget = new ReviewZoneWidget(this.instantiationService, this.modeService, this.modelService, this.editor, info.owner, thread, info.reply, {}, this.themeService, this.commandService, this.commentService);\n\t\t\t\tlet zoneWidget = new ReviewZoneWidget(this.instantiationService, this.modeService, this.modelService, this.themeService, this.commentService, this.editor, info.owner, thread, {});\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/ca4f18dca9ea0bcfb82d58952fae604c2f02c7f7", "target_edit_idx": 11, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "\t\t\tconst actions = DebugActionsWidget.getActions(this.allActions, this.toUnbind, this.debugService, this.keybindingService, this.instantiationService);\n\t\t\tconst actions = DebugActionsWidget.getActions(this.allActions, this.toUnbind, false, this.debugService, this.keybindingService, this.instantiationService);\n\t\treturn DebugActionsWidget.getActions(this.allActions, this.toUnbind, this.debugService, this.keybindingService, this.instantiationService);\n\t\treturn DebugActionsWidget.getActions(this.allActions, this.toUnbind, true, this.debugService, this.keybindingService, this.instantiationService);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/a86699e5b26a76cf974d29248f5795b37f64e0aa", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\treturn DebugActionsWidget.getActions(this.allActions, this.toUnbind, this.debugService, this.keybindingService, this.instantiationService);\n\t\treturn DebugActionsWidget.getActions(this.allActions, this.toUnbind, true, this.debugService, this.keybindingService, this.instantiationService);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/a86699e5b26a76cf974d29248f5795b37f64e0aa", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tconst diffEditorInstantiator = this.instantiationService.createChild(new ServiceCollection([IWorkbenchEditorService, delegatingEditorService]));\n\t\tconst diffEditorInstantiator = this.instantiationService.createChild(new ServiceCollection([INextEditorService, delegatingEditorService]));\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/31e42aac05f9f4297ec77eaf2b63f1be92c6cdbe", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tconst explorerInstantiator = this.instantiationService.createChild(new ServiceCollection([IWorkbenchEditorService, delegatingEditorService]));\n\t\t\tconst explorerInstantiator = this.instantiationService.createChild(new ServiceCollection([INextEditorService, delegatingEditorService]));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/31e42aac05f9f4297ec77eaf2b63f1be92c6cdbe", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tthis.select(selected);\n\t\t\t// Guard against out of bounds selected values\n\t\t\t// Cannot currently return error, set selected within range\n\t\t\tif (selected >= 0 && selected < this.options.length) {\n\t\t\t\tthis.select(selected);\n\t\t\t} else if (selected > this.options.length - 1) {\n\t\t\t\t// This could make client out of sync with the select\n\t\t\t\tthis.select(this.options.length - 1);\n\t\t\t\tconsole.error('selectBoxCustom: setOptions selected exceeds options length');\n\t\t\t} else if (selected < 0) {\n\t\t\t\tthis.selected = 0;\n\t\t\t}\n\t\t\tthis.select(selected);\n\t\t\t// Guard against out of bounds selected values\n\t\t\t// Cannot currently return error, set selected within range\n\t\t\tif (selected >= 0 && selected < this.options.length) {\n\t\t\t\tthis.select(selected);\n\t\t\t} else if (selected > this.options.length - 1) {\n\t\t\t\t// This could make client out of sync with the select\n\t\t\t\tthis.select(this.options.length - 1);\n\t\t\t\tconsole.error('selectBoxNative: setOptions selected exceeds options length');\n\t\t\t} else if (selected < 0) {\n\t\t\t\tthis.selected = 0;\n\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/043538eeb07fc8854d97d3abaed378b28240b804", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\texport function from(this: void, external: ConfigurationProperties, context: ParseContext, includePresentation: boolean): Tasks.ConfigurationProperties {\n\texport function from(this: void, external: ConfigurationProperties, context: ParseContext, includeCommandOptions: boolean): Tasks.ConfigurationProperties {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f8966be3056459bcf28bab6e82c32da267ba8d22", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tif (includePresentation && (external.presentation !== void 0 || (external as LegacyCommandProperties).terminal !== void 0)) {\n\t\tif (includeCommandOptions && (external.presentation !== void 0 || (external as LegacyCommandProperties).terminal !== void 0)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f8966be3056459bcf28bab6e82c32da267ba8d22", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "import strings = require('vs/base/common/strings');\nimport strings = require('vs/base/common/strings');\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/deeccfb1ff94ef89cbf8194bdf1d97f044a623e1", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tconst normalizedSearchValueLowercase = strings.stripWildcards(searchValue).toLowerCase();\n\t\tconst normalizedSearchValueLowercase = stripWildcards(searchValue).toLowerCase();\n\t\tconst normalizedSearchValueLowercase = strings.stripWildcards(searchValue).toLowerCase();\n\t\tconst normalizedSearchValueLowercase = stripWildcards(searchValue).toLowerCase();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/deeccfb1ff94ef89cbf8194bdf1d97f044a623e1", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": "\tprivate customTelemetryService: ITelemetryService;\n\t\tprivate customTelemetryService: ITelemetryService,\n\t\tpublic customTelemetryService: ITelemetryService,\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/45bc150e6d4e2ae675cae53958a1e232016e17b0", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tthis.value += '```';\n\t\tthis.value += '\\n```';\n\t\tthis.value += '```\\n';\n\t\tthis.value += '\\n```\\n';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/57da808a984cfc91174aab7bb07389c78fa4998e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "function toExtension(galleryExtension: IRawGalleryExtension, extensionsGalleryUrl: string): IGalleryExtension {\nfunction toExtension(galleryExtension: IRawGalleryExtension, extensionsGalleryUrl: string, index: number, query: Query): IGalleryExtension {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f117237ec50494e8c3a5bc67ab13c27bdf8a5dc3", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 5 ] }, { "input": "\t\t\tconst extensions = galleryExtensions.map(e => toExtension(e, this.extensionsGalleryUrl));\n\t\t\tconst extensions = galleryExtensions.map((e, index) => toExtension(e, this.extensionsGalleryUrl, index, query));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f117237ec50494e8c3a5bc67ab13c27bdf8a5dc3", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 3 ] }, { "input": "\t\t\t\t\tdependencies.push(toExtension(rawExtension, this.extensionsGalleryUrl));\n\t\t\t\t\tdependencies.push(toExtension(rawExtension, this.extensionsGalleryUrl, index, query));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/f117237ec50494e8c3a5bc67ab13c27bdf8a5dc3", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "\t\tthis.hueSlider.top = this.hueStrip.offsetHeight * (this.calculateHueValue(this.model.color) / 360);\n\t\tthis.hueSlider.top = this.hueStrip.offsetHeight * (this.calculateHue(this.model.color) / 360);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/5b4ad590bbd6c1fef2108b1717499bbc444ea009", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\tprivate calculateHueValue(color: Color): number {\n\tprivate calculateHue(color: Color): number {\n\t\tthis.hueSlider.top = this.hueStrip.offsetHeight * (this.calculateHueValue(this.model.color) / 360);\n\t\tthis.hueSlider.top = this.hueStrip.offsetHeight * (this.calculateHue(this.model.color) / 360);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/5b4ad590bbd6c1fef2108b1717499bbc444ea009", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tawait extensions.searchForExtension(name);\n\t\t\tawait extensions.searchForExtension(extensionName);\n\t\t\tawait extensions.installExtension(name);\n\t\t\tawait extensions.installExtension(extensionName);\n\t\t\tawait extensions.searchForExtension(name);\n\t\t\tawait extensions.searchForExtension(extensionName);\n\t\t\tawait extensions.installExtension(name);\n\t\t\tawait extensions.installExtension(extensionName);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/eedd2ce3558c6eda83cb32ee63cd930815b8d859", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 10, 11 ] }, { "input": "\t\t\tawait extensions.installExtension(name);\n\t\t\tawait extensions.installExtension(extensionName);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/eedd2ce3558c6eda83cb32ee63cd930815b8d859", "target_edit_idx": 8, "propagatable_edit_idx": [ 10, 11, 7 ] }, { "input": "\tpublic pickFolder(): TPromise {\n\tpublic pickFolder(options?: { buttonLabel: string }): TPromise {\n\tpickFolder(): TPromise {\n\tpickFolder(options?: { buttonLabel: string }): TPromise {\n\tpickFolder(): TPromise {\n\tpickFolder(options?: { buttonLabel: string }): TPromise {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/1f6006c8347eb564ab65020eda977fc1fbc2425c", "target_edit_idx": 0, "propagatable_edit_idx": [ 13, 14 ] }, { "input": "\tpickFolder(): TPromise {\n\t\treturn this.windowsService.pickFolder();\n\tpickFolder(options?: { buttonLabel: string }): TPromise {\n\t\treturn this.windowsService.pickFolder(options);\n\tpickFolder(): TPromise {\n\t\treturn this.windowsMainService.pickFolder();\n\tpickFolder(options?: { buttonLabel: string }): TPromise {\n\t\treturn this.windowsMainService.pickFolder(options);\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/1f6006c8347eb564ab65020eda977fc1fbc2425c", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\t\tthis._context.configuration.editor.canUseTranslate3d,\n\t\t\tthis._context.configuration.editor.canUseTranslate3d,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/fc6f092223296841ca13f66456d76efe31d32ddd", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tif (e.canUseTranslate3d) {\n\t\t\tthis._overviewRuler.setCanUseTranslate3d(this._context.configuration.editor.canUseTranslate3d, false);\n\t\t}\n\n\t\tif (e.canUseTranslate3d) {\n\t\t\tthis._overviewRuler.setCanUseTranslate3d(this._context.configuration.editor.canUseTranslate3d, true);\n\t\t}\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/fc6f092223296841ca13f66456d76efe31d32ddd", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tif (this.cspArbiter.isEnhancedSecurityDisableForWorkspace()) {\n\t\t\tif (this.cspArbiter.isEnhancedSecurityDisableForWorkspace(vscode.workspace.rootPath || sourceUri.toString())) {\n\t\t\t\t\tdetail: this.cspArbiter.isEnhancedSecurityDisableForWorkspace()\n\t\t\t\t\tdetail: this.cspArbiter.isEnhancedSecurityDisableForWorkspace(workspacePath)\n\t\t\t\t\tdetail: this.cspArbiter.isEnhancedSecurityDisableForWorkspace()\n\t\t\t\t\tdetail: this.cspArbiter.isEnhancedSecurityDisableForWorkspace(workspacePath)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/740f6620234326925592c40d2ec858bd457f9f6c", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 9 ] }, { "input": "\t\t\t\t\tdetail: this.cspArbiter.isEnhancedSecurityDisableForWorkspace()\n\t\t\t\t\tdetail: this.cspArbiter.isEnhancedSecurityDisableForWorkspace(workspacePath)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/740f6620234326925592c40d2ec858bd457f9f6c", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 4 ] }, { "input": "\tvar dir = path.join(app.getPath('userData'), 'CachedData');\n\t// find commit id\n\tvar productJson = require(path.join(__dirname, '../product.json'));\n\tif (!productJson.commit) {\n\t\treturn Promise.resolve(undefined);\n\t}\n\n\tvar dir = path.join(app.getPath('userData'), 'CachedData', productJson.commit);\n\tget nodeCachedDataDir(): string { return path.join(this.userDataPath, 'CachedData'); }\n\tget nodeCachedDataDir(): string { return this.isBuilt ? path.join(this.userDataPath, 'CachedData', product.commit) : undefined; }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/510aaf6fb0d5eea6b7ae3e4efdcc822b435186c9", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\tget nodeCachedDataDir(): string { return path.join(this.userDataPath, 'CachedData'); }\n\tget nodeCachedDataDir(): string { return this.isBuilt ? path.join(this.userDataPath, 'CachedData', product.commit) : undefined; }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/510aaf6fb0d5eea6b7ae3e4efdcc822b435186c9", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t\tvalue = element.matches();\n\t\t\treturn element.matches();\n\t\t\tvalue = element.matches();\n\t\t\treturn element.matches();\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/microsoft/vscode/commit/5b6dfc0293aaafd998cf5f70670385d5433b7154", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\tpublic moveEditor(input: EditorInput, from: EditorGroup, to: EditorGroup, index?: number): void;\n\tpublic moveEditor(input: EditorInput, from: Position, to: Position, index?: number): void;\n\tpublic moveEditor(input: EditorInput, arg2: any, arg3: any, index?: number): void {\n\tpublic moveEditor(input: EditorInput, from: EditorGroup, to: EditorGroup, index?: number, inactive?: boolean): void;\n\tpublic moveEditor(input: EditorInput, from: Position, to: Position, index?: number, inactive?: boolean): void;\n\tpublic moveEditor(input: EditorInput, arg2: any, arg3: any, index?: number, inactive?: boolean): void {\n\tmoveEditor(input: IEditorInput, from: IEditorGroup, to: IEditorGroup, index?: number): void;\n\tmoveEditor(input: IEditorInput, from: Position, to: Position, index?: number): void;\n\tmoveEditor(input: IEditorInput, from: IEditorGroup, to: IEditorGroup, index?: number, inactive?: boolean): void;\n\tmoveEditor(input: IEditorInput, from: Position, to: Position, index?: number, inactive?: boolean): void;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/522c6e01711a50ab2c48e2efb11f837dce7ebab9", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tif (!codeLens.document) {\n\t\tif (!codeLens.tsDocument) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/277f25d05b081d003c0d8da72e16e2150e8d858e", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\t\t\t\targuments: [codeLens.document, codeLens.range.start, locations]\n\t\t\t\t\targuments: [codeLens.tsDocument, codeLens.range.start, locations]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/277f25d05b081d003c0d8da72e16e2150e8d858e", "target_edit_idx": 13, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\tthis.tree.selectNext(undefined, undefined, eventPayload);\n\t\tlet [selected]: FileMatchOrMatch[] = this.tree.getSelection();\n\t\tif (!selected) {\n\t\tif (!next) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/13d401e458d8c72a19f3ebc01646f13eb720a41f", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tif (!(selected instanceof Match)) {\n\t\t\tif (!this.tree.isExpanded(selected)) {\n\t\t\t\tthis.tree.expand(selected);\n\t\tif (!(next instanceof Match)) {\n\t\t\tif (!this.tree.isExpanded(next)) {\n\t\t\t\tthis.tree.expand(next);\n\t\tthis.tree.selectNext(undefined, undefined, eventPayload);\n\t\tlet [selected]: FileMatchOrMatch[] = this.tree.getSelection();\n\t\tif (!selected) {\n\t\tif (!next) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/microsoft/vscode/commit/13d401e458d8c72a19f3ebc01646f13eb720a41f", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t[selected] = this.tree.getSelection();\n\t\tthis.tree.reveal(selected);\n\t\tthis.tree.setSelection([next], eventPayload);\n\t\tthis.tree.reveal(next);\n\t\t[selected] = this.tree.getSelection();\n\t\tthis.tree.reveal(selected);\n\t\tthis.tree.setSelection([prev], eventPayload);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/13d401e458d8c72a19f3ebc01646f13eb720a41f", "target_edit_idx": 6, "propagatable_edit_idx": [ 10 ] }, { "input": "\tpublic showHover(range: Range, hoveringOver: string, focus: boolean): TPromise {\n\tpublic showHover(range: Range, focus: boolean): TPromise {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/a6a04e6ea3d847249819ad26c378c1d3278066bf", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": "import severity from 'vs/base/common/severity';\nimport severity from 'vs/base/common/severity';\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/microsoft/vscode/commit/741bc632fc6ab5b4c820f373f037ea39913d021d", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\t\t\t\tthis.logToRepl(simpleVals.join(' '), sev);\n\t\t\t\t\t\tthis.model.logToRepl(simpleVals.join(' '), sev);\n\t\t\t\tthis.logToRepl(simpleVals.join(' '), sev);\n\t\t\t\tthis.model.logToRepl(simpleVals.join(' '), sev);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/741bc632fc6ab5b4c820f373f037ea39913d021d", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tthis._value = massageValue(value);\n\t\tthis._value = value;\n\t\tthis.value = massageValue(value);\n\t\tthis.value = value;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/88efd3defc238d5a7f4021cd2f3b126e9549bfcf", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\trenderExpressionValue(expression, this.valueContainer, false, MAX_VALUE_RENDER_LENGTH_IN_HOVER);\n\t\t\trenderExpressionValue(expression, this.valueContainer, {\n\t\t\t\tshowChanged: false,\n\t\t\t\tmaxValueLength: MAX_VALUE_RENDER_LENGTH_IN_HOVER,\n\t\t\t\tpreserveWhitespace: true\n\t\t\t});\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/vscode/commit/88efd3defc238d5a7f4021cd2f3b126e9549bfcf", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 10, 5 ] }, { "input": "export function renderExpressionValue(expressionOrValue: debug.IExpression | string, container: HTMLElement, showChanged: boolean, maxValueRenderLength?: number): void {\nexport interface IRenderValueOptions {\n\tpreserveWhitespace: boolean;\n\tshowChanged: boolean;\n\tmaxValueLength?: number;\n}\n\nexport function renderExpressionValue(expressionOrValue: debug.IExpression | string, container: HTMLElement, options: IRenderValueOptions): void {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/88efd3defc238d5a7f4021cd2f3b126e9549bfcf", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 10, 4 ] }, { "input": "\t\trenderExpressionValue(variable, data.value, showChanged, MAX_VALUE_RENDER_LENGTH_IN_VIEWLET);\n\t\trenderExpressionValue(variable, data.value, {\n\t\t\tshowChanged,\n\t\t\tmaxValueLength: MAX_VALUE_RENDER_LENGTH_IN_VIEWLET,\n\t\t\tpreserveWhitespace: false\n\t\t});\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/88efd3defc238d5a7f4021cd2f3b126e9549bfcf", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 4, 5 ] }, { "input": "\t\t\trenderExpressionValue(watchExpression, data.value, true, MAX_VALUE_RENDER_LENGTH_IN_VIEWLET);\n\t\t\trenderExpressionValue(watchExpression, data.value, {\n\t\t\t\tshowChanged: true,\n\t\t\t\tmaxValueLength: MAX_VALUE_RENDER_LENGTH_IN_VIEWLET,\n\t\t\t\tpreserveWhitespace: false\n\t\t\t});\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/88efd3defc238d5a7f4021cd2f3b126e9549bfcf", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 4, 5 ] }, { "input": "\tfixes: TPromise;\n\tfixes: TPromise;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/8cf29fbe26912289fc07d2367c68cca6eff0a09b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 6 ] }, { "input": "\tshow(fixes: TPromise, at: { x: number; y: number } | IPosition) {\n\tshow(fixes: TPromise, at: { x: number; y: number } | IPosition) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/8cf29fbe26912289fc07d2367c68cca6eff0a09b", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 6 ] }, { "input": "export interface IQuickFix2 extends CodeAction {\n\tsupport: CodeActionProvider;\n\tid: string;\n}\n\nexport function getCodeActions(model: IReadOnlyModel, range: Range): TPromise {\nexport function getCodeActions(model: IReadOnlyModel, range: Range): TPromise {\n\tfixes: TPromise;\n\tfixes: TPromise;\n\tshow(fixes: TPromise, at: { x: number; y: number } | IPosition) {\n\tshow(fixes: TPromise, at: { x: number; y: number } | IPosition) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/vscode/commit/8cf29fbe26912289fc07d2367c68cca6eff0a09b", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\tindentPixels: 8,\n\tindentPixels: 8,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/9fa56d6f7e450d0b30e280b0a5ce490cf7ed3447", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tthis.updateFont();\n\t\t\tthis.updateConfig();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/microsoft/vscode/commit/a5939c83deec4a681f5bd29357bab6937f9d873a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tlet parent: any;\n\t\tlet elementToRefresh: any;\n\t\treturn this.viewer.refresh(parent);\n\t\treturn this.viewer.refresh(elementToRefresh);\n\t}\n\n\tprivate getNextFocusElement():FileMatchOrMatch {\n\t\tlet navigator= this.viewer.getNavigator();\n\t\twhile (navigator.current() !== this.element && !!navigator.next()) {};\n\t\tif (this.element instanceof FileMatch) {\n\t\t\twhile (!!navigator.next() && !(navigator.current() instanceof FileMatch)) {};\n\t\t\treturn navigator.current();\n\t\t} else {\n\t\t\treturn navigator.next();\n\t\t}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/microsoft/vscode/commit/48cd52e4ab7d9f11582401e6a41717e98bff09ab", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\treturn this.viewer.refresh(parent);\n\t\treturn this.viewer.refresh(elementToRefresh);\n\t}\n\n\tprivate getNextFocusElement():FileMatchOrMatch {\n\t\tlet navigator= this.viewer.getNavigator();\n\t\twhile (navigator.current() !== this.element && !!navigator.next()) {};\n\t\tif (this.element instanceof FileMatch) {\n\t\t\twhile (!!navigator.next() && !(navigator.current() instanceof FileMatch)) {};\n\t\t\treturn navigator.current();\n\t\t} else {\n\t\t\treturn navigator.next();\n\t\t}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/microsoft/vscode/commit/48cd52e4ab7d9f11582401e6a41717e98bff09ab", "target_edit_idx": 7, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tv => new Variable(parent, v.variablesReference, v.name, v.value)\n\t\t\tv => new Variable(parent, v.variablesReference, v.name, v.value, v.type)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/microsoft/vscode/commit/3f0ab98812bd8c49b0bf8440a05425c1f3972026", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t}, (e: Error) => [new Variable(parent, 0, null, e.message, false)]);\n\t}, (e: Error) => [new Variable(parent, 0, null, e.message, null, false)]);\n\t\t\tv => new Variable(parent, v.variablesReference, v.name, v.value)\n\t\t\tv => new Variable(parent, v.variablesReference, v.name, v.value, v.type)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/microsoft/vscode/commit/3f0ab98812bd8c49b0bf8440a05425c1f3972026", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\tlet telemetryReporter: TelemetryReporter = null;\n\tlet packageInfo: IPackageInfo = null;\n\tif (packageInfo = getPackageInfo()){\n\t\ttelemetryReporter = new TelemetryReporter(packageInfo.name, packageInfo.version, packageInfo.aiKey);\n\t}\n\tlet packageInfo = getPackageInfo(context);\n\tlet telemetryReporter: TelemetryReporter = packageInfo && new TelemetryReporter(packageInfo.name, packageInfo.version, packageInfo.aiKey);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/80bd73b5132268f68f624a86a7c3e56d2bbac662", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "function getPackageInfo(): IPackageInfo {\n\tlet packagePath = path.join(__dirname, './../../package.json');\n\tlet extensionPackage = require(packagePath);\nfunction getPackageInfo(context: ExtensionContext): IPackageInfo {\n\tlet extensionPackage = require(context.asAbsolutePath('./package.json'));\n\tlet telemetryReporter: TelemetryReporter = null;\n\tlet packageInfo: IPackageInfo = null;\n\tif (packageInfo = getPackageInfo()){\n\t\ttelemetryReporter = new TelemetryReporter(packageInfo.name, packageInfo.version, packageInfo.aiKey);\n\t}\n\tlet packageInfo = getPackageInfo(context);\n\tlet telemetryReporter: TelemetryReporter = packageInfo && new TelemetryReporter(packageInfo.name, packageInfo.version, packageInfo.aiKey);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/80bd73b5132268f68f624a86a7c3e56d2bbac662", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": "\tpublic capablities: DebugProtocol.Capabilites;\n\tpublic capabilities: DebugProtocol.Capabilites;\n\t\t\t!session || session.capablities.supportsConditionalBreakpoints ? {\n\t\t\t!session || session.capabilities.supportsConditionalBreakpoints ? {\n\t\tif (session.capablities.supportsEvaluateForHovers) {\n\t\tif (session.capabilities.supportsEvaluateForHovers) {\n\tcapablities: DebugProtocol.Capabilites;\n\tcapabilities: DebugProtocol.Capabilites;\n\t\t\t\tif (this.session.capablities.supportsConfigurationDoneRequest) {\n\t\t\t\tif (this.session.capabilities.supportsConfigurationDoneRequest) {\n\t\tthis.capablities = {};\n\t\tthis.capabilities = {};\n\t\t\tthis.capablities = response.body || this.capablities;\n\t\t\tthis.capabilities = response.body || this.capabilities;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/86b957694e80e01972941f0c8d329151f2f3fdd9", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 5, 8, 9 ] }, { "input": "\t\tthis.capablities = {};\n\t\tthis.capabilities = {};\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/86b957694e80e01972941f0c8d329151f2f3fdd9", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 5, 7, 9 ] }, { "input": "\t\t\tthis.capablities = response.body || this.capablities;\n\t\t\tthis.capabilities = response.body || this.capabilities;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/microsoft/vscode/commit/86b957694e80e01972941f0c8d329151f2f3fdd9", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 5, 7, 8 ] }, { "input": "\t\t\tthis._opts.onChange();\n\t\t\tthis._opts.onChange(false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/microsoft/vscode/commit/82d1a0b77c19f978b47651c79647bc5f00c21e02", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t\tthis._opts.onChange();\n\t\t\t\tthis._opts.onChange(true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/microsoft/vscode/commit/82d1a0b77c19f978b47651c79647bc5f00c21e02", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tonChange: () => {\n\t\t\t\tthis._onDidOptionChange.fire();\n\t\t\t\tthis.inputBox.focus();\n\t\t\tonChange: (viaKeyboard) => {\n\t\t\t\tthis._onDidOptionChange.fire(viaKeyboard);\n\t\t\t\tif (!viaKeyboard) {\n\t\t\t\t\tthis.inputBox.focus();\n\t\t\t\t}\n\t\t\tonChange: () => {\n\t\t\t\tthis._onDidOptionChange.fire();\n\t\t\t\tthis.inputBox.focus();\n\t\t\tonChange: (viaKeyboard) => {\n\t\t\t\tthis._onDidOptionChange.fire(viaKeyboard);\n\t\t\t\tif (!viaKeyboard) {\n\t\t\t\t\tthis.inputBox.focus();\n\t\t\t\t}\n\t\t\tonChange: () => {\n\t\t\t\tthis._onDidOptionChange.fire();\n\t\t\t\tthis.inputBox.focus();\n\t\t\tonChange: (viaKeyboard) => {\n\t\t\t\tthis._onDidOptionChange.fire(viaKeyboard);\n\t\t\t\tif (!viaKeyboard) {\n\t\t\t\t\tthis.inputBox.focus();\n\t\t\t\t}\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/82d1a0b77c19f978b47651c79647bc5f00c21e02", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "\t\t\tonChange: () => {\n\t\t\t\tthis._onDidOptionChange.fire();\n\t\t\t\tthis.inputBox.focus();\n\t\t\tonChange: (viaKeyboard) => {\n\t\t\t\tthis._onDidOptionChange.fire(viaKeyboard);\n\t\t\t\tif (!viaKeyboard) {\n\t\t\t\t\tthis.inputBox.focus();\n\t\t\t\t}\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/82d1a0b77c19f978b47651c79647bc5f00c21e02", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6 ] }, { "input": "\t\t\tlabel: NLS_REPLACE_BTN_LABEL,\n\t\t\tlabel: NLS_REPLACE_BTN_LABEL + this._keybindingLabelFor(FIND_IDS.ReplaceOneAction),\n\t\t\tlabel: NLS_REPLACE_ALL_BTN_LABEL,\n\t\t\tlabel: NLS_REPLACE_ALL_BTN_LABEL + this._keybindingLabelFor(FIND_IDS.ReplaceAllAction),\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/vscode/commit/7d16ea92482fbc5a6655efee7ee37557f2c6638d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tpublic rawAttach(type: string, port: number): Promise {\n\tpublic rawAttach(port: number): Promise {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/vscode/commit/e0e2ce137f9f03a2b92a38222aa45783c66b6c68", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " field.onChange(startOfMonth(new Date(year!, month! - 1)));\n field.onChange(\n new Date(Date.UTC(year!, month! - 1, 1, 0, 0, 0, 0)),\n );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/yangshun/tech-interview-handbook/commit/f400af76af6f97a77f9564aa446a6a40cf19292f", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " startOfMonth(new Date(value.year!, value.month! - 1)),\n new Date(Date.UTC(value.year!, value.month! - 1, 1, 0, 0, 0, 0)),\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/yangshun/tech-interview-handbook/commit/f400af76af6f97a77f9564aa446a6a40cf19292f", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " cityId:\n input.cityId != null && input.cityId.length !== 0\n ? input.cityId\n : undefined,\n location: {\n state: {\n countryId:\n input.countryId != null && input.countryId.length !== 0\n ? input.countryId\n : undefined,\n },\n },\n cityId:\n input.cityId != null && input.cityId.length !== 0\n ? input.cityId\n : undefined,\n location: {\n state: {\n countryId:\n input.countryId != null && input.countryId.length !== 0\n ? input.countryId\n : undefined,\n },\n },\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/yangshun/tech-interview-handbook/commit/b47cfceb09c1231af13e3ee5f6b1c9c645125b9b", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " companyId: 'cl93patjt0003txewyiaky7xx',\n companyId: 'cl93patjt0004txew88wkcqpu',\n companyId: 'cl93patjt0003txewyiaky7xx',\n companyId: 'cl93patjt0004txew88wkcqpu',\n companyId: 'cl93patjt0003txewyiaky7xx',\n companyId: 'cl93patjt0004txew88wkcqpu',\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/yangshun/tech-interview-handbook/commit/29af9f692ffcc357989f9067cfea2b8b3782780b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " token: '6c8d53530163bb765c42bd9f441aa7e345f607c4e1892edbc64e5bbbbe7ee916',\n token: 'e5e1951c9c301ab59bf4cad641e2e7b56c3db58aa852cee755b6ff8dd316cda6',\n id,\n token: '6c8d53530163bb765c42bd9f441aa7e345f607c4e1892edbc64e5bbbbe7ee916',\n profileId: id,\n token: 'e5e1951c9c301ab59bf4cad641e2e7b56c3db58aa852cee755b6ff8dd316cda6',\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/yangshun/tech-interview-handbook/commit/e8ef133a8818586d2ba7e8ddb642e92d0813b942", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " Debug.assert(!!resolution.refCount);\n Debug.assert(!!resolution.files?.size);\n Debug.assert(!!resolution.refCount);\n Debug.assert(!!resolution.files?.size);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/a6bc4ecbe5ea0a6c71d1d311191ae5a6e15009d0", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " changes.insertNodeAfter(sourceFile, oldImportNode, updateNamespaceLikeImportNode(oldImportNode, preferredNewNamespaceName, newModuleSpecifier));\n changes.insertNodeAfter(sourceFile, oldImportNode, updateNamespaceLikeImportNode(oldImportNode, preferredNewNamespaceName, newModuleSpecifier, quotePreference));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/b1f25a2bdb5bcdc8360e4a60a46320c8c9500e77", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "function updateNamespaceLikeImportNode(node: SupportedImport, newNamespaceName: string, newModuleSpecifier: string): Node {\nfunction updateNamespaceLikeImportNode(node: SupportedImport, newNamespaceName: string, newModuleSpecifier: string, quotePreference: QuotePreference): Node {\n changes.insertNodeAfter(sourceFile, oldImportNode, updateNamespaceLikeImportNode(oldImportNode, preferredNewNamespaceName, newModuleSpecifier));\n changes.insertNodeAfter(sourceFile, oldImportNode, updateNamespaceLikeImportNode(oldImportNode, preferredNewNamespaceName, newModuleSpecifier, quotePreference));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/b1f25a2bdb5bcdc8360e4a60a46320c8c9500e77", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableExpression(arg)) {\n if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableLiteral(arg)) {\n function isHintableExpression(node: Node) {\n function isHintableLiteral(node: Node) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/59b8bef3e721262a62dba1612a3e0d14e7507f31", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " function isHintableExpression(node: Node) {\n function isHintableLiteral(node: Node) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/59b8bef3e721262a62dba1612a3e0d14e7507f31", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " includeInlayParameterNameHints: \"literals\"\n includeInlayParameterNameHints: \"all\"\n includeInlayParameterNameHints: \"literals\",\n includeInlayParameterNameHints: \"all\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/microsoft/TypeScript/commit/59b8bef3e721262a62dba1612a3e0d14e7507f31", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " function getInferredType(context: InferenceContext, index: number, ignoreConstraints = false): Type {\n function getInferredType(context: InferenceContext, index: number): Type {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/TypeScript/commit/2a91e7aab2bcf5cf322eb1172c9909a0c8162ab7", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " function getInferredTypes(context: InferenceContext, ignoreConstraints = false): Type[] {\n function getInferredTypes(context: InferenceContext): Type[] {\n // If we are excluding context sensitive arguments we know there is another round of type inference\n // coming, so we omit constraint checking. Otherwise, when a type parameter's constraint is self-\n // referential, checking the constraint would cause inferences to be fixed prematurely.\n return getInferredTypes(context, !!excludeArgument);\n return getInferredTypes(context);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/microsoft/TypeScript/commit/2a91e7aab2bcf5cf322eb1172c9909a0c8162ab7", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " result.push(getInferredType(context, i, ignoreConstraints));\n result.push(getInferredType(context, i));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/TypeScript/commit/2a91e7aab2bcf5cf322eb1172c9909a0c8162ab7", "target_edit_idx": 5, "propagatable_edit_idx": [ 1 ] }, { "input": " // If we are excluding context sensitive arguments we know there is another round of type inference\n // coming, so we omit constraint checking. Otherwise, when a type parameter's constraint is self-\n // referential, checking the constraint would cause inferences to be fixed prematurely.\n return getInferredTypes(context, !!excludeArgument);\n return getInferredTypes(context);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/microsoft/TypeScript/commit/2a91e7aab2bcf5cf322eb1172c9909a0c8162ab7", "target_edit_idx": 6, "propagatable_edit_idx": [ 4 ] }, { "input": " lineOffsetToPosition(line: number, offset: number): number {\n lineOffsetToPosition(line: number, offset: number, allowEdits?: true): number {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/0113f43632b2d3a0de3f25e308b64abed7cf27e6", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " lineOffsetToPosition(line: number, offset: number): number {\n return this.textStorage.lineOffsetToPosition(line, offset);\n lineOffsetToPosition(line: number, offset: number): number;\n /*@internal*/\n // tslint:disable-next-line:unified-signatures\n lineOffsetToPosition(line: number, offset: number, allowEdits?: true): number;\n lineOffsetToPosition(line: number, offset: number, allowEdits?: true): number {\n return this.textStorage.lineOffsetToPosition(line, offset, allowEdits);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/0113f43632b2d3a0de3f25e308b64abed7cf27e6", "target_edit_idx": 9, "propagatable_edit_idx": [ 7 ] }, { "input": " function getCovariantInference(inference: InferenceInfo, context: InferenceContext, signature: Signature) {\n function getCovariantInference(inference: InferenceInfo, signature: Signature) {\n inferredType = getCovariantInference(inference, context, signature);\n inferredType = getCovariantInference(inference, signature);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/529ed2d59dac770fc6dc53551e9231fddc09f690", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " updateExportedModules(programOfThisState, sourceFile, emitOutput.exportedModulesFromDeclarationEmit, exportedModulesMapCache);\n updateExportedModules(sourceFile, emitOutput.exportedModulesFromDeclarationEmit, exportedModulesMapCache);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/51837bb59ab656ad8f3e18a098d4d467610171d4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " function updateExportedModules(programOfThisState: Program, sourceFile: SourceFile, exportedModulesFromDeclarationEmit: ExportedModulesFromDeclarationEmit | undefined, exportedModulesMapCache: ComputingExportedModulesMap) {\n function updateExportedModules(sourceFile: SourceFile, exportedModulesFromDeclarationEmit: ExportedModulesFromDeclarationEmit | undefined, exportedModulesMapCache: ComputingExportedModulesMap) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/51837bb59ab656ad8f3e18a098d4d467610171d4", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " let exportedModuleSpecifiers: StringLiteralLike[] | undefined;\n let exportedModuleSymbolsUsingImportTypeNodes: Symbol[] | undefined;\n let exportedModulesFromDeclarationEmit: Symbol[] | undefined;\n (exportedModuleSymbolsUsingImportTypeNodes || (exportedModuleSymbolsUsingImportTypeNodes = [])).push(symbol);\n (exportedModulesFromDeclarationEmit || (exportedModulesFromDeclarationEmit = [])).push(symbol);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/TypeScript/commit/51837bb59ab656ad8f3e18a098d4d467610171d4", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " (exportedModuleSymbolsUsingImportTypeNodes || (exportedModuleSymbolsUsingImportTypeNodes = [])).push(symbol);\n (exportedModulesFromDeclarationEmit || (exportedModulesFromDeclarationEmit = [])).push(symbol);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/microsoft/TypeScript/commit/51837bb59ab656ad8f3e18a098d4d467610171d4", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " makeReferenceItem(userTs, /*isDefinition*/ true, \"fnA\"),\n makeReferenceItem(userTs, /*isDefinition*/ false, \"fnA\", { index: 1 }),\n makeReferenceItem(aTs, /*isDefinition*/ true, \"fnA\"),\n makeReferenceItem(userTs, /*isDefinition*/ true, \"fnA\", \"import { fnA, instanceA } from \\\"../a/bin/a\\\";\"),\n makeReferenceItem(userTs, /*isDefinition*/ false, \"fnA\", \"export function fnUser() { fnA(); fnB(); instanceA; }\", { index: 1 }),\n makeReferenceItem(aTs, /*isDefinition*/ true, \"fnA\", \"export function fnA() {}\"),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/microsoft/TypeScript/commit/10b174abc16228a921b339f0d5a413e3b8e46b30", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " makeReferenceItem(userTs, /*isDefinition*/ true, \"fnB\"),\n makeReferenceItem(userTs, /*isDefinition*/ false, \"fnB\", { index: 1 }),\n makeReferenceItem(bDts, /*isDefinition*/ true, \"fnB\"),\n makeReferenceItem(userTs, /*isDefinition*/ true, \"fnB\", \"import { fnB } from \\\"../b/bin/b\\\";\"),\n makeReferenceItem(userTs, /*isDefinition*/ false, \"fnB\", \"export function fnUser() { fnA(); fnB(); instanceA; }\", { index: 1 }),\n makeReferenceItem(bDts, /*isDefinition*/ true, \"fnB\", \"export declare function fnB(): void;\"),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/microsoft/TypeScript/commit/10b174abc16228a921b339f0d5a413e3b8e46b30", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " function makeReferenceItem(file: File, isDefinition: boolean, text: string, options?: SpanFromSubstringOptions): protocol.ReferencesResponseItem {\n function makeReferenceItem(file: File, isDefinition: boolean, text: string, lineText: string, options?: SpanFromSubstringOptions): protocol.ReferencesResponseItem {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/10b174abc16228a921b339f0d5a413e3b8e46b30", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " function getAccessibleSymbolChain(symbol: Symbol, enclosingDeclaration: Node | undefined, meaning: SymbolFlags, useOnlyExternalAliasing: boolean): Symbol[] | undefined {\n function getAccessibleSymbolChain(symbol: Symbol, enclosingDeclaration: Node | undefined, meaning: SymbolFlags, useOnlyExternalAliasing: boolean, visitedSymbolTablesMap: Map = createMap()): Symbol[] | undefined {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/microsoft/TypeScript/commit/10e3b73330ceea08f338117568dfb72b6fb564f3", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " !!getAccessibleSymbolChain(symbolFromSymbolTable.parent, enclosingDeclaration, getQualifiedLeftMeaning(meaning), useOnlyExternalAliasing);\n !!getAccessibleSymbolChain(symbolFromSymbolTable.parent, enclosingDeclaration, getQualifiedLeftMeaning(meaning), useOnlyExternalAliasing, visitedSymbolTablesMap);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/microsoft/TypeScript/commit/10e3b73330ceea08f338117568dfb72b6fb564f3", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " links.typeParameters = typeParameters;\n links.outerTypeParameters = typeParameters;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/503fc0642e21a765942c0b9a2408d51887f46241", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " if (tests || light || taskConfigsFolder) {\n writeTestConfigFile(tests, light, taskConfigsFolder, workerCount, stackTraceLimit);\n if (tests || runners || light || taskConfigsFolder) {\n writeTestConfigFile(tests, runners, light, taskConfigsFolder, workerCount, stackTraceLimit);\nfunction writeTestConfigFile(tests: string, light: boolean, taskConfigsFolder?: string, workerCount?: number, stackTraceLimit?: string) {\n const testConfigContents = JSON.stringify({ test: tests ? [tests] : undefined, light, workerCount, stackTraceLimit, taskConfigsFolder, noColor: !cmdLineOptions.colors });\nfunction writeTestConfigFile(tests: string, runners: string, light: boolean, taskConfigsFolder?: string, workerCount?: number, stackTraceLimit?: string) {\n const testConfigContents = JSON.stringify({ test: tests ? [tests] : undefined, runner: runners ? runners.split(\",\") : undefined, light, workerCount, stackTraceLimit, taskConfigsFolder, noColor: !cmdLineOptions.colors });\n if (tests || light) {\n writeTestConfigFile(tests, light);\n if (tests || runners || light) {\n writeTestConfigFile(tests, runners, light);\nfunction writeTestConfigFile(tests, light, taskConfigsFolder, workerCount, stackTraceLimit, colors) {\nfunction writeTestConfigFile(tests, runners, light, taskConfigsFolder, workerCount, stackTraceLimit, colors) {\n if (tests || light || taskConfigsFolder) {\n writeTestConfigFile(tests, light, taskConfigsFolder, workerCount, stackTraceLimit, colors);\n if (tests || runners || light || taskConfigsFolder) {\n writeTestConfigFile(tests, runners, light, taskConfigsFolder, workerCount, stackTraceLimit, colors);\n if (tests || light) {\n writeTestConfigFile(tests, light);\n if (tests || runners || light) {\n writeTestConfigFile(tests, runners, light);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/c016f5b9b0713d727ba3c07e59a2c97d3d148137", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 6, 7, 10, 12 ] }, { "input": " if (tests || light || taskConfigsFolder) {\n writeTestConfigFile(tests, light, taskConfigsFolder, workerCount, stackTraceLimit, colors);\n if (tests || runners || light || taskConfigsFolder) {\n writeTestConfigFile(tests, runners, light, taskConfigsFolder, workerCount, stackTraceLimit, colors);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/c016f5b9b0713d727ba3c07e59a2c97d3d148137", "target_edit_idx": 10, "propagatable_edit_idx": [ 3, 4, 6, 7, 12 ] }, { "input": " if (tests || light) {\n writeTestConfigFile(tests, light);\n if (tests || runners || light) {\n writeTestConfigFile(tests, runners, light);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/c016f5b9b0713d727ba3c07e59a2c97d3d148137", "target_edit_idx": 12, "propagatable_edit_idx": [ 3, 4, 6, 7, 10 ] }, { "input": " \"Cannot extract range containing conditional return statement.\"\n refactor.extractSymbol.Messages.CannotExtractRangeContainingConditionalReturnStatement.message\n \"Cannot extract range containing conditional break or continue statements.\"\n refactor.extractSymbol.Messages.CannotExtractRangeContainingConditionalBreakOrContinueStatements.message\n \"Cannot extract range containing conditional break or continue statements.\"\n refactor.extractSymbol.Messages.CannotExtractRangeContainingConditionalBreakOrContinueStatements.message\n \"Cannot extract range containing conditional return statement.\"\n refactor.extractSymbol.Messages.CannotExtractRangeContainingConditionalReturnStatement.message\n \"Cannot extract range containing conditional return statement.\"\n refactor.extractSymbol.Messages.CannotExtractRangeContainingConditionalReturnStatement.message\n \"Cannot extract range containing conditional break or continue statements.\"\n refactor.extractSymbol.Messages.CannotExtractRangeContainingConditionalBreakOrContinueStatements.message\n \"Cannot extract range containing conditional break or continue statements.\"\n refactor.extractSymbol.Messages.CannotExtractRangeContainingConditionalBreakOrContinueStatements.message\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/microsoft/TypeScript/commit/13e60bc497b494f7505d498f5c45129a5424a3b2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4, 5, 6, 7 ] }, { "input": " return getSignatureInstantiation(signature, map(signature.typeParameters, tp => tp.target && !getConstraintOfTypeParameter(tp.target) ? tp.target : tp));\n return getSignatureInstantiation(\n signature,\n map(signature.typeParameters, tp => tp.target && !getConstraintOfTypeParameter(tp.target) ? tp.target : tp),\n isInJavaScriptFile(signature.declaration));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/microsoft/TypeScript/commit/a1d1a2219b7d16a262af9eb52eaa242bc46ef657", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 5, 6 ] }, { "input": " links.instantiations.set(id, instantiation = instantiateType(type, createTypeMapper(typeParameters, fillMissingTypeArguments(typeArguments, typeParameters, getMinTypeArgumentCount(typeParameters)))));\n links.instantiations.set(id, instantiation = instantiateType(type, createTypeMapper(typeParameters, fillMissingTypeArguments(typeArguments, typeParameters, getMinTypeArgumentCount(typeParameters), isInJavaScriptFile(symbol.valueDeclaration)))));\n typeArgumentTypes = fillMissingTypeArguments(map(typeArguments, getTypeFromTypeNode), candidate.typeParameters, getMinTypeArgumentCount(candidate.typeParameters));\n typeArgumentTypes = fillMissingTypeArguments(map(typeArguments, getTypeFromTypeNode), candidate.typeParameters, getMinTypeArgumentCount(candidate.typeParameters), isJavascript);\n typeArguments = fillMissingTypeArguments(map(typeArgumentNodes, getTypeFromTypeNode), typeParameters, minTypeArgumentCount);\n typeArguments = fillMissingTypeArguments(map(typeArgumentNodes, getTypeFromTypeNode), typeParameters, minTypeArgumentCount, isInJavaScriptFile(typeArgumentNodes[i]));\n const typeArguments = fillMissingTypeArguments(/*typeArguments*/ undefined, signature.typeParameters, /*minTypeArgumentCount*/ 0);\n instantiatedSignatures.push(getSignatureInstantiation(signature, typeArguments));\n const isJavascript = isInJavaScriptFile(node);\n const typeArguments = fillMissingTypeArguments(/*typeArguments*/ undefined, signature.typeParameters, /*minTypeArgumentCount*/ 0, isJavascript);\n instantiatedSignatures.push(getSignatureInstantiation(signature, typeArguments, isJavascript));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/microsoft/TypeScript/commit/a1d1a2219b7d16a262af9eb52eaa242bc46ef657", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 10, 4 ] }, { "input": " const typeArguments = fillMissingTypeArguments(/*typeArguments*/ undefined, signature.typeParameters, /*minTypeArgumentCount*/ 0);\n instantiatedSignatures.push(getSignatureInstantiation(signature, typeArguments));\n const isJavascript = isInJavaScriptFile(node);\n const typeArguments = fillMissingTypeArguments(/*typeArguments*/ undefined, signature.typeParameters, /*minTypeArgumentCount*/ 0, isJavascript);\n instantiatedSignatures.push(getSignatureInstantiation(signature, typeArguments, isJavascript));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/microsoft/TypeScript/commit/a1d1a2219b7d16a262af9eb52eaa242bc46ef657", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 10, 3 ] }, { "input": " return getSignatureInstantiation(signature, getInferredTypes(context));\n return getSignatureInstantiation(signature, getInferredTypes(context), isInJavaScriptFile(contextualSignature.declaration));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/microsoft/TypeScript/commit/a1d1a2219b7d16a262af9eb52eaa242bc46ef657", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 2, 6 ] }, { "input": " getOrCreateTypeFromSignature(getSignatureInstantiation(contextualSignature, contextualSignature.typeParameters)) :\n getOrCreateTypeFromSignature(getSignatureInstantiation(contextualSignature, contextualSignature.typeParameters, isInJavaScriptFile(node))) :\n candidate = getSignatureInstantiation(candidate, typeArgumentTypes);\n candidate = getSignatureInstantiation(candidate, typeArgumentTypes, isJavascript);\n return getSignatureInstantiation(signature, map(signature.typeParameters, tp => tp.target && !getConstraintOfTypeParameter(tp.target) ? tp.target : tp));\n return getSignatureInstantiation(\n signature,\n map(signature.typeParameters, tp => tp.target && !getConstraintOfTypeParameter(tp.target) ? tp.target : tp),\n isInJavaScriptFile(signature.declaration));\n return getSignatureInstantiation(signature, getInferredTypes(context));\n return getSignatureInstantiation(signature, getInferredTypes(context), isInJavaScriptFile(contextualSignature.declaration));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/microsoft/TypeScript/commit/a1d1a2219b7d16a262af9eb52eaa242bc46ef657", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 2, 5 ] }, { "input": " typeArgumentTypes = fillMissingTypeArguments(map(typeArguments, getTypeFromTypeNode), candidate.typeParameters, getMinTypeArgumentCount(candidate.typeParameters));\n typeArgumentTypes = fillMissingTypeArguments(map(typeArguments, getTypeFromTypeNode), candidate.typeParameters, getMinTypeArgumentCount(candidate.typeParameters), isJavascript);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/microsoft/TypeScript/commit/a1d1a2219b7d16a262af9eb52eaa242bc46ef657", "target_edit_idx": 8, "propagatable_edit_idx": [ 10, 3, 4 ] }, { "input": " this.writeLog(`Starting Update graph worker: Project: ${this.getProjectName()}`);\n this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);\n const start = timestamp();\n\n this.writeLog(`Finishing Update graph worker: Project: ${this.getProjectName()}`);\n const elapsed = timestamp() - start;\n this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} structureChanged: ${hasChanges} Elapsed: ${elapsed}ms`);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/TypeScript/commit/680994ea42e8c5f43ca0bc2ff237966d8c0a85fd", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " if (isUntypedOrShorthandAmbientModuleSymbol(moduleSymbol)) {\n if (isShorthandAmbientModuleSymbol(moduleSymbol)) {\n if (isUntypedOrShorthandAmbientModuleSymbol(moduleSymbol)) {\n if (isShorthandAmbientModuleSymbol(moduleSymbol)) {\n if (symbol.flags & SymbolFlags.Module && isUntypedOrShorthandAmbientModuleSymbol(symbol)) {\n if (symbol.flags & SymbolFlags.Module && isShorthandAmbientModuleSymbol(symbol)) {\n if (!moduleSymbol || isUntypedOrShorthandAmbientModuleSymbol(moduleSymbol)) {\n if (!moduleSymbol || isShorthandAmbientModuleSymbol(moduleSymbol)) {\n export function isUntypedOrShorthandAmbientModuleSymbol(moduleSymbol: Symbol): boolean {\n return !moduleSymbol.declarations || isShorthandAmbientModule(moduleSymbol.valueDeclaration);\n export function isShorthandAmbientModuleSymbol(moduleSymbol: Symbol): boolean {\n return isShorthandAmbientModule(moduleSymbol.valueDeclaration);\n if (ts.isUntypedOrShorthandAmbientModuleSymbol(aliasedSymbol)) {\n if (ts.isShorthandAmbientModuleSymbol(aliasedSymbol)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/90d5c299b0dac01b982a120904a5512db2721112", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 6, 7, 8, 9 ] }, { "input": " return undefined;\n return undefined;\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/90d5c299b0dac01b982a120904a5512db2721112", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " if (symbol.flags & SymbolFlags.Module && isUntypedOrShorthandAmbientModuleSymbol(symbol)) {\n if (symbol.flags & SymbolFlags.Module && isShorthandAmbientModuleSymbol(symbol)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/90d5c299b0dac01b982a120904a5512db2721112", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 7, 8, 9 ] }, { "input": " if (!moduleSymbol || isUntypedOrShorthandAmbientModuleSymbol(moduleSymbol)) {\n if (!moduleSymbol || isShorthandAmbientModuleSymbol(moduleSymbol)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/90d5c299b0dac01b982a120904a5512db2721112", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 2, 6, 8, 9 ] }, { "input": " export function isUntypedOrShorthandAmbientModuleSymbol(moduleSymbol: Symbol): boolean {\n return !moduleSymbol.declarations || isShorthandAmbientModule(moduleSymbol.valueDeclaration);\n export function isShorthandAmbientModuleSymbol(moduleSymbol: Symbol): boolean {\n return isShorthandAmbientModule(moduleSymbol.valueDeclaration);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/90d5c299b0dac01b982a120904a5512db2721112", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 2, 6, 7, 9 ] }, { "input": " if (ts.isUntypedOrShorthandAmbientModuleSymbol(aliasedSymbol)) {\n if (ts.isShorthandAmbientModuleSymbol(aliasedSymbol)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/90d5c299b0dac01b982a120904a5512db2721112", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 2, 6, 7, 8 ] }, { "input": " type.resolvedApparentType = circular ? circularConstraintType : getTypeWithThisArgument(constraint || noConstraintType, type);\n type.resolvedBaseConstraint = circular ? circularConstraintType : getTypeWithThisArgument(constraint || noConstraintType, type);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/13ce0e9414a992a4b33f7115664ceb0b70ec18ae", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 12, 5 ] }, { "input": " return type.resolvedApparentType;\n return type.resolvedBaseConstraint;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/13ce0e9414a992a4b33f7115664ceb0b70ec18ae", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 12, 4 ] }, { "input": " const t = type.flags & TypeFlags.TypeVariable ? getBaseConstraintOfTypeVariable(type) || emptyObjectType : type;\n const t = type.flags & TypeFlags.TypeVariable ? getBaseConstraintOfType(type) || emptyObjectType : type;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/13ce0e9414a992a4b33f7115664ceb0b70ec18ae", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 10 ] }, { "input": " const constraint = getBaseConstraintOfTypeVariable(target);\n const constraint = getBaseConstraintOfType(target);\n const constraint = getBaseConstraintOfTypeVariable(source);\n const constraint = getBaseConstraintOfType(source);\n const constraint = getBaseConstraintOfTypeVariable(contextualType) || emptyObjectType;\n const constraint = getBaseConstraintOfType(contextualType) || emptyObjectType;\n const t = type.flags & TypeFlags.TypeVariable ? getBaseConstraintOfTypeVariable(type) || emptyObjectType : type;\n const t = type.flags & TypeFlags.TypeVariable ? getBaseConstraintOfType(type) || emptyObjectType : type;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/13ce0e9414a992a4b33f7115664ceb0b70ec18ae", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10, 6 ] }, { "input": " const constraint = getBaseConstraintOfTypeVariable(source);\n const constraint = getBaseConstraintOfType(source);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/13ce0e9414a992a4b33f7115664ceb0b70ec18ae", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 10, 6 ] }, { "input": " const constraint = getBaseConstraintOfTypeVariable(contextualType) || emptyObjectType;\n const constraint = getBaseConstraintOfType(contextualType) || emptyObjectType;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/13ce0e9414a992a4b33f7115664ceb0b70ec18ae", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9, 6 ] }, { "input": " resolvedApparentType: Type;\n resolvedBaseConstraint: Type;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/13ce0e9414a992a4b33f7115664ceb0b70ec18ae", "target_edit_idx": 12, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " createDirectory(this: System, directoryName: string) {\n if (!this.directoryExists(directoryName)) {\n createDirectory(directoryName: string) {\n if (!wscriptSystem.directoryExists(directoryName)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/TypeScript/commit/a138e6307fa6e9d60e7179f4aa5e49617fd5fd9c", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " createDirectory(this: System, directoryName: string) {\n if (!this.directoryExists(directoryName)) {\n createDirectory(directoryName: string) {\n if (!nodeSystem.directoryExists(directoryName)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/microsoft/TypeScript/commit/a138e6307fa6e9d60e7179f4aa5e49617fd5fd9c", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": " const targetType = getProperty(typeofTypesByName, right.text);\n const targetType = getProperty(typeofTypesByName, literal.text);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/7c1b28f2cbb0327e46411db789edf04cb961685e", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " getProperty(typeofEQFacts, right.text) || TypeFacts.TypeofEQHostObject :\n getProperty(typeofNEFacts, right.text) || TypeFacts.TypeofNEHostObject;\n getProperty(typeofEQFacts, literal.text) || TypeFacts.TypeofEQHostObject :\n getProperty(typeofNEFacts, literal.text) || TypeFacts.TypeofNEHostObject;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/microsoft/TypeScript/commit/7c1b28f2cbb0327e46411db789edf04cb961685e", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " writeToken(node.operator);\n writeTokenText(node.operator);\n writeToken(node.operator);\n writeTokenText(node.operator);\n writeToken(node.token);\n writeTokenText(node.token);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/68170dfbdba7b0c45b0a81b7e525ffb308ce67b6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " writeToken(node.operator);\n writeTokenText(node.operator);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/68170dfbdba7b0c45b0a81b7e525ffb308ce67b6", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " transformClassBody(node, baseTypeNode !== undefined)\n transformClassBody(node, baseTypeNode !== undefined, closingBraceLocation),\n closingBraceLocation\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/68170dfbdba7b0c45b0a81b7e525ffb308ce67b6", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " function transformClassBody(node: ClassExpression | ClassDeclaration, hasExtendsClause: boolean): Block {\n function transformClassBody(node: ClassExpression | ClassDeclaration, hasExtendsClause: boolean, closingBraceLocation: TextRange): Block {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/68170dfbdba7b0c45b0a81b7e525ffb308ce67b6", "target_edit_idx": 9, "propagatable_edit_idx": [ 7 ] }, { "input": " addAntecedent(postLoopLabel, currentFlow);\n addAntecedent(postLoopLabel, currentFlow);\n", "class": "clone", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/microsoft/TypeScript/commit/9e965d408c840c87ab54511ebab6f22c57a75427", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " if (isClassExpressionWithStaticProperties) {\n if (isClassExpressionWithStaticProperties && compilerOptions.transformCompatibleEmit) {\n else if (isClassExpressionWithStaticProperties) {\n else if (isClassExpressionWithStaticProperties && compilerOptions.transformCompatibleEmit) {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/e5cd8fef21e9e2a618263675aca0185013c4537f", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": " function getWideningFlagsOfTypes(types: Type[]): TypeFlags {\n function getContainsLiteralFlagsOfTypes(types: Type[]): TypeFlags {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/753f0f8d1c7c514f415a8277cb9ed9f56a5fe2f6", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": " let flags = TypeFlags.Reference | getWideningFlagsOfTypes(typeArguments);\n let flags = TypeFlags.Reference | getContainsLiteralFlagsOfTypes(typeArguments);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/753f0f8d1c7c514f415a8277cb9ed9f56a5fe2f6", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5, 6 ] }, { "input": " type = tupleTypes[id] = createObjectType(TypeFlags.Tuple | getWideningFlagsOfTypes(elementTypes));\n type = tupleTypes[id] = createObjectType(TypeFlags.Tuple | getContainsLiteralFlagsOfTypes(elementTypes));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/753f0f8d1c7c514f415a8277cb9ed9f56a5fe2f6", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5, 6 ] }, { "input": " type = unionTypes[id] = createObjectType(TypeFlags.Union | getWideningFlagsOfTypes(typeSet));\n type = unionTypes[id] = createObjectType(TypeFlags.Union | getContainsLiteralFlagsOfTypes(typeSet));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/753f0f8d1c7c514f415a8277cb9ed9f56a5fe2f6", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4, 6 ] }, { "input": " type = intersectionTypes[id] = createObjectType(TypeFlags.Intersection | getWideningFlagsOfTypes(typeSet));\n type = intersectionTypes[id] = createObjectType(TypeFlags.Intersection | getContainsLiteralFlagsOfTypes(typeSet));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/753f0f8d1c7c514f415a8277cb9ed9f56a5fe2f6", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": " function inferTypes(context: InferenceContext, source: Type, target: Type, inferringFromContextuallyTypedParameter: boolean) {\n function inferTypes(context: InferenceContext, source: Type, target: Type) {\n inferTypes(context, instantiateType(source, contextualMapper), target, false);\n inferTypes(context, instantiateType(source, contextualMapper), target);\n inferTypes(context, argType, paramType, false);\n inferTypes(context, argType, paramType);\n inferTypes(context, checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType, false);\n inferTypes(context, checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType);\n inferTypes(mapper.context, parameterLinks.type, contextualType, true);\n fixTypeParametersAfterInferringFromContextualParameterTypes(mapper.context);\n inferTypes(mapper.context, parameterLinks.type, instantiateType(contextualType, mapper));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/d25bceaf8705d9ffc527332191c80d08d174500b", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": " inferTypes(context, instantiateType(source, contextualMapper), target, false);\n inferTypes(context, instantiateType(source, contextualMapper), target);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/d25bceaf8705d9ffc527332191c80d08d174500b", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5, 6, 7 ] }, { "input": " inferTypes(context, argType, paramType, false);\n inferTypes(context, argType, paramType);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/d25bceaf8705d9ffc527332191c80d08d174500b", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 4, 6, 7 ] }, { "input": " inferTypes(context, checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType, false);\n inferTypes(context, checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/d25bceaf8705d9ffc527332191c80d08d174500b", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 4, 5, 7 ] }, { "input": " function getModuleStatements(node: Declaration): ModuleElement[] {\n function getModuleStatements(node: Declaration): Statement[] {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/32d57d900bf60593c2bf4cf187c24d3d5cc15060", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": " function parseDeclaration(): ModuleElement {\n function parseDeclaration(): Statement {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/32d57d900bf60593c2bf4cf187c24d3d5cc15060", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": " let node = createMissingNode(SyntaxKind.MissingDeclaration, /*reportAtCurrentPosition*/ true, Diagnostics.Declaration_expected);\n let node = createMissingNode(SyntaxKind.MissingDeclaration, /*reportAtCurrentPosition*/ true, Diagnostics.Declaration_expected);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/32d57d900bf60593c2bf4cf187c24d3d5cc15060", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": " export interface ModuleDeclaration extends Declaration, ModuleElement {\n export interface ModuleDeclaration extends Declaration, Statement {\n function checkGrammarModuleElementContext(node: ModuleElement, errorMessage: DiagnosticMessage): boolean {\n function checkGrammarModuleElementContext(node: Statement, errorMessage: DiagnosticMessage): boolean {\n function getModuleStatements(node: Declaration): ModuleElement[] {\n function getModuleStatements(node: Declaration): Statement[] {\n function parseDeclaration(): ModuleElement {\n function parseDeclaration(): Statement {\n let node = createMissingNode(SyntaxKind.MissingDeclaration, /*reportAtCurrentPosition*/ true, Diagnostics.Declaration_expected);\n let node = createMissingNode(SyntaxKind.MissingDeclaration, /*reportAtCurrentPosition*/ true, Diagnostics.Declaration_expected);\n export interface ModuleBlock extends Node, ModuleElement {\n statements: NodeArray\n export interface ModuleBlock extends Node, Statement {\n statements: NodeArray\n export interface ImportEqualsDeclaration extends Declaration, ModuleElement {\n export interface ImportEqualsDeclaration extends Declaration, Statement {\n export interface ImportDeclaration extends ModuleElement {\n export interface ImportDeclaration extends Statement {\n export interface ExportDeclaration extends Declaration, ModuleElement {\n export interface ExportDeclaration extends Declaration, Statement {\n export interface ExportAssignment extends Declaration, ModuleElement {\n export interface ExportAssignment extends Declaration, Statement {\n statements: NodeArray;\n statements: NodeArray;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/32d57d900bf60593c2bf4cf187c24d3d5cc15060", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 7, 8, 9, 10, 11, 12 ] }, { "input": " export interface ImportEqualsDeclaration extends Declaration, ModuleElement {\n export interface ImportEqualsDeclaration extends Declaration, Statement {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/32d57d900bf60593c2bf4cf187c24d3d5cc15060", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 6, 7, 9, 10, 11, 12 ] }, { "input": " export interface ExportDeclaration extends Declaration, ModuleElement {\n export interface ExportDeclaration extends Declaration, Statement {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/32d57d900bf60593c2bf4cf187c24d3d5cc15060", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 2, 3, 6, 7, 8, 9, 11, 12 ] }, { "input": " statements: NodeArray;\n statements: NodeArray;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/32d57d900bf60593c2bf4cf187c24d3d5cc15060", "target_edit_idx": 12, "propagatable_edit_idx": [ 0, 1, 2, 3, 6, 7, 8, 9, 10, 11 ] }, { "input": " emitExportOrImportSpecifierList((node.importClause.namedBindings).elements);\n emitExportOrImportSpecifierList((node.importClause.namedBindings).elements, resolver.isReferencedAliasDeclaration);\n emitExportOrImportSpecifierList(node.exportClause.elements);\n emitExportOrImportSpecifierList(node.exportClause.elements, resolver.isValueAliasDeclaration);\n function emitExportOrImportSpecifierList(specifiers: ImportOrExportSpecifier[]) {\n function emitExportOrImportSpecifierList(specifiers: ImportOrExportSpecifier[], shouldEmit: (node: Node) => boolean) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/27c5d6fa503e8fc439ced7173a41794dd22c22d2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " emitExportOrImportSpecifierList(node.exportClause.elements);\n emitExportOrImportSpecifierList(node.exportClause.elements, resolver.isValueAliasDeclaration);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/27c5d6fa503e8fc439ced7173a41794dd22c22d2", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " function emitExportOrImportSpecifierList(specifiers: ImportOrExportSpecifier[]) {\n function emitExportOrImportSpecifierList(specifiers: ImportOrExportSpecifier[], shouldEmit: (node: Node) => boolean) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/27c5d6fa503e8fc439ced7173a41794dd22c22d2", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " currentStart = getOneBasedStartLineAndCharacterForNode(current, sourceFile);\n currentStart = getZeroBasedStartLineAndCharacterForNode(current, sourceFile);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/f4da5d724fb05db03e21c1411299985388ac364f", "target_edit_idx": 1, "propagatable_edit_idx": [ 5, 6, 7, 9, 11 ] }, { "input": " var nextTokenStartLine = getOneBasedStartLineAndCharacterForNode(nextToken, sourceFile).line;\n var nextTokenStartLine = getZeroBasedStartLineAndCharacterForNode(nextToken, sourceFile).line;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/f4da5d724fb05db03e21c1411299985388ac364f", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 6, 7, 9, 11 ] }, { "input": " function getOneBasedStartLineAndCharacterForNode(n: Node, sourceFile: SourceFile): LineAndCharacter {\n return sourceFile.getOneBasedLineAndCharacterOfPosition(n.getStart(sourceFile));\n function getZeroBasedStartLineAndCharacterForNode(n: Node, sourceFile: SourceFile): LineAndCharacter {\n return sourceFile.getZeroBasedLineAndCharacterOfPosition(n.getStart(sourceFile));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/f4da5d724fb05db03e21c1411299985388ac364f", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 5, 7, 9, 11 ] }, { "input": " var elseKeywordStartLine = getOneBasedStartLineAndCharacterForNode(elseKeyword, sourceFile).line;\n var elseKeywordStartLine = getZeroBasedStartLineAndCharacterForNode(elseKeyword, sourceFile).line;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/f4da5d724fb05db03e21c1411299985388ac364f", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 5, 6, 9, 11 ] }, { "input": " var lineAndCharacter = getOneBasedStartLineAndCharacterForNode(node, sourceFile);\n var lineAndCharacter = getZeroBasedStartLineAndCharacterForNode(node, sourceFile);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/f4da5d724fb05db03e21c1411299985388ac364f", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 5, 6, 7, 11 ] }, { "input": " lineAndCharacter = getOneBasedStartLineAndCharacterForNode(list[i], sourceFile);\n lineAndCharacter = getZeroBasedStartLineAndCharacterForNode(list[i], sourceFile);\n currentStart = getOneBasedStartLineAndCharacterForNode(current, sourceFile);\n currentStart = getZeroBasedStartLineAndCharacterForNode(current, sourceFile);\n var nextTokenStartLine = getOneBasedStartLineAndCharacterForNode(nextToken, sourceFile).line;\n var nextTokenStartLine = getZeroBasedStartLineAndCharacterForNode(nextToken, sourceFile).line;\n function getOneBasedStartLineAndCharacterForNode(n: Node, sourceFile: SourceFile): LineAndCharacter {\n return sourceFile.getOneBasedLineAndCharacterOfPosition(n.getStart(sourceFile));\n function getZeroBasedStartLineAndCharacterForNode(n: Node, sourceFile: SourceFile): LineAndCharacter {\n return sourceFile.getZeroBasedLineAndCharacterOfPosition(n.getStart(sourceFile));\n var elseKeywordStartLine = getOneBasedStartLineAndCharacterForNode(elseKeyword, sourceFile).line;\n var elseKeywordStartLine = getZeroBasedStartLineAndCharacterForNode(elseKeyword, sourceFile).line;\n var lineAndCharacter = getOneBasedStartLineAndCharacterForNode(node, sourceFile);\n var lineAndCharacter = getZeroBasedStartLineAndCharacterForNode(node, sourceFile);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/f4da5d724fb05db03e21c1411299985388ac364f", "target_edit_idx": 11, "propagatable_edit_idx": [ 1, 5, 6, 7, 9 ] }, { "input": " currentStart = getStartLineAndCharacterForNode(current, sourceFile);\n currentStart = getOneBasedStartLineAndCharacterForNode(current, sourceFile);\n var nextTokenStartLine = getStartLineAndCharacterForNode(nextToken, sourceFile).line;\n var nextTokenStartLine = getOneBasedStartLineAndCharacterForNode(nextToken, sourceFile).line;\n function getStartLineAndCharacterForNode(n: Node, sourceFile: SourceFile): LineAndCharacter {\n function getOneBasedStartLineAndCharacterForNode(n: Node, sourceFile: SourceFile): LineAndCharacter {\n var elseKeywordStartLine = getStartLineAndCharacterForNode(elseKeyword, sourceFile).line;\n var elseKeywordStartLine = getOneBasedStartLineAndCharacterForNode(elseKeyword, sourceFile).line;\n var lineAndCharacter = getStartLineAndCharacterForNode(node, sourceFile);\n var lineAndCharacter = getOneBasedStartLineAndCharacterForNode(node, sourceFile);\n lineAndCharacter = getStartLineAndCharacterForNode(list[i], sourceFile);\n lineAndCharacter = getOneBasedStartLineAndCharacterForNode(list[i], sourceFile);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/edbedc7d5d7ca04021fc7f4722e09538497ad9fe", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7 ] }, { "input": " var nextTokenStartLine = getStartLineAndCharacterForNode(nextToken, sourceFile).line;\n var nextTokenStartLine = getOneBasedStartLineAndCharacterForNode(nextToken, sourceFile).line;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/edbedc7d5d7ca04021fc7f4722e09538497ad9fe", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5, 6, 7 ] }, { "input": " function getStartLineAndCharacterForNode(n: Node, sourceFile: SourceFile): LineAndCharacter {\n function getOneBasedStartLineAndCharacterForNode(n: Node, sourceFile: SourceFile): LineAndCharacter {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/edbedc7d5d7ca04021fc7f4722e09538497ad9fe", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5, 6, 7 ] }, { "input": " var elseKeywordStartLine = getStartLineAndCharacterForNode(elseKeyword, sourceFile).line;\n var elseKeywordStartLine = getOneBasedStartLineAndCharacterForNode(elseKeyword, sourceFile).line;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/edbedc7d5d7ca04021fc7f4722e09538497ad9fe", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 6, 7 ] }, { "input": " var lineAndCharacter = getStartLineAndCharacterForNode(node, sourceFile);\n var lineAndCharacter = getOneBasedStartLineAndCharacterForNode(node, sourceFile);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/edbedc7d5d7ca04021fc7f4722e09538497ad9fe", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 4, 5, 7 ] }, { "input": " lineAndCharacter = getStartLineAndCharacterForNode(list[i], sourceFile);\n lineAndCharacter = getOneBasedStartLineAndCharacterForNode(list[i], sourceFile);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/edbedc7d5d7ca04021fc7f4722e09538497ad9fe", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 4, 5, 6 ] }, { "input": " sourceFile = createLanguageServiceSourceFile(filename, scriptSnapshot, getDefaultCompilerOptions(), version, /*isOpen*/ true);\n sourceFile = createLanguageServiceSourceFile(filename, scriptSnapshot, getDefaultCompilerOptions().target, version, /*isOpen*/ true, /*setNodeParents:*/ true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/1170a1c43604d8b2b3d3b83f53890ebba0481458", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 5, 6, 7 ] }, { "input": " ? createLanguageServiceSourceFile(filename, scriptSnapshot, getDefaultCompilerOptions(), version, /*isOpen*/ true)\n ? createLanguageServiceSourceFile(filename, scriptSnapshot, getDefaultCompilerOptions().target, version, /*isOpen*/ true, /*setNodeParents:*/ true)\n var options: CompilerOptions = {};\n options.target = ScriptTarget.ES5;\n\n return createLanguageServiceSourceFile(/*fileName:*/ \"\", text, options, version, /*isOpen:*/ true)\n return createLanguageServiceSourceFile(/*fileName:*/ \"\", text, ScriptTarget.ES5, version, /*isOpen:*/ true, /*setNodeParents:*/ true)\n sourceFile = createLanguageServiceSourceFile(filename, scriptSnapshot, getDefaultCompilerOptions(), version, /*isOpen*/ true);\n sourceFile = createLanguageServiceSourceFile(filename, scriptSnapshot, getDefaultCompilerOptions().target, version, /*isOpen*/ true, /*setNodeParents:*/ true);\n export function createLanguageServiceSourceFile(filename: string, scriptSnapshot: IScriptSnapshot, settings: CompilerOptions, version: string, isOpen: boolean): SourceFile {\n return SourceFileObject.createSourceFileObject(filename, scriptSnapshot, settings.target, version, isOpen);\n export function createLanguageServiceSourceFile(filename: string, scriptSnapshot: IScriptSnapshot, scriptTarget: ScriptTarget, version: string, isOpen: boolean, setNodeParents: boolean): SourceFile {\n return SourceFileObject.createSourceFileObject(filename, scriptSnapshot, scriptTarget, version, isOpen, setNodeParents);\n var sourceFile = createLanguageServiceSourceFile(filename, scriptSnapshot, compilationSettings, version, isOpen);\n var sourceFile = createLanguageServiceSourceFile(filename, scriptSnapshot, compilationSettings.target, version, isOpen, /*setNodeParents:*/ false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/1170a1c43604d8b2b3d3b83f53890ebba0481458", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 4, 6, 7 ] }, { "input": " export function createLanguageServiceSourceFile(filename: string, scriptSnapshot: IScriptSnapshot, settings: CompilerOptions, version: string, isOpen: boolean): SourceFile {\n return SourceFileObject.createSourceFileObject(filename, scriptSnapshot, settings.target, version, isOpen);\n export function createLanguageServiceSourceFile(filename: string, scriptSnapshot: IScriptSnapshot, scriptTarget: ScriptTarget, version: string, isOpen: boolean, setNodeParents: boolean): SourceFile {\n return SourceFileObject.createSourceFileObject(filename, scriptSnapshot, scriptTarget, version, isOpen, setNodeParents);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/1170a1c43604d8b2b3d3b83f53890ebba0481458", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 4, 5, 7 ] }, { "input": " var sourceFile = createLanguageServiceSourceFile(filename, scriptSnapshot, compilationSettings, version, isOpen);\n var sourceFile = createLanguageServiceSourceFile(filename, scriptSnapshot, compilationSettings.target, version, isOpen, /*setNodeParents:*/ false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/1170a1c43604d8b2b3d3b83f53890ebba0481458", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 4, 5, 6 ] }, { "input": " parseAssignmentExpression, /*allowTrailingComma*/ false, /*preserveTrailingComma*/ true);\n parseArgumentExpression, /*allowTrailingComma*/ false, /*preserveTrailingComma*/ true);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.18181818181818182, "commit_url": "https://github.com/microsoft/TypeScript/commit/1bfd7159e865cd8c133e34629fe336822fe65fea", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": "function fooWithParameters(a, /** this is comment for b*/\nfunction fooWithParameters(a, \n /** this is comment for b*/\nfunction fooWithParameters(a, /** this is comment for b*/\nfunction fooWithParameters(a, \n /** this is comment for b*/\nfunction globalfooWithParameters(a, /** this is comment for b*/\nfunction globalfooWithParameters(a, \n /** this is comment for b*/\n", "class": "clone", "binary_label": 1, "regression_label": 0.21428571428571427, "commit_url": "https://github.com/microsoft/TypeScript/commit/29dcc5ba41cd45b7bf74004ba6019bf69a0f80ab", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " function ConstructorWithParameters(a, /** this is comment for b*/\n function ConstructorWithParameters(a, \n /** this is comment for b*/\n function GlobalConstructorWithParameters(a, /** this is comment for b*/\n function GlobalConstructorWithParameters(a, \n /** this is comment for b*/\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/microsoft/TypeScript/commit/29dcc5ba41cd45b7bf74004ba6019bf69a0f80ab", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " c1.prototype.fooWithParameters = function (a, /** this is comment for b*/\n c1.prototype.fooWithParameters = function (a, \n /** this is comment for b*/\n c1.prototype.privateFooWithParameters = function (a, /** this is comment for b*/\n c1.prototype.privateFooWithParameters = function (a, \n /** this is comment for b*/\n c1.staticFooWithParameters = function (a, /** this is comment for b*/\n c1.staticFooWithParameters = function (a, \n /** this is comment for b*/\n c1.privateStaticFooWithParameters = function (a, /** this is comment for b*/\n c1.privateStaticFooWithParameters = function (a, \n /** this is comment for b*/\n c2.prototype.fooWithParameters = function (a, /** this is comment for b*/\n c2.prototype.fooWithParameters = function (a, \n /** this is comment for b*/\n c2.prototype.privateFooWithParameters = function (a, /** this is comment for b*/\n c2.prototype.privateFooWithParameters = function (a, \n /** this is comment for b*/\n c2.staticFooWithParameters = function (a, /** this is comment for b*/\n c2.staticFooWithParameters = function (a, \n /** this is comment for b*/\n c2.privateStaticFooWithParameters = function (a, /** this is comment for b*/\n c2.privateStaticFooWithParameters = function (a, \n /** this is comment for b*/\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/microsoft/TypeScript/commit/29dcc5ba41cd45b7bf74004ba6019bf69a0f80ab", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " function getSymbolOfIdentifierLikeNode(node: Node) {\n function getSymbolInfo(node: Node) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/f8228e1544dfe688c0652470d7d684d75dcfdb01", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 2, 7 ] }, { "input": " var documentsByName: Map = {};\n var sourceFilesByName: Map = {};\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/f8228e1544dfe688c0652470d7d684d75dcfdb01", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " return lookUp(documentsByName, filename);\n return lookUp(sourceFilesByName, filename);\n var documentsByName: Map = {};\n var sourceFilesByName: Map = {};\n delete documentsByName[filename];\n delete sourceFilesByName[filename];\n documentsByName[filename] = sourceFile;\n sourceFilesByName[filename] = sourceFile;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/f8228e1544dfe688c0652470d7d684d75dcfdb01", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5, 6 ] }, { "input": " delete documentsByName[filename];\n delete sourceFilesByName[filename];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/f8228e1544dfe688c0652470d7d684d75dcfdb01", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4, 6 ] }, { "input": " documentsByName[filename] = sourceFile;\n sourceFilesByName[filename] = sourceFile;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/TypeScript/commit/f8228e1544dfe688c0652470d7d684d75dcfdb01", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "export function detectChangesInternal(\n tView: TView, lView: LView, context: T, notifyErrorHandler = true) {\nexport function detectChangesInternal(lView: LView, notifyErrorHandler = true) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/7f9ab9dc56e3422fe8ee67887ad5f3f9f54c3f36", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " detectChangesInternal(tView, lView, context, notifyErrorHandler);\n detectChangesInternal(lView, notifyErrorHandler);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/7f9ab9dc56e3422fe8ee67887ad5f3f9f54c3f36", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4, 5 ] }, { "input": " detectChangesInternal(view[TVIEW], view, component);\n detectChangesInternal(view);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/7f9ab9dc56e3422fe8ee67887ad5f3f9f54c3f36", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 3, 5 ] }, { "input": " detectChangesInternal(\n this._lView[TVIEW], this._lView, this.context as unknown as {}, this.notifyErrorHandler);\n detectChangesInternal(this._lView, this.notifyErrorHandler);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/7f9ab9dc56e3422fe8ee67887ad5f3f9f54c3f36", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 3, 4 ] }, { "input": " checkNoChangesInternal(\n this._lView[TVIEW], this._lView, this.context as unknown as {}, this.notifyErrorHandler);\n checkNoChangesInternal(this._lView, this.notifyErrorHandler);\nexport function checkNoChangesInternal(\n tView: TView, lView: LView, context: T, notifyErrorHandler = true) {\nexport function checkNoChangesInternal(lView: LView, notifyErrorHandler = true) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/7f9ab9dc56e3422fe8ee67887ad5f3f9f54c3f36", "target_edit_idx": 6, "propagatable_edit_idx": [ 2 ] }, { "input": "import * as commonHttpTesting from '@angular/common/testing';\nimport * as commonHttpTesting from '@angular/common/http/testing';\nimport * as commonHttpTesting from '@angular/common/testing';\nimport * as commonHttpTesting from '@angular/common/http/testing';\nimport * as commonHttpTesting from '@angular/common/testing';\nimport * as commonHttpTesting from '@angular/common/http/testing';\nimport * as commonHttpTesting from '@angular/common/testing';\nimport * as commonHttpTesting from '@angular/common/http/testing';\nimport * as commonHttpTesting from '@angular/common/testing';\nimport * as commonHttpTesting from '@angular/common/http/testing';\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/angular/angular/commit/178ece4dfb3d0f08b0da543479626e8eafaff7a3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " options: Options): number {\n if (options.path.startsWith('..')) {\n schematicOptions: Options): number {\n if (schematicOptions.path.startsWith('..')) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/angular/angular/commit/e9e4449a43430e026e61b0f05ebd32dd830fa916", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " if (options.mode === MigrationMode.pruneModules) {\n if (schematicOptions.mode === MigrationMode.pruneModules) {\n options: Options): number {\n if (options.path.startsWith('..')) {\n schematicOptions: Options): number {\n if (schematicOptions.path.startsWith('..')) {\n } else if (options.mode === MigrationMode.standaloneBootstrap) {\n } else if (schematicOptions.mode === MigrationMode.standaloneBootstrap) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/e9e4449a43430e026e61b0f05ebd32dd830fa916", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " } else if (options.mode === MigrationMode.standaloneBootstrap) {\n } else if (schematicOptions.mode === MigrationMode.standaloneBootstrap) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/e9e4449a43430e026e61b0f05ebd32dd830fa916", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " _ngModelWarning('formControl', FormControlDirective, this, this._ngModelWarningConfig);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _ngModelWarning('formControl', FormControlDirective, this, this._ngModelWarningConfig);\n }\n _ngModelWarning('formControlName', FormControlName, this, this._ngModelWarningConfig);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _ngModelWarning('formControlName', FormControlName, this, this._ngModelWarningConfig);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular/commit/7954c8dfa3c85d12780949c75f1448c8d783a8cf", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "/**\n * Represents the `ExtendedTsCompilerHost` interface, with a transformation applied that turns all\n * methods (even optional ones) into required fields (which may be `undefined`, if the method was\n * optional).\n */\nexport type RequiredCompilerHostDelegations = {\n [M in keyof Required]: ExtendedTsCompilerHost[M];\n};\n\n\n/**\n * Represents the `ts.CompilerHost` interface, with a transformation applied that turns all\n * methods (even optional ones) into required fields (which may be `undefined`, if the method was\n * optional).\n */\nexport type RequiredCompilerHostDelegations = {\n [M in keyof Required]: ts.CompilerHost[M];\n};\nimport {RequiredDelegations} from '../../util/src/typescript';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/7c161e167907cea92f25df192e0dde789e0cfd43", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " Omit {\n Omit, 'getSourceFile'|'fileExists'> {\n Omit {\n Omit, 'getSourceFile'|'fileExists'|'writeFile'> {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/7c161e167907cea92f25df192e0dde789e0cfd43", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " ph.tag, ph.attrs, ph.startName, ph.closeName, children, ph.isVoid, ph.sourceSpan);\n ph.tag, ph.attrs, ph.startName, ph.closeName, children, ph.isVoid, ph.sourceSpan,\n ph.closeSourceSpan);\n ph.tag, ph.attrs, startName, closeName, children, ph.isVoid, ph.sourceSpan);\n ph.tag, ph.attrs, startName, closeName, children, ph.isVoid, ph.sourceSpan,\n ph.closeSourceSpan);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/angular/angular/commit/109555b33a4e148668afa9622bd8ad95c64ccfdc", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": " nodes.push(new i18n.Text(splitInterpolation.strings[i], sourceSpan));\n const stringSpan = getOffsetSourceSpan(sourceSpan, splitInterpolation.stringSpans[i]);\n nodes.push(new i18n.Text(splitInterpolation.strings[i], stringSpan));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/angular/angular/commit/109555b33a4e148668afa9622bd8ad95c64ccfdc", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " nodes.push(new i18n.Text(splitInterpolation.strings[lastStringIdx], sourceSpan));\n const stringSpan =\n getOffsetSourceSpan(sourceSpan, splitInterpolation.stringSpans[lastStringIdx]);\n nodes.push(new i18n.Text(splitInterpolation.strings[lastStringIdx], stringSpan));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/angular/angular/commit/109555b33a4e148668afa9622bd8ad95c64ccfdc", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": "import { ComponentTreeObserver } from './observer/observer';\nimport { DirectiveForestObserver } from './observer/observer';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/07344cd4b39849eb17f331fe089176515efa9441", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 7, 8, 9, 10, 11 ] }, { "input": "let observer: ComponentTreeObserver;\nlet observer: DirectiveForestObserver;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/07344cd4b39849eb17f331fe089176515efa9441", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5, 7, 8, 9, 10, 11 ] }, { "input": " observer = new ComponentTreeObserver({});\n observer = new DirectiveForestObserver({});\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/07344cd4b39849eb17f331fe089176515efa9441", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4, 7, 8, 9, 10, 11 ] }, { "input": "import { ComponentTreeObserver } from './observer';\nimport { DirectiveForestObserver } from './observer';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/07344cd4b39849eb17f331fe089176515efa9441", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 4, 5, 8, 9, 10, 11 ] }, { "input": " observer = new ComponentTreeObserver({\n observer = new DirectiveForestObserver({\nimport { ComponentTreeObserver } from './observer/observer';\nimport { DirectiveForestObserver } from './observer/observer';\nlet observer: ComponentTreeObserver;\nlet observer: DirectiveForestObserver;\n observer = new ComponentTreeObserver({});\n observer = new DirectiveForestObserver({});\nimport { ComponentTreeObserver } from './observer';\nimport { DirectiveForestObserver } from './observer';\nlet observer: ComponentTreeObserver;\nlet observer: DirectiveForestObserver;\nconst flushBuffer = (obs: ComponentTreeObserver, source: string = '') => {\nconst flushBuffer = (obs: DirectiveForestObserver, source: string = '') => {\nexport class ComponentTreeObserver {\nexport class DirectiveForestObserver {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/07344cd4b39849eb17f331fe089176515efa9441", "target_edit_idx": 9, "propagatable_edit_idx": [ 3, 4, 5, 7, 8, 10, 11 ] }, { "input": "const flushBuffer = (obs: ComponentTreeObserver, source: string = '') => {\nconst flushBuffer = (obs: DirectiveForestObserver, source: string = '') => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/07344cd4b39849eb17f331fe089176515efa9441", "target_edit_idx": 10, "propagatable_edit_idx": [ 3, 4, 5, 7, 8, 9, 11 ] }, { "input": " this._observeUpdates();\n this.indexForest();\n this._observeUpdates();\n this.indexForest();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/07344cd4b39849eb17f331fe089176515efa9441", "target_edit_idx": 12, "propagatable_edit_idx": [ 14 ] }, { "input": " this._observeUpdates();\n this.indexForest();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/07344cd4b39849eb17f331fe089176515efa9441", "target_edit_idx": 14, "propagatable_edit_idx": [ 12 ] }, { "input": " const isTemplateRef = hasTemplateReference(summary.type);\n const hasTemplateRef = isStructuralDirective(summary.type);\n if (isTemplateRef) {\n if (hasTemplateRef) {\nexport function hasTemplateReference(type: CompileTypeMetadata): boolean {\nexport function isStructuralDirective(type: CompileTypeMetadata): boolean {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/66c06eb1ad868a7e0b56f264d447d81dd1486b5c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " if (isTemplateRef) {\n if (hasTemplateRef) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/66c06eb1ad868a7e0b56f264d447d81dd1486b5c", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " forest: trimComponents(getDirectiveForest()),\n forest: prepareForestForSerialization(getDirectiveForest()),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/6a6af6615a85dffa5a772d2678e6ed51ea41582a", "target_edit_idx": 2, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "export const trimComponents = (roots: ComponentTreeNode[]): ComponentTreeNode[] => {\nexport const prepareForestForSerialization = (roots: ComponentTreeNode[]): ComponentTreeNode[] => {\n forest: trimComponents(getDirectiveForest()),\n forest: prepareForestForSerialization(getDirectiveForest()),\n children: trimComponents(node.children),\n children: prepareForestForSerialization(node.children),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/6a6af6615a85dffa5a772d2678e6ed51ea41582a", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 6 ] }, { "input": " children: trimComponents(node.children),\n children: prepareForestForSerialization(node.children),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/6a6af6615a85dffa5a772d2678e6ed51ea41582a", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "import {INJECTABLE_DECORATOR_NAME, addNamedImport, getNamedImports} from '../util';\nimport {INJECTABLE_DECORATOR_NAME, addImport, getNamedImports} from '../util';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/6f433887e020cd027c148798530a22ba12f7a48b", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 5 ] }, { "input": " ts.EmitHint.Unspecified,\n addNamedImport(importDeclarationMissingImport, INJECTABLE_DECORATOR_NAME),\n ts.EmitHint.Unspecified, addImport(namedImports, INJECTABLE_DECORATOR_NAME),\n ts.EmitHint.Unspecified,\n addNamedImport(importDeclarationMissingImport, INJECTABLE_DECORATOR_NAME),\n ts.EmitHint.Unspecified, addImport(namedImports, INJECTABLE_DECORATOR_NAME),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/6f433887e020cd027c148798530a22ba12f7a48b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " // When using `UpgradeModule`, we don't need to ensure callbacks to Angular APIs (e.g. change\n // detection) are run inside the Angular zone, because `$digest()` will be run inside the zone\n // (except if explicitly escaped, in which case we shouldn't force it back in).\n // When using `downgradeModule()` though, we need to ensure such callbacks are run inside the\n // Angular zone.\n let needsNgZone = false;\n // When using `downgradeModule()`, we need to handle certain things specially. For example:\n // - We always need to attach the component view to the `ApplicationRef` for it to be\n // dirty-checked.\n // - We need to ensure callbacks to Angular APIs (e.g. change detection) are run inside the\n // Angular zone.\n // NOTE: This is not needed, when using `UpgradeModule`, because `$digest()` will be run\n // inside the Angular zone (except if explicitly escaped, in which case we shouldn't\n // force it back in).\n let isNgUpgradeLite = false;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/angular/angular/commit/8a7498e0efe9acd1760a2d2501c1b76b23a5d410", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " facade.setupInputs(needsNgZone, info.propagateDigest);\n facade.setupInputs(isNgUpgradeLite, info.propagateDigest);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/8a7498e0efe9acd1760a2d2501c1b76b23a5d410", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " const downgradeFn = !needsNgZone ? doDowngrade : (injector: Injector) => {\n const downgradeFn = !isNgUpgradeLite ? doDowngrade : (injector: Injector) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/8a7498e0efe9acd1760a2d2501c1b76b23a5d410", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " setupInputs(needsNgZone: boolean, propagateDigest = true): void {\n setupInputs(manuallyAttachView: boolean, propagateDigest = true): void {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/8a7498e0efe9acd1760a2d2501c1b76b23a5d410", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " if (needsNgZone || !propagateDigest) {\n if (manuallyAttachView || !propagateDigest) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/8a7498e0efe9acd1760a2d2501c1b76b23a5d410", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " [\n INJECTOR_KEY,\n (injector: Injector) => ({ injector, needsNgZone: false } as LazyModuleRef)\n ])\n [INJECTOR_KEY, (injector: Injector) => ({ injector } as LazyModuleRef)])\n [\n INJECTOR_KEY,\n (injector: Injector) => ({ injector, needsNgZone: false } as LazyModuleRef)\n ])\n [INJECTOR_KEY, (injector: Injector) => ({ injector } as LazyModuleRef)])\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/8a7498e0efe9acd1760a2d2501c1b76b23a5d410", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " if (!this.hasImportOrReeportStatements(fromContents)) {\n if (!this.hasImportOrReexportStatements(fromContents)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/b93c1dffa17e4e6900b3ab1b9e554b6da92be0de", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " hasImportOrReeportStatements(source: string): boolean {\n hasImportOrReexportStatements(source: string): boolean {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/b93c1dffa17e4e6900b3ab1b9e554b6da92be0de", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " if (calling.get(targetFunction)) {\n if (calling.get(functionSymbol)) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/d6b65db9a762607d1184350cb5d0b4c70aecd1f2", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " calling.set(targetFunction, true);\n calling.set(functionSymbol, true);\n if (calling.get(targetFunction)) {\n if (calling.get(functionSymbol)) {\n calling.delete(targetFunction);\n calling.delete(functionSymbol);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/d6b65db9a762607d1184350cb5d0b4c70aecd1f2", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 5 ] }, { "input": " calling.delete(targetFunction);\n calling.delete(functionSymbol);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/d6b65db9a762607d1184350cb5d0b4c70aecd1f2", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " 'Recursion not supported, resolving symbol recursion in /tmp/src/function-reference.ts, resolving symbol in /tmp/src/function-reference.ts'));\n 'Recursion not supported, resolving symbol recursive in /tmp/src/function-recursive.d.ts, resolving symbol recursion in /tmp/src/function-reference.ts, resolving symbol in /tmp/src/function-reference.ts'));\n 'Recursion not supported, resolving symbol indirectRecursion in /tmp/src/function-reference.ts, resolving symbol in /tmp/src/function-reference.ts'));\n 'Recursion not supported, resolving symbol indirectRecursion2 in /tmp/src/function-recursive.d.ts, resolving symbol indirectRecursion1 in /tmp/src/function-recursive.d.ts, resolving symbol indirectRecursion in /tmp/src/function-reference.ts, resolving symbol in /tmp/src/function-reference.ts'));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular/commit/d6b65db9a762607d1184350cb5d0b4c70aecd1f2", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " intlOptions.currency = currency;\n intlOptions.currencyDisplay = currencyAsSymbol ? 'symbol' : 'code';\n options.currency = currency;\n options.currencyDisplay = currencyAsSymbol ? 'symbol' : 'code';\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/d45594238968dfbe0ae8082b63974e7a25af43a6", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " return new Intl.NumberFormat(locale, intlOptions).format(num);\n return new Intl.NumberFormat(locale, options).format(num);\n intlOptions.currency = currency;\n intlOptions.currencyDisplay = currencyAsSymbol ? 'symbol' : 'code';\n options.currency = currency;\n options.currencyDisplay = currencyAsSymbol ? 'symbol' : 'code';\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/d45594238968dfbe0ae8082b63974e7a25af43a6", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": " if (isDevMode()) getDOM().log('WARNING: sanitizing unsafe style value ' + value);\n if (isDevMode()) {\n getDOM().log(\n `WARNING: sanitizing unsafe style value ${value} (see http://g.co/ng/security#xss).`);\n }\n if (isDevMode()) getDOM().log('WARNING: sanitizing unsafe URL value ' + url);\n if (isDevMode()) {\n getDOM().log(`WARNING: sanitizing unsafe URL value ${url} (see http://g.co/ng/security#xss)`);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular/commit/810c722413be130e2f8a562b281ae2f19af8ed08", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "export function sanitizeHtml(unsafeHtml: string): string {\nexport function sanitizeHtml(unsafeHtmlInput: string): string {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/98cef76931f1417c21bfaf8cbbdb3768a4b85fb5", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " if (isDevMode() && safeHtml !== unsafeHtml) {\n if (isDevMode() && safeHtml !== unsafeHtmlInput) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/98cef76931f1417c21bfaf8cbbdb3768a4b85fb5", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " return forkJoin(canActivate.map(c => {\n const guard = this.injector.get(c);\n if (guard.canActivate) {\n return wrapIntoObservable(guard.canActivate(future, this.future));\n } else {\n return wrapIntoObservable(guard(future, this.future));\n }\n }))\n .map(and);\n return Observable.from(canActivate)\n .map(c => {\n const guard = this.injector.get(c);\n if (guard.canActivate) {\n return wrapIntoObservable(guard.canActivate(future, this.future));\n } else {\n return wrapIntoObservable(guard(future, this.future));\n }\n })\n .mergeAll()\n .every(result => result === true);\n return forkJoin(canDeactivate.map(c => {\n const guard = this.injector.get(c);\n if (guard.canDeactivate) {\n return wrapIntoObservable(guard.canDeactivate(component, curr, this.curr));\n } else {\n return wrapIntoObservable(guard(component, curr, this.curr));\n }\n }))\n .map(and);\n return Observable.from(canDeactivate)\n .map(c => {\n const guard = this.injector.get(c);\n if (guard.canDeactivate) {\n return wrapIntoObservable(guard.canDeactivate(component, curr, this.curr));\n } else {\n return wrapIntoObservable(guard(component, curr, this.curr));\n }\n })\n .mergeAll()\n .every(result => result === true);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular/commit/97cf0e40d5d11f6e3a79d7f84861281a22b368a0", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " const n = _findNode(t, this._root);\n const n = findNode(t, this._root);\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/1a4e911b8bf3c36db75581ee507eccd7570572c4", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 6, 7 ] }, { "input": " pathFromRoot(t: T): T[] { return _findPath(t, this._root, []).map(s => s.value); }\n pathFromRoot(t: T): T[] { return findPath(t, this._root, []).map(s => s.value); }\nfunction _findPath(expected: T, c: TreeNode, collected: TreeNode[]): TreeNode[] {\nfunction findPath(expected: T, c: TreeNode, collected: TreeNode[]): TreeNode[] {\n const r = _findPath(expected, cc, cloned);\n const r = findPath(expected, cc, cloned);\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/1a4e911b8bf3c36db75581ee507eccd7570572c4", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " contains(tree: Tree): boolean { return _contains(this._root, tree._root); }\n contains(tree: Tree): boolean { return contains(this._root, tree._root); }\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/1a4e911b8bf3c36db75581ee507eccd7570572c4", "target_edit_idx": 5, "propagatable_edit_idx": [ 10, 11 ] }, { "input": "function _findNode(expected: T, c: TreeNode): TreeNode | null {\nfunction findNode(expected: T, c: TreeNode): TreeNode | null {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/1a4e911b8bf3c36db75581ee507eccd7570572c4", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 7 ] }, { "input": " const r = _findNode(expected, cc);\n const r = findNode(expected, cc);\n const n = _findNode(t, this._root);\n const n = findNode(t, this._root);\n const n = _findNode(t, this._root);\n const n = findNode(t, this._root);\nfunction _findNode(expected: T, c: TreeNode): TreeNode | null {\nfunction findNode(expected: T, c: TreeNode): TreeNode | null {\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/1a4e911b8bf3c36db75581ee507eccd7570572c4", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 6 ] }, { "input": "function _findPath(expected: T, c: TreeNode, collected: TreeNode[]): TreeNode[] {\nfunction findPath(expected: T, c: TreeNode, collected: TreeNode[]): TreeNode[] {\n const r = _findPath(expected, cc, cloned);\n const r = findPath(expected, cc, cloned);\n pathFromRoot(t: T): T[] { return _findPath(t, this._root, []).map(s => s.value); }\n pathFromRoot(t: T): T[] { return findPath(t, this._root, []).map(s => s.value); }\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/1a4e911b8bf3c36db75581ee507eccd7570572c4", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 4 ] }, { "input": " const r = _findPath(expected, cc, cloned);\n const r = findPath(expected, cc, cloned);\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/1a4e911b8bf3c36db75581ee507eccd7570572c4", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 4 ] }, { "input": "function _contains(tree: TreeNode, subtree: TreeNode): boolean {\nfunction contains(tree: TreeNode, subtree: TreeNode): boolean {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/1a4e911b8bf3c36db75581ee507eccd7570572c4", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 5 ] }, { "input": " if (!_contains(s[0], subtreeNode)) return false;\n if (!contains(s[0], subtreeNode)) return false;\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/1a4e911b8bf3c36db75581ee507eccd7570572c4", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 5 ] }, { "input": " query: isPresent(query) ? this.getQueryMetadata(query, null) : null,\n viewQuery: isPresent(viewQuery) ? this.getQueryMetadata(viewQuery, null) : null,\n query: isPresent(query) ? this.getQueryMetadata(query, null, typeOrFunc) : null,\n viewQuery: isPresent(viewQuery) ? this.getQueryMetadata(viewQuery, null, typeOrFunc) : null,\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/057abefe50bdc78cae7c7f92412fb921a3dcc464", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " compileQueries.push(this.getQueryMetadata(query, propertyName));\n compileQueries.push(this.getQueryMetadata(query, propertyName, directiveType));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/057abefe50bdc78cae7c7f92412fb921a3dcc464", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " expect(viewListener.spy('viewCreated')).toHaveBeenCalledWith(rootView);\n expect(viewListener.spy('onViewCreated')).toHaveBeenCalledWith(rootView);\n expect(viewListener.spy('viewDestroyed')).toHaveBeenCalledWith(hostView);\n expect(viewListener.spy('onViewDestroyed')).toHaveBeenCalledWith(hostView);\n expect(viewListener.spy('viewCreated')).toHaveBeenCalledWith(childView);\n expect(viewListener.spy('onViewCreated')).toHaveBeenCalledWith(childView);\n expect(viewListener.spy('viewCreated')).toHaveBeenCalledWith(newHostView);\n expect(viewListener.spy('onViewCreated')).toHaveBeenCalledWith(newHostView);\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/angular/angular/commit/04b4035ecde068f4187d7a7ffe1fa2a4d6cc722a", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 10, 12 ] }, { "input": " expect(viewListener.spy('viewCreated')).not.toHaveBeenCalled();\n expect(viewListener.spy('onViewCreated')).not.toHaveBeenCalled();\n expect(viewListener.spy('viewCreated')).not.toHaveBeenCalled();\n expect(viewListener.spy('onViewCreated')).not.toHaveBeenCalled();\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/angular/angular/commit/04b4035ecde068f4187d7a7ffe1fa2a4d6cc722a", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " allowNonTsExtensions: false,\n allowNonTsExtensions: false,\n allowNonTsExtensions: false,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/b09788993d9f89b8749bfc616d33b55102d780dc", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 6 ] }, { "input": " module: 'CommonJS',\n moduleResolution: 1 /* classic */,\n module: 'commonjs',\n moduleResolution: 'classic',\n module: 'CommonJS',\n moduleResolution: 1 /* classic */,\n module: 'commonjs',\n moduleResolution: 'classic',\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular/commit/b09788993d9f89b8749bfc616d33b55102d780dc", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": " {selector: 'someDirective', properties: [], events: [], host: {}}));\n {selector: 'someDirective', properties: [], events: [], host: {}, queries: {}}));\n {selector: 'someChildDirective', properties: [], events: [], host: {}}));\n {selector: 'someChildDirective', properties: [], events: [], host: {}, queries: {}}));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular/commit/2e9de0b1693807b6609108bf31dc9a6f0c95d07f", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "export function createNgZone(handler: ExceptionHandler): NgZone {\n // bootstrapErrorReporter is needed because we cannot use custom exception handler\n // configured via DI until the root Injector has been created.\n var bootstrapErrorReporter = (exception, stackTrace) => handler.call(exception, stackTrace);\n var zone = new NgZone({enableLongStackTrace: assertionsEnabled()});\n zone.overrideOnErrorHandler(bootstrapErrorReporter);\n return zone;\nexport function createNgZone(): NgZone {\n return new NgZone({enableLongStackTrace: assertionsEnabled()});\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/07b9be798c1c0f8eb37788c80d2b0bffe87e6d82", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 1, 9 ] }, { "input": " var zone = createNgZone(new ExceptionHandler(DOM, isDart ? false : true));\n zone.run(() => {\n // TODO(rado): prepopulate template cache, so applications with only\n // index.html and main.js are possible.\n var zone = createNgZone();\nexport function createNgZone(handler: ExceptionHandler): NgZone {\n // bootstrapErrorReporter is needed because we cannot use custom exception handler\n // configured via DI until the root Injector has been created.\n var bootstrapErrorReporter = (exception, stackTrace) => handler.call(exception, stackTrace);\n var zone = new NgZone({enableLongStackTrace: assertionsEnabled()});\n zone.overrideOnErrorHandler(bootstrapErrorReporter);\n return zone;\nexport function createNgZone(): NgZone {\n return new NgZone({enableLongStackTrace: assertionsEnabled()});\n var zone = createNgZone(new ExceptionHandler(DOM));\n var zone = createNgZone();\n var zone = createNgZone(new ExceptionHandler(new PrintLogger()));\n var zone = createNgZone();\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/07b9be798c1c0f8eb37788c80d2b0bffe87e6d82", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 8, 9 ] }, { "input": " var zone = createNgZone(new ExceptionHandler(DOM));\n var zone = createNgZone();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/07b9be798c1c0f8eb37788c80d2b0bffe87e6d82", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 9 ] }, { "input": " var c = new Control(\"\");\n var c = new Control();\n _control = new Control(\"\");\n _control = new Control();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular/commit/5b597de18cb4a29f78dc3a576b9c6e45bff18ecf", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " function r(funcOrValue, args, contextIndex, selfIndex, lastInBinding = false,\n mode = RecordType.PROPERTY, name = \"name\") {\n return new ProtoRecord(mode, name, funcOrValue, args, null, contextIndex, null, selfIndex, null,\n null, lastInBinding, false);\n function r(\n funcOrValue, args, contextIndex, selfIndex,\n {lastInBinding, mode, name,\n directiveIndex}: {lastInBinding?: any, mode?: any, name?: any, directiveIndex?: any} = {}) {\n if (isBlank(lastInBinding)) lastInBinding = false;\n if (isBlank(mode)) mode = RecordType.PROPERTY;\n if (isBlank(name)) name = \"name\";\n if (isBlank(directiveIndex)) directiveIndex = null;\n return new ProtoRecord(mode, name, funcOrValue, args, null, contextIndex, directiveIndex,\n selfIndex, null, null, lastInBinding, false);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.20689655172413793, "commit_url": "https://github.com/angular/angular/commit/d2774421e8c0d810c87b9fecc573145ff61948bb", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " r(\"onCheck\", [], 0, 1, true, RecordType.DIRECTIVE_LIFECYCLE),\n r(\"onCheck\", [], 0, 1, true, RecordType.DIRECTIVE_LIFECYCLE)\n r(\"onCheck\", [], 0, 1, {mode: RecordType.DIRECTIVE_LIFECYCLE}),\n r(\"onCheck\", [], 0, 1, {mode: RecordType.DIRECTIVE_LIFECYCLE})\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1724137931034483, "commit_url": "https://github.com/angular/angular/commit/d2774421e8c0d810c87b9fecc573145ff61948bb", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 5 ] }, { "input": " r(nullFunc, [], 0, 1, false, RecordType.PROPERTY, \"foo\"),\n r(nullFunc, [], 0, 1, false, RecordType.PROPERTY, \"bar\"),\n r(nullFunc, [], 0, 1, {name: \"foo\"}),\n r(nullFunc, [], 0, 1, {name: \"bar\"}),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1724137931034483, "commit_url": "https://github.com/angular/angular/commit/d2774421e8c0d810c87b9fecc573145ff61948bb", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " if (dep.key.id === StaticKeys.instance().elementRefId) {\n if (dirDep.key.id === StaticKeys.instance().elementRefId) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/28c2b8f43290d604503f3642cf55e52f6f82b0a2", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10, 11, 12 ] }, { "input": " if (dep.key.id === StaticKeys.instance().viewContainerId) {\n if (dirDep.key.id === StaticKeys.instance().viewContainerId) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/28c2b8f43290d604503f3642cf55e52f6f82b0a2", "target_edit_idx": 8, "propagatable_edit_idx": [ 7, 9, 10, 11, 12 ] }, { "input": " if (dep.key.id === StaticKeys.instance().protoViewId) {\n if (dirDep.key.id === StaticKeys.instance().protoViewId) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/28c2b8f43290d604503f3642cf55e52f6f82b0a2", "target_edit_idx": 9, "propagatable_edit_idx": [ 7, 8, 10, 11, 12 ] }, { "input": " if (dep.optional) {\n if (dirDep.optional) {\n if (dep.key.id === StaticKeys.instance().elementRefId) {\n if (dirDep.key.id === StaticKeys.instance().elementRefId) {\n if (dep.key.id === StaticKeys.instance().viewContainerId) {\n if (dirDep.key.id === StaticKeys.instance().viewContainerId) {\n if (dep.key.id === StaticKeys.instance().protoViewId) {\n if (dirDep.key.id === StaticKeys.instance().protoViewId) {\n throw new NoBindingError(dep.key);\n throw new NoBindingError(dirDep.key);\n return this._getByKey(dep.key, dep.visibility, dep.optional, requestor);\n return this._getByKey(dirDep.key, dirDep.visibility, dirDep.optional, requestor);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/28c2b8f43290d604503f3642cf55e52f6f82b0a2", "target_edit_idx": 10, "propagatable_edit_idx": [ 7, 8, 9, 11, 12 ] }, { "input": " throw new NoBindingError(dep.key);\n throw new NoBindingError(dirDep.key);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/28c2b8f43290d604503f3642cf55e52f6f82b0a2", "target_edit_idx": 11, "propagatable_edit_idx": [ 7, 8, 9, 10, 12 ] }, { "input": " constructor(originalException, key) {\n constructor(cause, key) {\n ` ORIGINAL ERROR: ${originalException}`;\n ` ORIGINAL ERROR: ${cause}`;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/e23004df52421a18628f1f45774781bd171f12a2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " ` ORIGINAL ERROR: ${originalException}`;\n ` ORIGINAL ERROR: ${cause}`;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular/commit/e23004df52421a18628f1f45774781bd171f12a2", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " expect(value.domElement.tagName.toLowerCase()).toEqual('div');\n expect(value.tagName.toLowerCase()).toEqual('div');\n expect(value.domElement.tagName.toLowerCase()).toEqual('div');\n expect(value.tagName.toLowerCase()).toEqual('div');\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular/commit/eac5c88893a5784384b6c7667945d7c21b94a48a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "import {ListWrapper} from 'angular2/src/facade/collection';\nimport {ListWrapper} from 'angular2/src/facade/collection';\n", "class": "clone", "binary_label": 1, "regression_label": 0.2222222222222222, "commit_url": "https://github.com/angular/angular/commit/fb5b168b1928769d5680d78243f7e17e6e4a9457", "target_edit_idx": 1, "propagatable_edit_idx": [ 10 ] }, { "input": "import {DOM} from 'angular2/src/facade/dom';\nimport {DOM} from 'angular2/src/facade/dom';\nimport {DOM} from 'angular2/src/facade/dom';\nimport {DOM} from 'angular2/src/facade/dom';\nimport {DOM} from 'angular2/src/facade/dom';\n", "class": "clone", "binary_label": 1, "regression_label": 0.4166666666666667, "commit_url": "https://github.com/angular/angular/commit/fb5b168b1928769d5680d78243f7e17e6e4a9457", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 4, 5, 7 ] }, { "input": " this.injector._setInstance(key, _constructing);\n this.injector._markAsConstructing(key);\n this.injector._setInstance(key, _constructing);\n this.injector._markAsConstructing(key);\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/angular/angular/commit/9b411372df3471e7119738b57ac9c17636fe7990", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " this.injector._setInstance(key, null);\n this.injector._clear(key);\n this.injector._setInstance(key, null);\n this.injector._clear(key);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/angular/angular/commit/9b411372df3471e7119738b57ac9c17636fe7990", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " event.key === 'Backspace' &&\n (event.key === 'Backspace' || event.key === 'Delete') &&\n event.key === 'Backspace' &&\n (event.key === 'Backspace' || event.key === 'Delete') &&\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/mui/material-ui/commit/79699546b022e3b265cb13ccd0c1195e1c63b1d8", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " (event as React.KeyboardEvent).key === 'Backspace' &&\n ((event as React.KeyboardEvent).key === 'Backspace' ||\n (event as React.KeyboardEvent).key === 'Delete') &&\n (event as React.KeyboardEvent).key === 'Backspace' &&\n ((event as React.KeyboardEvent).key === 'Backspace' ||\n (event as React.KeyboardEvent).key === 'Delete') &&\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/mui/material-ui/commit/79699546b022e3b265cb13ccd0c1195e1c63b1d8", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "import { preprocessor as basePreprocessor, generateThemeTokens } from '@mui/zero-runtime/utils';\nimport {\n preprocessor as basePreprocessor,\n generateTokenCss,\n generateThemeTokens,\n} from '@mui/zero-runtime/utils';\nimport { preprocessor as basePreprocessor, generateThemeTokens } from '@mui/zero-runtime/utils';\nimport {\n preprocessor as basePreprocessor,\n generateTokenCss,\n generateThemeTokens,\n} from '@mui/zero-runtime/utils';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/3ceb5b6a318fe83b48ba0b43340909ffbfccbf48", "target_edit_idx": 3, "propagatable_edit_idx": [ 9 ] }, { "input": " return generateThemeTokens(theme);\n return generateTokenCss(theme);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/3ceb5b6a318fe83b48ba0b43340909ffbfccbf48", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 10, 7 ] }, { "input": " return generateThemeTokens(theme);\n return generateTokenCss(theme);\nexport function generateThemeTokens(theme: BaseTheme) {\nexport function generateTokenCss(theme: BaseTheme) {\n return generateThemeTokens(theme);\n return generateTokenCss(theme);\n return generateThemeTokens(theme);\n return generateTokenCss(theme);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/3ceb5b6a318fe83b48ba0b43340909ffbfccbf48", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 10, 5 ] }, { "input": " return `export default ${JSON.stringify(theme)};`;\n return `export default ${JSON.stringify(generateThemeTokens(theme))};`;\n return `export default ${JSON.stringify(theme)};`;\n return `export default ${JSON.stringify(generateThemeTokens(theme))};`;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/mui/material-ui/commit/3ceb5b6a318fe83b48ba0b43340909ffbfccbf48", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": " color:\n theme.palette.mode === 'dark'\n ? theme.palette[color].main\n : theme.palette[color].light,\n color: theme.palette[color].main,\n color:\n theme.palette.mode === 'dark'\n ? theme.palette[color].main\n : theme.palette[color].light,\n color: theme.palette[color].main,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mui/material-ui/commit/5c7eab309b7699fe96a78c3ce91d2dc5074c63dd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " const topLevelPathImportsArePackages = topLevelNonIndexFiles.length === 0;\n const topLevelPathImportsCanBePackages = topLevelNonIndexFiles.length === 0;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/b8bb45119ce0a2f97b70e361a4ac7179f6f8ad1a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " node: topLevelPathImportsArePackages ? './node' : './',\n node: topLevelPathImportsCanBePackages ? './node' : './',\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/b8bb45119ce0a2f97b70e361a4ac7179f6f8ad1a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " stable: topLevelPathImportsArePackages ? './' : './esm',\n stable: topLevelPathImportsCanBePackages ? './' : './esm',\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/b8bb45119ce0a2f97b70e361a4ac7179f6f8ad1a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " const [selectedDate, handleDateChange] = React.useState(new Date());\n const [value, setValue] = React.useState(new Date());\n if (!selectedDate) {\n if (!value) {\n const start = startOfWeek(selectedDate);\n const end = endOfWeek(selectedDate);\n const start = startOfWeek(value);\n const end = endOfWeek(value);\n value={selectedDate}\n onChange={handleDateChange}\n value={value}\n onChange={(newValue) => {\n setValue(newValue);\n }}\n const [selectedDate, handleDateChange] = React.useState(new Date());\n const [value, setValue] = React.useState(new Date());\n if (!selectedDate) {\n if (!value) {\n const start = startOfWeek(selectedDate);\n const end = endOfWeek(selectedDate);\n const start = startOfWeek(value);\n const end = endOfWeek(value);\n value={selectedDate}\n onChange={handleDateChange}\n value={value}\n onChange={(newValue) => {\n setValue(newValue);\n }}\n const [selectedDate, handleDateChange] = React.useState(new Date());\n const [value, setValue] = React.useState(new Date());\n value={selectedDate}\n onChange={handleDateChange}\n value={value}\n onChange={(newValue) => {\n setValue(newValue);\n }}\n const [selectedDate, handleDateChange] = React.useState(new Date());\n const [value, setValue] = React.useState(new Date());\n value={selectedDate}\n onChange={handleDateChange}\n value={value}\n onChange={(newValue) => {\n setValue(newValue);\n }}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/c494ec1ba39be747867bcfb5cb489696b18a3348", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " const start = startOfWeek(selectedDate);\n const end = endOfWeek(selectedDate);\n const start = startOfWeek(value);\n const end = endOfWeek(value);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/mui/material-ui/commit/c494ec1ba39be747867bcfb5cb489696b18a3348", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " const [selectedDate, handleDateChange] = React.useState(new Date());\n const [value, setValue] = React.useState(new Date());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/c494ec1ba39be747867bcfb5cb489696b18a3348", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " const [selectedDate, handleDateChange] = React.useState(new Date());\n const [value, setValue] = React.useState(new Date());\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/c494ec1ba39be747867bcfb5cb489696b18a3348", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11 ] }, { "input": " value={selectedDate}\n onChange={handleDateChange}\n value={value}\n onChange={(newValue) => {\n setValue(newValue);\n }}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/c494ec1ba39be747867bcfb5cb489696b18a3348", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11 ] }, { "input": "function HigherOrderComponent(props) {\nfunction UnstyledComponent(props) {\nHigherOrderComponent.propTypes = {\nUnstyledComponent.propTypes = {\nexport default withStyles(styles)(HigherOrderComponent);\nexport default withStyles(styles)(UnstyledComponent);function HigherOrderComponent(props: WithStyles) {\nfunction UnstyledComponent(props: WithStyles) {\nexport default withStyles(styles)(HigherOrderComponent);\nexport default withStyles(styles)(UnstyledComponent);", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/5fa46573245b0c7d3c9cdfaa12545cc5a57d943c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": "HigherOrderComponent.propTypes = {\nUnstyledComponent.propTypes = {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/5fa46573245b0c7d3c9cdfaa12545cc5a57d943c", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": "export default withStyles(styles)(HigherOrderComponent);\nexport default withStyles(styles)(UnstyledComponent);", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/5fa46573245b0c7d3c9cdfaa12545cc5a57d943c", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": "function HigherOrderComponent(props: WithStyles) {\nfunction UnstyledComponent(props: WithStyles) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/5fa46573245b0c7d3c9cdfaa12545cc5a57d943c", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4 ] }, { "input": "export default withStyles(styles)(HigherOrderComponent);\nexport default withStyles(styles)(UnstyledComponent);function HigherOrderComponent(props) {\nfunction UnstyledComponent(props) {\nHigherOrderComponent.propTypes = {\nUnstyledComponent.propTypes = {\nexport default withStyles(styles)(HigherOrderComponent);\nexport default withStyles(styles)(UnstyledComponent);function HigherOrderComponent(props: WithStyles) {\nfunction UnstyledComponent(props: WithStyles) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/5fa46573245b0c7d3c9cdfaa12545cc5a57d943c", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " \n \n \n \n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/29f20eafb8bdfead211ed36f4719f1a723b6c221", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " resolvedAnchorEl instanceof Element\n resolvedAnchorEl instanceof containerWindow.Element\n if (resolvedAnchorEl instanceof Element) {\n if (resolvedAnchorEl instanceof containerWindow.Element) {\n if (resolvedAnchorEl instanceof Element) {\n if (resolvedAnchorEl instanceof containerWindow.Element) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/mui/material-ui/commit/17e9fdabb358db2df89f9f1a01bb013fa4dfa410", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " React.useLayoutEffect(() => {\n useEnhancedEffect(() => {\n React.useLayoutEffect(() => {\n useEnhancedEffect(() => {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/f0dd1d5bcf0ebfd70f793ccb5c61aff122a002c0", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "function BadgeMax(props) {\n const { classes } = props;\nfunction BadgeMax() {\n const classes = useStyles();\nfunction BadgeMax(props: WithStyles) {\n const { classes } = props;\nfunction BadgeMax() {\n const classes = useStyles();\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/b2d28f41ec7ef1f41a3906b44747998bd3f3ddb8", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": "BadgeMax.propTypes = {\n classes: PropTypes.object.isRequired,\n};\n\nexport default withStyles(styles)(BadgeMax);\nexport default BadgeMax;BadgeMax.propTypes = {\n classes: PropTypes.object.isRequired,\n} as any;\n\nexport default withStyles(styles)(BadgeMax);\nexport default BadgeMax;", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/b2d28f41ec7ef1f41a3906b44747998bd3f3ddb8", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": "function BadgeMax(props: WithStyles) {\n const { classes } = props;\nfunction BadgeMax() {\n const classes = useStyles();\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/b2d28f41ec7ef1f41a3906b44747998bd3f3ddb8", "target_edit_idx": 8, "propagatable_edit_idx": [ 3 ] }, { "input": " ", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mui/material-ui/commit/065db20d593507e1fb9072ce10f5ec1133585322", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " const { anchorEl, placement } = this.state;\n const open = Boolean(anchorEl);\n const { anchorEl, open, placement } = this.state;\n const { anchorEl } = this.state;\n const open = Boolean(anchorEl);\n const { anchorEl, open } = this.state;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/001c142308ebd675db053372809f82204e863e52", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " const params = {\n const iconProps = {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/59e1ff83e00488aa4a4addf4eeca92196fc92d17", "target_edit_idx": 4, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " params.color = styles.root.color;\n iconProps.color = styles.root.color;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/59e1ff83e00488aa4a4addf4eeca92196fc92d17", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " iconElement = React.cloneElement(icon, params);\n iconElement = React.cloneElement(icon, iconProps);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/59e1ff83e00488aa4a4addf4eeca92196fc92d17", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " const rawTheme = muiTheme.rawTheme;\n const baseTheme = muiTheme.baseTheme;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/8a52d1f9dbe2dde49c3f9452dd860b3d22904b6f", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5 ] }, { "input": " color: rawTheme.palette.accent1Color,\n color: baseTheme.palette.accent1Color,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mui/material-ui/commit/8a52d1f9dbe2dde49c3f9452dd860b3d22904b6f", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5 ] }, { "input": " const prefixer = getPrefixer();\n const prefixer = this.getPrefixer();\n const prefixer = getPrefixer();\n const prefixer = this.getPrefixer();\n const prefixer = getPrefixer();\n const prefixer = this.getPrefixer();\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/mui/material-ui/commit/a6c09853e85908dca5625ec4fb51338183cbfaf3", "target_edit_idx": 11, "propagatable_edit_idx": [ 12, 13 ] }, { "input": "import type { MentionProps } from 'antd';\nimport type { MentionsProps } from 'antd';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ant-design/ant-design/commit/36d6d3d7f2f19a3447cd4cac870ec6feabc63e95", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " const onSearch: MentionProps['onSearch'] = (_, newPrefix) => {\n const onSearch: MentionsProps['onSearch'] = (_, newPrefix) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ant-design/ant-design/commit/36d6d3d7f2f19a3447cd4cac870ec6feabc63e95", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " return { ...base, name, value: type.elements.map(convert) };\n return { ...base, name, value: type.elements?.map(convert) };\n return { ...base, name, value: type.elements.map(convert) };\n return { ...base, name, value: type.elements?.map(convert) };\n result = { ...base, name, value: type.elements.map(convert) };\n result = { ...base, name, value: type.elements?.map(convert) };\n return { ...base, name, value: type.elements.map(convert) };\n return { ...base, name, value: type.elements?.map(convert) };\n", "class": "clone", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/storybookjs/storybook/commit/3767f87a07951718b6dd38ef1ba14176274e1957", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 5, 6 ] }, { "input": " return this.mapDependencies(parsedOutput);\n return this.mapDependencies(parsedOutput, pattern);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/3514a770a2e8a221c77949f1b915569d829c025b", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " protected mapDependencies(input: PnpmListOutput): InstallationMetadata {\n protected mapDependencies(input: PnpmListOutput, pattern: string[]): InstallationMetadata {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/3514a770a2e8a221c77949f1b915569d829c025b", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " if (!name || !name.includes('storybook')) return;\n // transform pattern into regex where `*` is replaced with `.*`\n if (!name || !pattern.some((p) => new RegExp(p.replace(/\\*/g, '.*')).test(name))) return;\n if (!name || !name.includes('storybook')) return;\n if (!name || !pattern.some((p) => new RegExp(p.replace(/\\*/g, '.*')).test(name))) return;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/3514a770a2e8a221c77949f1b915569d829c025b", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " protected mapDependencies(input: Yarn1ListOutput): InstallationMetadata {\n protected mapDependencies(input: Yarn1ListOutput, pattern: string[]): InstallationMetadata {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/3514a770a2e8a221c77949f1b915569d829c025b", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 7 ] }, { "input": " return this.mapDependencies(commandResult);\n return this.mapDependencies(commandResult, pattern);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/3514a770a2e8a221c77949f1b915569d829c025b", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " protected mapDependencies(input: string): InstallationMetadata {\n protected mapDependencies(input: string, pattern: string[]): InstallationMetadata {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/3514a770a2e8a221c77949f1b915569d829c025b", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " emit(EVENTS.MANUAL, storyId);\n emit(EVENTS.MANUAL, storyId, api.getParameters(storyId, 'a11y'));\n emit(EVENTS.REQUEST, renderedStoryId);\n emit(EVENTS.REQUEST, renderedStoryId, api.getParameters(renderedStoryId, 'a11y'));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/bc1e4cdc9655522296ab345b5328fe924cd93624", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " emit(EVENTS.REQUEST, renderedStoryId);\n emit(EVENTS.REQUEST, renderedStoryId, api.getParameters(renderedStoryId, 'a11y'));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/bc1e4cdc9655522296ab345b5328fe924cd93624", "target_edit_idx": 9, "propagatable_edit_idx": [ 7 ] }, { "input": " .option('-s, --static-dir ', 'Directory where to load static files from', parseList)\n .option('-s, --static-dir ', 'Directory where to load static files from', parseList)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/94f4361eaba818bc01433b47908ad9ae75d90724", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "import { ConflictingStaticDirConfigError } from '@storybook/core-events/server-errors';\nimport { ConflictingStaticDirConfigError } from '@storybook/core-events/server-errors';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/94f4361eaba818bc01433b47908ad9ae75d90724", "target_edit_idx": 2, "propagatable_edit_idx": [ 10 ] }, { "input": "import isEqual from 'lodash/isEqual.js';\nimport isEqual from 'lodash/isEqual.js';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/94f4361eaba818bc01433b47908ad9ae75d90724", "target_edit_idx": 3, "propagatable_edit_idx": [ 11 ] }, { "input": "import { defaultStaticDirs } from './utils/constants';\nimport { defaultStaticDirs } from './constants';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/storybookjs/storybook/commit/94f4361eaba818bc01433b47908ad9ae75d90724", "target_edit_idx": 5, "propagatable_edit_idx": [ 12 ] }, { "input": " if (options.staticDir && !isEqual(staticDirs, defaultStaticDirs)) {\n throw new ConflictingStaticDirConfigError();\n }\n\n if (options.staticDir && !isEqual(staticDirs, defaultStaticDirs)) {\n throw new ConflictingStaticDirConfigError();\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/94f4361eaba818bc01433b47908ad9ae75d90724", "target_edit_idx": 7, "propagatable_edit_idx": [ 13 ] }, { "input": "// This is required for projects that require paths such as `@storybook/core-events/manager-errors`\n// but in CJS, while not in ESM mode. Else an error like this will occur:\n// This is required for compatibility in projects that don't support the exports map field (e.g. Jest 27),\n// so when require paths such as `@storybook/core-events/manager-errors`,\n// An error like this will occur:\n// This is required for projects that require paths such as `@storybook/core-events/preview-errors`\n// but in CJS, while not in ESM mode. Else an error like this will occur:\n// This is required for compatibility in projects that don't support the exports map field (e.g. Jest 27),\n// so when require paths such as `@storybook/core-events/preview-errors`,\n// An error like this will occur:\n// This is required for projects that require paths such as `@storybook/core-events/server-errors`\n// but in CJS, while not in ESM mode. Else an error like this will occur:\n// This is required for compatibility in projects that don't support the exports map field (e.g. Jest 27),\n// so when require paths such as `@storybook/core-events/server-errors`,\n// An error like this will occur:\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/24b837c4a1ece4d163310c0b597dd68ff006ffd3", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " render: ({ active, key }) => ,\n render: ({ active }) => ,\n render: ({ active, key }) => ,\n render: ({ active }) => ,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/storybookjs/storybook/commit/9f79059ccec5e034e892475d7fc1ae1ad3d5d5dd", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " render: ({ key, active }) => {\n render: ({ active }) => {\n render: ({ key, active }) => {\n render: ({ active }) => {\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/storybookjs/storybook/commit/9f79059ccec5e034e892475d7fc1ae1ad3d5d5dd", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " \n \n \n \n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/9f79059ccec5e034e892475d7fc1ae1ad3d5d5dd", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "import { CLIOptions } from '@storybook/types';\nimport { CLIOptions } from '@storybook/types';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/b71cd6e3c48430ccee7fb4adef3d88ec72a6dfab", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " return new NPMProxy();\n return new NPMProxy({ cwd });\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/storybookjs/storybook/commit/49d4a68e219d2ac5a1717e683b0f1e294043bbbc", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": " channel.emit(SNIPPET_RENDERED, context.id, toEmit);\n channel.emit(SNIPPET_RENDERED, context.id, toEmit, 'angular');\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/b68ef1a4f7ba4533380815685fa2eed4d788f305", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " channel.emit(SNIPPET_RENDERED, (context || {}).id, ``);\n channel.emit(SNIPPET_RENDERED, (context || {}).id, ``, 'vue');\n channel.emit(SNIPPET_RENDERED, context.id, toEmit);\n channel.emit(SNIPPET_RENDERED, context.id, toEmit, 'angular');\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/b68ef1a4f7ba4533380815685fa2eed4d788f305", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " const [out] = await generateDtsBundle([\n {\n filePath: input,\n output: { inlineDeclareGlobals: false, sortNodes: true, noBanner: true },\n },\n ]);\n const [out] = await generateDtsBundle(\n [\n {\n filePath: input,\n output: { inlineDeclareGlobals: false, sortNodes: true, noBanner: true },\n },\n ],\n { followSymlinks: false }\n );\n\n const [out] = await generateDtsBundle([\n { filePath: input, output: { inlineDeclareGlobals: false, sortNodes: true, noBanner: true } },\n ]);\n const [out] = await generateDtsBundle(\n [\n {\n filePath: input,\n output: { inlineDeclareGlobals: false, sortNodes: true, noBanner: true },\n },\n ],\n { followSymlinks: false }\n );\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/storybookjs/storybook/commit/c96715ce0550daf81f32b7439afe638a074c5bdb", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " const [out] = await generateDtsBundle([\n { filePath: input, output: { inlineDeclareGlobals: false, sortNodes: true, noBanner: true } },\n ]);\n const [out] = await generateDtsBundle(\n [\n {\n filePath: input,\n output: { inlineDeclareGlobals: false, sortNodes: true, noBanner: true },\n },\n ],\n { followSymlinks: false }\n );\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/storybookjs/storybook/commit/c96715ce0550daf81f32b7439afe638a074c5bdb", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "export const Button = ({ primary, backgroundColor, size, label, onClick }) => {\nexport const Button = ({ primary, backgroundColor = null, size, label, onClick }) => {\nexport const Button = ({ primary, backgroundColor, size, label, onClick }: ButtonProps) => {\nexport const Button = ({ primary, backgroundColor = null, size, label, onClick }: ButtonProps) => {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/storybookjs/storybook/commit/ba1e5a42bafc8df6885e2d05fdac60205586ab3a", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " style=${backgroundColor && { backgroundColor }}\n style=${styleMap({ backgroundColor })}\n style=${backgroundColor && { backgroundColor }}\n style=${styleMap({ backgroundColor })}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/ba1e5a42bafc8df6885e2d05fdac60205586ab3a", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "interface Annotations {\n args?: ArgsType;\ninterface Annotations {\n args?: Partial;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/71c20befcfe266d8ea8f50e96d2d2ecdadf2d04e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4, 5 ] }, { "input": "interface BaseStory {\n (args: ArgsType, context: StoryContext): StoryFnReturnType;\ninterface BaseStory {\n (args: Args, context: StoryContext): StoryFnReturnType;\ninterface Annotations {\n args?: ArgsType;\ninterface Annotations {\n args?: Partial;\nexport type Meta = BaseMeta &\n Annotations;\nexport type Meta = BaseMeta &\n Annotations;\nexport type Story = BaseStory &\n Annotations;\nexport type Story = BaseStory &\n Annotations;", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/71c20befcfe266d8ea8f50e96d2d2ecdadf2d04e", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": "export type Meta = BaseMeta &\n Annotations;\nexport type Meta = BaseMeta &\n Annotations;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/storybookjs/storybook/commit/71c20befcfe266d8ea8f50e96d2d2ecdadf2d04e", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 5 ] }, { "input": " onLogin?: () => void;\n onLogout?: () => void;\n onCreateAccount?: () => void;\n onLogin: () => void;\n onLogout: () => void;\n onCreateAccount: () => void;\n onLogin?: () => void;\n onLogout?: () => void;\n onCreateAccount?: () => void;\n onLogin: () => void;\n onLogout: () => void;\n onCreateAccount: () => void;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/storybookjs/storybook/commit/71c20befcfe266d8ea8f50e96d2d2ecdadf2d04e", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " return ;\n return ;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/dfffc21347558df7bffa6de4f75e80e8ba8a4917", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " stories: ['../src/stories/**/*.stories.ts'],\n stories: ['../src/**/*.stories.ts'],\n stories: ['../src/stories/**/*.stories.(ts|mdx)'],\n stories: ['../src/**/*.stories.(ts|mdx)'],\n stories: ['../src/stories/**/*.stories.js'],\n stories: ['../src/**/*.stories.js'],\n stories: ['../src/stories/**/*.stories.(ts|tsx|js|jsx)'],\n stories: ['../src/**/*.stories.(ts|tsx|js|jsx)'],\n stories: ['../src/stories/**/*.stories.js'],\n stories: ['../src/**/*.stories.js'],\n stories: ['../src/stories/**/*.stories.(js|mdx)'],\n stories: ['../src/**/*.stories.(js|mdx)'],\n stories: ['../src/stories/**/*.stories.js'],\n stories: ['../src/**/*.stories.js'],\n stories: ['../src/stories/**/*.stories.(js|mdx)'],\n stories: ['../src/**/*.stories.(js|mdx)'],\n", "class": "clone", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/storybookjs/storybook/commit/1d44109f9d4be9ccfef6c634dda8e7067c044d05", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7 ] }, { "input": " const presets = loadPresets(presetsConfig);\n const presets = loadPresets(presetsConfig, restOptions);\n const presets = loadPresets(presetsConfig);\n const presets = loadPresets(presetsConfig, restOptions);\nfunction loadPresets(presets, level = 0) {\nfunction loadPresets(presets, level, storybookOptions) {\n return loadPresets(subPresets, level + 1);\n return loadPresets(subPresets, level + 1, storybookOptions);\n ...(subPresets ? loadPresets(subPresets, level + 1) : []),\n ...loadPresets(subPresets, level + 1, storybookOptions),\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/df9a93a130f530a2228b7405074e4a718c80863b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 11, 5, 7 ] }, { "input": " const presets = loadPresets(presetsConfig);\n const presets = loadPresets(presetsConfig, restOptions);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/df9a93a130f530a2228b7405074e4a718c80863b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 11, 5, 7 ] }, { "input": "function loadPreset(input, level) {\nfunction loadPreset(input, level, storybookOptions) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/df9a93a130f530a2228b7405074e4a718c80863b", "target_edit_idx": 3, "propagatable_edit_idx": [ 12 ] }, { "input": " return loadPresets(subPresets, level + 1);\n return loadPresets(subPresets, level + 1, storybookOptions);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/df9a93a130f530a2228b7405074e4a718c80863b", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 11, 7 ] }, { "input": "function loadPresets(presets, level = 0) {\nfunction loadPresets(presets, level, storybookOptions) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/df9a93a130f530a2228b7405074e4a718c80863b", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 1, 5, 7 ] }, { "input": " const loaded = loadPreset(preset, level);\n const loaded = loadPreset(preset, level, storybookOptions);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/df9a93a130f530a2228b7405074e4a718c80863b", "target_edit_idx": 12, "propagatable_edit_idx": [ 3 ] }, { "input": "const Required = styled.span(({ theme }: { theme: any }) => ({\nconst Required = styled.span(({ theme }) => ({\nconst Text = styled.span(({ theme }: { theme: any }) => ({\nconst Text = styled.span(({ theme }) => ({\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/storybookjs/storybook/commit/ea4bd26c095b553e065449e74905a837c14f2e70", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": " \n \n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/ea4bd26c095b553e065449e74905a837c14f2e70", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " configure(loader: Loadable, module: NodeModule, framework: string): void;\n configure(loader: Loadable, module: NodeModule): void;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/3b93c633aaa401d3cffe86d90b5565fab1985ad4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " configure(loader: Loadable, module: NodeModule, framework: string): void;\n configure(loader: Loadable, module: NodeModule): void;\n configure(loader: Loadable, module: NodeModule, framework: string): void;\n configure(loader: Loadable, module: NodeModule): void;\n configure(loader: Loadable, module: NodeModule, framework: string): void;\n configure(loader: Loadable, module: NodeModule): void;\n configure(loader: Loadable, module: NodeModule, framework: string): void;\n configure(loader: Loadable, module: NodeModule): void;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/3b93c633aaa401d3cffe86d90b5565fab1985ad4", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " const { channel } = this.props;\n const { api } = this.props;\n channel: PropTypes.shape({\n on: PropTypes.func,\n api: PropTypes.shape({\n channel.on(EVENTS.ADD, this.onAdd);\n api.on(EVENTS.ADD, this.onAdd);\n const { channel } = this.props;\n const { api } = this.props;\n channel.removeListener(EVENTS.ADD, this.onAdd);\n api.off(EVENTS.ADD, this.onAdd);\n const { channel } = this.props;\n const { api } = this.props;\n channel.emit(EVENTS.EMIT, event);\n api.emit(EVENTS.EMIT, event);\n render: ({ active, key }) => ,\n render: ({ active, key }) => ,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/1a3607c4a6f58e7f6ecd66b812be7aa192eb7466", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4, 5, 6, 7, 9 ] }, { "input": " channel.on(EVENTS.ADD, this.onAdd);\n api.on(EVENTS.ADD, this.onAdd);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/1a3607c4a6f58e7f6ecd66b812be7aa192eb7466", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 5, 6, 7, 9 ] }, { "input": " const { channel } = this.props;\n const { api } = this.props;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/1a3607c4a6f58e7f6ecd66b812be7aa192eb7466", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3, 5, 6, 7, 9 ] }, { "input": " channel.removeListener(EVENTS.ADD, this.onAdd);\n api.off(EVENTS.ADD, this.onAdd);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/1a3607c4a6f58e7f6ecd66b812be7aa192eb7466", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 3, 4, 6, 7, 9 ] }, { "input": " render: ({ active, key }) => ,\n render: ({ active, key }) => ,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/storybookjs/storybook/commit/1a3607c4a6f58e7f6ecd66b812be7aa192eb7466", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7 ] }, { "input": " return customConfig(config, configType, defaultConfig);\n const finalDefaultConfig = await createFinalDefaultConfig(presets, config, options);\n return customConfig(finalConfig, configType, finalDefaultConfig);\n return mergeConfigs(config, customConfig);\n return mergeConfigs(finalConfig, customConfig);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/storybookjs/storybook/commit/2873911d03791ecff4c275d93d2cf726825d95d9", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "import { buildStatic } from '@storybook/core/server';\n// Building for distribution defaults to production target.\nprocess.env.NODE_ENV = process.env.NODE_ENV || 'production';\nimport { buildStatic } from '@storybook/core/server';\n// Building for distribution defaults to production target.\nprocess.env.NODE_ENV = process.env.NODE_ENV || 'production';\nimport { buildStatic } from '@storybook/core/server';\n// Building for distribution defaults to production target.\nprocess.env.NODE_ENV = process.env.NODE_ENV || 'production';\nimport { buildStatic } from '@storybook/core/server';\n// Building for distribution defaults to production target.\nprocess.env.NODE_ENV = process.env.NODE_ENV || 'production';\nimport { buildStatic } from '@storybook/core/server';\n// Building for distribution defaults to production target.\nprocess.env.NODE_ENV = process.env.NODE_ENV || 'production';\nimport { buildStatic } from '@storybook/core/server';\n// Building for distribution defaults to production target.\nprocess.env.NODE_ENV = process.env.NODE_ENV || 'production';\nimport { buildStatic } from '@storybook/core/server';\n// Building for distribution defaults to production target.\nprocess.env.NODE_ENV = process.env.NODE_ENV || 'production';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/69d4843e6d399335b8348f589ab0a92fcf29bc5b", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 6, 8, 10, 12 ] }, { "input": "import options from './options';\n\nbuildStatic(options);\n// Note: We are importing via CommonJS to be able to adjust NODE_ENV\n// to production first before proceeding. This is required to correctly\n// e.g. selecting the `.env` files to import. It also helps with all ESM\n// imports which as some side-effect decide on things at \"loadtime\".\nconst server = require('@storybook/core/server');\nserver.buildStatic(require('./options').default);import options from './options';\n\nbuildStatic(options);\n// Note: We are importing via CommonJS to be able to adjust NODE_ENV\n// to production first before proceeding. This is required to correctly\n// e.g. selecting the `.env` files to import. It also helps with all ESM\n// imports which as some side-effect decide on things at \"loadtime\".\nconst server = require('@storybook/core/server');\nserver.buildStatic(require('./options').default);import options from './options';\n\nbuildStatic(options);\n// Note: We are importing via CommonJS to be able to adjust NODE_ENV\n// to production first before proceeding. This is required to correctly\n// e.g. selecting the `.env` files to import. It also helps with all ESM\n// imports which as some side-effect decide on things at \"loadtime\".\nconst server = require('@storybook/core/server');\nserver.buildStatic(require('./options').default);import options from './options';\n\nbuildStatic(options);\n// Note: We are importing via CommonJS to be able to adjust NODE_ENV\n// to production first before proceeding. This is required to correctly\n// e.g. selecting the `.env` files to import. It also helps with all ESM\n// imports which as some side-effect decide on things at \"loadtime\".\nconst server = require('@storybook/core/server');\nserver.buildStatic(require('./options').default);import options from './options';\n\nbuildStatic(options);\n// Note: We are importing via CommonJS to be able to adjust NODE_ENV\n// to production first before proceeding. This is required to correctly\n// e.g. selecting the `.env` files to import. It also helps with all ESM\n// imports which as some side-effect decide on things at \"loadtime\".\nconst server = require('@storybook/core/server');\nserver.buildStatic(require('./options').default);import options from './options';\n\nbuildStatic(options);\n// Note: We are importing via CommonJS to be able to adjust NODE_ENV\n// to production first before proceeding. This is required to correctly\n// e.g. selecting the `.env` files to import. It also helps with all ESM\n// imports which as some side-effect decide on things at \"loadtime\".\nconst server = require('@storybook/core/server');\nserver.buildStatic(require('./options').default);import options from './options';\n\nbuildStatic(options);\n// Note: We are importing via CommonJS to be able to adjust NODE_ENV\n// to production first before proceeding. This is required to correctly\n// e.g. selecting the `.env` files to import. It also helps with all ESM\n// imports which as some side-effect decide on things at \"loadtime\".\nconst server = require('@storybook/core/server');\nserver.buildStatic(require('./options').default);", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/69d4843e6d399335b8348f589ab0a92fcf29bc5b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 7, 9, 11, 13 ] }, { "input": "export default compose(genPoddaLoader(mapper))(AddonPanel);\nexport default compose(\n genPoddaLoader(mapper),\n { withRef: false }\n)(AddonPanel);export default compose(genPoddaLoader(mapper))(Header);\nexport default compose(\n genPoddaLoader(mapper),\n { withRef: false }\n)(Header);export default compose(genPoddaLoader(mapper))(Layout);\nexport default compose(\n genPoddaLoader(mapper),\n { withRef: false }\n)(Layout);const composer = compose(genPoddaLoader(mapper));\nconst composer = compose(\n genPoddaLoader(mapper),\n { withRef: false }\n);\nexport default compose(genPoddaLoader(mapper))(SearchBoxComponent);\nexport default compose(\n genPoddaLoader(mapper),\n { withRef: false }\n)(SearchBoxComponent);export default compose(genPoddaLoader(mapper))(ShortcutsHelp);\nexport default compose(\n genPoddaLoader(mapper),\n { withRef: false }\n)(ShortcutsHelp);export default compose(genPoddaLoader(mapper))(StoriesPanel);\nexport default compose(\n genPoddaLoader(mapper),\n { withRef: false }\n)(StoriesPanel);", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/677558c544e433e16a6fb226d22901106875c4f6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": "export default compose(genPoddaLoader(mapper))(Header);\nexport default compose(\n genPoddaLoader(mapper),\n { withRef: false }\n)(Header);", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/677558c544e433e16a6fb226d22901106875c4f6", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6 ] }, { "input": "export default compose(genPoddaLoader(mapper))(Layout);\nexport default compose(\n genPoddaLoader(mapper),\n { withRef: false }\n)(Layout);", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/677558c544e433e16a6fb226d22901106875c4f6", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6 ] }, { "input": "const composer = compose(genPoddaLoader(mapper));\nconst composer = compose(\n genPoddaLoader(mapper),\n { withRef: false }\n);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/677558c544e433e16a6fb226d22901106875c4f6", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6 ] }, { "input": "export default compose(genPoddaLoader(mapper))(ShortcutsHelp);\nexport default compose(\n genPoddaLoader(mapper),\n { withRef: false }\n)(ShortcutsHelp);", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/677558c544e433e16a6fb226d22901106875c4f6", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6 ] }, { "input": "export default compose(genPoddaLoader(mapper))(StoriesPanel);\nexport default compose(\n genPoddaLoader(mapper),\n { withRef: false }\n)(StoriesPanel);", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/677558c544e433e16a6fb226d22901106875c4f6", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5 ] }, { "input": "export function renderMain(data, storyStore) {\nexport function renderMain(data, storyStore, forceRender) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/597387c8389dc631d97a724524b8f860f0830cca", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 4, 7 ] }, { "input": "export default function renderPreview({ reduxStore, storyStore }) {\nexport default function renderPreview({ reduxStore, storyStore }, forceRender = false) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/storybookjs/storybook/commit/597387c8389dc631d97a724524b8f860f0830cca", "target_edit_idx": 3, "propagatable_edit_idx": [ 9 ] }, { "input": " return renderMain(state, storyStore);\n return renderMain(state, storyStore, forceRender);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/597387c8389dc631d97a724524b8f860f0830cca", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 10, 7 ] }, { "input": "export function renderMain(data, storyStore) {\nexport function renderMain(data, storyStore, forceRender) {\n return renderMain(state, storyStore);\n return renderMain(state, storyStore, forceRender);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/d4609e449e6644fd23e18c83416edd0a712ab9bb", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "]).then(([storybookVersion, actionsVersion, linksVersion]) => {\n latestVersion('prop-types'),\n]).then(([storybookVersion, actionsVersion, linksVersion, propTypesVersion]) => {\n]).then(([storybookVersion, actionsVersion, linksVersion]) => {\n latestVersion('prop-types'),\n]).then(([storybookVersion, actionsVersion, linksVersion, propTypesVersion]) => {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/storybookjs/storybook/commit/2188121c53667c555da876048f4562df1dce630a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "import { Animated, Easing, View, TouchableOpacity, Text } from 'react-native';\nimport { Animated, Easing, View, TouchableWithoutFeedback, Text } from 'react-native';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/2c095c242b7d7b518979291690ac2710d70b19b9", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 4, 5, 7 ] }, { "input": " \n \n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/2c095c242b7d7b518979291690ac2710d70b19b9", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 8, 5, 7 ] }, { "input": " handleOpenMenu = () => {\n this.setState({\n isMenuOpen: true,\n });\n };\n handleToggleMenu = () => {\n const isMenuOpen = !this.state.isMenuOpen;\n\n Animated.timing(this.state.menuAnimation, {\n toValue: isMenuOpen ? 250 : 0,\n duration: 150,\n easing: Easing.linear,\n }).start();\n \n \n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/feb86f314622684d222c139cf6756d9e86b5a0d0", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " \n \n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/storybookjs/storybook/commit/feb86f314622684d222c139cf6756d9e86b5a0d0", "target_edit_idx": 6, "propagatable_edit_idx": [ 2 ] }, { "input": " const maxColumnValueLength = Math.max(...rows.map((row) => String(row[key]).length))\n const maxColumnValueLength = rows\n .map((row) => String(row[key]).length)\n .reduce((a, b) => Math.max(a, b), 0)\n\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/supabase/supabase/commit/434d7ea74dd1f83612760919405d9afb6ba54b2e", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " const highestIoBudgetConsumption = Math.max(\n ...(ioBudgetData?.data || []).map((x) => Number(x.disk_io_consumption) ?? 0),\n 0\n )\n const highestIoBudgetConsumption = (ioBudgetData?.data || [])\n .map((x) => Number(x.disk_io_consumption) ?? 0)\n .reduce((a, b) => Math.max(a, b), 0)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/supabase/supabase/commit/434d7ea74dd1f83612760919405d9afb6ba54b2e", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " revalidate: 1800, // 5 hours\n revalidate: 1800, // 30 minutes\n revalidate: 1800, // 5 hours\n revalidate: 1800, // 30 minutes\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/supabase/supabase/commit/09bd8d0c8f6af5cbbef04fcabb9ea795a1593710", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " revalidate: 18000, // In seconds - refresh every 5 hours\n revalidate: 1800, // 30 minutes\n revalidate: 18000, // In seconds - refresh every 5 hours\n revalidate: 1800, // 30 minutes\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/supabase/supabase/commit/09bd8d0c8f6af5cbbef04fcabb9ea795a1593710", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "import { endOfLWX } from './data/lwx_data'\nimport { endOfLWXHackathon } from './data/lwx_data'\n Hackathon ends in \n Hackathon ends in \n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/supabase/supabase/commit/1635beab2379eedeaca7fff1b0eb1b2a59bb7ef9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " Hackathon ends in \n Hackathon ends in \n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/supabase/supabase/commit/1635beab2379eedeaca7fff1b0eb1b2a59bb7ef9", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " const { mutate: checkCNAMERecord, isLoading: isCheckingRecord } = useCheckCNAMERecordMutation({\n onError: () => {\n return ui.setNotification({\n category: 'error',\n message: `Your CNAME record for ${customDomain.hostname} cannot be found - if you've just added the CNAME record, do check back in a bit.`,\n })\n },\n })\n const { mutate: checkCNAMERecord, isLoading: isCheckingRecord } = useCheckCNAMERecordMutation()\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/supabase/supabase/commit/dac1b27fb1f3328cd823be7a53aece42320c6dbc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " const { mutate: checkCNAMERecord, isLoading: isCheckingRecord } = useCheckCNAMERecordMutation({\n onError: (error, variables) => {\n return ui.setNotification({\n category: 'error',\n message: `Your CNAME record for ${variables.domain} cannot be found - if you've just added the CNAME record, do check back in a bit.`,\n })\n },\n })\n const { mutate: checkCNAMERecord, isLoading: isCheckingRecord } = useCheckCNAMERecordMutation()\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/supabase/supabase/commit/dac1b27fb1f3328cd823be7a53aece42320c6dbc", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " }${BASE_PATH}${getReturnToPath()}`,\n }${BASE_PATH}${getReturnToPath('/')}`,\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/supabase/supabase/commit/6fa7acd622769d7bfcf1657fb886fddaa9066cbd", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " }${BASE_PATH}${getReturnToPath()}`,\n }${BASE_PATH}${getReturnToPath('/')}`,\n }${BASE_PATH}${getReturnToPath()}`,\n }${BASE_PATH}${getReturnToPath('/')}`,\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/supabase/supabase/commit/6fa7acd622769d7bfcf1657fb886fddaa9066cbd", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " return response\n return data\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/supabase/supabase/commit/0282250bdebc02360f0711b4b0c69ec7e8da628f", "target_edit_idx": 4, "propagatable_edit_idx": [ 10 ] }, { "input": " return response\n if (error) throw error\n return data\n return response\n return data\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/supabase/supabase/commit/0282250bdebc02360f0711b4b0c69ec7e8da628f", "target_edit_idx": 10, "propagatable_edit_idx": [ 4 ] }, { "input": " const projectDetails = useSelectedProject()\n const project = useSelectedProject()\n const isBranch = projectDetails?.parent_project_ref !== undefined\n const hasBranchEnabled = projectDetails?.is_branch_enabled\n const isBranch = project?.parent_project_ref !== undefined\n projectDetails !== undefined ? (isBranch ? projectDetails.parent_project_ref : ref) : undefined\n project !== undefined ? (isBranch ? project.parent_project_ref : ref) : undefined\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/supabase/supabase/commit/5d327d0ed0684ae3611a620d4e4e2d98342a4e2e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " const isBranch = projectDetails?.parent_project_ref !== undefined\n const hasBranchEnabled = projectDetails?.is_branch_enabled\n const isBranch = project?.parent_project_ref !== undefined\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/supabase/supabase/commit/5d327d0ed0684ae3611a620d4e4e2d98342a4e2e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " projectDetails !== undefined ? (isBranch ? projectDetails.parent_project_ref : ref) : undefined\n project !== undefined ? (isBranch ? project.parent_project_ref : ref) : undefined\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/supabase/supabase/commit/5d327d0ed0684ae3611a620d4e4e2d98342a4e2e", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " (connection) => connection.supabase_project_ref === ref\n (connection) => connection.supabase_project_ref === projectRef\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/supabase/supabase/commit/5d327d0ed0684ae3611a620d4e4e2d98342a4e2e", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 13 ] }, { "input": "import { useSelectedOrganization } from 'hooks'\nimport { useSelectedOrganization, useSelectedProject } from 'hooks'\nimport { useSelectedOrganization } from 'hooks'\nimport { useSelectedOrganization, useSelectedProject } from 'hooks'\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/supabase/supabase/commit/5d327d0ed0684ae3611a620d4e4e2d98342a4e2e", "target_edit_idx": 5, "propagatable_edit_idx": [ 10 ] }, { "input": " url: partner.images[0] ?? partner.logo,\n url: partner.images ? partner.images[0] : partner.logo,\n url: partner.images[0] ?? partner.logo,\n url: partner.images ? partner.images[0] : partner.logo,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/supabase/supabase/commit/8c382911847ea0f4f693e035e041f1fcafd5f511", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " {partner.images.map((image: any, i: number) => {\n {partner.images?.map((image: any, i: number) => {\n {partner.images.map((image: any, i: number) => {\n {partner.images?.map((image: any, i: number) => {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/supabase/supabase/commit/8c382911847ea0f4f693e035e041f1fcafd5f511", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " const [isComposing, setIsComposing] = useState(false)\n const [isImeComposing, setIsImeComposing] = useState(false)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/supabase/supabase/commit/81046ad47eba5556aa9cce275f070f116021d218", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " const isOrgNameValid = validateOrgName(orgName)\n const trimmedOrgName = orgName ? orgName.trim() : ''\n const isOrgNameValid = validateOrgName(trimmedOrgName)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/supabase/supabase/commit/8499bc86685b60a4bcaef4f3a2613bfd9509c276", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " name: orgName,\n name: trimmedOrgName,\n const isOrgNameValid = validateOrgName(orgName)\n const trimmedOrgName = orgName ? orgName.trim() : ''\n const isOrgNameValid = validateOrgName(trimmedOrgName)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/supabase/supabase/commit/8499bc86685b60a4bcaef4f3a2613bfd9509c276", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "import { API_ADMIN_URL } from 'lib/constants'\nimport { API_ADMIN_URL, IS_PLATFORM } from 'lib/constants'\nimport { API_ADMIN_URL } from 'lib/constants'\nimport { API_ADMIN_URL, IS_PLATFORM } from 'lib/constants'\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/supabase/supabase/commit/7ebbfe1eeaf834cabfc0cd59412789e6e30c9546", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " await renameFile(item, itemName, columnIndex)\n await renameFile(item, name, columnIndex)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/supabase/supabase/commit/423dab16a99136bbbad88f2b89f9ad0f283aef51", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " renameFolder(itemWithColumnIndex, itemName, columnIndex)\n renameFolder(itemWithColumnIndex, name, columnIndex)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/supabase/supabase/commit/423dab16a99136bbbad88f2b89f9ad0f283aef51", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " addNewFolder(itemName, columnIndex)\n addNewFolder(name, columnIndex)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/supabase/supabase/commit/423dab16a99136bbbad88f2b89f9ad0f283aef51", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "import { checkPermissions, useStore } from 'hooks'\nimport { checkPermissions, useStore, useFlag } from 'hooks'\nimport { checkPermissions, useStore } from 'hooks'\nimport { checkPermissions, useFlag, useStore } from 'hooks'\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/supabase/supabase/commit/52a21310b64dfc954e7d1859e225e4cc211fe277", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "import ProjectLayout from 'components/layouts'\nimport { ProjectLayoutWithAuth } from 'components/layouts'\nimport ProjectLayout from 'components/layouts'\nimport { ProjectLayoutWithAuth } from 'components/layouts'\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/supabase/supabase/commit/38668f0a69cd889d2f1716e86f2f95a0493b450d", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " onOrgUpdated(org: any) {\n if (org && org.id) {\n this.organizations.data[org.id] = { ...org }\n onOrgUpdated(updatedOrg: Organization) {\n if (updatedOrg && updatedOrg.id) {\n const originalOrg = this.organizations.data[updatedOrg.id]\n this.organizations.data[updatedOrg.id] = {\n ...originalOrg,\n ...updatedOrg,\n }\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/supabase/supabase/commit/d6deeb3916be7d8d9960782b8e8f14ab1ea7c93e", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " const path = options.base ? route.fullPath.replace(options.base, \"\") : route.fullPath\n const base = options.strip ? route.fullPath.replace(options.strip, \"\") : route.fullPath\n const path = normalize(\"/\" + (options.prepend || \"\") + \"/\" + base, true)\n base: `${route.providerBase}/${port}`,\n strip: `${route.providerBase}/${port}`,\n base: `${route.providerBase}/${port}`,\n strip: `${route.providerBase}/${port}`,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/coder/code-server/commit/7c2ca7d03e30448f095e340f9d478db96c070f03", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "import { preserveEnv } from \"../../common/util\";\nimport { withEnv } from \"../../common/util\";\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/coder/code-server/commit/cdb900aca81006b88a92e4f933349a5496b3fd06", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 5, 7 ] }, { "input": "import { preserveEnv } from \"@coder/protocol\";\nimport { withEnv } from \"@coder/protocol\";\nimport { preserveEnv } from \"../../common/util\";\nimport { withEnv } from \"../../common/util\";\nimport { preserveEnv } from \"@coder/protocol\";\nimport { withEnv } from \"@coder/protocol\";\nimport { preserveEnv } from \"../../common/util\";\nimport { withEnv } from \"../../common/util\";\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/coder/code-server/commit/cdb900aca81006b88a92e4f933349a5496b3fd06", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 10, 5 ] }, { "input": "\t\t\t\tcase \"warn\": this.level = Level.Warn; break;\n\t\t\t\tcase \"warn\": this.level = Level.Warning; break;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/coder/code-server/commit/73762017c83789146e8093aed170472bb2ee903a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\tlevel: Level.Warn,\n\t\t\tlevel: Level.Warning,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/coder/code-server/commit/73762017c83789146e8093aed170472bb2ee903a", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tpath = openFiles.get(path).path;\n\t\tpath = openFiles.get(path)!.path;\n\t\tpath = openFiles.get(path).path;\n\t\tpath = openFiles.get(path)!.path;\n\t\tpath = openFiles.get(path).path;\n\t\tpath = openFiles.get(path)!.path;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/coder/code-server/commit/a06854a937c45f71a09927f2d486f083d964a63d", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 11 ] }, { "input": "\tconst openFile = openFiles.get(fd);\n\tconst openFile = openFiles.get(fd)!;\n\tconst openFile = openFiles.get(fd);\n\tconst openFile = openFiles.get(fd)!;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/coder/code-server/commit/a06854a937c45f71a09927f2d486f083d964a63d", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "export function buildErrorMessage(err: RollupError, args: string[] = []) {\nexport function buildErrorMessage(\n err: RollupError,\n args: string[] = [],\n includeStack = true\n) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vitejs/vite/commit/74b55b854200c3847cf13e7e036c0dc299820c64", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " const msg = buildErrorMessage(err, [\n chalk.yellow(`warning: ${err.message}`)\n ])\n const msg = buildErrorMessage(\n err,\n [chalk.yellow(`warning: ${err.message}`)],\n false\n )\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vitejs/vite/commit/74b55b854200c3847cf13e7e036c0dc299820c64", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": " const cssFileHandle = chunkToEmittedCssFileMap.get(chunk)\n if (cssFileHandle) {\n const file = this.getFileName(cssFileHandle)\n if (file) {\n tags.push({\n tag: 'link',\n attrs: {\n rel: 'stylesheet',\n href: toPublicPath(file, config)\n }\n })\n }\n const cssFile = chunkToEmittedCssFileMap.get(chunk)\n if (cssFile) {\n tags.push({\n tag: 'link',\n attrs: {\n rel: 'stylesheet',\n href: toPublicPath(cssFile, config)\n }\n })\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vitejs/vite/commit/0aa5849c3d1ceb39bd0a35eb4482bf27556ae78b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " const cssFileHandle = chunkToEmittedCssFileMap.get(chunk)\n const cssFile = cssFileHandle && this.getFileName(cssFileHandle)\n const cssFile = chunkToEmittedCssFileMap.get(chunk)\n const cssFileHandle = chunkToEmittedCssFileMap.get(chunk)\n if (cssFileHandle) {\n const file = this.getFileName(cssFileHandle)\n if (file) {\n tags.push({\n tag: 'link',\n attrs: {\n rel: 'stylesheet',\n href: toPublicPath(file, config)\n }\n })\n }\n const cssFile = chunkToEmittedCssFileMap.get(chunk)\n if (cssFile) {\n tags.push({\n tag: 'link',\n attrs: {\n rel: 'stylesheet',\n href: toPublicPath(cssFile, config)\n }\n })\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vitejs/vite/commit/0aa5849c3d1ceb39bd0a35eb4482bf27556ae78b", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " if (!_service) {\n _service = await startService()\n if (!_servicePromise) {\n _servicePromise = startService()\n return _service\n return _servicePromise\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/vitejs/vite/commit/2acae21b197ccbfc332651247ebe2f9b25fde238", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " return _service\n return _servicePromise\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vitejs/vite/commit/2acae21b197ccbfc332651247ebe2f9b25fde238", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " enableEsbuild\n ? await createEsbuildPlugin(options.minify === 'esbuild', options.jsx)\n : null,\n enableEsbuild ? await createEsbuildPlugin(options.jsx) : null,\n const esbuildPlugin = await createEsbuildPlugin(false, {})\n const esbuildPlugin = await createEsbuildPlugin({})\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vitejs/vite/commit/cf503db9a26b03de52d23ae3fc33e67b6d0f3b84", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " const esbuildPlugin = await createEsbuildPlugin(false, {})\n const esbuildPlugin = await createEsbuildPlugin({})\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/vitejs/vite/commit/cf503db9a26b03de52d23ae3fc33e67b6d0f3b84", "target_edit_idx": 6, "propagatable_edit_idx": [ 4 ] }, { "input": " const pkg = resolveNodeModule(root, id)\n const pkg = resolveNodeModule(root, id, resolver)\n const pkgInfo = resolveNodeModule(root, id)\n const pkgInfo = resolveNodeModule(root, id, resolver)\n qualified[id] = resolveNodeModule(root, id)!.entryFilePath!\n qualified[id] = resolveNodeModule(root, id, resolver)!.entryFilePath!\n const pkgInfo = resolveNodeModule(basedir, id)\n const pkgInfo = resolveNodeModule(basedir, id, resolver)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/vitejs/vite/commit/ed5b668f08424e8730c1de15dc4dedfc9fa75474", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " qualified[id] = resolveNodeModule(root, id)!.entryFilePath!\n qualified[id] = resolveNodeModule(root, id, resolver)!.entryFilePath!\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/vitejs/vite/commit/ed5b668f08424e8730c1de15dc4dedfc9fa75474", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " const pkgInfo = resolveNodeModule(basedir, id)\n const pkgInfo = resolveNodeModule(basedir, id, resolver)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/vitejs/vite/commit/ed5b668f08424e8730c1de15dc4dedfc9fa75474", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " const cached = viteOptimizedMap.get(id)\n const cacheKey = `${root}#${id}`\n const cached = viteOptimizedMap.get(cacheKey)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vitejs/vite/commit/ad14ef48c895c0db0698e3c4a904472109030e6a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7 ] }, { "input": " viteOptimizedMap.set(id, file)\n viteOptimizedMap.set(cacheKey, file)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/vitejs/vite/commit/ad14ef48c895c0db0698e3c4a904472109030e6a", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5, 6, 7 ] }, { "input": " const cached = nodeModulesInfoMap.get(id)\n const cacheKey = `${root}#${id}`\n const cached = nodeModulesInfoMap.get(cacheKey)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vitejs/vite/commit/ad14ef48c895c0db0698e3c4a904472109030e6a", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5, 6, 7 ] }, { "input": " nodeModulesInfoMap.set(id, result)\n nodeModulesInfoMap.set(cacheKey, result)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/vitejs/vite/commit/ad14ef48c895c0db0698e3c4a904472109030e6a", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 6, 7 ] }, { "input": " const cached = nodeModulesFileMap.get(id)\n const cacheKey = `${root}#${id}`\n const cached = nodeModulesFileMap.get(cacheKey)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vitejs/vite/commit/ad14ef48c895c0db0698e3c4a904472109030e6a", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 4, 5, 7 ] }, { "input": " nodeModulesFileMap.set(id, resolved)\n nodeModulesFileMap.set(cacheKey, resolved)\n const cached = viteOptimizedMap.get(id)\n const cacheKey = `${root}#${id}`\n const cached = viteOptimizedMap.get(cacheKey)\n viteOptimizedMap.set(id, file)\n viteOptimizedMap.set(cacheKey, file)\n const cached = nodeModulesInfoMap.get(id)\n const cacheKey = `${root}#${id}`\n const cached = nodeModulesInfoMap.get(cacheKey)\n nodeModulesInfoMap.set(id, result)\n nodeModulesInfoMap.set(cacheKey, result)\n const cached = nodeModulesFileMap.get(id)\n const cacheKey = `${root}#${id}`\n const cached = nodeModulesFileMap.get(cacheKey)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/vitejs/vite/commit/ad14ef48c895c0db0698e3c4a904472109030e6a", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 4, 5, 6 ] }, { "input": "import { ServerPlugin } from '.'\nimport { Context, ServerPlugin } from '.'\nimport { ServerPlugin } from '.'\nimport { Context, ServerPlugin } from '.'\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/vitejs/vite/commit/9d93775f0d65d072db8d81c5a2af25d63ae477bd", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "import { Context } from 'koa'\nimport { Context } from 'koa'\nimport { Context } from 'koa'\nimport { Context } from '../server'\nimport { Context } from 'koa'\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vitejs/vite/commit/9d93775f0d65d072db8d81c5a2af25d63ae477bd", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 12 ] }, { "input": "const urlRE = /(url\\(\\s*['\"]?)([^\"')]+)([\"']?\\s*\\))/\n\nconst urlRE = /(url\\(\\s*['\"]?)([^\"')]+)([\"']?\\s*\\))/\nexport const urlRE = /(url\\(\\s*['\"]?)([^\"')]+)([\"']?\\s*\\))/\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vitejs/vite/commit/029de6b30bfc307d4b02f28703cd8d73a706b1cd", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " async function rewriteIndex(html: string) {\n async function rewriteIndex(importer: string, html: string) {\n ctx.body = await rewriteIndex(html)\n ctx.body = await rewriteIndex(ctx.path, html)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vitejs/vite/commit/d16f567ef2b6fb7b764b5be4402dd81ba7061596", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " ctx.body = await rewriteIndex(html)\n ctx.body = await rewriteIndex(ctx.path, html)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vitejs/vite/commit/d16f567ef2b6fb7b764b5be4402dd81ba7061596", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " let resolvedModulePath = resolveBareModule(root, id)\n let resolvedModulePath = resolveBareModule(root, id, importer)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vitejs/vite/commit/f7a419cf4201890064ee1541924a5a61f70bd1b4", "target_edit_idx": 5, "propagatable_edit_idx": [ 1 ] }, { "input": "const nodeModulesMap = new Map()\nconst nodeModulesEntryMap = new Map()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vitejs/vite/commit/d7fb6a9e8a6caf4041a2a602564583e4c34346e0", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " nodeModulesMap.set(id, entryPoint)\n nodeModulesEntryMap.set(id, entryPoint)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vitejs/vite/commit/d7fb6a9e8a6caf4041a2a602564583e4c34346e0", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": " const contextId = this.getContextId(req);\n const contextId = this.getContextId(req, isTreeDurable);\n contextId = this.getContextId(dataOrContextHost);\n contextId = this.getContextId(dataOrContextHost, isTreeDurable);\n contextId = this.getContextId(request);\n this.container.registerRequestProvider(\n contextId.getParent ? contextId.payload : request,\n contextId,\n );\n contextId = this.getContextId(request, isTreeDurable);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nestjs/nest/commit/aafdac62a06d56015adfb8fbef51fd0cfbf7104d", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " this.container.registerRequestProvider(\n contextId.getParent ? contextId.payload : request,\n contextId,\n );\n\n const requestProviderValue = isTreeDurable ? contextId.payload : request;\n this.container.registerRequestProvider(requestProviderValue, contextId);\n this.container.registerRequestProvider(\n contextId.getParent ? contextId.payload : request,\n contextId,\n );\n\n const requestProviderValue = isTreeDurable ? contextId.payload : request;\n this.container.registerRequestProvider(requestProviderValue, contextId);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/nestjs/nest/commit/aafdac62a06d56015adfb8fbef51fd0cfbf7104d", "target_edit_idx": 7, "propagatable_edit_idx": [ 12 ] }, { "input": " contextId = this.getContextId(dataOrContextHost);\n contextId = this.getContextId(dataOrContextHost, isTreeDurable);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nestjs/nest/commit/aafdac62a06d56015adfb8fbef51fd0cfbf7104d", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 5 ] }, { "input": " ) as Observable;\n );\n ) as Observable;\n );\n ) as Observable;\n );\n ) as Observable;\n );\n ) as Observable;\n );\n ) as Observable;\n );\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nestjs/nest/commit/f1b9b636a5fc20ce0207640e9edd2de407eae678", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5, 6 ] }, { "input": " return this.get(typeOrToken);\n return this.get(typeOrToken, options);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nestjs/nest/commit/26720034a8e57b62ccc646cc7243ca0ddfd1b874", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " this.combineAllGateways(providers, moduleName),\n this.connectAllGateways(providers, moduleName),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nestjs/nest/commit/f6715dae15bbd4766f977cd1adeef1b60fd1b345", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " public combineAllGateways(\n public connectAllGateways(\n this.combineAllGateways(providers, moduleName),\n this.connectAllGateways(providers, moduleName),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nestjs/nest/commit/f6715dae15bbd4766f977cd1adeef1b60fd1b345", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " .forEach(wrapper => this.combineGatewayAndServer(wrapper, moduleName));\n .forEach(wrapper => this.connectGatewayToServer(wrapper, moduleName));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nestjs/nest/commit/f6715dae15bbd4766f977cd1adeef1b60fd1b345", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " public combineGatewayAndServer(\n public connectGatewayToServer(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nestjs/nest/commit/f6715dae15bbd4766f977cd1adeef1b60fd1b345", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " this.modules.forEach(module => module.replace(toReplace, options));\n this.modules.forEach(moduleRef => moduleRef.replace(toReplace, options));\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nestjs/nest/commit/47cd27e0cc6b6c2b2332b2fe7de143b968bc4106", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " this.modules.forEach(module => this.bindGlobalsToImports(module));\n this.modules.forEach(moduleRef => this.bindGlobalsToImports(moduleRef));\n this.modules.forEach(module => module.replace(toReplace, options));\n this.modules.forEach(moduleRef => moduleRef.replace(toReplace, options));\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nestjs/nest/commit/47cd27e0cc6b6c2b2332b2fe7de143b968bc4106", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " return await installDependenciesWindows(targets);\n return await installDependenciesWindows(targets, dryRun);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/playwright/commit/da02c2e2c8f372cb8b7b6e83d1d67f5c21aec8dc", "target_edit_idx": 12, "propagatable_edit_idx": [ 5 ] }, { "input": " return await installDependenciesLinux(targets);\n return await installDependenciesLinux(targets, dryRun);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/playwright/commit/da02c2e2c8f372cb8b7b6e83d1d67f5c21aec8dc", "target_edit_idx": 13, "propagatable_edit_idx": [ 7 ] }, { "input": " const context = this._contextIdToContext.get(event.executionContextId)!;\n const context = this._contextIdToContext.get(event.executionContextId);\n if (!context)\n return;\n const context = this._contextIdToContext.get(event.executionContextId)!;\n const context = this._contextIdToContext.get(executionContextId)!;\n const context = this._contextIdToContext.get(executionContextId);\n if (!context)\n return;\n const context = this._contextIdToContext.get(event.executionContextId)!;\n const context = this._contextIdToContext.get(executionContextId)!;\n const context = this._contextIdToContext.get(executionContextId);\n if (!context)\n return;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/microsoft/playwright/commit/4743036bbe03baf2dee30a993c47af08413d007b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 6 ] }, { "input": " if (!(pageOrError instanceof Error))\n await this._page._onBindingCalled(event.payload, context);\n if (!(pageOrError instanceof Error)) {\n const context = this._contextIdToContext.get(event.executionContextId);\n if (context)\n await this._page._onBindingCalled(event.payload, context);\n }\n if (!(pageOrError instanceof Error))\n await this._page._onBindingCalled(event.payload, context);\n if (!(pageOrError instanceof Error)) {\n const context = this._contextIdToContext.get(event.executionContextId);\n if (context)\n await this._page._onBindingCalled(event.payload, context);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/playwright/commit/4743036bbe03baf2dee30a993c47af08413d007b", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " const context = this._contextIdToContext.get(parsedObjectId.injectedScriptId)!;\n context = this._contextIdToContext.get(objectId.injectedScriptId)!;\n context = this._contextIdToContext.get(objectId.injectedScriptId);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/playwright/commit/4743036bbe03baf2dee30a993c47af08413d007b", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": " async installDeps(executablesToInstallDeps?: Executable[]) {\n async installDeps(executablesToInstallDeps: Executable[]) {\n async install(executablesToInstall?: Executable[]) {\n async install(executablesToInstall: Executable[]) {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/playwright/commit/c673ef5330677c516a618a8a806a4ae23d325b9d", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "async function launchContext(options: Options, headless: boolean): Promise<{ browser: Browser, browserName: string, launchOptions: LaunchOptions, contextOptions: BrowserContextOptions, context: BrowserContext }> {\nasync function launchContext(options: Options, headless: boolean, executablePath?: string): Promise<{ browser: Browser, browserName: string, launchOptions: LaunchOptions, contextOptions: BrowserContextOptions, context: BrowserContext }> {\n const { context, launchOptions, contextOptions } = await launchContext(options, !!process.env.PWTEST_CLI_HEADLESS);\n const { context, launchOptions, contextOptions } = await launchContext(options, !!process.env.PWTEST_CLI_HEADLESS, process.env.PWTEST_CLI_EXECUTABLE_PATH);\n const { context, launchOptions, contextOptions } = await launchContext(options, !!process.env.PWTEST_CLI_HEADLESS);\n const { context, launchOptions, contextOptions } = await launchContext(options, !!process.env.PWTEST_CLI_HEADLESS, process.env.PWTEST_CLI_EXECUTABLE_PATH);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/playwright/commit/460cc319418a0826d330065f0ade6e0e86bb74d7", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " const { context, launchOptions, contextOptions } = await launchContext(options, !!process.env.PWTEST_CLI_HEADLESS);\n const { context, launchOptions, contextOptions } = await launchContext(options, !!process.env.PWTEST_CLI_HEADLESS, process.env.PWTEST_CLI_EXECUTABLE_PATH);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/playwright/commit/460cc319418a0826d330065f0ade6e0e86bb74d7", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " result.type = serializeType(arg.type)\n result.type = serializeType(arg.type, arg.name === 'options')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/microsoft/playwright/commit/e82b546085ebfffcc69578af3e72a9d867b30e82", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "function serializeType(type) {\nfunction serializeType(type, sortProperties = false) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/microsoft/playwright/commit/e82b546085ebfffcc69578af3e72a9d867b30e82", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": "import * as sourceMap from '../../utils/sourceMap';\nimport * as sourceMap from '../../utils/sourceMap';\nimport * as sourceMap from '../../utils/sourceMap';\nimport * as sourceMap from '../../utils/sourceMap';\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/microsoft/playwright/commit/2e290be40bbdf94f6a455a2c9e56326558023798", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 2, 4 ] }, { "input": " expression: sourceMap.ensureSourceUrl(expression),\n expression,\n expression: sourceMap.ensureSourceUrl(expression),\n expression,\n expression: sourceMap.ensureSourceUrl(expression),\n expression,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/playwright/commit/2e290be40bbdf94f6a455a2c9e56326558023798", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 5 ] }, { "input": " const script = `(utilityScript, ...args) => utilityScript.jsonValue(...args)` + sourceMap.generateSourceUrl();\n const script = `(utilityScript, ...args) => utilityScript.jsonValue(...args)`;\n const script = `(utilityScript, ...args) => utilityScript.callFunction(...args)` + sourceMap.generateSourceUrl();\n const script = `(utilityScript, ...args) => utilityScript.callFunction(...args)`;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/playwright/commit/2e290be40bbdf94f6a455a2c9e56326558023798", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " await this._runHooks(test.suite, 'beforeEach', 'before', testInfo);\n await this._runHooks(test.suite, 'afterEach', 'after', testInfo);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/playwright/commit/efd45f8b51ca3015f96bd6ce6a394b8f9daba471", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " this.on('stdout', data => {\n if (runner._options.dumpio)\n process.stdout.write(data);\n else\n this.stdout.push(data);\n this.on('stdout', params => {\n const chunk = chunkFromParams(params);\n if (!runner._options.quiet)\n process.stdout.write(chunk);\n this.stdout.push(chunk);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/playwright/commit/c44f841f330eccaff455af87c9a9d1df2cd6f68e", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " this.on('stderr', data => {\n if (runner._options.dumpio)\n process.stderr.write(data);\n else\n this.stderr.push(data);\n this.on('stderr', params => {\n const chunk = chunkFromParams(params);\n if (!runner._options.quiet)\n process.stderr.write(chunk);\n this.stderr.push(chunk);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/playwright/commit/c44f841f330eccaff455af87c9a9d1df2cd6f68e", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " sendMessageToParent('stdout', chunk);\n sendMessageToParent('stdout', chunkToParams(chunk));\n sendMessageToParent('stderr', chunk);\n sendMessageToParent('stderr', chunkToParams(chunk));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/microsoft/playwright/commit/c44f841f330eccaff455af87c9a9d1df2cd6f68e", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": " abstract setHTTPCredentials(httpCredentials: types.Credentials | null): Promise;\n abstract _doSetHTTPCredentials(httpCredentials: types.Credentials | null): Promise;\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/playwright/commit/55a07dbf4d933920d1c6e3af91f7f3128d4ea363", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 4, 6 ] }, { "input": " async setHTTPCredentials(httpCredentials: types.Credentials | null): Promise {\n deprecate(`context.setHTTPCredentials`, `warning: method |context.setHTTPCredentials()| is deprecated. Instead of changing credentials, create another browser context with new credentials.`);\n async _doSetHTTPCredentials(httpCredentials: types.Credentials | null): Promise {\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/playwright/commit/55a07dbf4d933920d1c6e3af91f7f3128d4ea363", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 1, 4 ] }, { "input": " private _webSocketRegexNotPipe: RegExp | null;\n private _webSocketNotPipe: WebSocketNotPipe | null;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/playwright/commit/724d73c03bd68adef5954854887b13d827f83b44", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": " constructor(packagePath: string, browser: browserPaths.BrowserDescriptor, webSocketRegexNotPipe: RegExp | null) {\n constructor(packagePath: string, browser: browserPaths.BrowserDescriptor, webSocketOrPipe: WebSocketNotPipe | null) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/playwright/commit/724d73c03bd68adef5954854887b13d827f83b44", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " this._webSocketRegexNotPipe = webSocketRegexNotPipe;\n this._webSocketNotPipe = webSocketOrPipe;\n private _webSocketRegexNotPipe: RegExp | null;\n private _webSocketNotPipe: WebSocketNotPipe | null;\n constructor(packagePath: string, browser: browserPaths.BrowserDescriptor, webSocketRegexNotPipe: RegExp | null) {\n constructor(packagePath: string, browser: browserPaths.BrowserDescriptor, webSocketOrPipe: WebSocketNotPipe | null) {\n pipe: !this._webSocketRegexNotPipe,\n pipe: !this._webSocketNotPipe,\n if (this._webSocketRegexNotPipe) {\n const match = await waitForLine(progress, launchedProcess, launchedProcess.stdout, this._webSocketRegexNotPipe);\n if (this._webSocketNotPipe) {\n const match = await waitForLine(progress, launchedProcess, this._webSocketNotPipe.stream === 'stdout' ? launchedProcess.stdout : launchedProcess.stderr, this._webSocketNotPipe.webSocketRegex);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/playwright/commit/724d73c03bd68adef5954854887b13d827f83b44", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 5 ] }, { "input": " pipe: !this._webSocketRegexNotPipe,\n pipe: !this._webSocketNotPipe,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/playwright/commit/724d73c03bd68adef5954854887b13d827f83b44", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": " if (this._webSocketRegexNotPipe) {\n const match = await waitForLine(progress, launchedProcess, launchedProcess.stdout, this._webSocketRegexNotPipe);\n if (this._webSocketNotPipe) {\n const match = await waitForLine(progress, launchedProcess, this._webSocketNotPipe.stream === 'stdout' ? launchedProcess.stdout : launchedProcess.stderr, this._webSocketNotPipe.webSocketRegex);\n private _webSocketRegexNotPipe: RegExp | null;\n private _webSocketNotPipe: WebSocketNotPipe | null;\n this._webSocketRegexNotPipe = webSocketRegexNotPipe;\n this._webSocketNotPipe = webSocketOrPipe;\n pipe: !this._webSocketRegexNotPipe,\n pipe: !this._webSocketNotPipe,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/microsoft/playwright/commit/724d73c03bd68adef5954854887b13d827f83b44", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": " const deadline = TimeoutSettings.computeDeadline(options.timeout, 30000);\n const deadline = TimeoutSettings.computeDeadline(options.timeout);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/microsoft/playwright/commit/1e2b46437d3e53a3aa2748b4cdd7fc67c57a2bf2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 6 ] }, { "input": " const { browserServer, transport } = await this._launchServer(options, false, logger, TimeoutSettings.computeDeadline(options.timeout, 30000));\n const { browserServer, transport } = await this._launchServer(options, false, logger, TimeoutSettings.computeDeadline(options.timeout));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/microsoft/playwright/commit/1e2b46437d3e53a3aa2748b4cdd7fc67c57a2bf2", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 6 ] }, { "input": " computeDeadline(options?: TimeoutOptions) {\n const { timeout } = options || {};\n return TimeoutSettings.computeDeadline(typeof timeout === 'number' ? timeout : this._timeout());\n computeDeadline(options: TimeoutOptions = {}) {\n return TimeoutSettings.computeDeadline(options.timeout, this._timeout());\n const deadline = TimeoutSettings.computeDeadline(options.timeout, 30000);\n const deadline = TimeoutSettings.computeDeadline(options.timeout);\n const { browserServer, transport } = await this._launchServer(options, false, logger, TimeoutSettings.computeDeadline(options.timeout, 30000));\n const { browserServer, transport } = await this._launchServer(options, false, logger, TimeoutSettings.computeDeadline(options.timeout));\n const deadline = TimeoutSettings.computeDeadline(options.timeout, 30000);\n const deadline = TimeoutSettings.computeDeadline(options.timeout);\n const deadline = TimeoutSettings.computeDeadline(options.timeout, 30000);\n const deadline = TimeoutSettings.computeDeadline(options.timeout);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/microsoft/playwright/commit/1e2b46437d3e53a3aa2748b4cdd7fc67c57a2bf2", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " this._initializeSession(this._session, ({frameTree}) => this._handleFrameTree(frameTree)),\n this._initializeSession(this._session, ({frameTree}) => this._handleFrameTree(frameTree, pagePausedOnStart)),\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/playwright/commit/460527d8cbf0e3b240f5084c069448a0d4054380", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " this._handleFrameTree(child);\n this._handleFrameTree(child, pagePausedOnStart);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/microsoft/playwright/commit/460527d8cbf0e3b240f5084c069448a0d4054380", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": " \n \n \n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/a083ec9ff51d71f756ab0d6346983b7d36346fe1", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "\t\"github.com/grafana/grafana/pkg/infra/tracing\"\n\t\"github.com/grafana/grafana/pkg/infra/tracing\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.06666666666666667, "commit_url": "https://github.com/grafana/grafana/commit/a1ee84f7578c71550ead22456bc09d0d110c7367", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\tim: datasource.NewInstanceManager(newInstanceSettings(httpProvider)),\n\t\t\tfeatures: featuremgmt.WithFeatures(featuremgmt.FlagLokiLogsDataplane, featuremgmt.FlagLokiMetricDataplane),\n\t\t\ttracer: tracing.InitializeTracerForTest(),\n\t\t\tlogger: backend.NewLoggerWith(\"logger\", \"loki test\"),\n\t\t\tim: datasource.NewInstanceManager(newInstanceSettings(httpProvider)),\n\t\t\ttracer: tracing.InitializeTracerForTest(),\n\t\t\tlogger: backend.NewLoggerWith(\"logger\", \"loki test\"),\n\t\t\tim: datasource.NewInstanceManager(newInstanceSettings(httpProvider)),\n\t\t\tfeatures: featuremgmt.WithFeatures(featuremgmt.FlagLokiLogsDataplane, featuremgmt.FlagLokiMetricDataplane),\n\t\t\ttracer: tracing.InitializeTracerForTest(),\n\t\t\tlogger: backend.NewLoggerWith(\"logger\", \"loki test\"),\n\t\t\tim: datasource.NewInstanceManager(newInstanceSettings(httpProvider)),\n\t\t\ttracer: tracing.InitializeTracerForTest(),\n\t\t\tlogger: backend.NewLoggerWith(\"logger\", \"loki test\"),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/80b2e793abdd609c7a0ad6ab667ca23a3eeaf94d", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " whiteSpace: 'nowrap',\n whiteSpace: 'pre',\n whiteSpace: 'nowrap',\n whiteSpace: 'pre',\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/grafana/grafana/commit/f140594cf16cb046f906ef47d1ec9c581615b7e5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t_, remote, forked := genTestAlertmanagers(tt, modeRemotePrimary)\n\t\tremote.EXPECT().TestReceivers(mock.Anything, mock.Anything).Return(nil, nil).Once()\n\t\t// TODO: change to remote AM once it's implemented there.\n\t\tinternal, _, forked := genTestAlertmanagers(tt, modeRemotePrimary)\n\t\tinternal.EXPECT().TestReceivers(mock.Anything, mock.Anything).Return(nil, nil).Once()\n\t\t_, remote, forked = genTestAlertmanagers(tt, modeRemotePrimary)\n\t\tremote.EXPECT().TestReceivers(mock.Anything, mock.Anything).Return(nil, expErr).Once()\n\t\tinternal, _, forked = genTestAlertmanagers(tt, modeRemotePrimary)\n\t\tinternal.EXPECT().TestReceivers(mock.Anything, mock.Anything).Return(nil, expErr).Once()\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/grafana/grafana/commit/cdbc9d801f39708a0022d7d3eed4a4f340625496", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\ttables = append(tables, t)\n\t\t\t\tif !existsInList(token, tables) {\n\t\t\t\t\ttables = append(tables, token)\n\t\t\t\t}\n\t\t\t\ttables = append(tables, t)\n\t\t\t\tif !existsInList(token, tables) {\n\t\t\t\t\ttables = append(tables, token)\n\t\t\t\t}\n\t\t\t\t\t\t\ttables = append(tables, v)\n\t\t\t\t\t\t\tif !existsInList(token, tables) {\n\t\t\t\t\t\t\t\ttables = append(tables, v)\n\t\t\t\t\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/4fd2cb601434bac80eaa7e7a6181e9b69c8fccb2", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "import { Button, useStyles2 } from '@grafana/ui';\nimport { LinkButton, useStyles2 } from '@grafana/ui';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/9614126cb7b3e0608ab57280afc8ebfc954ae20c", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " let init = i18n;\n let i18nInstance = i18n;\n init = init.use(LanguageDetector);\n i18nInstance = i18nInstance.use(LanguageDetector);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/ed3bdf5502aa21819046d5677847fdd340c31b3b", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " init = init.use(LanguageDetector);\n i18nInstance = i18nInstance.use(LanguageDetector);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/grafana/grafana/commit/ed3bdf5502aa21819046d5677847fdd340c31b3b", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": "import { cloneDeep, defaults } from 'lodash';\nimport { defaults } from 'lodash';\nimport { cloneDeep, defaults } from 'lodash';\nimport { defaults } from 'lodash';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/02c0f5929ca6c7fe22c3420ee0314688546c3f77", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " const variables = cloneDeep(scopedVars);\n const variables = { ...scopedVars };\n const variables = cloneDeep(scopedVars);\n const variables = { ...scopedVars };\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/02c0f5929ca6c7fe22c3420ee0314688546c3f77", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " const hoverEvent = new DataHoverEvent(payload);\n const hoverEvent = new DataHoverEvent(payload).setTags(['uplot']);\n const clearEvent = new DataHoverClearEvent().setTags(['uplot']);\n\n const hoverEvent = new DataHoverEvent(payload);\n\n const hoverEvent = new DataHoverEvent(payload).setTags(['uplot']);\n const clearEvent = new DataHoverClearEvent().setTags(['uplot']);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/930c8c5aa3207936844ea6b6a882f0170f9b95c9", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " payload.point[xScaleUnit] = null;\n payload.point[yScaleKey] = null;\n eventBus.publish(new DataHoverClearEvent());\n eventBus.publish(clearEvent);\n payload.point[xScaleUnit] = null;\n payload.point[FIXED_UNIT] = null;\n eventBus.publish(new DataHoverClearEvent());\n eventBus.publish(clearEvent);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/930c8c5aa3207936844ea6b6a882f0170f9b95c9", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tassert.Equal(t, []string{\"folder-0\", \"folder-1\", \"folder-2\", \"folder-3\", \"folder-4\", folder.SharedWithMeFolderUID}, actualFolders)\n\t\tassert.Equal(t, []string{folder.SharedWithMeFolderUID, \"folder-0\", \"folder-1\", \"folder-2\", \"folder-3\", \"folder-4\"}, actualFolders)\n\t\tassert.Equal(t, []string{\"folder-0\", \"folder-1\", \"folder-2\", \"folder-4\", folder.SharedWithMeFolderUID}, actualFolders)\n\t\tassert.Equal(t, []string{folder.SharedWithMeFolderUID, \"folder-0\", \"folder-1\", \"folder-2\", \"folder-4\"}, actualFolders)\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grafana/grafana/commit/a62db1e24b8842808a2504d4866701378583852f", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tassert.Equal(t, []string{\"folder-0\", \"folder-1\", folder.SharedWithMeFolderUID}, actualFolders)\n\t\tassert.Equal(t, []string{folder.SharedWithMeFolderUID, \"folder-0\", \"folder-1\"}, actualFolders)\n\t\tassert.Equal(t, []string{\"folder-0\", \"folder-1\", folder.SharedWithMeFolderUID}, actualFolders)\n\t\tassert.Equal(t, []string{folder.SharedWithMeFolderUID, \"folder-0\", \"folder-1\"}, actualFolders)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/a62db1e24b8842808a2504d4866701378583852f", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " latestCompatibleVersion?: Version;\n grafanaDependency?: string;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/05cf8c925302b6a070c68d25bdf83e16101944e1", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " const grafanaDependency = plugin.isInstalled\n ? plugin.details?.grafanaDependency\n : latestCompatibleVersion?.grafanaDependency || plugin.details?.grafanaDependency;\n const grafanaDependency = plugin.isInstalled\n ? plugin.details?.grafanaDependency\n : latestCompatibleVersion?.grafanaDependency || plugin.details?.grafanaDependency;\n let grafanaDependency = plugin.details?.grafanaDependency;\n if (useLatestCompatibleInfo && latestCompatibleVersion?.grafanaDependency) {\n grafanaDependency = latestCompatibleVersion?.grafanaDependency;\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/05cf8c925302b6a070c68d25bdf83e16101944e1", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " value: ,\n value: ,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/05cf8c925302b6a070c68d25bdf83e16101944e1", "target_edit_idx": 6, "propagatable_edit_idx": [ 1 ] }, { "input": " let exemplarsyFacet: Array = [];\n let exemplarsYFacet: Array = [];\n return [null, info.heatmap?.fields.map((f) => f.values), [exemplarsXFacet, exemplarsyFacet]];\n return [null, info.heatmap?.fields.map((f) => f.values), [exemplarsXFacet, exemplarsYFacet]];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/c923e730d5f97d782c55cd173956afc5ed8acbc6", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extsvcPrefix+extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extsvcPrefix+extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extsvcPrefix+extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extsvcPrefix+extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extsvcPrefix+extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extsvcPrefix+extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extsvcPrefix+extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extSvcSlug }))\n\t\t\t\t\tmock.MatchedBy(func(slug string) bool { return slug == extsvcPrefix+extSvcSlug }))\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/grafana/grafana/commit/e06f7251d718c8f6001f57fe5c130cdb03336f1c", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 7, 8, 9, 10, 12 ] }, { "input": "\t\t\t\t\t\treturn cmd.Name == extSvcSlug && *cmd.Role == roletype.RoleNone\n\t\t\t\t\t\treturn cmd.Name == extsvcPrefix+extSvcSlug && *cmd.Role == roletype.RoleNone\n\t\t\t\t\t\treturn cmd.Name == extSvcSlug && *cmd.Role == roletype.RoleNone\n\t\t\t\t\t\treturn cmd.Name == extsvcPrefix+extSvcSlug && *cmd.Role == roletype.RoleNone\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/e06f7251d718c8f6001f57fe5c130cdb03336f1c", "target_edit_idx": 6, "propagatable_edit_idx": [ 11 ] }, { "input": "func (ss *sqlStore) Insert(ctx context.Context, org *org.Org) (int64, error) {\nfunc (ss *sqlStore) Insert(ctx context.Context, orga *org.Org) (int64, error) {\n\t\tif _, err = sess.Insert(org); err != nil {\n\t\tif isNameTaken, err := isOrgNameTaken(orga.Name, orga.ID, sess); err != nil {\n\t\t\treturn err\n\t\t} else if isNameTaken {\n\t\t\treturn org.ErrOrgNameTaken\n\t\t}\n\n\t\tif _, err = sess.Insert(orga); err != nil {\n\t\torgID = org.ID\n\t\torgID = orga.ID\n\t\tif org.ID != 0 {\n\t\tif orga.ID != 0 {\n\t\t\tTimestamp: org.Created,\n\t\t\tId: org.ID,\n\t\t\tName: org.Name,\n\t\t\tTimestamp: orga.Created,\n\t\t\tId: orga.ID,\n\t\t\tName: orga.Name,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.06593406593406594, "commit_url": "https://github.com/grafana/grafana/commit/81551a4cb4500c474e31e3e66da71ba431b5042a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": "\t\tif _, err = sess.Insert(org); err != nil {\n\t\tif isNameTaken, err := isOrgNameTaken(orga.Name, orga.ID, sess); err != nil {\n\t\t\treturn err\n\t\t} else if isNameTaken {\n\t\t\treturn org.ErrOrgNameTaken\n\t\t}\n\n\t\tif _, err = sess.Insert(orga); err != nil {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.03296703296703297, "commit_url": "https://github.com/grafana/grafana/commit/81551a4cb4500c474e31e3e66da71ba431b5042a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": "\t\torgID = org.ID\n\t\torgID = orga.ID\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/grafana/grafana/commit/81551a4cb4500c474e31e3e66da71ba431b5042a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": "\t\t\tTimestamp: org.Created,\n\t\t\tId: org.ID,\n\t\t\tName: org.Name,\n\t\t\tTimestamp: orga.Created,\n\t\t\tId: orga.ID,\n\t\t\tName: orga.Name,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.054945054945054944, "commit_url": "https://github.com/grafana/grafana/commit/81551a4cb4500c474e31e3e66da71ba431b5042a", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " id={`ES-query-${query.refId}_metric-${metric.id}-size`}\n id={sizeFieldId}\n id={`ES-query-${query.refId}_metric-${metric.id}-mode`}\n id={modeFieldId}\n id={`ES-query-${query.refId}_metric-${metric.id}-unit`}\n id={unitFieldId}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/c3cbe220bbd0a36afeccfcb78d683b3f58f73b51", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " \n \n \n \n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/c3cbe220bbd0a36afeccfcb78d683b3f58f73b51", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "export function getVersionLinks(): FooterLink[] {\nexport function getVersionLinks(hideEdition?: boolean): FooterLink[] {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/3bb23d6be739ace0a82974c0faca5a049866a0a4", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "export const Footer = React.memo(({ customLinks }: Props) => {\n const links = (customLinks || getFooterLinks()).concat(getVersionLinks());\nexport const Footer = React.memo(({ customLinks, hideEdition }: Props) => {\n const links = (customLinks || getFooterLinks()).concat(getVersionLinks(hideEdition));\nexport function getVersionLinks(): FooterLink[] {\nexport function getVersionLinks(hideEdition?: boolean): FooterLink[] {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/3bb23d6be739ace0a82974c0faca5a049866a0a4", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": " async metricFindQuery(query: string, optionalOptions?: MetricFindQueryOptions): Promise {\n async metricFindQuery(query: string, options?: LegacyMetricFindQueryOptions): Promise {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/3245e25273cf84f1ec5ac96ac48c1b8b7c72df9d", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 4, 6, 7 ] }, { "input": " if (optionalOptions && optionalOptions.variable && optionalOptions.variable.name) {\n refId = optionalOptions.variable.name;\n if (options && options.variable && options.variable.name) {\n refId = options.variable.name;\n async metricFindQuery(query: string, optionalOptions?: MetricFindQueryOptions): Promise {\n async metricFindQuery(query: string, options?: LegacyMetricFindQueryOptions): Promise {\n const response = await this.runMetaQuery(interpolatedQuery, optionalOptions);\n const response = await this.runMetaQuery(interpolatedQuery, options);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/grafana/grafana/commit/3245e25273cf84f1ec5ac96ac48c1b8b7c72df9d", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " const response = await this.runMetaQuery(interpolatedQuery, optionalOptions);\n const response = await this.runMetaQuery(interpolatedQuery, options);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/3245e25273cf84f1ec5ac96ac48c1b8b7c72df9d", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " private runMetaQuery(request: Partial, options?: MetricFindQueryOptions): Promise {\n private runMetaQuery(request: Partial, options?: LegacyMetricFindQueryOptions): Promise {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/3245e25273cf84f1ec5ac96ac48c1b8b7c72df9d", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 3 ] }, { "input": "interface RunSQLOptions extends MetricFindQueryOptions {\ninterface RunSQLOptions extends LegacyMetricFindQueryOptions {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/3245e25273cf84f1ec5ac96ac48c1b8b7c72df9d", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 7 ] }, { "input": "\t\t[]string{\"datasource\", \"code\", \"method\"},\n\t\t[]string{\"datasource\", \"datasource_type\", \"code\", \"method\"},\n\t\t}, []string{\"datasource\", \"code\", \"method\"},\n\t\t}, []string{\"datasource\", \"datasource_type\", \"code\", \"method\"},\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/5cd1541aeed5e124a945f808d5211bc94fcbb64f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t}, []string{\"datasource\"},\n\t\t}, []string{\"datasource\", \"datasource_type\"},\n\t\t[]string{\"datasource\"},\n\t\t[]string{\"datasource\", \"datasource_type\"},\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/5cd1541aeed5e124a945f808d5211bc94fcbb64f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tif err := a.anonSessionService.TagSession(context.Background(), r.HTTPRequest); err != nil {\n\t\tif err := a.anonSessionService.TagSession(context.Background(), httpReqCopy); err != nil {\n\t\tif err := h.anonSessionService.TagSession(context.Background(), reqContext.Req); err != nil {\n\t\tif err := h.anonSessionService.TagSession(context.Background(), httpReqCopy); err != nil {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/05e71d4c6b31c9af015f0e9db204b034e91e8e49", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tazureMonitorQueryTarget: \"aggregation=Average&api-version=2021-05-01&interval=PT1M&metricnames=Percentage+CPU&metricnamespace=Microsoft.Compute%2FvirtualMachines×pan=2018-03-15T13%3A00%3A00Z%2F2018-03-15T13%3A34%3A00Z\",\n\t\t\tazureMonitorQueryTarget: \"aggregation=Average&api-version=2021-05-01&interval=PT1M&metricnames=Percentage+CPU&metricnamespace=Microsoft.Compute%2FvirtualMachines×pan=2018-03-15T13%3A00%3A00Z%2F2018-03-15T13%3A34%3A00Z&top=10\",\n\t\t\tazureMonitorQueryTarget: \"aggregation=Average&api-version=2021-05-01&interval=PT15M&metricnames=Percentage+CPU&metricnamespace=Microsoft.Compute%2FvirtualMachines×pan=2018-03-15T13%3A00%3A00Z%2F2018-03-15T13%3A34%3A00Z\",\n\t\t\tazureMonitorQueryTarget: \"aggregation=Average&api-version=2021-05-01&interval=PT15M&metricnames=Percentage+CPU&metricnamespace=Microsoft.Compute%2FvirtualMachines×pan=2018-03-15T13%3A00%3A00Z%2F2018-03-15T13%3A34%3A00Z&top=10\",\n\t\t\tazureMonitorQueryTarget: \"aggregation=Average&api-version=2021-05-01&interval=PT5M&metricnames=Percentage+CPU&metricnamespace=Microsoft.Compute%2FvirtualMachines×pan=2018-03-15T13%3A00%3A00Z%2F2018-03-15T13%3A34%3A00Z\",\n\t\t\tazureMonitorQueryTarget: \"aggregation=Average&api-version=2021-05-01&interval=PT5M&metricnames=Percentage+CPU&metricnamespace=Microsoft.Compute%2FvirtualMachines×pan=2018-03-15T13%3A00%3A00Z%2F2018-03-15T13%3A34%3A00Z&top=10\",\n\t\t\tazureMonitorQueryTarget: \"aggregation=Average&api-version=2021-05-01&interval=PT1M&metricnames=Percentage+CPU&metricnamespace=Microsoft.Compute%2FvirtualMachines×pan=2018-03-15T13%3A00%3A00Z%2F2018-03-15T13%3A34%3A00Z\",\n\t\t\tazureMonitorQueryTarget: \"aggregation=Average&api-version=2021-05-01&interval=PT1M&metricnames=Percentage+CPU&metricnamespace=Microsoft.Compute%2FvirtualMachines×pan=2018-03-15T13%3A00%3A00Z%2F2018-03-15T13%3A34%3A00Z&top=10\",\n\t\t\tazureMonitorQueryTarget: \"aggregation=Average&api-version=2021-05-01&interval=PT1M&metricnames=Percentage+CPU&metricnamespace=Microsoft.Compute%2FvirtualMachines®ion=westus×pan=2018-03-15T13%3A00%3A00Z%2F2018-03-15T13%3A34%3A00Z\",\n\t\t\tazureMonitorQueryTarget: \"aggregation=Average&api-version=2021-05-01&interval=PT1M&metricnames=Percentage+CPU&metricnamespace=Microsoft.Compute%2FvirtualMachines®ion=westus×pan=2018-03-15T13%3A00%3A00Z%2F2018-03-15T13%3A34%3A00Z&top=10\",\n\t\t\tazureMonitorQueryTarget: \"aggregation=Average&api-version=2021-05-01&interval=PT1M&metricnames=Percentage+CPU&metricnamespace=Microsoft.Compute%2FvirtualMachines®ion=westus×pan=2018-03-15T13%3A00%3A00Z%2F2018-03-15T13%3A34%3A00Z\",\n\t\t\tazureMonitorQueryTarget: \"aggregation=Average&api-version=2021-05-01&interval=PT1M&metricnames=Percentage+CPU&metricnamespace=Microsoft.Compute%2FvirtualMachines®ion=westus×pan=2018-03-15T13%3A00%3A00Z%2F2018-03-15T13%3A34%3A00Z&top=10\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/dfc2ac284bdd9774f4fa296d3e9e2e437b7bb2fe", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6 ] }, { "input": "export function measureText(text: string, fontSize: number): TextMetrics {\n const fontStyle = `${fontSize}px 'Inter'`;\nexport function measureText(text: string, fontSize: number, fontWeight = 400): TextMetrics {\n const fontStyle = `${fontWeight} ${fontSize}px 'Inter'`;\n const textSize = measureText(text, 14);\n const textSize = measureText(text, 14, fontWeight);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/e5f6c80379e48df9aafd613e7f717140c4c17d97", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " const textSize = measureText(text, 14);\n const textSize = measureText(text, 14, fontWeight);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/e5f6c80379e48df9aafd613e7f717140c4c17d97", "target_edit_idx": 8, "propagatable_edit_idx": [ 6 ] }, { "input": " id: 'continuous-GrYlRd',\n id: FieldColorModeId.ContinuousGrYlRd,\n id: 'continuous-BlYlRd',\n id: FieldColorModeId.ContinuousBlYlRd,\n id: 'continuous-YlRd',\n id: FieldColorModeId.ContinuousYlRd,\n id: 'continuous-BlPu',\n id: FieldColorModeId.ContinuousBlPu,\n id: 'continuous-YlBl',\n id: FieldColorModeId.ContinuousYlBl,\n id: 'continuous-blues',\n id: FieldColorModeId.ContinuousBlues,\n id: 'continuous-reds',\n id: FieldColorModeId.ContinuousReds,\n id: 'continuous-greens',\n id: FieldColorModeId.ContinuousGreens,\n id: 'continuous-purples',\n id: FieldColorModeId.ContinuousPurples,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/5c13d8eefd8683317bb5ed803147bf8967344172", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " let pageNav = getPageNavigationModel(type, id);\n let pageNav = getPageNavigationModel(type, id, isduplicatingTemplate);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/fa35ed81412c9ad215a6a9542a471db0c081a6b9", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "function getPageNavigationModel(type: PageType | undefined, id: string | undefined) {\nfunction getPageNavigationModel(type: PageType | undefined, id: string | undefined, isDuplicatingTemplates: boolean) {\n let pageNav = getPageNavigationModel(type, id);\n let pageNav = getPageNavigationModel(type, id, isduplicatingTemplate);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/fa35ed81412c9ad215a6a9542a471db0c081a6b9", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\tvar pluginInfoList []pluginInfo\n\t\t\tvar pluginInfoList []PluginInfo\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/b3f9b62592776ff8829db6b6abc4489d3a521452", "target_edit_idx": 9, "propagatable_edit_idx": [ 11, 3 ] }, { "input": "\t\t\t\tpInfo := pluginInfo{\n\t\t\t\t\tdata: plugin.JSONData,\n\t\t\t\t\tClass: plugin.Class,\n\t\t\t\t\tIncludedInAppID: plugin.IncludedInAppID,\n\t\t\t\t\tDefaultNavURL: plugin.DefaultNavURL,\n\t\t\t\t\tPinned: plugin.Pinned,\n\t\t\t\t\tSignature: plugin.Signature,\n\t\t\t\t\tModule: plugin.Module,\n\t\t\t\t\tBaseURL: plugin.BaseURL,\n\t\t\t\tpInfo := PluginInfo{\n\t\t\t\t\tid: plugin.ID,\n\t\t\t\t\tName: plugin.Name,\n\t\t\t\t\tDescription: plugin.Info.Description,\n\t\t\t\t\tPluginType: string(plugin.Type),\n\t\t\t\t\tAuthor: plugin.Info.Author,\n\t\t\t\t\tSignatureStatus: plugin.Signature,\n\t\t\t\t\tSignatureType: plugin.SignatureType,\n\t\t\t\t\tSignatureOrg: plugin.SignatureOrg,\n\t\t\t\t\tGrafanaVersionDependency: plugin.Dependencies.GrafanaVersion,\n\t\t\tvar pluginInfoList []pluginInfo\n\t\t\tvar pluginInfoList []PluginInfo\n\t\t\ttype pluginInfo struct {\n\t\t\t\tdata plugins.JSONData\n\t\t\t\tClass plugins.Class\n\t\t\ttype PluginInfo struct {\n\t\t\t\tid string\n\t\t\t\tName string\n\t\t\t\tDescription string\n\t\t\t\tPluginType string `json:\"type\"`\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/b3f9b62592776ff8829db6b6abc4489d3a521452", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 3 ] }, { "input": "\t\t\tv := newNumber(nil)\n\t\t\tv := newNumber(ptr.Float64(1))\n\t\t\tv := newNumber(nil)\n\t\t\tv := newNumber(ptr.Float64(1))\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grafana/grafana/commit/b77c3946a5b2dac7ded143b8caddfc33852182ef", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " rowField: value.value,\n rowField: value?.value,\n byField: value.value,\n byField: value?.value,\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/grafana/grafana/commit/9be73e758d67aea27ce0cbc6e6aeaa353d58060d", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " label: getFieldDisplayName(field, otherProps.data),\n label: getFieldDisplayName(field, otherProps.data, otherProps.frames),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/4c02d072e3c9c60761ced406ca44c977a539fb96", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " label: getFieldDisplayName(field, frame),\n label: getFieldDisplayName(field, frame, otherProps.frames),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/4c02d072e3c9c60761ced406ca44c977a539fb96", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "interface ContextMenuProps {\ninterface ContextMenuViewProps {\nexport const ContextMenuView: React.FC = ({\nexport const ContextMenuView: React.FC = ({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/4c02d072e3c9c60761ced406ca44c977a539fb96", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": "export const ContextMenuView: React.FC = ({\nexport const ContextMenuView: React.FC = ({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/4c02d072e3c9c60761ced406ca44c977a539fb96", "target_edit_idx": 9, "propagatable_edit_idx": [ 7 ] }, { "input": " protected operationsRegisty: Registry;\n protected operationsRegistry: Registry;\n const def = this.operationsRegisty.getIfExists(operation.id);\n const def = this.operationsRegistry.getIfExists(operation.id);\n this.operationsRegisty = new Registry(getOperations);\n this.operationsRegistry = new Registry(getOperations);\n return this.operationsRegisty.list().filter((op) => op.category === category && !op.hideFromList);\n return this.operationsRegistry.list().filter((op) => op.category === category && !op.hideFromList);\n return this.operationsRegisty.getIfExists(id);\n return this.operationsRegistry.getIfExists(id);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/0a2a370b77a42dce41b1af1d7b6f158d7a9c6f56", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 4, 5, 7 ] }, { "input": " this.operationsRegisty = new Registry(getOperations);\n this.operationsRegistry = new Registry(getOperations);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/0a2a370b77a42dce41b1af1d7b6f158d7a9c6f56", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 3, 5, 7 ] }, { "input": " return this.operationsRegisty.getIfExists(id);\n return this.operationsRegistry.getIfExists(id);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/0a2a370b77a42dce41b1af1d7b6f158d7a9c6f56", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 3, 4, 5 ] }, { "input": " const def = this.operationsRegisty.getIfExists(operation.id);\n const def = this.operationsRegistry.getIfExists(operation.id);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/0a2a370b77a42dce41b1af1d7b6f158d7a9c6f56", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 4, 5, 7 ] }, { "input": "\t\t\t\t\t\tAnnotations: model.LabelSet{\"ann1\": \"annv1\"},\n\t\t\t\t\t\tAnnotations: model.LabelSet{\"ann1\": \"annv1\", \"__alertScreenshotToken__\": \"test-image-1\"},\n\t\t\t\t\t\tAnnotations: model.LabelSet{\"ann1\": \"annv2\"},\n\t\t\t\t\t\tAnnotations: model.LabelSet{\"ann1\": \"annv2\", \"__alertScreenshotToken__\": \"test-image-2\"},\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/6e44b36a30d8e43b07d8bd049cc47a8f5a77c6e9", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " renderHeaderCell(column, tableStyles, data.fields[index], showTypeIcons)\n renderHeaderCell(column, tableStyles, showTypeIcons)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/f0b191c1c8e44a81bf494e54ee81c7c5dca4d02c", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "function renderHeaderCell(column: any, tableStyles: TableStyles, field?: Field, showTypeIcons?: boolean) {\nfunction renderHeaderCell(column: any, tableStyles: TableStyles, showTypeIcons?: boolean) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/f0b191c1c8e44a81bf494e54ee81c7c5dca4d02c", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"user_auth\", columnName: \"o_auth_access_token\"}},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"user_auth\", columnName: \"o_auth_refresh_token\"}},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"user_auth\", columnName: \"o_auth_token_type\"}},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"secrets\", columnName: \"value\"}, hasUpdatedColumn: true},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"user_auth\", columnName: \"o_auth_access_token\"}, encoding: base64.StdEncoding},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"user_auth\", columnName: \"o_auth_refresh_token\"}, encoding: base64.StdEncoding},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"user_auth\", columnName: \"o_auth_token_type\"}, encoding: base64.StdEncoding},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"secrets\", columnName: \"value\"}, hasUpdatedColumn: true, encoding: base64.RawStdEncoding},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"user_auth\", columnName: \"o_auth_access_token\"}},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"user_auth\", columnName: \"o_auth_refresh_token\"}},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"user_auth\", columnName: \"o_auth_token_type\"}},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"secrets\", columnName: \"value\"}, hasUpdatedColumn: true},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"user_auth\", columnName: \"o_auth_access_token\"}, encoding: base64.StdEncoding},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"user_auth\", columnName: \"o_auth_refresh_token\"}, encoding: base64.StdEncoding},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"user_auth\", columnName: \"o_auth_token_type\"}, encoding: base64.StdEncoding},\n\t\tb64Secret{simpleSecret: simpleSecret{tableName: \"secrets\", columnName: \"value\"}, hasUpdatedColumn: true, encoding: base64.RawStdEncoding},\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/5645d7a5e3cf8da9179ae262b6bdfbb3bb54e460", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " return { uid: '', ruleSourceName: GRAFANA_RULES_SOURCE_NAME };\n return { uid: newRule.grafana_alert.uid ?? '', ruleSourceName: GRAFANA_RULES_SOURCE_NAME };\n return { uid: '', ruleSourceName: GRAFANA_RULES_SOURCE_NAME };\n return { uid: existingRule.rule.grafana_alert.uid, ruleSourceName: GRAFANA_RULES_SOURCE_NAME };\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/9b95d77be9521378657df5acfa4514fd070acf5d", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\treturn cwClient\n\t\treturn &cwClient\n\t\treturn client\n\t\treturn &client\n\t\treturn client\n\t\treturn &client\n\t\treturn cwClient\n\t\treturn &cwClient\n", "class": "clone", "binary_label": 1, "regression_label": 0.2222222222222222, "commit_url": "https://github.com/grafana/grafana/commit/4b889eb33671cda1929d72683c508f6a63642500", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\terr := hs.SQLStore.GetDashboardSnapshot(query)\n\terr := hs.DashboardsnapshotsService.GetDashboardSnapshot(c.Req.Context(), query)\n\n\terr := hs.SQLStore.GetDashboardSnapshot(query)\n\terr := hs.DashboardsnapshotsService.GetDashboardSnapshot(c.Req.Context(), query)\n\terr := hs.SQLStore.GetDashboardSnapshot(query)\n\terr := hs.DashboardsnapshotsService.GetDashboardSnapshot(c.Req.Context(), query)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/10b47480ebda29de1fe78feacdcdfe640df09794", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\t\t\tnoDataFound = noDataFound || cr.NoDataFound\n\t\t\tnoDataFound = noDataFound && cr.NoDataFound\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/d6ed5d295eff31799524a21bb6042654a84d3d23", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " renderer(trace: Trace, styles: ReturnType) {\n const dateStr = formatDatetime(trace.startTime);\n renderer(trace: Trace, timeZone: TimeZone, styles: ReturnType) {\n // Convert date from micro to milli seconds\n const dateStr = dateTimeFormat(trace.startTime / 1000, { timeZone });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grafana/grafana/commit/b89f8fdfcbf70dc3a2c3a7208d12fea87f7979a0", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " return { ...rest, value: renderer(trace, styles) };\n return { ...rest, value: renderer(trace, timeZone, styles) };\n renderer(trace: Trace, styles: ReturnType) {\n const dateStr = formatDatetime(trace.startTime);\n renderer(trace: Trace, timeZone: TimeZone, styles: ReturnType) {\n // Convert date from micro to milli seconds\n const dateStr = dateTimeFormat(trace.startTime / 1000, { timeZone });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grafana/grafana/commit/b89f8fdfcbf70dc3a2c3a7208d12fea87f7979a0", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": "\tevaluator := eval.Evaluator{Cfg: srv.Cfg}\n\tevaluator := eval.Evaluator{Cfg: srv.Cfg, Log: srv.log}\n\tevaluator := eval.Evaluator{Cfg: cfg}\n\tevaluator := eval.Evaluator{Cfg: cfg, Log: log}\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/grafana/grafana/commit/abe35c8c01ecd69c4fb18eaa43b2cb9e98bb03c2", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "\talertExecCtx := AlertExecCtx{OrgID: condition.OrgID, Ctx: alertCtx, ExpressionsEnabled: e.Cfg.ExpressionsEnabled}\n\talertExecCtx := AlertExecCtx{OrgID: condition.OrgID, Ctx: alertCtx, ExpressionsEnabled: e.Cfg.ExpressionsEnabled, Log: e.Log}\n\talertExecCtx := AlertExecCtx{OrgID: orgID, Ctx: alertCtx, ExpressionsEnabled: e.Cfg.ExpressionsEnabled}\n\talertExecCtx := AlertExecCtx{OrgID: orgID, Ctx: alertCtx, ExpressionsEnabled: e.Cfg.ExpressionsEnabled, Log: e.Log}\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grafana/grafana/commit/abe35c8c01ecd69c4fb18eaa43b2cb9e98bb03c2", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": " private readonly results: Subject;\n private readonly results: ReplaySubject;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/grafana/grafana/commit/a7606d130e20425136c73a91cc5ece2e7cce3f67", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " this.results = new Subject();\n this.results = new ReplaySubject();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/grafana/grafana/commit/a7606d130e20425136c73a91cc5ece2e7cce3f67", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "import { GrafanaTheme } from '@grafana/data';\nimport { GrafanaTheme2 } from '@grafana/data';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/9315152d4fa07a1543342d7c1313d8688e4db0ef", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "export const getFieldValidationMessageStyles = stylesFactory((theme: GrafanaTheme) => {\nexport const getFieldValidationMessageStyles = stylesFactory((theme: GrafanaTheme2) => {\nimport { GrafanaTheme } from '@grafana/data';\nimport { GrafanaTheme2 } from '@grafana/data';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/9315152d4fa07a1543342d7c1313d8688e4db0ef", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " const { data, isLoading, error } = usePanelLatestData(panel, dataOptions);\n const { data, isLoading, error } = usePanelLatestData(panel, dataOptions, true);\n const { data } = usePanelLatestData(panel, { withTransforms: true, withFieldConfig: false });\n const { data } = usePanelLatestData(panel, { withTransforms: true, withFieldConfig: false }, true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grafana/grafana/commit/4a924c5ace7c83911f2a53f9fbd5db9eed818b13", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " const { data } = usePanelLatestData(panel, { withTransforms: true, withFieldConfig: false });\n const { data } = usePanelLatestData(panel, { withTransforms: true, withFieldConfig: false }, true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grafana/grafana/commit/4a924c5ace7c83911f2a53f9fbd5db9eed818b13", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " const [filteredQueries, setFilteredQueries] = useState([]);\n const [filteredQueries, setFilteredQueries] = useState([]);\n const [filteredQueries, setFilteredQueries] = useState([]);\n const [filteredQueries, setFilteredQueries] = useState([]);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/46540f3146da7af0544952de737a2ae981038356", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " datasourceFilters?.map(d => d.value),\n datasourceFilters?.map(d => d.value) as string[] | null,\n datasourceFilters?.map(d => d.value),\n datasourceFilters?.map(d => d.value) as string[] | null,\n datasourceFilters?.map(d => d.value),\n datasourceFilters?.map(d => d.value) as string[] | null,\n datasourceFilters?.map(d => d.value),\n datasourceFilters?.map(d => d.value) as string[] | null,\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/grafana/grafana/commit/46540f3146da7af0544952de737a2ae981038356", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 6, 7 ] }, { "input": " onDisplayOptionsChanged = (fieldOptions: FieldDisplayOptions) =>\n this.props.onOptionsChange({\n ...this.props.options,\n fieldOptions,\n });\n onDisplayOptionsChanged = (\n fieldOptions: FieldDisplayOptions,\n event?: React.SyntheticEvent,\n callback?: () => void\n ) =>\n this.props.onOptionsChange(\n {\n ...this.props.options,\n fieldOptions,\n },\n callback\n );\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/09a599900c658f0d0bb9d9471f20a6eee27a2760", "target_edit_idx": 7, "propagatable_edit_idx": [ 4 ] }, { "input": " return FONT_SCALE - (length * 5) / 120;\n return FONT_SCALE - (length * 5) / 110;\n return FONT_SCALE - (length * 5) / 105;\n return FONT_SCALE - (length * 5) / 100;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/b4627ec302584ef8b1be2dc0c5b88cf8e0c6a829", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\tnow := time.Now()\n\tnow := time.Now()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/d728a3c521683ec5007fc09b5dd7b62e480c6686", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tReleaseDate: time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, time.Local),\n\t\tReleaseDate: time.Now(),\n\t\tReleaseDate: time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, time.Local),\n\t\tReleaseDate: time.Now(),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/d728a3c521683ec5007fc09b5dd7b62e480c6686", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " __interval_ms: { text: String(10 * 1000), value: String(10 * 1000) },\n __interval_ms: { text: 10 * 1000, value: 10 * 1000 },\n __interval_ms: { text: String(5 * 1000), value: String(5 * 1000) },\n __interval_ms: { text: 5 * 1000, value: 5 * 1000 },\n __interval_ms: { text: String(10 * 1000), value: String(10 * 1000) },\n __interval_ms: { text: 10 * 1000, value: 10 * 1000 },\n __interval_ms: { text: String(5 * 1000), value: String(5 * 1000) },\n __interval_ms: { text: 5 * 1000, value: 5 * 1000 },\n __interval_ms: { text: String(5 * 1000), value: String(5 * 1000) },\n __interval_ms: { text: 5 * 1000, value: 5 * 1000 },\n __interval_ms: { text: String(5 * 1000), value: String(5 * 1000) },\n __interval_ms: { text: 5 * 1000, value: 5 * 1000 },\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/grafana/grafana/commit/1f74b298c4ee3f5777f9b10d5ce5f6da8f4fc8ac", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 6, 8, 10, 12 ] }, { "input": " expect(query.scopedVars.__interval_ms.text).to.be(String(10 * 1000));\n expect(query.scopedVars.__interval_ms.value).to.be(String(10 * 1000));\n expect(query.scopedVars.__interval_ms.text).to.be(10 * 1000);\n expect(query.scopedVars.__interval_ms.value).to.be(10 * 1000);\n expect(query.scopedVars.__interval_ms.text).to.be(String(5 * 1000));\n expect(query.scopedVars.__interval_ms.value).to.be(String(5 * 1000));\n expect(query.scopedVars.__interval_ms.text).to.be(5 * 1000);\n expect(query.scopedVars.__interval_ms.value).to.be(5 * 1000);\n expect(query.scopedVars.__interval_ms.text).to.be(String(10 * 1000));\n expect(query.scopedVars.__interval_ms.value).to.be(String(10 * 1000));\n expect(query.scopedVars.__interval_ms.text).to.be(10 * 1000);\n expect(query.scopedVars.__interval_ms.value).to.be(10 * 1000);\n expect(query.scopedVars.__interval_ms.text).to.be(String(5 * 1000));\n expect(query.scopedVars.__interval_ms.value).to.be(String(5 * 1000));\n expect(query.scopedVars.__interval_ms.text).to.be(5 * 1000);\n expect(query.scopedVars.__interval_ms.value).to.be(5 * 1000);\n expect(query.scopedVars.__interval_ms.text).to.be(String(5 * 1000));\n expect(query.scopedVars.__interval_ms.value).to.be(String(5 * 1000));\n expect(query.scopedVars.__interval_ms.text).to.be(5 * 1000);\n expect(query.scopedVars.__interval_ms.value).to.be(5 * 1000);\n expect(query.scopedVars.__interval_ms.text).to.be(String(5 * 1000));\n expect(query.scopedVars.__interval_ms.value).to.be(String(5 * 1000));\n expect(query.scopedVars.__interval_ms.text).to.be(5 * 1000);\n expect(query.scopedVars.__interval_ms.value).to.be(5 * 1000);\n", "class": "clone", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/grafana/grafana/commit/1f74b298c4ee3f5777f9b10d5ce5f6da8f4fc8ac", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 7, 9, 11, 13 ] }, { "input": "\t\t\tsc.fakeReqWithParams(\"GET\", \"/dashboard/db/dash\", map[string]string{}).exec()\n\t\t\tsc.fakeReqWithParams(\"GET\", \"/dashboard/db/dash?orgId=1&panelId=2\", map[string]string{}).exec()\n\t\t\tsc.fakeReqWithParams(\"GET\", \"/dashboard-solo/db/dash\", map[string]string{}).exec()\n\t\t\tsc.fakeReqWithParams(\"GET\", \"/dashboard-solo/db/dash?orgId=1&panelId=2\", map[string]string{}).exec()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/32054ad9a689db273a764854e7ac2c6e38684aed", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " slug: hit.slug,\n slug: hit.slug,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/035b724725728c870e3898a1236993ee221b4d20", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " self.funcDefs = gfunc.getFuncDefs(self.graphiteVersion);\n return Promise.resolve(self.funcDefs);\n this.funcDefs = gfunc.getFuncDefs(this.graphiteVersion);\n return Promise.resolve(this.funcDefs);\n self.funcDefs = gfunc.getFuncDefs(self.graphiteVersion);\n return self.funcDefs;\n console.log('Fetching graphite functions error', err);\n this.funcDefs = gfunc.getFuncDefs(this.graphiteVersion);\n return this.funcDefs;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/7e750cef433521c00ccd46a8439472b727f52882", "target_edit_idx": 5, "propagatable_edit_idx": [ 9 ] }, { "input": " return self.funcDefs;\n return this.funcDefs;\n return self.funcDefs;\n return this.funcDefsPromise;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/grafana/grafana/commit/7e750cef433521c00ccd46a8439472b727f52882", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\t\tjson := simplejson.New()\n\t\t\tjson.Set(\"keepCookies\", []string{})\n\t\t\tjson, _ := simplejson.NewJson([]byte(`{\"keepCookies\": []}`))\n\t\t\tjson := simplejson.New()\n\t\t\tjson.Set(\"keepCookies\", []string{\"JSESSION_ID\"})\n\t\t\tjson, _ := simplejson.NewJson([]byte(`{\"keepCookies\": [\"JSESSION_ID\"]}`))\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grafana/grafana/commit/cf7a49977f601d684d6df3ce9415f57901e210a9", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " return ctx.$q.when(response);\n return ctx.$q.when({data: response});\n return ctx.$q.when(response);\n return ctx.$q.when({data: response});\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/119f5427af56704dcf8fa36abf5130f564ce34fd", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tName: \"api_dashboard_save\",\n\t\tName: \"api_dashboard_save_milleseconds\",\n\t\tName: \"api_dashboard_get\",\n\t\tName: \"api_dashboard_get_milleseconds\",\n\t\tName: \"api_dashboard_search\",\n\t\tName: \"api_dashboard_search_milleseconds\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/491e6897e756e06f39cd912ec01a79fcb0cf31c4", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " query.query.bool.must.push({\n query.query.bool.filter.push({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grafana/grafana/commit/a0c8380baf8f95f0960206e3609bfc25682e6bf8", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 5, 6, 7, 8 ] }, { "input": " var queryInterpolated = templateSrv.replace(queryString);\n var queryInterpolated = templateSrv.replace(queryString, {}, 'lucene');\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/grafana/grafana/commit/dc77d555f92ef16745d21bd844a2cdaebff95a65", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " query = templateSrv.replace(query);\n query = templateSrv.replace(query, {}, luceneThenJsonFormat);\n var queryInterpolated = templateSrv.replace(queryString);\n var queryInterpolated = templateSrv.replace(queryString, {}, 'lucene');\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/grafana/grafana/commit/dc77d555f92ef16745d21bd844a2cdaebff95a65", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": " ctx.$httpBackend.expect('GET', '/api/v1/label/resource/values').respond(response);\n ctx.$httpBackend.expect('GET', 'proxied/api/v1/label/resource/values').respond(response);\n ctx.$httpBackend.expect('GET', '/api/v1/label/__name__/values').respond(response);\n ctx.$httpBackend.expect('GET', 'proxied/api/v1/label/__name__/values').respond(response);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/3cc69112c194588af7755904551a82524e50f00d", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " $rootScope.onAppEvent('refresh', this.clearCache);\n $rootScope.onAppEvent('setup-dashboard', this.clearCache);\n $rootScope.onAppEvent('refresh', this.clearCache, $rootScope);\n $rootScope.onAppEvent('setup-dashboard', this.clearCache, $rootScope);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grafana/grafana/commit/3d85e85f29f3d5781ca7ffdb253e04b35fe2f48a", "target_edit_idx": 3, "propagatable_edit_idx": [ 10, 11, 4 ] }, { "input": " $rootScope.onAppEvent('dash-links-updated', updateDashLinks);\n $rootScope.onAppEvent('dash-links-updated', updateDashLinks, $rootScope);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grafana/grafana/commit/3d85e85f29f3d5781ca7ffdb253e04b35fe2f48a", "target_edit_idx": 4, "propagatable_edit_idx": [ 11, 10, 3 ] }, { "input": " });\n $rootScope.onAppEvent('confirm-modal', this.showConfirmModal);\n }, $rootScope);\n $rootScope.onAppEvent('confirm-modal', this.showConfirmModal, $rootScope);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grafana/grafana/commit/3d85e85f29f3d5781ca7ffdb253e04b35fe2f48a", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 3, 4 ] }, { "input": " $rootScope.onAppEvent('show-modal', this.showModal);\n $rootScope.onAppEvent('show-modal', this.showModal, $rootScope);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grafana/grafana/commit/3d85e85f29f3d5781ca7ffdb253e04b35fe2f48a", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 3, 4 ] }, { "input": " case 'wildcard':\n allValue = '*';\n case 'wildcard':\n allValue = '*';\n case 'regex wildcard':\n allValue = '.*';\n case 'regex wildcard':\n allValue = '.*';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/666013b0100a0c03452f36ef888a4b7085faade1", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " 'text!panels/'+name+'/module.html'\n 'text!panels/'+nameAsPath+'/module.html'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/d3495ff73971f38e18d3a6f9c7cd533d22c25847", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 6, 7 ] }, { "input": " 'panels/'+name+'/module'\n 'panels/'+nameAsPath+'/module'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/d3495ff73971f38e18d3a6f9c7cd533d22c25847", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 6, 7 ] }, { "input": " 'text!panels/'+name+'/module.html'\n 'text!panels/'+nameAsPath+'/module.html'\n 'text!panels/'+name+'/module.html'\n 'text!panels/'+nameAsPath+'/module.html'\n 'panels/'+name+'/module'\n 'panels/'+nameAsPath+'/module'\n 'panels/'+name+'/module'\n 'panels/'+nameAsPath+'/module'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grafana/grafana/commit/d3495ff73971f38e18d3a6f9c7cd533d22c25847", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 7 ] }, { "input": "type PaginatedEntiies = {\ntype PaginatedEntities = {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/8e8cfa0d84b7870f1207c6f8341e5b9263b3cef3", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " find(params: object): Promise;\n findOne(entityId: Entity.ID, params: object): Promise;\n find(params: object): Promise;\n findOne(entityId: EntityID, params: object): Promise;\ntype PaginatedEntiies = {\ntype PaginatedEntities = {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/8e8cfa0d84b7870f1207c6f8341e5b9263b3cef3", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " const permissions = useSyncRbac(query, rest.slug, 'editView');\n const { permissions, isValid: isValidPermissions } = useSyncRbac(query, rest.slug, 'editView');\n const permissions = useSyncRbac(query, props.slug, 'listView');\n const { permissions, isValid: isValidPermissions } = useSyncRbac(query, props.slug, 'listView');\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/66f2ed977bda4e9b549b66a0909157a754fff308", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " if (!currentLayout || !permissions) {\n if (!currentLayout || !isValidPermissions) {\n if (!permissions) {\n if (!isValidPermissions) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/strapi/strapi/commit/66f2ed977bda4e9b549b66a0909157a754fff308", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " const { model_uid: modelUID, id: entityIdString } = ctx.params;\n const { model_uid: model, id: entityIdString } = ctx.params;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/f740348e802a9d77574062a55e57888754d0f908", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " const workflow = await workflowService.assertContentTypeBelongsToWorkflow(modelUID);\n const workflow = await workflowService.assertContentTypeBelongsToWorkflow(model);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/f740348e802a9d77574062a55e57888754d0f908", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 7 ] }, { "input": " const entity = await stagesService.updateEntity({ id: entityId, modelUID }, stageId);\n const entity = await stagesService.updateEntity({ id: entityId, model }, stageId);\n const workflow = await workflowService.assertContentTypeBelongsToWorkflow(modelUID);\n const workflow = await workflowService.assertContentTypeBelongsToWorkflow(model);\n const { model_uid: modelUID, id: entityIdString } = ctx.params;\n const { model_uid: model, id: entityIdString } = ctx.params;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/f740348e802a9d77574062a55e57888754d0f908", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " const { includes } = useFilter(locale, {\n const { startsWith } = useFilter(locale, {\n .filter((link) => includes(link.title, search))\n .filter((link) => startsWith(link.title, search))\n [collectionTypeLinks, search, singleTypeLinks, includes, formatMessage, formatter]\n [collectionTypeLinks, search, singleTypeLinks, startsWith, formatMessage, formatter]\n const { includes } = useFilter(locale, {\n const { startsWith } = useFilter(locale, {\n .filter((link) => includes(link.title, search))\n .filter((link) => startsWith(link.title, search))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/802f88072904edfb7c60576db73b78c03ab4bb5b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " [collectionTypeLinks, search, singleTypeLinks, includes, formatMessage, formatter]\n [collectionTypeLinks, search, singleTypeLinks, startsWith, formatMessage, formatter]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/802f88072904edfb7c60576db73b78c03ab4bb5b", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": " const { includes } = useFilter(locale, {\n const { startsWith } = useFilter(locale, {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/strapi/strapi/commit/802f88072904edfb7c60576db73b78c03ab4bb5b", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4 ] }, { "input": " .filter((link) => includes(link.title, search))\n .filter((link) => startsWith(link.title, search))\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/strapi/strapi/commit/802f88072904edfb7c60576db73b78c03ab4bb5b", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": "export function useAPIErrorHandler(getTrad) {\nexport function useAPIErrorHandler(intlMessagePrefixCallback) {\n return formatAPIError(error, { getTrad, formatMessage });\n return formatAPIError(error, { intlMessagePrefixCallback, formatMessage });\nexport function formatAPIError(error, { formatMessage, getTrad }) {\nexport function formatAPIError(error, { formatMessage, intlMessagePrefixCallback }) {\n const normalizedError = normalizeAPIError(error, getTrad);\n const normalizedError = normalizeAPIError(error, intlMessagePrefixCallback);\nexport function normalizeAPIError(resError, getTrad) {\nexport function normalizeAPIError(resError, intlMessagePrefixCallback) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/f5b3f91a32b8c1254a861bf129e225faef9a43d0", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 6 ] }, { "input": " const normalizedError = normalizeAPIError(error, getTrad);\n const normalizedError = normalizeAPIError(error, intlMessagePrefixCallback);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/f5b3f91a32b8c1254a861bf129e225faef9a43d0", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 6 ] }, { "input": "function getPrefixedId(message, getTrad) {\nfunction getPrefixedId(message, callback) {\n if (getTrad) {\n return getTrad(prefixedMessage);\n // if a prefix function has been passed in it is used to\n // prefix the id, e.g. to allow an error message to be\n // set only for a localization namespace\n if (callback) {\n return callback(prefixedMessage);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/f5b3f91a32b8c1254a861bf129e225faef9a43d0", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "export function normalizeAPIError(resError, getTrad) {\nexport function normalizeAPIError(resError, intlMessagePrefixCallback) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/f5b3f91a32b8c1254a861bf129e225faef9a43d0", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": "export const RelationInputDataManger = ({\nexport const RelationInputDataManager = ({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/984e5cac4952a5768d49cb6f9456139e3ec85491", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "RelationInputDataManger.defaultProps = {\nRelationInputDataManager.defaultProps = {\nexport const RelationInputDataManger = ({\nexport const RelationInputDataManager = ({\nRelationInputDataManger.propTypes = {\nRelationInputDataManager.propTypes = {\nconst Memoized = memo(RelationInputDataManger);\nconst Memoized = memo(RelationInputDataManager);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/984e5cac4952a5768d49cb6f9456139e3ec85491", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": "RelationInputDataManger.propTypes = {\nRelationInputDataManager.propTypes = {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/984e5cac4952a5768d49cb6f9456139e3ec85491", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " ", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/strapi/strapi/commit/73a9f3c40cb05d15009ee967ecc0d3977297cfbd", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10 ] }, { "input": " if (isTSProject) await tsUtils.compile(appDir, { watch: false });\n if (isTSProject)\n await tsUtils.compile(appDir, {\n watch: false,\n configOptions: { options: { incremental: true } },\n });\n if (isTSProject) await tsUtils.compile(appDir, { watch: false });\n if (isTSProject)\n await tsUtils.compile(appDir, {\n watch: false,\n configOptions: { options: { incremental: true } },\n });\n if (isTSProject) await tsUtils.compile(appDir, { watch: false });\n if (isTSProject)\n await tsUtils.compile(appDir, {\n watch: false,\n configOptions: { options: { incremental: true } },\n });\n if (isTSProject) await tsUtils.compile(appDir, { watch: false });\n if (isTSProject)\n await tsUtils.compile(appDir, {\n watch: false,\n configOptions: { options: { incremental: true } },\n });\n if (isTSProject) await tsUtils.compile(appDir, { watch: false });\n if (isTSProject)\n await tsUtils.compile(appDir, {\n watch: false,\n configOptions: { options: { incremental: true } },\n });\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/strapi/strapi/commit/c444692191b2a3b8bfd8543378da288a8d42da1c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " const { userAbility } = ctx.state;\n const { userAbility, user } = ctx.state;\n const { userAbility } = ctx.state;\n const { userAbility, user } = ctx.state;\n const { userAbility } = ctx.state;\n const { userAbility, user } = ctx.state;\n const { userAbility } = ctx.state;\n const { userAbility, user } = ctx.state;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/strapi/strapi/commit/58e4deadb651a481ee1828bbc2b3fd8b204ed2ab", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 6 ] }, { "input": " const result = await entityManager.publish(entity, model);\n const result = await entityManager.publish(\n entity,\n setCreatorFields({ user, isEdition: true })({}),\n model\n );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/strapi/strapi/commit/58e4deadb651a481ee1828bbc2b3fd8b204ed2ab", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " const result = await entityManager.unpublish(entity, model);\n const result = await entityManager.unpublish(\n entity,\n setCreatorFields({ user, isEdition: true })({}),\n model\n );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/strapi/strapi/commit/58e4deadb651a481ee1828bbc2b3fd8b204ed2ab", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " const publishedEntity = await entityManager.publish(entity, model);\n const publishedEntity = await entityManager.publish(\n entity,\n setCreatorFields({ user, isEdition: true })({}),\n model\n );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/strapi/strapi/commit/58e4deadb651a481ee1828bbc2b3fd8b204ed2ab", "target_edit_idx": 5, "propagatable_edit_idx": [ 1 ] }, { "input": " const unpublishedEntity = await entityManager.unpublish(entity, model);\n const unpublishedEntity = await entityManager.unpublish(\n entity,\n setCreatorFields({ user, isEdition: true })({}),\n model\n );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/strapi/strapi/commit/58e4deadb651a481ee1828bbc2b3fd8b204ed2ab", "target_edit_idx": 7, "propagatable_edit_idx": [ 3 ] }, { "input": " publish: wrapWithEmitEvent(ENTRY_PUBLISH, async (entity, uid) => {\n publish: wrapWithEmitEvent(ENTRY_PUBLISH, async (entity, body = {}, uid) => {\n unpublish: wrapWithEmitEvent(ENTRY_UNPUBLISH, (entity, uid) => {\n unpublish: wrapWithEmitEvent(ENTRY_UNPUBLISH, (entity, body = {}, uid) => {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/strapi/strapi/commit/58e4deadb651a481ee1828bbc2b3fd8b204ed2ab", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " $in: ['$_id', '$$localAlias'],\n $in: ['$_id', { $ifNull: ['$$localAlias', []] }],\n $in: ['$_id', '$$localAlias'],\n $in: ['$_id', { $ifNull: ['$$localAlias', []] }],\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/strapi/strapi/commit/f8f7a4a89f7fce35b70a4cee0a9e9422d6d900fa", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " settings: await createDefaultSettings(),\n settings: await createDefaultSettings(schema),\nasync function createDefaultSettings() {\nasync function createDefaultSettings(schema) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/strapi/strapi/commit/dc869ea0b9824cc71ade0fbdc148bd7e9c0cf343", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "async function createDefaultSettings() {\nasync function createDefaultSettings(schema) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/strapi/strapi/commit/dc869ea0b9824cc71ade0fbdc148bd7e9c0cf343", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " [\n {\n name: 'sort_by_metric',\n config: {\n type: 'CheckboxControl',\n label: t('Sort by metric'),\n description: t(\n 'Whether to sort results by the selected metric in descending order.',\n ),\n },\n },\n ],\n ['sort_by_metric'],\n [\n {\n name: 'sort_by_metric',\n config: {\n type: 'CheckboxControl',\n label: t('Sort by metric'),\n description: t(\n 'Whether to sort results by the selected metric in descending order.',\n ),\n },\n },\n ],\n ['sort_by_metric'],\n [\n {\n name: 'sort_by_metric',\n config: {\n type: 'CheckboxControl',\n label: t('Sort by metric'),\n description: t(\n 'Whether to sort results by the selected metric in descending order.',\n ),\n },\n },\n ],\n ['sort_by_metric'],\n [\n {\n name: 'sort_by_metric',\n config: {\n type: 'CheckboxControl',\n label: t('Sort by metric'),\n description: t(\n 'Whether to sort results by the selected metric in descending order.',\n ),\n },\n },\n ],\n ['sort_by_metric'],\n [\n {\n name: 'sort_by_metric',\n config: {\n type: 'CheckboxControl',\n label: t('Sort by metric'),\n description: t(\n 'Whether to sort results by the selected metric in descending order.',\n ),\n },\n },\n ],\n ['sort_by_metric'],\n [\n {\n name: 'sort_by_metric',\n config: {\n type: 'CheckboxControl',\n label: t('Sort by metric'),\n description: t(\n 'Whether to sort results by the selected metric in descending order.',\n ),\n },\n },\n ],\n ['sort_by_metric'],\n [\n {\n name: 'sort_by_metric',\n config: {\n type: 'CheckboxControl',\n label: t('Sort by metric'),\n description: t(\n 'Whether to sort results by the selected metric in descending order.',\n ),\n },\n },\n ],\n ['sort_by_metric'],\n [\n {\n name: 'sort_by_metric',\n config: {\n type: 'CheckboxControl',\n label: t('Sort by metric'),\n description: t(\n 'Whether to sort results by the selected metric in descending order.',\n ),\n },\n },\n ],\n ['sort_by_metric'],\n", "class": "clone", "binary_label": 1, "regression_label": 0.6363636363636364, "commit_url": "https://github.com/apache/superset/commit/fe3ba12801dca32359a6ad811fe9a4f75502106a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 8, 12, 13, 14 ] }, { "input": " type: 'CheckboxControl',\n label: t('Sort by metric'),\n description: t(\n 'Whether to sort results by the selected metric in descending order.',\n ),\n type: 'CheckboxControl',\n label: t('Sort by metric'),\n description: t(\n 'Whether to sort results by the selected metric in descending order.',\n ),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/superset/commit/fe3ba12801dca32359a6ad811fe9a4f75502106a", "target_edit_idx": 7, "propagatable_edit_idx": [ 11 ] }, { "input": "if \"sqlite\" in SQLALCHEMY_DATABASE_URI:\nif make_url(SQLALCHEMY_DATABASE_URI).get_backend_name() == \"sqlite\":\nif \"sqlite\" in SQLALCHEMY_DATABASE_URI:\nif make_url(SQLALCHEMY_DATABASE_URI).get_backend_name() == \"sqlite\":\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/superset/commit/f185bbed3c4f8dacda956aa3fdb1196707472f3a", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " primaryjoin=\"and_(Dashboard.id == TaggedObject.object_id)\",\n secondaryjoin=\"and_(TaggedObject.tag_id == Tag.id, \"\n primaryjoin=\"and_(Dashboard.id == TaggedObject.object_id, \"\n primaryjoin=\"and_(Slice.id == TaggedObject.object_id)\",\n secondaryjoin=\"and_(TaggedObject.tag_id == Tag.id, \"\n primaryjoin=\"and_(Slice.id == TaggedObject.object_id, \"\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/superset/commit/dd67772ad90846fdadd87f1d63df1589fa614934", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " db.session.expunge_all()\n db.session.expunge_all()\n\n db.session.expunge_all()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/superset/commit/8749d9f3865c90e151d0966fc5513ec54a959957", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 2 ] }, { "input": " field: series,\n field: seriesLabel,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/superset/commit/41ad9442c07690786b8b398b91f07df6235812e3", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "import { QueryFormData } from '@superset-ui/core';\nimport { QueryFormColumn, QueryFormData } from '@superset-ui/core';\nimport { QueryFormData } from '@superset-ui/core';\nimport { QueryFormColumn, QueryFormData } from '@superset-ui/core';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/superset/commit/41ad9442c07690786b8b398b91f07df6235812e3", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " raise NotificationParamException from ex\n raise NotificationParamException(str(ex)) from ex\n raise NotificationMalformedException from ex\n raise NotificationMalformedException(str(ex)) from ex\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/superset/commit/c58dbf8b9c7c93f5c15b99557a2ec0c6294201e7", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " engine = self._get_sqla_engine()\n return engine.has_table(table.table_name, table.schema or None)\n with self.get_sqla_engine_with_context() as engine:\n return engine.has_table(table.table_name, table.schema or None)\n engine = self._get_sqla_engine()\n return engine.has_table(table_name, schema)\n with self.get_sqla_engine_with_context() as engine:\n return engine.has_table(table_name, schema)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/superset/commit/d18c7d6128d7e99f7756ad4006f79df3fb0cc3d6", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " onSelect: (selected: SelectOption | undefined) => void;\n onSelect: (selected: SelectOption | undefined, isClear?: boolean) => void;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/superset/commit/f27e20e30dc90b068887cb79cb030eb020f8ea6d", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "from sqlalchemy.dialects import postgresql\nfrom sqlalchemy.dialects import postgresql\nfrom sqlalchemy.dialects import postgresql\nfrom sqlalchemy.dialects import postgresql\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/superset/commit/a975af3e9e43f4524d71a8a9fe89e4cb448fbca3", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " const uiConig = useUiConfig();\n const uiConfig = useUiConfig();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/superset/commit/54f1b351619508dadc510f114f31282385435dd1", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " if (standalone || uiConig.hideNav) return <>;\n if (standalone || uiConfig.hideNav) return <>;\n const uiConig = useUiConfig();\n const uiConfig = useUiConfig();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/superset/commit/54f1b351619508dadc510f114f31282385435dd1", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " getTooltipFormatter,\n getTooltipTimeFormatter,\n getTooltipFormatter,\n getTooltipTimeFormatter,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/superset/commit/b9194ad0510201ea321233b227955d64640afe39", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " const tooltipFormatter = getTooltipFormatter(tooltipTimeFormat);\n const tooltipTimeFormatter = getTooltipTimeFormatter(tooltipTimeFormat);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/superset/commit/b9194ad0510201ea321233b227955d64640afe39", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 6, 7 ] }, { "input": " const rows: Array = [`${tooltipFormatter(value)}`];\n const rows: Array = [`${tooltipTimeFormatter(value)}`];\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/superset/commit/b9194ad0510201ea321233b227955d64640afe39", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " const tooltipFormatter = getTooltipFormatter(tooltipTimeFormat);\n const tooltipFormatter = getTooltipTimeFormatter(tooltipTimeFormat);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/superset/commit/b9194ad0510201ea321233b227955d64640afe39", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " metadata = yaml.safe_load(contents[\"charts/Energy_Sankey.yaml\"])\n metadata = yaml.safe_load(\n contents[f\"charts/Energy_Sankey_{example_chart.id}.yaml\"]\n )\n metadata = yaml.safe_load(contents[\"charts/Energy_Sankey.yaml\"])\n metadata = yaml.safe_load(\n contents[f\"charts/Energy_Sankey_{example_chart.id}.yaml\"]\n )\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/superset/commit/ca680cf976cb8361db91d38cd6a217abb4108889", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " .showMaxMin(true)\n .showMaxMin(viz.form_data.x_axis_showminmax)\n .showMaxMin(true)\n .showMaxMin(viz.form_data.x_axis_showminmax)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/superset/commit/63b27bbecea64d88cfeeee7ae1b517db1ef6d0bb", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " this.setState({ atom });\n this.setState({ slice });\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/reduxjs/redux/commit/18b0695e7b6d067d29c31b65a777e29374f6aaf7", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " this.state = { atom };\n this.state = { slice };\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/reduxjs/redux/commit/18b0695e7b6d067d29c31b65a777e29374f6aaf7", "target_edit_idx": 12, "propagatable_edit_idx": [ 11 ] }, { "input": " getSectorCornerRadius(itemModel.getModel('itemStyle'), true),\n getSectorCornerRadius(itemModel.getModel('itemStyle'), layout, true),\n ? (emphasisModel.get('scaleSize') || 0) : 0),\n ...getSectorCornerRadius(emphasisModel.getModel('itemStyle'))\n };\n ? (emphasisModel.get('scaleSize') || 0) : 0)\n }, getSectorCornerRadius(emphasisModel.getModel('itemStyle'), layout));\n shape: getSectorCornerRadius(itemModel.getModel(['select', 'itemStyle']))\n shape: getSectorCornerRadius(itemModel.getModel(['select', 'itemStyle']), layout)\n shape: getSectorCornerRadius(itemModel.getModel(['blur', 'itemStyle']))\n shape: getSectorCornerRadius(itemModel.getModel(['blur', 'itemStyle']), layout)\n const cornerRadius = getSectorCornerRadius(itemModel.getModel('itemStyle'), true);\n const cornerRadius = getSectorCornerRadius(itemModel.getModel('itemStyle'), layout, true);\n const cornerRadius = getSectorCornerRadius(itemStyleModel);\n const cornerRadius = getSectorCornerRadius(itemStyleModel, layout);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/apache/echarts/commit/f8e6bda2d20d2713b2c66211b41035c052ee53c5", "target_edit_idx": 5, "propagatable_edit_idx": [ 7, 8, 9, 10, 11 ] }, { "input": " ? (emphasisModel.get('scaleSize') || 0) : 0),\n ...getSectorCornerRadius(emphasisModel.getModel('itemStyle'))\n };\n ? (emphasisModel.get('scaleSize') || 0) : 0)\n }, getSectorCornerRadius(emphasisModel.getModel('itemStyle'), layout));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/apache/echarts/commit/f8e6bda2d20d2713b2c66211b41035c052ee53c5", "target_edit_idx": 7, "propagatable_edit_idx": [ 5, 8, 9, 10, 11 ] }, { "input": " shape: getSectorCornerRadius(itemModel.getModel(['select', 'itemStyle']))\n shape: getSectorCornerRadius(itemModel.getModel(['select', 'itemStyle']), layout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/apache/echarts/commit/f8e6bda2d20d2713b2c66211b41035c052ee53c5", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 7, 9, 10, 11 ] }, { "input": " shape: getSectorCornerRadius(itemModel.getModel(['blur', 'itemStyle']))\n shape: getSectorCornerRadius(itemModel.getModel(['blur', 'itemStyle']), layout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/apache/echarts/commit/f8e6bda2d20d2713b2c66211b41035c052ee53c5", "target_edit_idx": 9, "propagatable_edit_idx": [ 5, 7, 8, 10, 11 ] }, { "input": " const cornerRadius = getSectorCornerRadius(itemModel.getModel('itemStyle'), true);\n const cornerRadius = getSectorCornerRadius(itemModel.getModel('itemStyle'), layout, true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/echarts/commit/f8e6bda2d20d2713b2c66211b41035c052ee53c5", "target_edit_idx": 10, "propagatable_edit_idx": [ 5, 7, 8, 9, 11 ] }, { "input": " const cornerRadius = getSectorCornerRadius(itemStyleModel);\n const cornerRadius = getSectorCornerRadius(itemStyleModel, layout);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/echarts/commit/f8e6bda2d20d2713b2c66211b41035c052ee53c5", "target_edit_idx": 11, "propagatable_edit_idx": [ 5, 7, 8, 9, 10 ] }, { "input": "function assembleTransform(el: HTMLElement, x: number, y: number, zrHeight: number, toString?: boolean) {\nfunction assembleTransform(el: HTMLElement, x: number, y: number, toString?: boolean) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/echarts/commit/6904fc6aca31b56e5689e5360d876fcb826826fc", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": " + assembleTransform(el, styleCoord[0], styleCoord[1], this._zr.getHeight(), true)\n + assembleTransform(el, styleCoord[0], styleCoord[1], true)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/echarts/commit/6904fc6aca31b56e5689e5360d876fcb826826fc", "target_edit_idx": 8, "propagatable_edit_idx": [ 1 ] }, { "input": " const stack = result.noEntryList;\n const noEntryList = result.noEntryList;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/echarts/commit/4d7f549d94fa1e660a60734d578af3c294817310", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " while (stack.length) {\n const currComponentType = stack.pop();\n while (noEntryList.length) {\n const currComponentType = noEntryList.pop();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/echarts/commit/4d7f549d94fa1e660a60734d578af3c294817310", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " stack.push(succComponentType);\n noEntryList.push(succComponentType);\n const stack = result.noEntryList;\n const noEntryList = result.noEntryList;\n while (stack.length) {\n const currComponentType = stack.pop();\n while (noEntryList.length) {\n const currComponentType = noEntryList.pop();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/echarts/commit/4d7f549d94fa1e660a60734d578af3c294817310", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " data.eachItemGraphicEl(function (el, idx) {\n el.scaleX = el.scaleY = nodeScale;\n data.eachItemGraphicEl(function (el: Symbol, idx) {\n el.setSymbolScale(nodeScale);\n data.eachItemGraphicEl(function (el, idx) {\n el.scaleX = el.scaleY = nodeScale;\n data.eachItemGraphicEl(function (el: SymbolClz, idx) {\n el.setSymbolScale(nodeScale);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/echarts/commit/601259d75d48eaa7e8c2164f7d1207c86116dac8", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " scaleX: this._scaleX,\n scaleY: this._scaleY\n scaleX: this._sizeX,\n scaleY: this._sizeY\n this._scaleX = symbolSize[0] / 2;\n this._scaleY = symbolSize[1] / 2;\n this._sizeX = symbolSize[0] / 2;\n this._sizeY = symbolSize[1] / 2;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/echarts/commit/601259d75d48eaa7e8c2164f7d1207c86116dac8", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " this._scaleX = symbolSize[0] / 2;\n this._scaleY = symbolSize[1] / 2;\n this._sizeX = symbolSize[0] / 2;\n this._sizeY = symbolSize[1] / 2;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/echarts/commit/601259d75d48eaa7e8c2164f7d1207c86116dac8", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " var midPoint = computeMidPoints(parentPoint, orient, ptMax);\n var location = shape.splitLocation;\n var midPoint = computeMidPoints(parentPoint, orient, ptMax, location);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/echarts/commit/7e6ada8c6e4c0638ea0ce835c65eadb782d6dfef", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "function computeMidPoints(parentPoint, orient, ptMax) {\nfunction computeMidPoints(parentPoint, orient, ptMax, location) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/echarts/commit/7e6ada8c6e4c0638ea0ce835c65eadb782d6dfef", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " midPoint[1] = parentPoint[1] + (ptMax[1] - parentPoint[1]) / 2;\n midPoint[1] = parentPoint[1] + (ptMax[1] - parentPoint[1]) * location;\n midPoint[0] = parentPoint[0] + (ptMax[0] - parentPoint[0]) / 2;\n midPoint[0] = parentPoint[0] + (ptMax[0] - parentPoint[0]) * location;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/echarts/commit/7e6ada8c6e4c0638ea0ce835c65eadb782d6dfef", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " midPoint[1] = ptMax[1] + (parentPoint[1] - ptMax[1]) / 2;\n midPoint[1] = ptMax[1] + (parentPoint[1] - ptMax[1]) * (1 - location);\n midPoint[0] = ptMax[0] + (parentPoint[0] - ptMax[0]) / 2;\n midPoint[0] = ptMax[0] + (parentPoint[0] - ptMax[0]) * (1 - location);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/echarts/commit/7e6ada8c6e4c0638ea0ce835c65eadb782d6dfef", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " var seriesName = seriesModel.name;\n var seriesId = seriesModel.id;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/echarts/commit/8f599683319f0bc4fc5081684f3e29b691622594", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " var polygonGroup = areaGroupMap.get(seriesName)\n || areaGroupMap.set(seriesName, {group: new graphic.Group()});\n var polygonGroup = areaGroupMap.get(seriesId)\n || areaGroupMap.set(seriesId, {group: new graphic.Group()});\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/echarts/commit/8f599683319f0bc4fc5081684f3e29b691622594", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " labelLayout = endTextLayout(opt, nameLocation, extent);\n labelLayout = endTextLayout(\n opt, nameLocation, axisModel.get('nameRotate'), extent\n );\n function endTextLayout(opt, textPosition, extent) {\n var rotationDiff = remRadian(-opt.rotation);\n function endTextLayout(opt, textPosition, rotate, extent) {\n var rotationDiff = remRadian((rotate || 0) - opt.rotation);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/echarts/commit/12184fbdc4456896dda5557d1bf6484c18013ced", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " function endTextLayout(opt, textPosition, extent) {\n var rotationDiff = remRadian(-opt.rotation);\n function endTextLayout(opt, textPosition, rotate, extent) {\n var rotationDiff = remRadian((rotate || 0) - opt.rotation);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/echarts/commit/12184fbdc4456896dda5557d1bf6484c18013ced", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " if (interactionMutex.isTaken(this._zr, 'globalCursor')) {\n if (interactionMutex.isTaken(this._zr, 'globalPan')) {\n if (interactionMutex.isTaken(this._zr, 'globalCursor')) {\n if (interactionMutex.isTaken(this._zr, 'globalPan')) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/echarts/commit/12184fbdc4456896dda5557d1bf6484c18013ced", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " if (dataIndex >= 0) {\n if (dataIndex != null && dataIndex >= 0) {\n if (dataIndex >= 0) {\n if (dataIndex != null && dataIndex >= 0) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/echarts/commit/c0cf06cdec7c2fb409a924a17af30a77809cdf3e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " var Float32Array = typeof global.Float32Array === UNDEFINED\n ? Array : global.Float32Array;\n var Float64Array = typeof global.Float64Array === UNDEFINED\n ? Array : global.Float64Array;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/echarts/commit/c0cf06cdec7c2fb409a924a17af30a77809cdf3e", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " 'float': Float32Array,\n 'float': Float64Array,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/echarts/commit/c0cf06cdec7c2fb409a924a17af30a77809cdf3e", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " if (symbolTo.type === 'arrow') {\n if (isSymbolArrow(symbolTo)) {\n if (symbolFrom.type === 'arrow') {\n if (isSymbolArrow(symbolFrom)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/echarts/commit/0c8726d0ee1c461c599c4fdb2e753c0c5b357602", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " id: `profile.${AppHotkeyProvider.getProfileHotkeyName(profile)}`,\n id: `profile.${ProfilesService.getProfileHotkeyName(profile)}`,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Eugeny/tabby/commit/ef040ee342bbcf378799da41cd712bade57ec496", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " const profile = profiles.find(x => AppHotkeyProvider.getProfileHotkeyName(x) === id)\n const profile = profiles.find(x => ProfilesService.getProfileHotkeyName(x) === id)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Eugeny/tabby/commit/ef040ee342bbcf378799da41cd712bade57ec496", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " \n \n \n \n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/facebook/docusaurus/commit/3ebe8882442311924e12c8a79bb17a43b2f31edf", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "function mutateSidebarCollapsingState(item, location) {\nfunction mutateSidebarCollapsingState(item, path) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/docusaurus/commit/42061c6d83151a808ea5d9c02be2f4a67bbea79a", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 11 ] }, { "input": " .map(childItem => mutateSidebarCollapsingState(childItem, location))\n .map(childItem => mutateSidebarCollapsingState(childItem, path))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/docusaurus/commit/42061c6d83151a808ea5d9c02be2f4a67bbea79a", "target_edit_idx": 8, "propagatable_edit_idx": [ 11, 7 ] }, { "input": " mutateSidebarCollapsingState(sidebarItem, location),\n mutateSidebarCollapsingState(sidebarItem, path),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/docusaurus/commit/42061c6d83151a808ea5d9c02be2f4a67bbea79a", "target_edit_idx": 11, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "fs.writeFileSync(CWD + \"/website/package.json\", JSON.stringify(packageContent));\nfs.writeFileSync(\n CWD + \"/website/package.json\",\n JSON.stringify(packageContent, null, 2) + \"\\n\"\n);\nfs.writeFileSync(CWD + '/versions.json', JSON.stringify(versions));\nfs.writeFileSync(\n CWD + '/versions.json',\n JSON.stringify(versions, null, 2) + '\\n'\n);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/facebook/docusaurus/commit/d97e2e9d81dea683153225d8ff01a952849d3d49", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "fs.writeFileSync(CWD + '/versions.json', JSON.stringify(versions));\nfs.writeFileSync(\n CWD + '/versions.json',\n JSON.stringify(versions, null, 2) + '\\n'\n);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/facebook/docusaurus/commit/d97e2e9d81dea683153225d8ff01a952849d3d49", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "function getNuxtAppCtx (appName = appId || 'nuxt-app') {\n return getContext(appName, {\nfunction getNuxtAppCtx (id = appId || 'nuxt-app') {\n return getContext(id, {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nuxt/nuxt/commit/efae7e2b210afb311831165caaf664602160289a", "target_edit_idx": 4, "propagatable_edit_idx": [ 10, 11, 12 ] }, { "input": "export function tryUseNuxtApp (appName?: string): NuxtApp | null {\nexport function tryUseNuxtApp (id?: string): NuxtApp | null {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/efae7e2b210afb311831165caaf664602160289a", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 4, 12 ] }, { "input": " nuxtAppInstance = nuxtAppInstance || getNuxtAppCtx(appName).tryUse()\n nuxtAppInstance = nuxtAppInstance || getNuxtAppCtx(id).tryUse()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/efae7e2b210afb311831165caaf664602160289a", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 4, 12 ] }, { "input": "export function useNuxtApp (appName?: string): NuxtApp {\n // @ts-expect-error internal usage of appName\n const nuxtAppInstance = tryUseNuxtApp(appName)\nexport function useNuxtApp (id?: string): NuxtApp {\n // @ts-expect-error internal usage of id\n const nuxtAppInstance = tryUseNuxtApp(id)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nuxt/nuxt/commit/efae7e2b210afb311831165caaf664602160289a", "target_edit_idx": 12, "propagatable_edit_idx": [ 10, 11, 4 ] }, { "input": " getContents: ({ app, nuxt }) => {\n async getContents ({ app, nuxt }) {\n const localDefu = await tryResolveModule('defu', nuxt.options.modulesDir) || 'defu'\n getContents ({ app, nuxt }) {\n async getContents ({ app, nuxt }) {\n const localDefu = await tryResolveModule('defu', nuxt.options.modulesDir) || 'defu'\n", "class": "clone", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/nuxt/nuxt/commit/bbf41865074273368f8732ff8e9b4344dccccd73", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " 'import { ComputedRef, MaybeRef } from \\'vue\\'',\n 'import type { ComputedRef, MaybeRef } from \\'vue\\'',\n 'import { ComputedRef, MaybeRef } from \\'vue\\'',\n 'import type { ComputedRef, MaybeRef } from \\'vue\\'',\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/nuxt/nuxt/commit/bbf41865074273368f8732ff8e9b4344dccccd73", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " withQuery(joinURL(useRuntimeConfig().app.baseURL, '/__nuxt_error'), errorObject),\n withQuery(joinURL(useRuntimeConfig(event).app.baseURL, '/__nuxt_error'), errorObject),\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nuxt/nuxt/commit/2e1530c6b4751f88503402d9ab3658c2f49111ba", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " const config = useRuntimeConfig()\n const config = useRuntimeConfig(ssrContext.event)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/nuxt/nuxt/commit/2e1530c6b4751f88503402d9ab3658c2f49111ba", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 5 ] }, { "input": " runtimeConfig: useRuntimeConfig() as NuxtSSRContext['runtimeConfig'],\n runtimeConfig: useRuntimeConfig(event) as NuxtSSRContext['runtimeConfig'],\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/nuxt/nuxt/commit/2e1530c6b4751f88503402d9ab3658c2f49111ba", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 4 ] }, { "input": " const modulePaths = getModulePaths(nuxt.options.modulesDir)\n const nodeModulePaths = getModulePaths(nuxt.options.modulesDir)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/803c4fe1475e64c8647c84292cf957fa35dd9954", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " const modules = await resolveNuxtModule(rootDirWithSlash,\n const modulePaths = await resolveNuxtModule(rootDirWithSlash,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/803c4fe1475e64c8647c84292cf957fa35dd9954", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " ...modules.map(m => join(relativeWithDot(nuxt.options.buildDir, m), 'runtime'))\n ...modulePaths.map(m => join(relativeWithDot(nuxt.options.buildDir, m), 'runtime'))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/803c4fe1475e64c8647c84292cf957fa35dd9954", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " ...modules.map(m => join(relativeWithDot(nuxt.options.buildDir, m), 'runtime/server')),\n ...modulePaths.map(m => join(relativeWithDot(nuxt.options.buildDir, m), 'runtime/server')),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/803c4fe1475e64c8647c84292cf957fa35dd9954", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " .map(async id => ({ types: (await readPackageJSON(id, { url: modulePaths }).catch(() => null))?.name || id })))\n .map(async id => ({ types: (await readPackageJSON(id, { url: nodeModulePaths }).catch(() => null))?.name || id })))\n const modulePaths = getModulePaths(nuxt.options.modulesDir)\n const nodeModulePaths = getModulePaths(nuxt.options.modulesDir)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/803c4fe1475e64c8647c84292cf957fa35dd9954", "target_edit_idx": 7, "propagatable_edit_idx": [ 2 ] }, { "input": "import { getCurrentInstance, hasInjectionContext, inject, onUnmounted } from 'vue'\nimport { getCurrentInstance, hasInjectionContext, inject, onScopeDispose } from 'vue'\n onUnmounted(unsubscribe)\n onScopeDispose(unsubscribe)\n onUnmounted(unsubscribe)\n onScopeDispose(unsubscribe)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/1487c5631aa1f66fab21465fbfca11b4fa62b2f0", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " onUnmounted(unsubscribe)\n onScopeDispose(unsubscribe)\nimport { getCurrentInstance, hasInjectionContext, inject, onUnmounted } from 'vue'\nimport { getCurrentInstance, hasInjectionContext, inject, onScopeDispose } from 'vue'\n onUnmounted(unsubscribe)\n onScopeDispose(unsubscribe)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/1487c5631aa1f66fab21465fbfca11b4fa62b2f0", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " const clientConfig: ViteConfig = vite.mergeConfig(ctx.config, {\n const clientConfig: ViteConfig = vite.mergeConfig(ctx.config, vite.mergeConfig({\n const serverConfig: ViteConfig = vite.mergeConfig(ctx.config, {\n const serverConfig: ViteConfig = vite.mergeConfig(ctx.config, vite.mergeConfig({\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/nuxt/nuxt/commit/e2a6ad353d153c0c0c828521682f5fb9cb8e5c71", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " } satisfies vite.InlineConfig)\n } satisfies vite.InlineConfig, ctx.nuxt.options.vite.$client || {}))\n } satisfies vite.InlineConfig)\n } satisfies vite.InlineConfig, ctx.nuxt.options.vite.$server || {}))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/nuxt/nuxt/commit/e2a6ad353d153c0c0c828521682f5fb9cb8e5c71", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " uid.value = ssrHTML.value.match(SSR_UID_RE)?.[1] ?? randomUUID() as string\n uid.value = ssrHTML.value.match(SSR_UID_RE)?.[1] ?? getId() as string\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/nuxt/nuxt/commit/f94984e5cb6625fe4007e786cfb92ee32f6e37cf", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4, 5, 6 ] }, { "input": " return `nuxt-ssr-component-uid=\"${randomUUID()}\"`\n return `nuxt-ssr-component-uid=\"${getId()}\"`\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/nuxt/nuxt/commit/f94984e5cb6625fe4007e786cfb92ee32f6e37cf", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4, 5, 6 ] }, { "input": " const uid = ref(getFragmentHTML(instance.vnode?.el)[0]?.match(SSR_UID_RE)?.[1] ?? randomUUID())\n const uid = ref(getFragmentHTML(instance.vnode?.el)[0]?.match(SSR_UID_RE)?.[1] ?? getId())\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/nuxt/nuxt/commit/f94984e5cb6625fe4007e786cfb92ee32f6e37cf", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 5, 6 ] }, { "input": " .replace(UID_ATTR, () => `nuxt-ssr-component-uid=\"${randomUUID()}\"`)\n .replace(UID_ATTR, () => `nuxt-ssr-component-uid=\"${getId()}\"`)\n uid.value = ssrHTML.value.match(SSR_UID_RE)?.[1] ?? randomUUID() as string\n uid.value = ssrHTML.value.match(SSR_UID_RE)?.[1] ?? getId() as string\n return `nuxt-ssr-component-uid=\"${randomUUID()}\"`\n return `nuxt-ssr-component-uid=\"${getId()}\"`\n const uid = ref(getFragmentHTML(instance.vnode?.el)[0]?.match(SSR_UID_RE)?.[1] ?? randomUUID())\n const uid = ref(getFragmentHTML(instance.vnode?.el)[0]?.match(SSR_UID_RE)?.[1] ?? getId())\n uid.value = html.value.match(SSR_UID_RE)?.[1] ?? randomUUID() as string\n uid.value = html.value.match(SSR_UID_RE)?.[1] ?? getId() as string\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/nuxt/nuxt/commit/f94984e5cb6625fe4007e786cfb92ee32f6e37cf", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 4, 6 ] }, { "input": "import defu from 'defu'\nimport { defu } from 'defu'\nimport defu from 'defu'\nimport { defu } from 'defu'\nimport defu from 'defu'\nimport { defu } from 'defu'\nimport defu from 'defu'\nimport { defu } from 'defu'\nimport defu from 'defu'\nimport { defu } from 'defu'\nimport defu from 'defu'\nimport { defu } from 'defu'\nimport defu from 'defu'\nimport { defu } from 'defu'\nimport defu from 'defu'\nimport { defu } from 'defu'\nimport defu from 'defu'\nimport { defu } from 'defu'\n", "class": "clone", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/nuxt/nuxt/commit/5037dd687649645de04ef862f804d740ec79778c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " await callWithNuxt(nuxtApp, navigateTo, [route.fullPath])\n const event = await callWithNuxt(nuxtApp, useRequestEvent)\n const options = { redirectCode: event.node.res.statusCode !== 200 ? event.node.res.statusCode || 302 : 302 }\n await callWithNuxt(nuxtApp, navigateTo, [route.fullPath, options])\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nuxt/nuxt/commit/de4086f6edabefc1a46ee08a099c3065f24f6fe5", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " await callWithNuxt(nuxtApp, navigateTo, [currentURL])\n const event = await callWithNuxt(nuxtApp, useRequestEvent)\n const options = { redirectCode: event.node.res.statusCode !== 200 ? event.node.res.statusCode || 302 : 302 }\n await callWithNuxt(nuxtApp, navigateTo, [currentURL, options])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/nuxt/nuxt/commit/de4086f6edabefc1a46ee08a099c3065f24f6fe5", "target_edit_idx": 6, "propagatable_edit_idx": [ 4 ] }, { "input": " }, { default: () => h(Component, { key, routeProps, pageKey: key, hasTransition } as {}) })\n }, { default: () => h(RouteProvider, { key, routeProps, pageKey: key, hasTransition } as {}) })\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/0db3c6373a72e218baddfc3626695173da103a88", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "const Component = defineComponent({\nconst RouteProvider = defineComponent({\n name: 'RouteProvider',\n }, { default: () => h(Component, { key, routeProps, pageKey: key, hasTransition } as {}) })\n }, { default: () => h(RouteProvider, { key, routeProps, pageKey: key, hasTransition } as {}) })\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/0db3c6373a72e218baddfc3626695173da103a88", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " route: Route\n params: Route['params']\n query: Route['query']\n route: RouteLocationNormalized\n params: RouteLocationNormalized['params']\n query: RouteLocationNormalized['query']\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/nuxt/nuxt/commit/56aabd606d341989c214de30f9cb5f28a22f9fbc", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " from: Route /** TODO: */\n from: RouteLocationNormalized /** TODO: */\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/56aabd606d341989c214de30f9cb5f28a22f9fbc", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " redirect (status: number, path: string, query?: Route['query']): void\n redirect (path: string, query?: Route['query']): void\n redirect (status: number, path: string, query?: RouteLocationNormalized['query']): void\n redirect (path: string, query?: RouteLocationNormalized['query']): void\n route: Route\n params: Route['params']\n query: Route['query']\n route: RouteLocationNormalized\n params: RouteLocationNormalized['params']\n query: RouteLocationNormalized['query']\n from: Route /** TODO: */\n from: RouteLocationNormalized /** TODO: */\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/nuxt/nuxt/commit/56aabd606d341989c214de30f9cb5f28a22f9fbc", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " ResT = FetchResult,\n Transform extends (res: ResT) => any = (res: ResT) => ResT,\n _ResT = ResT extends void ? FetchResult : ResT,\n Transform extends (res: _ResT) => any = (res: _ResT) => _ResT,\n ResT = FetchResult,\n Transform extends (res: ResT) => any = (res: ResT) => ResT,\n _ResT = ResT extends void ? FetchResult : ResT,\n Transform extends (res: _ResT) => any = (res: _ResT) => _ResT,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/nuxt/nuxt/commit/77aeaa3288f90bdeb1d34c373e9a3a05a8b31970", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " opts: UseFetchOptions = {}\n opts: UseFetchOptions<_ResT, Transform, PickKeys> = {}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/77aeaa3288f90bdeb1d34c373e9a3a05a8b31970", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " return useAsyncData(opts.key, () => $fetch(url, opts) as Promise, opts)\n return useAsyncData(opts.key, () => $fetch(url, opts) as Promise<_ResT>, opts)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/77aeaa3288f90bdeb1d34c373e9a3a05a8b31970", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 6 ] }, { "input": " opts: Omit, 'lazy'> = {}\n opts: Omit, 'lazy'> = {}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nuxt/nuxt/commit/77aeaa3288f90bdeb1d34c373e9a3a05a8b31970", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " meta: Array>\n meta?: Array>\n link: Array>\n link?: Array>\n style: Array>\n style?: Array>\n script: Array>\n script?: Array>\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/nuxt/nuxt/commit/834532bf71439338b179b0a633f5446c58181d9a", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " (\n (\n (\n (\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/remix-run/react-router/commit/f01aa3feef5c9ccaaf89c0d631fd4a4431a8d7d3", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " const router = createRouterObject(history, this.transitionManager)\n\n return {\n ...router,\n location: state.location,\n params: state.params\n }\n return createRouterObject(history, this.transitionManager, state)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/remix-run/react-router/commit/a76efddfa20945807a422ac88860b7108f0cf4d5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": " router = createRouterObject(history, transitionManager)\n router = createRouterObject(history, transitionManager, {})\n const router = createRouterObject(history, this.transitionManager)\n\n return {\n ...router,\n location: state.location,\n params: state.params\n }\n return createRouterObject(history, this.transitionManager, state)\nexport function createRouterObject(history, transitionManager) {\nexport function createRouterObject(history, transitionManager, state) {\n const router = {\n ...createRouterObject(history, transitionManager),\n location: nextState.location,\n params: nextState.params\n }\n\n const router = createRouterObject(history, transitionManager, nextState)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/remix-run/react-router/commit/a76efddfa20945807a422ac88860b7108f0cf4d5", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": " const router = {\n ...createRouterObject(history, transitionManager),\n location: nextState.location,\n params: nextState.params\n }\n\n const router = createRouterObject(history, transitionManager, nextState)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/remix-run/react-router/commit/a76efddfa20945807a422ac88860b7108f0cf4d5", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " window.location.hash = encodeURI(path);\n window.location.hash = path;\n window.location = encodeURI(path);\n window.location = path;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/remix-run/react-router/commit/db2607d4d33322acb2c77c8906068015f2254c12", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " window.history.pushState({ path: path }, '', encodeURI(path));\n window.history.pushState({ path: path }, '', path);\n window.history.replaceState({ path: path }, '', encodeURI(path));\n window.history.replaceState({ path: path }, '', path);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/remix-run/react-router/commit/db2607d4d33322acb2c77c8906068015f2254c12", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "import { shoudUseCloseWatcher } from '@utils/hardware-back-button';\nimport { shouldUseCloseWatcher } from '@utils/hardware-back-button';\n const supportsHardwareBackButtonEvents = isHybrid || shoudUseCloseWatcher();\n const supportsHardwareBackButtonEvents = isHybrid || shouldUseCloseWatcher();\n if (shoudUseCloseWatcher()) {\n if (shouldUseCloseWatcher()) {\nimport { shoudUseCloseWatcher } from '@utils/hardware-back-button';\nimport { shouldUseCloseWatcher } from '@utils/hardware-back-button';\n onKeyDown={shoudUseCloseWatcher() ? null : this.onKeydown}\n onKeyDown={shouldUseCloseWatcher() ? null : this.onKeydown}\nexport const shoudUseCloseWatcher = () =>\nexport const shouldUseCloseWatcher = () =>\n if (shoudUseCloseWatcher()) {\n if (shouldUseCloseWatcher()) {\nimport { shoudUseCloseWatcher } from '@utils/hardware-back-button';\nimport { shouldUseCloseWatcher } from '@utils/hardware-back-button';\n if (!shoudUseCloseWatcher()) {\n if (!shouldUseCloseWatcher()) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/487ffca11e01100517e030b401367f46b0d8cda4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " const supportsHardwareBackButtonEvents = isHybrid || shoudUseCloseWatcher();\n const supportsHardwareBackButtonEvents = isHybrid || shouldUseCloseWatcher();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/487ffca11e01100517e030b401367f46b0d8cda4", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " if (shoudUseCloseWatcher()) {\n if (shouldUseCloseWatcher()) {\nimport { shoudUseCloseWatcher } from '@utils/hardware-back-button';\nimport { shouldUseCloseWatcher } from '@utils/hardware-back-button';\n const supportsHardwareBackButtonEvents = isHybrid || shoudUseCloseWatcher();\n const supportsHardwareBackButtonEvents = isHybrid || shouldUseCloseWatcher();\nimport { shoudUseCloseWatcher } from '@utils/hardware-back-button';\nimport { shouldUseCloseWatcher } from '@utils/hardware-back-button';\n onKeyDown={shoudUseCloseWatcher() ? null : this.onKeydown}\n onKeyDown={shouldUseCloseWatcher() ? null : this.onKeydown}\nexport const shoudUseCloseWatcher = () =>\nexport const shouldUseCloseWatcher = () =>\n if (shoudUseCloseWatcher()) {\n if (shouldUseCloseWatcher()) {\nimport { shoudUseCloseWatcher } from '@utils/hardware-back-button';\nimport { shouldUseCloseWatcher } from '@utils/hardware-back-button';\n if (!shoudUseCloseWatcher()) {\n if (!shouldUseCloseWatcher()) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/487ffca11e01100517e030b401367f46b0d8cda4", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8 ] }, { "input": "export const shoudUseCloseWatcher = () =>\nexport const shouldUseCloseWatcher = () =>\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/487ffca11e01100517e030b401367f46b0d8cda4", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8 ] }, { "input": " if (shoudUseCloseWatcher()) {\n if (shouldUseCloseWatcher()) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/487ffca11e01100517e030b401367f46b0d8cda4", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8 ] }, { "input": "import { shoudUseCloseWatcher } from '@utils/hardware-back-button';\nimport { shouldUseCloseWatcher } from '@utils/hardware-back-button';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/487ffca11e01100517e030b401367f46b0d8cda4", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8 ] }, { "input": " this.el.dispatchEvent(new CustomEvent('ionInputDidLoad', {\n document.dispatchEvent(new CustomEvent('ionInputDidLoad', {\n this.el.dispatchEvent(new CustomEvent('ionInputDidLoad', {\n document.dispatchEvent(new CustomEvent('ionInputDidLoad', {\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/d3d7de121be7bc69e5bbf4667158e5c5f945a925", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "export class RouteManager extends React.Component {\nexport class RouteManager extends React.Component {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/28aa5eed94ec92bd893b7d3c64e8f8a098e1987c", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " constructor(props: RouteComponentProps) {\n constructor(props: RouteManagerProps) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/28aa5eed94ec92bd893b7d3c64e8f8a098e1987c", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " importTapClick(this.win);\n importInputShims(this.win, this.config);\n importStatusTap(this.win, this.queue);\n importHardwareBackButton(this.win);\n const { win, config, queue } = this;\n\n importTapClick(win);\n importInputShims(win, config);\n importStatusTap(win, config, queue);\n importHardwareBackButton(win, config);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/c048f9fda28f14055aca0af05ec1f78ba9d98f8a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "function importStatusTap(win: Window, queue: QueueApi) {\n if (isPlatform(win, 'hybrid')) {\nfunction importStatusTap(win: Window, config: Config, queue: QueueApi) {\n const statusTap = config.getBoolean('statusTap', isPlatform(win, 'hybrid'));\n if (statusTap) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/c048f9fda28f14055aca0af05ec1f78ba9d98f8a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " return isRightSide(this.side, this._plt.isRTL);\n return isRightSide(this.side, this._plt.isRTL, true);\nexport function isRightSide(side: Side, isRTL: boolean): boolean {\n/**\n * @hidden\n * Given a side, return if it should be on the right\n * based on the value of dir\n * @param side the side\n * @param isRTL whether the application dir is rtl\n * @param defaultRight whether the default side is right\n */\nexport function isRightSide(side: Side, isRTL: boolean, defaultRight: boolean = false): boolean {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/7bcf5a05f70b015196e82e1d338132dac83638e0", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " this.navCtrl.push(PrimaryHeaderPage).then(() => {}, (rejectReason: string) => {\n this.navCtrl.push(PrimaryHeaderPage, null, {\n animate: true,\n animation: 'ios-transition'\n }).then(() => { }, (rejectReason: string) => {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.18181818181818182, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/fcc515f5d707d6c537267ccd28e1b9fa76e0bed9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " this.navCtrl.push(FullPage, { id: 8675309, myData: [1, 2, 3, 4] }).catch(() => {\n this.navCtrl.push(FullPage, { id: 8675309, myData: [1, 2, 3, 4] }, {\n animate: true,\n animation: 'md-transition'\n }).catch(() => {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.18181818181818182, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/fcc515f5d707d6c537267ccd28e1b9fa76e0bed9", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " this.navCtrl.push(AnotherPage).catch(() => {\n this.navCtrl.push(AnotherPage, null, {\n animate: true,\n animation: 'wp-transition'\n }).catch(() => {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.18181818181818182, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/fcc515f5d707d6c537267ccd28e1b9fa76e0bed9", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " /**\n * @private\n */\n setCssStyle(property: string, value: string) {\n this._renderer.setElementStyle(this._elementRef.nativeElement, property, value);\n }\n\n\n /**\n * @private\n */\n _setCssStyle(property: string, value: string) {\n this._renderer.setElementStyle(this._elementRef.nativeElement, property, value);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/47491fb55dadcabf0cc681ded95b4049d93d5ff1", "target_edit_idx": 2, "propagatable_edit_idx": [ 10 ] }, { "input": " this._setCssClass('item-wrapper', true);\n this.setElementClass('item-wrapper', true);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/47491fb55dadcabf0cc681ded95b4049d93d5ff1", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 9, 11, 12 ] }, { "input": " this._rightOptions.ionSwipe.emit(this);\n this._zone.run(() => this._rightOptions.ionSwipe.emit(this));\n this._leftOptions.ionSwipe.emit(this);\n this._zone.run(() => this._leftOptions.ionSwipe.emit(this));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/47491fb55dadcabf0cc681ded95b4049d93d5ff1", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " this._setCssClass('active-slide', (state !== SlidingState.Disabled));\n this._setCssClass('active-options-right', !!(state & SlidingState.Right));\n this._setCssClass('active-options-left', !!(state & SlidingState.Left));\n this._setCssClass('active-swipe-right', !!(state & SlidingState.SwipeRight));\n this._setCssClass('active-swipe-left', !!(state & SlidingState.SwipeLeft));\n this.setElementClass('active-slide', (state !== SlidingState.Disabled));\n this.setElementClass('active-options-right', !!(state & SlidingState.Right));\n this.setElementClass('active-options-left', !!(state & SlidingState.Left));\n this.setElementClass('active-swipe-right', !!(state & SlidingState.SwipeRight));\n this.setElementClass('active-swipe-left', !!(state & SlidingState.SwipeLeft));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/47491fb55dadcabf0cc681ded95b4049d93d5ff1", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 11, 4, 12 ] }, { "input": " _setCssClass(cssClass: string, shouldAdd: boolean) {\n setElementClass(cssClass: string, shouldAdd: boolean) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/47491fb55dadcabf0cc681ded95b4049d93d5ff1", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 11, 4, 12 ] }, { "input": " constructor(nav: NavController) {\n this.nav = nav;\n }\n constructor(private nav: NavController) {}\n\n constructor(nav: NavController) {\n this.nav = nav;\n }\n constructor(private nav: NavController) {}\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/f5f4169db01f6c9a7ef24249a66440eff3f14e9a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " let rootNav = this.rootNav;\n let nav = this.rootNav;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/4bc6d8a6afef04fd9efd6c049209f59f46a1efcd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " enteringView.setNav(rootNav);\n if (nav._tabs) {\n // TODO: must have until this goes in\n // https://github.com/angular/angular/issues/5481\n console.error('A parent is required for ActionSheet/Alert/Modal');\n return;\n }\n\n enteringView.setNav(nav);\n let rootNav = this.rootNav;\n let nav = this.rootNav;\n let leavingView = rootNav.getActive() || new ViewController();\n let leavingView = nav.getActive() || new ViewController();\n rootNav._add(enteringView);\n nav._add(enteringView);\n rootNav._transition(enteringView, leavingView, opts, resolve);\n nav._transition(enteringView, leavingView, opts, resolve);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/4bc6d8a6afef04fd9efd6c049209f59f46a1efcd", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": " let leavingView = rootNav.getActive() || new ViewController();\n let leavingView = nav.getActive() || new ViewController();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/4bc6d8a6afef04fd9efd6c049209f59f46a1efcd", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4 ] }, { "input": " rootNav._transition(enteringView, leavingView, opts, resolve);\n nav._transition(enteringView, leavingView, opts, resolve);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/4bc6d8a6afef04fd9efd6c049209f59f46a1efcd", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " '[attr.tab-index]': 'tabIndex',\n '[tabindex]': 'tabIndex',\n '[attr.tab-index]': 'tabIndex',\n '[tabindex]': 'tabIndex',\n '[attr.tab-index]': 'tabIndex',\n '[tabindex]': 'tabIndex',\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/80b2579609eb552e279cee453de5bd84d7c96a20", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " super(hostNavCtrl, app, config, keyboard, elementRef, compiler, viewManager, zone, renderer, cd);\n super(hostNavCtrl, app, config, keyboard, elementRef, 'contents', compiler, viewManager, zone, renderer, cd);\n super(null, app, config, keyboard, elementRef, compiler, viewManager, zone, renderer, cd);\n super(null, app, config, keyboard, elementRef, null, compiler, viewManager, zone, renderer, cd);\n super(parentTabs, app, config, keyboard, elementRef, compiler, viewManager, zone, renderer, cd);\n super(parentTabs, app, config, keyboard, elementRef, 'contents', compiler, viewManager, zone, renderer, cd);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/ed5328939acc8a8ba94c3c4768a20322bc29a239", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 10 ] }, { "input": " super(parentTabs, app, config, keyboard, elementRef, compiler, viewManager, zone, renderer, cd);\n super(parentTabs, app, config, keyboard, elementRef, 'contents', compiler, viewManager, zone, renderer, cd);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ionic-team/ionic-framework/commit/ed5328939acc8a8ba94c3c4768a20322bc29a239", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " // $ExpectType Config, Context>\n // $ExpectType Config, Context> || Config\n // $ExpectType Config, Context>\n // $ExpectType Config, Context> || Config\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/6b0c1a9dfab7b5fba94e627a83829036f21f957b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "Comments.find({ $or: [ \n { text: \"hello\" }, \n { text: \"world\", viewNumber: { $gt: 0 } } \nComments.find({ $or: [\n { text: \"hello\" },\n { text: \"world\", viewNumber: { $gt: 0 } }\nComments.find({ $or: [ \n { text: \"hello\" }, \n { text: \"world\", viewNumber: { $gt: 0 } } \nComments.find({ $or: [\n { text: \"hello\" },\n { text: \"world\", viewNumber: { $gt: 0 } }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/48eba801e2af7ea945f8f4cd06d247b2890889ac", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "Comments.find({ $and: [ \n { $or: [{ authorId: \"author-id-1\" }, { authorId: \"author-id-2\" }] }, \nComments.find({ $and: [\n { $or: [{ authorId: \"author-id-1\" }, { authorId: \"author-id-2\" }] },\nComments.find({ $and: [ \n { $or: [{ authorId: \"author-id-1\" }, { authorId: \"author-id-2\" }] }, \nComments.find({ $and: [\n { $or: [{ authorId: \"author-id-1\" }, { authorId: \"author-id-2\" }] },\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/48eba801e2af7ea945f8f4cd06d247b2890889ac", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "Comments.find({ inlineLinks: { $elemMatch: { \n objectType: InlineObjectType.Image, \n objectUrl: { $regex: \"https://(www\\.?)youtube\\.com\" } \nComments.find({ inlineLinks: { $elemMatch: {\n objectType: InlineObjectType.Image,\n objectUrl: { $regex: \"https://(www\\.?)youtube\\.com\" }\nComments.find({ inlineLinks: { $elemMatch: { \n objectType: InlineObjectType.Image, \n objectUrl: { $regex: \"https://(www\\.?)youtube\\.com\" } \nComments.find({ inlineLinks: { $elemMatch: {\n objectType: InlineObjectType.Image,\n objectUrl: { $regex: \"https://(www\\.?)youtube\\.com\" }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/48eba801e2af7ea945f8f4cd06d247b2890889ac", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tsetupVim(CodeMirror);\n\t\tsetupVim(CodeMirror, null);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/laurent22/joplin/commit/3fbb3b6b82dc13349f19b988e883a1ab2d19e128", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tsetupVim(editor);\n\t\tsetupVim(editor, {\n\t\t\tsync: () => {\n\t\t\t\tvoid CommandService.instance().execute('synchronize');\n\t\t\t},\n\t\t});\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/laurent22/joplin/commit/3fbb3b6b82dc13349f19b988e883a1ab2d19e128", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tconst smAdditional = getTextWidth(newNoteRef, _('note')) > getTextWidth(newNoteRef, _('to-do')) ? getTextWidth(newNoteRef, _('note')) : getTextWidth(newNoteRef, _('to-do'));\n\t\tconst mdAdditional = getTextWidth(newNoteRef, _('New note')) > getTextWidth(newNoteRef, _('New to-do')) ? getTextWidth(newNoteRef, _('New note')) : getTextWidth(newNoteRef, _('New to-do'));\n\t\tconst smAdditional = getTextWidth(newNoteButtonElement, _('note')) > getTextWidth(newNoteButtonElement, _('to-do')) ? getTextWidth(newNoteButtonElement, _('note')) : getTextWidth(newNoteButtonElement, _('to-do'));\n\t\tconst mdAdditional = getTextWidth(newNoteButtonElement, _('New note')) > getTextWidth(newNoteButtonElement, _('New to-do')) ? getTextWidth(newNoteButtonElement, _('New note')) : getTextWidth(newNoteButtonElement, _('New to-do'));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/laurent22/joplin/commit/310a90744a34bd81897e78287e4f081c5b6f8283", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t}, [newNoteRef, showNewNoteButton, widthHasChanged]);\n\t}, [newNoteButtonElement, showNewNoteButton, widthHasChanged]);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/310a90744a34bd81897e78287e4f081c5b6f8283", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": "import { CodeMirrorContentScriptModule, ContentScriptContext } from 'api/types';\nimport { MarkdownEditorContentScriptModule, ContentScriptContext } from 'api/types';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/4c6969b17d2babc4c0885903d66ffc7c5fbefb88", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": "export default (_context: ContentScriptContext): CodeMirrorContentScriptModule => {\nexport default (_context: ContentScriptContext): MarkdownEditorContentScriptModule => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/4c6969b17d2babc4c0885903d66ffc7c5fbefb88", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/9b9762f940dd58b5498a144ca4f51b58dc9a60ca", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "export async function getNetworkTime(): Promise {\nconst parseNtpServer = (ntpServer: string): NtpServer => {\n\tconst s = ntpServer.split(':');\n\tif (s.length !== 2) throw new Error('NTP server URL must be in format `domain:port`');\n\treturn {\n\t\tdomain: s[0],\n\t\tport: Number(s[1]),\n\t};\n};\n\nexport async function getNetworkTime(ntpServer: string): Promise {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/33f0811ad2492def84949ebb824baff6991bd771", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tntpTime = await getNetworkTime();\n\t\t\tntpTime = await getNetworkTime(ntpServer);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/33f0811ad2492def84949ebb824baff6991bd771", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tconst timeDrift = await getDeviceTimeDrift();\n\t\t\tappLogger().info(`Checking for time drift using NTP server: ${config().NTP_SERVER}`);\n\t\t\tconst timeDrift = await getDeviceTimeDrift(config().NTP_SERVER);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/laurent22/joplin/commit/33f0811ad2492def84949ebb824baff6991bd771", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\tshared.init(this);\n\t\tshared.init(this, reg);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/laurent22/joplin/commit/ff066baa2698e01af0d3dd24857f3d6751456c42", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "function createPrefixTokens(Token: any, id: string, checked: boolean, label: string, postMessageSyntax: string, sourceToken: any): any[] {\nfunction createPrefixTokens(Token: any, id: string, checked: boolean, label: string, postMessageSyntax: string, sourceToken: any, disabled: boolean): any[] {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/cb637e817b3c03509cc4c921448cce5f267f19e5", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\t\tconst prefix = createPrefixTokens(Token, id, checked, label, options.postMessageSyntax, token);\n\t\t\t\t\tconst prefix = createPrefixTokens(Token, id, checked, label, options.postMessageSyntax, token, !!options.checkboxDisabled);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/cb637e817b3c03509cc4c921448cce5f267f19e5", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\t\treg.logger().info('Not authentified with sync target - please check your credential.');\n\t\t\t\treg.logger().error('Not authenticated with sync target - please check your credentials.');\n\t\treg.logger().info('Not authentified with sync target - please check your credential.');\n\t\treg.logger().error('Not authenticated with sync target - please check your credentials.');\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/laurent22/joplin/commit/9684b38f7e8c9a304a541039db4f4e2d03ba9f77", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\treg.logger().info('Could not acquire synchroniser:');\n\t\t\t\treg.logger().info(error);\n\t\t\t\treg.logger().error('Could not initialise synchroniser: ');\n\t\t\t\treg.logger().error(error);\n\t\t\t\terror.message = `Could not initialise synchroniser: ${error.message}`;\n\t\t\t\tutils.store.dispatch({\n\t\t\t\t\ttype: 'SYNC_REPORT_UPDATE',\n\t\t\t\t\treport: { errors: [error] },\n\t\t\t\t});\n\t\treg.logger().info('Could not acquire synchroniser:');\n\t\treg.logger().info(error);\n\t\treg.logger().error('Could not initialise synchroniser: ');\n\t\treg.logger().error(error);\n\t\terror.message = `Could not initialise synchroniser: ${error.message}`;\n\t\tcomp.props.dispatch({\n\t\t\ttype: 'SYNC_REPORT_UPDATE',\n\t\t\treport: { errors: [error] },\n\t\t});\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/laurent22/joplin/commit/9684b38f7e8c9a304a541039db4f4e2d03ba9f77", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\t\t\t\tmappedResources[imageSrc] = `file://${Resource.fullPath(createdResource)}`;\n\t\t\t\t\t\tmappedResources[imageSrc] = `file://${escape(Resource.fullPath(createdResource))}`;\n\t\t\t\t\tmappedResources[imageSrc] = `file://${Resource.fullPath(createdResource)}`;\n\t\t\t\t\tmappedResources[imageSrc] = `file://${escape(Resource.fullPath(createdResource))}`;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/laurent22/joplin/commit/4ea21e0c329a1cd039678c9c12c15a151d7b7aca", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "shimInit(null, keytar);\nshimInit(null, keytar, React);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/laurent22/joplin/commit/65962e26ce3bfea7381ba7c4eb7b9dcf0db54234", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "function shimInit(sharp = null, keytar = null) {\nfunction shimInit(sharp = null, keytar = null, React = null) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/laurent22/joplin/commit/65962e26ce3bfea7381ba7c4eb7b9dcf0db54234", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\t// eslint-disable-next-line require-atomic-updates\n\t\t\t// eslint-disable-next-line require-atomic-updates\n\t\t\t// eslint-disable-next-line require-atomic-updates\n\t\t\t// eslint-disable-next-line require-atomic-updates\n\t\t\t// eslint-disable-next-line require-atomic-updates\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/d209d5036b71ea1608473accd7f27decf739ab41", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": "\tawait fs.remove(destDir);\n\tawait fs.mkdirp(destDir);\n\tawait fs.copy(sourceDir, destDir);\n\tawait utils.copyDir(sourceDir, destDir);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/laurent22/joplin/commit/5143870d3b3132d15e6d8ecc83b284f1d36a4ce2", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": "\tawait fs.mkdirp(dest);\n\tawait utils.mkdir(dest);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/laurent22/joplin/commit/5143870d3b3132d15e6d8ecc83b284f1d36a4ce2", "target_edit_idx": 8, "propagatable_edit_idx": [ 4 ] }, { "input": "\t// Gets the first non-whitespace token locationof a list\n\tfunction getListSpan(listTokens: any) {\n\t// Gets the character coordinates of the start and end of a list token\n\tfunction getListSpan(listTokens: any, line: string) {\n\t\t\t\t\tconst { start, end } = getListSpan(tokens);\n\t\t\t\t\tconst { start, end } = getListSpan(tokens, line);\n\t\t\t\tconst { start, end } = getListSpan(tokens);\n\t\t\t\tconst { start, end } = getListSpan(tokens, line);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/a4b13be0d1e8a6440f748f04ddece83f3dff041f", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "\t\t\t\t\tconst { start, end } = getListSpan(tokens);\n\t\t\t\t\tconst { start, end } = getListSpan(tokens, line);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/a4b13be0d1e8a6440f748f04ddece83f3dff041f", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4 ] }, { "input": "\t\tconst r = await Note.noteIsOlderThan(noteId, this.installedTime());\n\t\tthis.isOldNotesCache_[noteId] = r;\n\t\treturn r;\n\t\tconst isOld = await Note.noteIsOlderThan(noteId, this.oldNoteCutOffDate_());\n\t\tthis.isOldNotesCache_[noteId] = isOld;\n\t\treturn isOld;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/laurent22/joplin/commit/78372c9bac7a247a2babaef2858b4ad2735ceaa4", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\t\t\t\t\t\tif (oldNote && oldNote.updated_time < this.installedTime()) {\n\t\t\t\t\t\t\tif (oldNote && oldNote.updated_time < this.oldNoteCutOffDate_()) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/78372c9bac7a247a2babaef2858b4ad2735ceaa4", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\tbody = body.replace(new RegExp(':/' + id, 'gi'), toSystemSlashes(Resource.fullPath(resource)));\n\t\t\tbody = body.replace(new RegExp(':/' + id, 'gi'), toFileProtocolPath(Resource.fullPath(resource)));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/220f5d096773d246a75171cf737c7336138a8773", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tconst reString = pregQuote(toSystemSlashes(Resource.baseDirectoryPath() + '/')) + '[a-zA-Z0-9\\.]+';\n\t\tconst reString = pregQuote(toFileProtocolPath(Resource.baseDirectoryPath() + '/')) + '[a-zA-Z0-9\\.]+';\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/laurent22/joplin/commit/220f5d096773d246a75171cf737c7336138a8773", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tconst fileApi = await SyncTargetWebDAV.initFileApi_({\n\t\tconst fileApi = await SyncTargetWebDAV.initFileApi_(SyncTargetNextcloud.id(), {\n\t\tconst fileApi = await SyncTargetWebDAV.initFileApi_({\n\t\tconst fileApi = await SyncTargetWebDAV.initFileApi_(SyncTargetWebDAV.id(), {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/laurent22/joplin/commit/9347683fe3dffd46c94a1118b23a009fc1fdba2f", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " return _wherePk(this.model.primaryKeys, id);\n return _wherePk(this.model.primaryKeys, id, skipPkValidation);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0196078431372549, "commit_url": "https://github.com/nocodb/nocodb/commit/2759f1982ae7f66fb2a2a71f216aa98a6bb478ea", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "export function _wherePk(primaryKeys: Column[], id: unknown | unknown[]) {\nexport function _wherePk(\n primaryKeys: Column[],\n id: unknown | unknown[],\n skipPkValidation = false,\n) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0196078431372549, "commit_url": "https://github.com/nocodb/nocodb/commit/2759f1982ae7f66fb2a2a71f216aa98a6bb478ea", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " where[pk.column_name] = id[pk.id];\n key = pk.id;\n where[pk.column_name] = id[pk.title];\n key = pk.title;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nocodb/nocodb/commit/2759f1982ae7f66fb2a2a71f216aa98a6bb478ea", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " const column = await filter.getColumn();\n const column = await getRefColumnIfAlias(await filter.getColumn());\n\n const column = await filter.getColumn();\n const column = await getRefColumnIfAlias(await filter.getColumn());\n const column = await sort.getColumn();\n const column = await getRefColumnIfAlias(await sort.getColumn());\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nocodb/nocodb/commit/0361122875458ba6ee937428097764287e9b9a71", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " return { ast, dependencyFields };\n return { ast, dependencyFields, parsedQuery: query };\n return { ast, dependencyFields };\n return { ast, dependencyFields, parsedQuery: dependencyFields };\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/nocodb/nocodb/commit/267d616161943287fb1e126a2ca144de207b49a3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " (await NcPluginMgrv2.emailAdapter())?.mailSend({\n (await NcPluginMgrv2.emailAdapter(false))?.mailSend({\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nocodb/nocodb/commit/3df67a7f5178e14dc45f262d358316a5313865d1", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " await NcPluginMgrv2.emailAdapter()\n await NcPluginMgrv2.emailAdapter(false)\n (await NcPluginMgrv2.emailAdapter())?.mailSend({\n (await NcPluginMgrv2.emailAdapter(false))?.mailSend({\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nocodb/nocodb/commit/3df67a7f5178e14dc45f262d358316a5313865d1", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " setupArgs = request[3];\n setupArgs = init[3];\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/jestjs/jest/commit/2742333fc8c8c4e878a33320ba65ebb762c56766", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " setupArgs = request[3];\n process.env.JEST_WORKER_ID = request[4];\n setupArgs = init[3];\n process.env.JEST_WORKER_ID = init[4];\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/jestjs/jest/commit/2742333fc8c8c4e878a33320ba65ebb762c56766", "target_edit_idx": 11, "propagatable_edit_idx": [ 10 ] }, { "input": " expectedType() {\n getExpectedType() {\n expectedType() {\n getExpectedType() {\n expectedType() {\n getExpectedType() {\n expectedType() {\n getExpectedType() {\n expectedType() {\n getExpectedType() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/jestjs/jest/commit/04b2ce5a44abb6fec03dfc41af53d6358eadd626", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": " promise = HasteModuleLoader.loadResourceMap(CONFIG).then(function(map) {\n return HasteModuleLoader.loadResourceMap(CONFIG).then(function(map) {\n promise = HasteModuleLoader.loadResourceMap(config).then(function(map) {\n return HasteModuleLoader.loadResourceMap(config).then(function(map) {\n promise = HasteModuleLoader.loadResourceMap(CONFIG).then(function(map) {\n return HasteModuleLoader.loadResourceMap(CONFIG).then(function(map) {\n promise = HasteModuleLoader.loadResourceMap(CONFIG).then(function(map) {\n return HasteModuleLoader.loadResourceMap(CONFIG).then(function(map) {\n promise = HasteModuleLoader.loadResourceMap(CONFIG).then(function(map) {\n return HasteModuleLoader.loadResourceMap(CONFIG).then(function(map) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/jestjs/jest/commit/6ce50ca18449e92035e448c66636943de2934bbc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": "import { ErrorReporterProxy, NodeError } from 'n8n-workflow';\nimport { ErrorReporterProxy, ExecutionBaseError } from 'n8n-workflow';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/n8n-io/n8n/commit/ebce6fe1b022fd259c00f7e1544a9e97e5f108e8", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tif (originalException instanceof NodeError && originalException.severity === 'warning')\n\t\tif (originalException instanceof ExecutionBaseError && originalException.severity === 'warning')\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/n8n-io/n8n/commit/ebce6fe1b022fd259c00f7e1544a9e97e5f108e8", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "import { BASE_URL, N8N_AUTH_COOKIE } from '../constants';\nimport { BACKEND_BASE_URL, N8N_AUTH_COOKIE } from '../constants';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/n8n-io/n8n/commit/710421fcc3516ff1f9187777aa4e050e1157bf1a", "target_edit_idx": 1, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "import { BASE_URL, INSTANCE_MEMBERS, INSTANCE_OWNER } from '../constants';\nimport { BACKEND_BASE_URL, INSTANCE_MEMBERS, INSTANCE_OWNER } from '../constants';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/n8n-io/n8n/commit/710421fcc3516ff1f9187777aa4e050e1157bf1a", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 6 ] }, { "input": "\tcy.request('POST', `${BASE_URL}/rest/e2e/reset`, {\n\tcy.request('POST', `${BACKEND_BASE_URL}/rest/e2e/reset`, {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/n8n-io/n8n/commit/710421fcc3516ff1f9187777aa4e050e1157bf1a", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 5 ] }, { "input": "\t\tawait queryRunner.query(`VACUUM;`);\n\t\tawait queryRunner.query(`VACUUM;`);\n\t\tawait queryRunner.query(`VACUUM;`);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/n8n-io/n8n/commit/62cce2e518451f6057e316208828539f26868c18", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 3 ] }, { "input": "\t\tawait queryRunner.query('PRAGMA foreign_keys=OFF');\n\n\t\tawait queryRunner.query('PRAGMA foreign_keys=OFF');\n\n\t\tawait queryRunner.query('PRAGMA foreign_keys=ON');\n\t\tawait queryRunner.query('PRAGMA foreign_keys=OFF');\n\n\n\t\tawait queryRunner.query('PRAGMA foreign_keys=ON');\n", "class": "clone", "binary_label": 1, "regression_label": 0.2727272727272727, "commit_url": "https://github.com/n8n-io/n8n/commit/62cce2e518451f6057e316208828539f26868c18", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 5, 6, 7 ] }, { "input": "import type { Point } from '../../maths/point/Point';\nimport type { PointLike } from '../../maths/point/PointLike';\nimport type { PointLike } from '../../maths/point/PointLike';\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/pixijs/pixijs/commit/8b72b0086b34a040c0053baa7c0bdb266ef8b6c5", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " get anchor(): PointLike\n get anchor(): ObservablePoint\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pixijs/pixijs/commit/8b72b0086b34a040c0053baa7c0bdb266ef8b6c5", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " image.src = await this.base64(target, format, quality);\n image.src = await this.base64(target, format, quality, frame);\n image.src = await this.base64(target, format, quality);\n image.src = await this.base64(target, format, quality, frame);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pixijs/pixijs/commit/a0386bcf4c357583acd7aee14b9e087fc8789ec7", "target_edit_idx": 2, "propagatable_edit_idx": [ 9 ] }, { "input": " public async base64(target?: DisplayObject | RenderTexture, format?: string, quality?: number): Promise\n public async base64(target?: DisplayObject | RenderTexture, format?: string, quality?: number,\n frame?: Rectangle): Promise\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pixijs/pixijs/commit/a0386bcf4c357583acd7aee14b9e087fc8789ec7", "target_edit_idx": 4, "propagatable_edit_idx": [ 11 ] }, { "input": " const canvas = this.canvas(target);\n const canvas = this.canvas(target, frame);\n const canvas = this.canvas(target);\n const canvas = this.canvas(target, frame);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pixijs/pixijs/commit/a0386bcf4c357583acd7aee14b9e087fc8789ec7", "target_edit_idx": 5, "propagatable_edit_idx": [ 12 ] }, { "input": " public async image(target?: DisplayObject | RenderTexture, format?: string, quality?: number): Promise\n public async image(target?: DisplayObject | RenderTexture, format?: string, quality?: number,\n frame?: Rectangle): Promise\n public async image(target?: DisplayObject | RenderTexture, format?: string, quality?: number): Promise\n public async image(target?: DisplayObject | RenderTexture, format?: string, quality?: number,\n frame?: Rectangle): Promise\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pixijs/pixijs/commit/a0386bcf4c357583acd7aee14b9e087fc8789ec7", "target_edit_idx": 8, "propagatable_edit_idx": [ 1 ] }, { "input": " image.src = await this.base64(target, format, quality);\n image.src = await this.base64(target, format, quality, frame);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pixijs/pixijs/commit/a0386bcf4c357583acd7aee14b9e087fc8789ec7", "target_edit_idx": 9, "propagatable_edit_idx": [ 2 ] }, { "input": " get view(): ICanvas\n get view(): VIEW\n readonly view: ICanvas\n readonly view: VIEW\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pixijs/pixijs/commit/814094fd40b72f709db9af29c0dc14815d638941", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " readonly view: ICanvas\n readonly view: VIEW\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pixijs/pixijs/commit/814094fd40b72f709db9af29c0dc14815d638941", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " data.type === 'float' && data.size === 1,\n data.type === 'float' && data.size === 1 && !data.isArray,\n data.type === 'vec2' && data.size === 1,\n data.type === 'vec2' && data.size === 1 && !data.isArray,\n data.type === 'vec4' && data.size === 1,\n data.type === 'vec4' && data.size === 1 && !data.isArray,\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/pixijs/pixijs/commit/3a32bbd3a3bba14de1b90079aef98c1764042efe", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " data.type === 'mat3' && data.size === 1 && uniform.a !== undefined,\n data.type === 'mat3' && data.size === 1 && !data.isArray && uniform.a !== undefined,\n data.type === 'vec2' && data.size === 1 && uniform.x !== undefined,\n data.type === 'vec2' && data.size === 1 && !data.isArray && uniform.x !== undefined,\n data.type === 'vec4' && data.size === 1 && uniform.width !== undefined,\n data.type === 'vec4' && data.size === 1 && !data.isArray && uniform.width !== undefined,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pixijs/pixijs/commit/3a32bbd3a3bba14de1b90079aef98c1764042efe", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " texture.type,\n glTexture.type,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/pixijs/pixijs/commit/80bb84eb7bb605c85ad2188bbdc358ff78240133", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " baseTexture.type,\n glTexture.type,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pixijs/pixijs/commit/80bb84eb7bb605c85ad2188bbdc358ff78240133", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " * @param {number} [resolution=1] - The resolution of the blur filter.\n * @param {number} [resolution=PIXI.settings.FILTER_RESOLUTION] - The resolution of the blur filter.\n * @param {number} [resolution=1] - The resolution of the blur filter.\n * @param {number} [resolution=PIXI.settings.FILTER_RESOLUTION] - The resolution of the blur filter.\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/pixijs/pixijs/commit/5dd1b3717b2f973a07b4b1e7269f495d1e82c0c2", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " this.renderer.plugins.graphics.render(graphics);\n\n graphics.renderable = true;\n graphics.render(this.renderer);\n this.renderer.batch.flush();\n graphics.renderable = false;\n this.renderer.plugins.graphics.render(graphics);\n\n graphics.renderable = true;\n graphics.render(this.renderer);\n this.renderer.batch.flush();\n graphics.renderable = false;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pixijs/pixijs/commit/b5ef9de4dc9e3f775984e62a4a062fa2f556f622", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " if (isFlowType(types[0])) {\n if (types.every(v => isFlowType(v))) {\n if (isTSType(types[0])) {\n if (types.every(v => isTSType(v))) {\n if (isFlowType(types[0])) {\n if (types.every(v => isFlowType(v))) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/babel/babel/commit/1200542a44496a1295df6223f5a110532e76b48f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " parameters: Array;\n parameters: Array;\n parameters: Array;\n parameters: Array;\n parameters: Array;\n parameters: Array;\n parameters: Array;\n parameters: Array;\n parameters: Array;\n parameters: Array;\n parameters: Array,\n parameters: Array<\n t.ArrayPattern | t.Identifier | t.ObjectPattern | t.RestElement\n >,\n parameters: Array,\n parameters: Array<\n t.ArrayPattern | t.Identifier | t.ObjectPattern | t.RestElement\n >,\n parameters: Array,\n parameters: Array<\n t.ArrayPattern | t.Identifier | t.ObjectPattern | t.RestElement\n >,\n parameters: Array,\n parameters: Array<\n t.ArrayPattern | t.Identifier | t.ObjectPattern | t.RestElement\n >,\n parameters: Array,\n parameters: Array<\n t.ArrayPattern | t.Identifier | t.ObjectPattern | t.RestElement\n >,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/babel/babel/commit/9c5109b35e92a0e36a733f60ad2794ecc2f39225", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 9, 10, 11, 12, 13 ] }, { "input": " await runTestBlock(tests, hasFocusedTests, results, stats);\n await runTestBlock(tests, hasFocusedTests, testNamePatternRE, results, stats);\n await runTestBlock(child, hasFocusedTests, results, stats, nextAncestors);\n await runTestBlock(\n child,\n hasFocusedTests,\n testNamePatternRE,\n results,\n stats,\n nextAncestors\n );\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/babel/babel/commit/e1708ff2e42e3befaf56850e3001a25529f4d6d0", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " await runTestBlock(child, hasFocusedTests, results, stats, nextAncestors);\n await runTestBlock(\n child,\n hasFocusedTests,\n testNamePatternRE,\n results,\n stats,\n nextAncestors\n );\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/babel/babel/commit/e1708ff2e42e3befaf56850e3001a25529f4d6d0", "target_edit_idx": 7, "propagatable_edit_idx": [ 4 ] }, { "input": " this.mergeOptions(opts, loc, null, path.dirname(loc));\n this.mergeOptions(opts, this.options, loc, null, path.dirname(loc));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/babel/babel/commit/e7187faea64b64d65a17c57d6578903f1fff27d6", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 11, 12 ] }, { "input": " this.mergeOptions(envOpts, `${alias}.env.${envKey}`, null, dirname);\n this.mergeOptions(envOpts, extendingOpts, `${alias}.env.${envKey}`, null, dirname);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/babel/babel/commit/e7187faea64b64d65a17c57d6578903f1fff27d6", "target_edit_idx": 9, "propagatable_edit_idx": [ 11, 3, 12 ] }, { "input": " this.mergeOptions({ ignore: lines }, loc);\n this.mergeOptions({ ignore: lines }, this.options, loc);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/babel/babel/commit/e7187faea64b64d65a17c57d6578903f1fff27d6", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 3, 12 ] }, { "input": " this.mergeOptions(opts, \"base\", null, filename && path.dirname(filename));\n this.mergeOptions(opts, this.options, \"base\", null, filename && path.dirname(filename));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/babel/babel/commit/e7187faea64b64d65a17c57d6578903f1fff27d6", "target_edit_idx": 12, "propagatable_edit_idx": [ 11, 9, 3 ] }, { "input": " checkPath({ node, parent }: NodePath): boolean {\n checkPath({ node, parent } /*: NodePath */): boolean {\n checkPath({ node, parent }: NodePath): boolean {\n checkPath({ node, parent } /*: NodePath */): boolean {\n checkPath({ node }: NodePath): boolean {\n checkPath({ node } /*: NodePath */): boolean {\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/babel/babel/commit/51dfd2237e114675d547541f52a9e0818e803e89", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " if (t.isBinary(parent)) {\n if (t.isBinary(parent) && !t.isAssignmentExpression(parent)) {\n if (t.isBinary(parent)) {\n if (t.isBinary(parent) && !t.isAssignmentExpression(parent)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/babel/babel/commit/b5cf529d6b342b3dd8dd49c50cc9cd5fed4fc5a7", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " } else if (NUMBER_UNARY_OPERATORS.indexOf(operator) >= 0) {\n } else if (t.NUMBER_UNARY_OPERATORS.indexOf(operator) >= 0) {\n } else if (STRING_UNARY_OPERATORS.indexOf(operator) >= 0) {\n } else if (t.STRING_UNARY_OPERATORS.indexOf(operator) >= 0) {\n } else if (BOOLEAN_UNARY_OPERATORS.indexOf(operator) >= 0) {\n } else if (t.BOOLEAN_UNARY_OPERATORS.indexOf(operator) >= 0) {\n if (NUMBER_BINARY_OPERATORS.indexOf(operator) >= 0) {\n if (t.NUMBER_BINARY_OPERATORS.indexOf(operator) >= 0) {\n } else if (BOOLEAN_BINARY_OPERATORS.indexOf(operator) >= 0) {\n } else if (t.BOOLEAN_BINARY_OPERATORS.indexOf(operator) >= 0) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/babel/babel/commit/da1d5e5577d05fcfe14560e58555f068834808c6", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": " traverse.node(node[i], opts, this.scope, this.state, this);\n traverse.node(node[i], opts, this.scope, this.state, this, this.skipKeys);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/babel/babel/commit/9dc72e71d478d6c60af4a40209ea6d25cefddc11", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " traverse.node(node, opts, this.scope, this.state, this);\n traverse.node(node, opts, this.scope, this.state, this, this.skipKeys);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/babel/babel/commit/9dc72e71d478d6c60af4a40209ea6d25cefddc11", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "function buildClone(bindingKey, refKey) {\nfunction buildClone(bindingKey, refKey, check?) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/babel/babel/commit/12104f822fceb688f9acad3cee679d1c8c6d407e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "export var Property = buildClone(\"value\", \"key\");\nexport var Property = buildClone(\"value\", \"key\", function (node) {\n return t.isAssignmentPattern(node.value) && node.value.left === node.key;\n});\n\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/babel/babel/commit/12104f822fceb688f9acad3cee679d1c8c6d407e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } };\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nvar _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } };\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nvar _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } };\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/babel/babel/commit/4be27ee72c28492d8862fbea166a7a1b214720f5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " Bar = foo(Bar) || Bar;\n Bar = foo(Bar) || Bar;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/babel/babel/commit/bbc951dfe191c3be507816b92c69e259c28cbdb2", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " var loopParent = this.loopParent;\n if (loopParent) {\n traverseReplace(loopParent.right, loopParent, scope, remaps);\n traverseReplace(loopParent.test, loopParent, scope, remaps);\n traverseReplace(loopParent.update, loopParent, scope, remaps);\n var loop = this.loop;\n if (loop) {\n traverseReplace(loop.right, loop, scope, remaps);\n traverseReplace(loop.test, loop, scope, remaps);\n traverseReplace(loop.update, loop, scope, remaps);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/babel/babel/commit/3cd110a7c91ae0049554653d4902115a859e244a", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 5, 6, 7 ] }, { "input": " var loopParent = this.loopParent;\n var loop = this.loop;\n if (!loopParent) {\n throw new Error(\"Has no loop parent but we're trying to reassign breaks \" +\n \"and continues, something is going wrong here.\");\n if (!loop) {\n throw new Error(\"Aren't in a loop and we're trying to reassign breaks and continues, something is going wrong here.\");\n var loopParent = this.loopParent;\n if (loopParent) {\n traverseReplace(loopParent.right, loopParent, scope, remaps);\n traverseReplace(loopParent.test, loopParent, scope, remaps);\n traverseReplace(loopParent.update, loopParent, scope, remaps);\n var loop = this.loop;\n if (loop) {\n traverseReplace(loop.right, loop, scope, remaps);\n traverseReplace(loop.test, loop, scope, remaps);\n traverseReplace(loop.update, loop, scope, remaps);\n if (this.loopParent) {\n if (this.loop) {\n isLoop: !!this.loopParent,\n isLoop: !!this.loop,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/babel/babel/commit/3cd110a7c91ae0049554653d4902115a859e244a", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 4, 5, 6 ] }, { "input": " if (!loopParent) {\n throw new Error(\"Has no loop parent but we're trying to reassign breaks \" +\n \"and continues, something is going wrong here.\");\n if (!loop) {\n throw new Error(\"Aren't in a loop and we're trying to reassign breaks and continues, something is going wrong here.\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/babel/babel/commit/3cd110a7c91ae0049554653d4902115a859e244a", "target_edit_idx": 8, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": " if (Object.prototype.hasOwnProperty.call(target, key)) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/babel/babel/commit/10ede7c9340f94be63eee61949f58bb529661a68", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": "var _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(target, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n if (Object.prototype.hasOwnProperty.call(target, key)) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(target, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(target, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(target, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(target, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(target, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(target, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(target, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/babel/babel/commit/10ede7c9340f94be63eee61949f58bb529661a68", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": "var _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(target, key)) { target[key] = source[key]; } } } return target; };\nvar _extends = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/babel/babel/commit/10ede7c9340f94be63eee61949f58bb529661a68", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8 ] }, { "input": " return get(parent);\n return get(parent, property, receiver);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/babel/babel/commit/28d10b8eb4f6552608e0e19cead98ad0a2ba90b6", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": " var tempName = file.generateUid(\"temp\");\n temp = value = t.identifier(tempName);\n scope.push({\n key: tempName,\n id: temp\n });\n temp = value = scope.generateTemp(file);\n var tempName = file.generateUid(\"temp\");\n temp = t.identifier(tempName);\n scope.push({\n key: tempName,\n id: temp\n });\n temp = scope.generateTemp(file);\n var tempName = file.generateUid(\"temp\", scope);\n temp = object = t.identifier(tempName);\n scope.push({\n key: tempName,\n id: temp\n });\n temp = object = scope.generateTemp(file);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/babel/babel/commit/dae46bfbfa1623df99cb07298ba06f074a29c11d", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " t.assignmentExpression(\"=\", argsId, t.arrayExpression(node.arguments)),\n t.assignmentExpression(\"=\", temp, t.arrayExpression(node.arguments)),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/babel/babel/commit/dae46bfbfa1623df99cb07298ba06f074a29c11d", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " return t.memberExpression(argsId, t.literal(i), true);\n return t.memberExpression(temp, t.literal(i), true);\n t.assignmentExpression(\"=\", argsId, t.arrayExpression(node.arguments)),\n t.assignmentExpression(\"=\", temp, t.arrayExpression(node.arguments)),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/babel/babel/commit/dae46bfbfa1623df99cb07298ba06f074a29c11d", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": " } catch (err) {\n } catch (_err) {\n const err = _err as {name: string};\n } catch (err) {\n } catch (_err) {\n const err = _err as {code: string; message: string};\n } catch (err) {\n } catch (_err) {\n const err = _err as {message: string};\n } catch (err) {\n } catch (_err) {\n const err = _err as {stack: any};\n } catch (err) {\n } catch (_err) {\n const err = _err as {stack: any};\n } catch (err) {\n } catch (_err) {\n const err = _err as {code: string};\n } catch (err) {\n } catch (_err) {\n const err = _err as {code: string};\n } catch (e) {\n } catch (_e) {\n const e = _e as {message: string};\n", "class": "clone", "binary_label": 1, "regression_label": 0.3888888888888889, "commit_url": "https://github.com/vercel/hyper/commit/c6dfab9e6770e41f1cab10ada42aae5a62399928", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 7, 8 ] }, { "input": " const {ui} = getState();\n const {cols, rows, cwd} = ui;\n const {ui} = getState();\n const {cols, rows, cwd} = ui;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/hyper/commit/f6a1ba114a0baaf7bcd0b544c0371c4e57f22a9c", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "import type Quill from '../core.js';\nimport Quill from '../core/quill.js';\nimport type Quill from '../core.js';\nimport Quill from '../core/quill.js';\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/slab/quill/commit/2391107bde5983b674492b1528c773fef6999658", "target_edit_idx": 6, "propagatable_edit_idx": [ 10 ] }, { "input": "function blockDelta(blot) {\nfunction blockDelta(blot, filter = true) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/slab/quill/commit/76eac21d1627b0b407e6cf9e9e1d4e753c66cf09", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " return delta.insert(leaf.value(), bubbleFormats(leaf));\n return delta.insert(leaf.value(), bubbleFormats(leaf, {}, filter));\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/slab/quill/commit/76eac21d1627b0b407e6cf9e9e1d4e753c66cf09", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "function bubbleFormats(blot, formats = {}) {\nfunction bubbleFormats(blot, formats = {}, filter = true) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/slab/quill/commit/76eac21d1627b0b407e6cf9e9e1d4e753c66cf09", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " return bubbleFormats(blot.parent, formats);\n return bubbleFormats(blot.parent, formats, filter);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/slab/quill/commit/76eac21d1627b0b407e6cf9e9e1d4e753c66cf09", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " return delta.concat(blockDelta(child));\n return delta.concat(blockDelta(child, false));\nfunction blockDelta(blot) {\nfunction blockDelta(blot, filter = true) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/slab/quill/commit/76eac21d1627b0b407e6cf9e9e1d4e753c66cf09", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " const { availableVars, availableNodes } = useAvailableVarList(nodeId, {\n const { availableVars, availableNodesWithParent } = useAvailableVarList(nodeId, {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/langgenius/dify/commit/3175a2c76a6a9b0d7e3d5179da3295b16c7688ae", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6 ] }, { "input": " availableNodes={availableNodes}\n availableNodes={availableNodesWithParent}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/langgenius/dify/commit/3175a2c76a6a9b0d7e3d5179da3295b16c7688ae", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6 ] }, { "input": " raise ValueError(f\"{variable} in output form must be a string\")\n raise ValueError(f\"Output variable `{variable}` must be a string\")\n raise ValueError(f\"{variable} in output form must be a number\")\n raise ValueError(f\"Output variable `{variable}` must be a number\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/langgenius/dify/commit/e7b4d024eef30dcde6c079b1821a17336ea39d2e", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " f'{prefix}{dot}{output_name} in output form must be less than {MAX_NUMBER_ARRAY_LENGTH} characters.'\n f'The length of output variable `{prefix}{dot}{output_name}` must be less than {MAX_NUMBER_ARRAY_LENGTH} elements.'\n f'{prefix}{dot}{output_name} in output form must be less than {MAX_STRING_ARRAY_LENGTH} characters.'\n f'The length of output variable `{prefix}{dot}{output_name}` must be less than {MAX_STRING_ARRAY_LENGTH} elements.'\n f'{prefix}{dot}{output_name} in output form must be less than {MAX_OBJECT_ARRAY_LENGTH} characters.'\n f'The length of output variable `{prefix}{dot}{output_name}` must be less than {MAX_OBJECT_ARRAY_LENGTH} elements.'\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/langgenius/dify/commit/e7b4d024eef30dcde6c079b1821a17336ea39d2e", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " const { setCurrentLogItem, setShowPromptLogModal, setShowAgentLogModal, setShowMessageLogModal } = useAppStore()\n const setCurrentLogItem = useAppStore(s => s.setCurrentLogItem)\n const setShowPromptLogModal = useAppStore(s => s.setShowPromptLogModal)\n const setShowAgentLogModal = useAppStore(s => s.setShowAgentLogModal)\n const setShowMessageLogModal = useAppStore(s => s.setShowMessageLogModal)\n const { currentLogItem, setCurrentLogItem, showPromptLogModal, setShowPromptLogModal, showAgentLogModal, setShowAgentLogModal, showMessageLogModal, setShowMessageLogModal } = useAppStore()\n const { currentLogItem, setCurrentLogItem, showPromptLogModal, setShowPromptLogModal, showAgentLogModal, setShowAgentLogModal, showMessageLogModal, setShowMessageLogModal } = useAppStore(useShallow(state => ({\n currentLogItem: state.currentLogItem,\n setCurrentLogItem: state.setCurrentLogItem,\n showPromptLogModal: state.showPromptLogModal,\n setShowPromptLogModal: state.setShowPromptLogModal,\n showAgentLogModal: state.showAgentLogModal,\n setShowAgentLogModal: state.setShowAgentLogModal,\n showMessageLogModal: state.showMessageLogModal,\n setShowMessageLogModal: state.setShowMessageLogModal,\n })))\n const { setAppDetail } = useAppStore()\n const setAppDetail = useAppStore(s => s.setAppDetail)\n const { setCurrentLogItem, setShowPromptLogModal } = useAppStore()\n const setCurrentLogItem = useAppStore(s => s.setCurrentLogItem)\n const setShowPromptLogModal = useAppStore(s => s.setShowPromptLogModal)\n const { appDetail } = useAppStore()\n const appDetail = useAppStore(s => s.appDetail)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/langgenius/dify/commit/0715db7681952d119f4f7d1b367ab5ad210e1a7a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": " const { setCurrentLogItem, setShowPromptLogModal } = useAppStore()\n const setCurrentLogItem = useAppStore(s => s.setCurrentLogItem)\n const setShowPromptLogModal = useAppStore(s => s.setShowPromptLogModal)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/langgenius/dify/commit/0715db7681952d119f4f7d1b367ab5ad210e1a7a", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3, 5 ] }, { "input": " const { appDetail } = useAppStore()\n const appDetail = useAppStore(s => s.appDetail)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/langgenius/dify/commit/0715db7681952d119f4f7d1b367ab5ad210e1a7a", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": " timeout=(10, 60)\n timeout=(10, 300)\n timeout=(10, 60),\n timeout=(10, 300),\n timeout=(10, 60),\n timeout=(10, 300),\n timeout=(10, 60)\n timeout=(10, 300)\n timeout=(10, 60),\n timeout=(10, 300),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/langgenius/dify/commit/9b8861e3e152e2e94001423363ab97dfb480f854", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": "from typing import cast\nfrom typing import Any, cast\nfrom typing import Any\nfrom typing import Any, cast\nfrom typing import Any\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/langgenius/dify/commit/e352a8ed1bacf44a0ad1b159d4023d798b47b82f", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " config = cast(dict, current_app.config)\n config = current_app.config\n config = cast(dict, current_app.config)\n config = current_app.config\n config = cast(dict, current_app.config)\n config = current_app.config\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/langgenius/dify/commit/e352a8ed1bacf44a0ad1b159d4023d798b47b82f", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " db.session.rollback()\n db.session.rollback()\n db.session.rollback()\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/langgenius/dify/commit/41d4c5b424aa17b854104bc6a0664ec49a9a6a6a", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11 ] }, { "input": "import { computed, isRef, onScopeDispose, ref, watch } from 'vue-demi'\nimport { computed, unref, onScopeDispose, ref, watch } from 'vue-demi'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TanStack/query/commit/e97c6bce68f795af4912ad8313423c279f35bdb6", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " const plainArg1 = isRef(arg1) ? arg1.value : arg1\n const plainArg2 = isRef(arg2) ? arg2.value : arg2\n const plainArg1 = unref(arg1)\n const plainArg2 = unref(arg2)\n const plainArg1 = isRef(arg1) ? arg1.value : arg1\n const plainArg2 = isRef(arg2) ? arg2.value : arg2\n const plainArg1 = unref(arg1)\n const plainArg2 = unref(arg2)\n const plainArg1 = isRef(arg1) ? arg1.value : arg1\n const plainArg2 = isRef(arg2) ? arg2.value : arg2\n const plainArg1 = unref(arg1)\n const plainArg2 = unref(arg2)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/TanStack/query/commit/e97c6bce68f795af4912ad8313423c279f35bdb6", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " options?: UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryFnData,\n TQueryKey\n options?: Omit<\n UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryFnData,\n TQueryKey\n >,\n 'queryKey'\n options?: UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryFnData,\n TQueryKey\n options?: Omit<\n UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryFnData,\n TQueryKey\n >,\n 'queryKey' | 'queryFn'\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/TanStack/query/commit/7aadd6896dd8a36e3f4ff8e7153a080528807d03", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " options?: UseMutationOptions\n options?: Omit<\n UseMutationOptions,\n 'mutationFn'\n >\n options?: UseMutationOptions\n options?: Omit<\n UseMutationOptions,\n 'mutationKey'\n >\n options?: UseMutationOptions\n options?: Omit<\n UseMutationOptions,\n 'mutationKey' | 'mutationFn'\n >\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/TanStack/query/commit/7aadd6896dd8a36e3f4ff8e7153a080528807d03", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " options?: UseQueryOptions\n options?: Omit<\n UseQueryOptions,\n 'queryKey'\n >\n options?: UseQueryOptions\n options?: Omit<\n UseQueryOptions,\n 'queryKey' | 'queryFn'\n >\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/TanStack/query/commit/7aadd6896dd8a36e3f4ff8e7153a080528807d03", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " const injectGlobal = (\n strings: Array,\n ...interpolations: Array\n ) => {\n const rules = css(strings, ...interpolations)\n const injectGlobal: InjectGlobalFn = (...args) => {\n const rules = css(...args)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/styled-components/styled-components/commit/438142a0cc8859725ffd958daae464d4a6978b1d", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": ") => (\n strings: Array,\n ...interpolations: Array\n): string => {\n const rules = css(strings, ...interpolations)\n): KeyframesFn => (...arr): string => {\n const rules = css(...arr)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/styled-components/styled-components/commit/438142a0cc8859725ffd958daae464d4a6978b1d", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " if (JSON.stringify(theme) === JSON.stringify(this.state.theme)) {\n /* eslint-disable max-len */\n if (theme === this.state.theme || JSON.stringify(theme) === JSON.stringify(this.state.theme)) {\n if (JSON.stringify(theme) === JSON.stringify(this.state.theme)) {\n /* eslint-disable max-len */\n if (theme === this.state.theme || JSON.stringify(theme) === JSON.stringify(this.state.theme)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/styled-components/styled-components/commit/3b858bd1b6e32952a77ff33af8513df810229952", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\n\t\tconst handleInput = () => {\n\t\tconst updateTextareaSize = () => {\n\n\t\ttextarea.addEventListener('input', handleInput);\n\t\tupdateTextareaSize();\n\t\ttextarea.addEventListener('input', updateTextareaSize);\n\t\t\ttextarea.removeEventListener('input', handleInput);\n\t\t\ttextarea.removeEventListener('input', updateTextareaSize);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/92a8de7373d686e73049b445c87c2a8c7afe1d4f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\t\t\ttextarea.removeEventListener('input', handleInput);\n\t\t\ttextarea.removeEventListener('input', updateTextareaSize);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/92a8de7373d686e73049b445c87c2a8c7afe1d4f", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "import { useMutableCallback } from '@rocket.chat/fuselage-hooks';\nimport { useDebouncedValue, useMutableCallback } from '@rocket.chat/fuselage-hooks';\nimport { useMutableCallback } from '@rocket.chat/fuselage-hooks';\nimport { useDebouncedValue, useMutableCallback } from '@rocket.chat/fuselage-hooks';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/d418d0e752a69abecfe41ef84d1f7abf70a03d20", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\ttext: filter,\n\t\t\ttext: debouncedFilter,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/d418d0e752a69abecfe41ef84d1f7abf70a03d20", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 6, 7 ] }, { "input": "\t\t[filter, itemsPerPage, current, sortBy, sortDirection],\n\t\t[debouncedFilter, itemsPerPage, current, sortBy, sortDirection],\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/d418d0e752a69abecfe41ef84d1f7abf70a03d20", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 6, 7 ] }, { "input": "\tconst invalidate = useDebouncedCallback(() => {\n\t\tqueryClient.invalidateQueries(['apps', 'actionButtons']);\n\t}, 100);\n\tconst invalidate = useDebouncedCallback(\n\t\t() => {\n\t\t\tqueryClient.invalidateQueries(['apps', 'actionButtons']);\n\t\t},\n\t\t100,\n\t\t[],\n\t);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/6098941931755cfea535399ad2ff736f35922f04", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\tconst invalidate = useDebouncedCallback(() => {\n\t\tqueryClient.invalidateQueries(['apps', 'slashCommands']);\n\t}, 100);\n\tconst invalidate = useDebouncedCallback(\n\t\t() => {\n\t\t\tqueryClient.invalidateQueries(['apps', 'slashCommands']);\n\t\t},\n\t\t100,\n\t\t[],\n\t);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/6098941931755cfea535399ad2ff736f35922f04", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": "\tconst invalidate = useDebouncedCallback(() => {\n\t\tqueryClient.invalidateQueries(['apps', 'translations']);\n\t}, 100);\n\tconst invalidate = useDebouncedCallback(\n\t\t() => {\n\t\t\tqueryClient.invalidateQueries(['apps', 'translations']);\n\t\t},\n\t\t100,\n\t\t[],\n\t);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/6098941931755cfea535399ad2ff736f35922f04", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\tconst invalidate = useDebouncedCallback(() => {\n\t\tqueryClient.invalidateQueries(['marketplace', 'apps-instance']);\n\t\tinvalidateAppsCountQuery();\n\t}, 100);\n\tconst invalidate = useDebouncedCallback(\n\t\t() => {\n\t\t\tqueryClient.invalidateQueries(['marketplace', 'apps-instance']);\n\t\t\tinvalidateAppsCountQuery();\n\t\t},\n\t\t100,\n\t\t[],\n\t);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/6098941931755cfea535399ad2ff736f35922f04", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "function GenericGroupPage({ _id, ...group }: GenericGroupPageProps): ReactElement {\nfunction GenericGroupPage({ _id, ...props }: GenericGroupPageProps): ReactElement {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/856c23555a43853165ba9d9daeed508ccf4c6892", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": "\t\t\n\t\t\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/856c23555a43853165ba9d9daeed508ccf4c6892", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5, 6 ] }, { "input": "function TabbedGroupPage({ _id, ...group }: TabbedGroupPageProps): JSX.Element {\nfunction TabbedGroupPage({ _id, ...props }: TabbedGroupPageProps): JSX.Element {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/856c23555a43853165ba9d9daeed508ccf4c6892", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5, 6 ] }, { "input": "\t\treturn ;\n\t\treturn ;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/856c23555a43853165ba9d9daeed508ccf4c6892", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 6 ] }, { "input": "\t\t\tawait request.get(fileUrl).set(credentials).expect('Content-Type', 'image/png').expect(200);\n\t\t\tawait request.get(fileNewUrl).set(credentials).expect('Content-Type', 'image/png').expect(200);\n\t\t\tawait request.get(fileOldUrl).set(credentials).expect('Content-Type', 'image/png').expect(200);\n\t\t\tawait request.get(fileUrl).expect('Content-Type', 'image/png').expect(200);\n\t\t\tawait request.get(fileNewUrl).expect('Content-Type', 'image/png').expect(200);\n\t\t\tawait request.get(fileOldUrl).expect('Content-Type', 'image/png').expect(200);\n\t\t\tawait request.get(fileUrl).set(userCredentials).expect('Content-Type', 'image/png').expect(200);\n\t\t\tawait request.get(fileNewUrl).set(userCredentials).expect('Content-Type', 'image/png').expect(200);\n\t\t\tawait request.get(fileOldUrl).set(userCredentials).expect('Content-Type', 'image/png').expect(200);\n\t\t\tawait request.get(fileUrl).set(credentials).expect('Content-Type', 'image/png').expect(200);\n\t\t\tawait request.get(fileNewUrl).set(credentials).expect('Content-Type', 'image/png').expect(200);\n\t\t\tawait request.get(fileOldUrl).set(credentials).expect('Content-Type', 'image/png').expect(200);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/ac5ec7c8749a1b0d7278f603f959608226515932", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 4, 6 ] }, { "input": "\t\t\ttype: 'string',\n\t\t\ttype: 'password',\n\t\t\tautocomplete: false,\n\t\t\tsecret: true,\n\t\t\ttype: 'string',\n\t\t\ttype: 'password',\n\t\t\tautocomplete: false,\n\t\t\tsecret: true,\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/3bdb5cec1ac83317950db0c78a27200952dc2726", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\tconst [lastMessage, setLastMessage] = useState();\n\tconst [lastMessageDate, setLastMessageDate] = useState();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/a0f4950d23cb8fc7632378cdc5a2e7a3df67bb55", "target_edit_idx": 0, "propagatable_edit_idx": [ 10, 5 ] }, { "input": "\t\t\tts: { $lte: lastMessage, $gt: subscription?.ls },\n\t\t\tts: { $lte: lastMessageDate, $gt: subscription?.ls },\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/a0f4950d23cb8fc7632378cdc5a2e7a3df67bb55", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\t\t\tsetLastMessage(lastMessage.ts);\n\t\t\t\tsetLastMessageDate(lastMessage.ts);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/a0f4950d23cb8fc7632378cdc5a2e7a3df67bb55", "target_edit_idx": 10, "propagatable_edit_idx": [ 0 ] }, { "input": "\t\tconst callee = uids?.filter((uid) => uid !== user._id).pop();\n\t\tif (!callee) {\n\t\tconst calleeId = uids?.filter((uid) => uid !== user._id).pop();\n\t\tif (!calleeId) {\n\t\t\t\treturn this.callUser({ uid: data.callee, rid: roomId, callId: data.callId });\n\t\t\t\treturn this.callUser({ uid: data.calleeId, rid: roomId, callId: data.callId });\n\tcallee: IUser['_id'];\n\tcalleeId: IUser['_id'];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/b2b6fbbea6da3b757cb7e2a02db5b4b94eefd64b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "\tconst user: IUser | null = await Users.findOneById(uid, { fields: { username: 1 } });\n\tconst user = await Users.findOneById>(uid, { projection: { username: 1 } });\n\tconst user = await Users.findOneById(uid, { fields: { username: 1 } });\n\tconst user = await Users.findOneById>(uid, { projection: { username: 1 } });\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/3507e17f3e29d8e7182ad2e45960abb87eb4d01c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\t\tMessages.createUserAddRoomToTeamWithRoomIdAndUser(team.roomId, room.name, user);\n\t\t\tif (room.t === 'c') {\n\t\t\t\tMessages.createUserAddRoomToTeamWithRoomIdAndUser(team.roomId, room.name, user);\n\t\t\t}\n\t\tMessages.createUserRemoveRoomFromTeamWithRoomIdAndUser(team.roomId, room.name, user);\n\t\tif (room.t === 'c') {\n\t\t\tMessages.createUserRemoveRoomFromTeamWithRoomIdAndUser(team.roomId, room.name, user);\n\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/a14a305cc758a947114428ab2a1d214e7ca90143", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t_setUsername(user._id, username);\n\t\t\tsaveUserIdentity({ _id: user._id, username });\n\t\t\t_setUsername(user._id, username);\n\t\t\tsaveUserIdentity({ _id: user._id, username });\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/f0457c25505f78dd92e4252d7745bc5134201141", "target_edit_idx": 3, "propagatable_edit_idx": [ 13 ] }, { "input": "\t\tif (!saveUserIdentity(userId, {\n\t\tif (!saveUserIdentity({\n\t\tif (!saveUserIdentity(this.userId, {\n\t\tif (!saveUserIdentity({\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/f0457c25505f78dd92e4252d7745bc5134201141", "target_edit_idx": 5, "propagatable_edit_idx": [ 14 ] }, { "input": "import { setUsername } from './setUsername';\nimport { _setUsername } from './setUsername';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/f0457c25505f78dd92e4252d7745bc5134201141", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\tif (!setUsername(_id, username, user)) {\n\t\tif (!_setUsername(_id, username, user)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/f0457c25505f78dd92e4252d7745bc5134201141", "target_edit_idx": 9, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tif (!saveUserIdentity(user._id, { _id: user._id, username })) {\n\t\tif (!saveUserIdentity({ _id: user._id, username })) {\nexport function saveUserIdentity(userId, { _id, name: rawName, username: rawUsername }) {\nexport function saveUserIdentity({ _id, name: rawName, username: rawUsername }) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/f0457c25505f78dd92e4252d7745bc5134201141", "target_edit_idx": 10, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\t\t\tactive={sort[0] === 'status'}\n\t\t\t\t\tactive={sort[0] === 'statusLivechat'}\n\t\t\t\t\tactive={sort[0] === 'status'}\n\t\t\t\t\tactive={sort[0] === 'open'}\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/d433a1c5c00995adedcae5bc396c86aa497cf1de", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\tavailableDepartments={availableDepartments}\n\t\tavailableDepartments={filteredDepartments}\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/2a991a87bc12d63cd9e81b63d9f42e22c947ccac", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "\treturn ;\n\tconst filteredDepartments = { departments: availableDepartments.departments.filter((department) => !allUnits || !allUnits.units || !department.ancestors || !allUnits.units.find((unit) => unit._id === department.ancestors[0])) };\n\treturn ;\n\t\tavailableDepartments={availableDepartments}\n\t\tavailableDepartments={filteredDepartments}\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/2a991a87bc12d63cd9e81b63d9f42e22c947ccac", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tasync action(event) {\n\t\tasync action() {\n\t\tasync action(event) {\n\t\tasync action() {\n\t\tasync action(event) {\n\t\tasync action() {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/53effb32d41ee3df34fb77a2973e565d1b517f61", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\t\t\t$(event.currentTarget).attr('data-clipboard-text', await MessageAction.getPermaLink(message._id));\n\t\t\tconst permalink = await MessageAction.getPermaLink(message._id);\n\t\t\tnavigator.clipboard.writeText(permalink);\n\t\t\t$(event.currentTarget).attr('data-clipboard-text', await MessageAction.getPermaLink(message._id));\n\t\t\tconst permalink = await MessageAction.getPermaLink(message._id);\n\t\t\tnavigator.clipboard.writeText(permalink);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/53effb32d41ee3df34fb77a2973e565d1b517f61", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t$(event.currentTarget).attr('data-clipboard-text', permalink);\n\t\t\tnavigator.clipboard.writeText(permalink);\n\t\t\t$(event.currentTarget).attr('data-clipboard-text', msg);\n\t\t\tnavigator.clipboard.writeText(msg);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/53effb32d41ee3df34fb77a2973e565d1b517f61", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": "}, { maxAge: 1000 });\n}, { maxAge: 1000, cacheKey: JSON.stringify });\n\t}, { maxAge: 1000 }),\n\t}, { maxAge: 1000, cacheKey: JSON.stringify }),\n\t}, { maxAge: 1000 }),\n\t}, { maxAge: 1000, cacheKey: JSON.stringify }),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/ac5329f7ad7f9d2695940dfc2c38797416cea750", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "const ValidLinkParam = Match.Where((value) => {\nconst ValidFullURLParam = Match.Where((value) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/a486929539bdb7223a01afb3ee1ded46e4de8433", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": "\t\turl: ValidLinkParam,\n\t\timage_url: ValidLinkParam,\n\t\turl: ValidFullURLParam,\n\t\timage_url: ValidFullURLParam,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9090909090909091, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/a486929539bdb7223a01afb3ee1ded46e4de8433", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": "\t\tthumb_url: ValidLinkParam,\n\t\tthumb_url: ValidFullURLParam,\nconst ValidLinkParam = Match.Where((value) => {\nconst ValidFullURLParam = Match.Where((value) => {\n\t\turl: ValidLinkParam,\n\t\timage_url: ValidLinkParam,\n\t\turl: ValidFullURLParam,\n\t\timage_url: ValidFullURLParam,\n\t\tmessage_link: ValidLinkParam,\n\t\tmessage_link: ValidFullURLParam,\n\t\tauthor_link: ValidLinkParam,\n\t\tauthor_icon: ValidLinkParam,\n\t\tauthor_link: ValidFullURLParam,\n\t\tauthor_icon: ValidFullURLParam,\n\t\ttitle_link: ValidLinkParam,\n\t\ttitle_link: ValidFullURLParam,\n\t\timage_url: ValidLinkParam,\n\t\timage_url: ValidFullURLParam,\n\t\taudio_url: ValidLinkParam,\n\t\taudio_url: ValidFullURLParam,\n\t\tvideo_url: ValidLinkParam,\n\t\tvideo_url: ValidFullURLParam,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/a486929539bdb7223a01afb3ee1ded46e4de8433", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5, 6, 7, 8, 9, 10 ] }, { "input": "\t\tmessage_link: ValidLinkParam,\n\t\tmessage_link: ValidFullURLParam,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/a486929539bdb7223a01afb3ee1ded46e4de8433", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4, 6, 7, 8, 9, 10 ] }, { "input": "\t\tauthor_link: ValidLinkParam,\n\t\tauthor_icon: ValidLinkParam,\n\t\tauthor_link: ValidFullURLParam,\n\t\tauthor_icon: ValidFullURLParam,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9090909090909091, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/a486929539bdb7223a01afb3ee1ded46e4de8433", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3, 4, 5, 7, 8, 9, 10 ] }, { "input": "\t\ttitle_link: ValidLinkParam,\n\t\ttitle_link: ValidFullURLParam,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/a486929539bdb7223a01afb3ee1ded46e4de8433", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 3, 4, 5, 6, 8, 9, 10 ] }, { "input": "\t\timage_url: ValidLinkParam,\n\t\timage_url: ValidFullURLParam,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/a486929539bdb7223a01afb3ee1ded46e4de8433", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 3, 4, 5, 6, 7, 9, 10 ] }, { "input": "\t\taudio_url: ValidLinkParam,\n\t\taudio_url: ValidFullURLParam,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/a486929539bdb7223a01afb3ee1ded46e4de8433", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 3, 4, 5, 6, 7, 8, 10 ] }, { "input": "\t\t\tconst room = getRoom(guest, rid);\n\t\t\tconst room = getRoom({ guest, rid, agent });\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/4e92002c118a3d95ad806a0dffb4e861acd2ec41", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 6 ] }, { "input": "\t\t\tconst { room } = getRoom(guest, rid, { jitsiTimeout: new Date(Date.now() + 3600 * 1000) });\n\t\t\tconst roomInfo = { jitsiTimeout: new Date(Date.now() + 3600 * 1000) };\n\t\t\tconst { room } = getRoom({ guest, rid, roomInfo });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/4e92002c118a3d95ad806a0dffb4e861acd2ec41", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 5 ] }, { "input": "\t\tconst prevent = Promise.await(Apps.getBridges().getListenerBridge().messageEvent('IPreMessageUpdatedPrevent', message));\n\t\tconst appMessage = Object.assign({}, originalMessage, message);\n\n\t\tconst prevent = Promise.await(Apps.getBridges().getListenerBridge().messageEvent('IPreMessageUpdatedPrevent', appMessage));\n\t\tresult = Promise.await(Apps.getBridges().getListenerBridge().messageEvent('IPreMessageUpdatedExtend', message));\n\t\tresult = Promise.await(Apps.getBridges().getListenerBridge().messageEvent('IPreMessageUpdatedExtend', appMessage));\n\t\t\tmessage = Object.assign(message, result);\n\t\t\tmessage = Object.assign(appMessage, result);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.11764705882352941, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/2f6e58c396dc377ba38f3b64365b799288befff5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\t\tresult = Promise.await(Apps.getBridges().getListenerBridge().messageEvent('IPreMessageUpdatedExtend', message));\n\t\tresult = Promise.await(Apps.getBridges().getListenerBridge().messageEvent('IPreMessageUpdatedExtend', appMessage));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.23529411764705882, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/2f6e58c396dc377ba38f3b64365b799288befff5", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\t\tmessage = Object.assign(message, result);\n\t\t\tmessage = Object.assign(appMessage, result);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.17647058823529413, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/2f6e58c396dc377ba38f3b64365b799288befff5", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "export function sendEmail({ message, user, subscription, room, emailAddress, toAll }) {\nexport function sendEmail({ message, user, subscription, room, emailAddress, hasMentionToUser }) {\n\t} else if (toAll) {\n\t\temailSubject = RocketChat.placeholders.replace(RocketChat.settings.get('Offline_Mention_All_Email'), {\n\t} else if (hasMentionToUser) {\n\t\temailSubject = RocketChat.placeholders.replace(RocketChat.settings.get('Offline_Mention_Email'), {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/84f85e98f5bf56fa9150328ea1a14b3bed4f195b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t} else if (toAll) {\n\t\temailSubject = RocketChat.placeholders.replace(RocketChat.settings.get('Offline_Mention_All_Email'), {\n\t} else if (hasMentionToUser) {\n\t\temailSubject = RocketChat.placeholders.replace(RocketChat.settings.get('Offline_Mention_Email'), {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/84f85e98f5bf56fa9150328ea1a14b3bed4f195b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "RocketChat.models.Rooms.updateLivechatDataByToken = function(token, key, value) {\nRocketChat.models.Rooms.updateLivechatDataByToken = function(token, key, value, overwrite = true) {\nRocketChat.models.Users.updateLivechatDataByToken = function(token, key, value) {\nRocketChat.models.Users.updateLivechatDataByToken = function(token, key, value, overwrite = true) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/RocketChat/Rocket.Chat/commit/5d575e711248456aea06f890cf532aed0c40f1ee", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " disabled: Boolean,\n disabled: {\n type: Boolean,\n default: null,\n },\n disabled: boolean\n disabled: boolean | null\n disabled: Boolean,\n disabled: {\n type: Boolean,\n default: null,\n },\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vuetifyjs/vuetify/commit/d768946b7d138cd45f3b8249bcbd7401a23cb439", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " readonly: boolean\n readonly: boolean | null\n readonly: Boolean,\n readonly: {\n type: Boolean,\n default: null,\n },\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/vuetifyjs/vuetify/commit/d768946b7d138cd45f3b8249bcbd7401a23cb439", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " default: () => (\n default: (...args) => (\n default: () => (\n default: (...args) => (\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vuetifyjs/vuetify/commit/06ea383317082ed642b03c74a59e28461cc53163", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " validationValue={ props.modelValue ?? model.value }\n validationValue={ model.externalValue }\n validationValue={ props.modelValue ?? model.value }\n validationValue={ model.externalValue }\n validationValue={ props.modelValue ?? model.value }\n validationValue={ model.externalValue }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vuetifyjs/vuetify/commit/4a1589df460d2ae52f20eb44fac960d85ab0d963", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " ...getScrollParents(data.activatorEl.value),\n ...getScrollParents(data.contentEl.value),\n ...getScrollParents(data.activatorEl.value, props.contained ? offsetParent : undefined),\n ...getScrollParents(data.contentEl.value, props.contained ? offsetParent : undefined),\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vuetifyjs/vuetify/commit/27622e5d021ef2e0e8ec88fb71f513ec866f60da", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " const { themeClass } = useTheme()\n const { themeClasses } = useTheme()\n themeClass.value,\n themeClasses.value,\n const { themeClass } = provideTheme(props, context)\n const { themeClasses } = provideTheme(props, context)\n class: ['v-theme-provider', themeClass.value],\n class: ['v-theme-provider', themeClasses.value],\n themeClass: Ref\n themeClasses: Ref\n themeClass: computed(() => parsedOptions.isDisabled ? '' : `v-theme--${current.value}`),\n themeClasses: computed(() => parsedOptions.isDisabled ? '' : `v-theme--${current.value}`),\n const themeClass = computed(() => theme.isDisabled ? '' : `v-theme--${current.value}`)\n const themeClasses = computed(() => theme.isDisabled ? '' : `v-theme--${current.value}`)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vuetifyjs/vuetify/commit/50854ff8ca7ebd8d7cc1dcb29298cbb9dcdbe83a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": " themeClass.value,\n themeClasses.value,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vuetifyjs/vuetify/commit/50854ff8ca7ebd8d7cc1dcb29298cbb9dcdbe83a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6 ] }, { "input": " const { themeClass } = provideTheme(props, context)\n const { themeClasses } = provideTheme(props, context)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vuetifyjs/vuetify/commit/50854ff8ca7ebd8d7cc1dcb29298cbb9dcdbe83a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6 ] }, { "input": " class: ['v-theme-provider', themeClass.value],\n class: ['v-theme-provider', themeClasses.value],\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vuetifyjs/vuetify/commit/50854ff8ca7ebd8d7cc1dcb29298cbb9dcdbe83a", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6 ] }, { "input": " themeClass: Ref\n themeClasses: Ref\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vuetifyjs/vuetify/commit/50854ff8ca7ebd8d7cc1dcb29298cbb9dcdbe83a", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6 ] }, { "input": " const themeClass = computed(() => theme.isDisabled ? '' : `v-theme--${current.value}`)\n const themeClasses = computed(() => theme.isDisabled ? '' : `v-theme--${current.value}`)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vuetifyjs/vuetify/commit/50854ff8ca7ebd8d7cc1dcb29298cbb9dcdbe83a", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5 ] }, { "input": " generateLocaleList,\n generateLocaleList,\n", "class": "clone", "binary_label": 1, "regression_label": 0.15384615384615385, "commit_url": "https://github.com/vuetifyjs/vuetify/commit/5da56e330fbb5d6514318b48ea3410eb8ec96191", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " 'system-bar--fixed': this.fixed || this.app,\n 'system-bar--fixed': !this.absolute && (this.app || this.fixed),\n 'toolbar--fixed': this.fixed || this.app,\n 'toolbar--fixed': !this.absolute && (this.app || this.fixed),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vuetifyjs/vuetify/commit/ad48ae677900561ce8dcf706b11c969ae4d3746a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " if (err.cause && err.cause.code === 'ENOENT') return;\n if (err && err.code === 'ENOENT') return;\n if (err.cause && err.cause.code !== 'ENOENT') throw err;\n if (err && err.code !== 'ENOENT') throw err;\n if (err.cause && err.cause.code === 'ENOENT') return;\n if (err && err.code === 'ENOENT') return;\n if (err.cause && err.cause.code === 'ENOENT') {\n if (err && err.code === 'ENOENT') {\n if (err.cause && err.cause.code === 'ENOENT') return [];\n if (err && err.code === 'ENOENT') return [];\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/hexojs/hexo/commit/5f976066c5dee1517e769c45caff92e6c47e418b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " const layoutLocals = Object.assign({}, locals, {\n const layoutLocals = {\n ...locals,\n const layoutLocals = Object.assign({}, locals, {\n const layoutLocals = {\n ...locals,\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/hexojs/hexo/commit/a04f95d30db3e3ed5ea7bc6720b28e9d1c9d02c0", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " escape = 'false';\n escape = 'true';\n escape = 'false';\n escape = 'true';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hexojs/hexo/commit/9cc0f67f897e242fbc81f0a996cf1ace74dee049", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " const title = args.length ? args.join(' ') : asset.slug;\n const title = escapeHTML(args.length ? args.join(' ') : asset.slug);\n const title = args.length ? args.join(' ') : post.title;\n const title = escapeHTML(args.length ? args.join(' ') : post.title);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hexojs/hexo/commit/f3f9c3079d937f82ec03d94470a1e8b5d454b541", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " var result = [];\n _.toArray(arguments).forEach(function(path){\n if (!Array.isArray(path)) path = [path];\n var result = [];\n _.toArray(arguments).forEach(function(path){\n if (!Array.isArray(path)) path = [path];\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hexojs/hexo/commit/4b3fbb3f6756963d465544f0f10059cad1bad363", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": " path.forEach(function(item){\n if (item.substr(item.length - 4, 4) !== '.css') item += '.css';\n if (item.substr(0, 1) !== '/') item = root + item;\n path.forEach(function(item){\n if (item.substr(item.length - 4, 4) !== '.css') item += '.css';\n if (!/([a-z]:)?\\/{1,2}/.test(item)) item = root + item;\n path.forEach(function(item){\n if (item.substr(item.length - 3, 3) !== '.js') item += '.js';\n if (item.substr(0, 1) !== '/') item = root + item;\n path.forEach(function(item){\n if (item.substr(item.length - 3, 3) !== '.js') item += '.js';\n if (!/([a-z]:)?\\/{1,2}/.test(item)) item = root + item;\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/hexojs/hexo/commit/4b3fbb3f6756963d465544f0f10059cad1bad363", "target_edit_idx": 3, "propagatable_edit_idx": [ 9 ] }, { "input": " return result.join('\\n');\n return out.join('\\n');\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hexojs/hexo/commit/4b3fbb3f6756963d465544f0f10059cad1bad363", "target_edit_idx": 5, "propagatable_edit_idx": [ 11 ] }, { "input": "extend.deployer.register('github', function(){\nextend.deployer.register('github', function(args){\nextend.deployer.register('heroku', function(){\nextend.deployer.register('heroku', function(args){\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hexojs/hexo/commit/edd857d9ff58f42c61c480d43adc4ebefd8f9cac", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " if (exist) return next();\n if (exist && !setup) return next();\n if (result) return next();\n if (result && !setup) return next();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hexojs/hexo/commit/edd857d9ff58f42c61c480d43adc4ebefd8f9cac", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " `For additional help visit ${underline('https://pris.ly/cli/platform-docs')}`,\n `For additional help visit ${link('https://pris.ly/cli/platform-docs')}`,\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/prisma/prisma/commit/e8f2cf7eb0434a3e1806db5c3f5c2e2ddc531c1e", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " console.info(underline(authSigninUrl.href))\n console.info(link(authSigninUrl.href))\n `For additional help visit ${underline('https://pris.ly/cli/platform-docs')}`,\n `For additional help visit ${link('https://pris.ly/cli/platform-docs')}`,\n return `Help output for this command will be available soon. In the meantime, visit ${underline(\n return `Help output for this command will be available soon. In the meantime, visit ${link(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prisma/prisma/commit/e8f2cf7eb0434a3e1806db5c3f5c2e2ddc531c1e", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 7 ] }, { "input": " return `Help output for this command will be available soon. In the meantime, visit ${underline(\n return `Help output for this command will be available soon. In the meantime, visit ${link(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prisma/prisma/commit/e8f2cf7eb0434a3e1806db5c3f5c2e2ddc531c1e", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " this.remoteClientVersion = P.then(() => getClientVersion(this.config))\n this.remoteClientVersion = P.then(() => getClientVersion(host, this.config))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/prisma/prisma/commit/5d15b07aadecbe840970f2701dcb1451aca2d0bb", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " const data = xprisma.user.myGenericMethodViaDefault({\n const data1 = xprisma.user.myGenericMethodViaDefault({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/prisma/prisma/commit/e52af84989c33a359a2bbc0d69c35e07b797f206", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " expectTypeOf<(typeof data)['args']>().toEqualTypeOf<{ select: { email: true } }>()\n expectTypeOf<(typeof data)['payload']>().toMatchTypeOf()\n expectTypeOf<(typeof data)['payload']['scalars']>().toHaveProperty('email').toEqualTypeOf()\n expectTypeOf<(typeof data)['result'] & {}>().toHaveProperty('email').toEqualTypeOf()\n const data2 = xprisma.user.myGenericMethodViaDefault({\n select: {\n email: true as boolean,\n },\n })\n\n expectTypeOf<(typeof data1)['args']>().toEqualTypeOf<{ select: { email: true } }>()\n expectTypeOf<(typeof data1)['payload']>().toMatchTypeOf()\n expectTypeOf<(typeof data1)['payload']['scalars']>().toHaveProperty('email').toEqualTypeOf()\n expectTypeOf<(typeof data1)['result'] & {}>().toHaveProperty('email').toEqualTypeOf()\n\n expectTypeOf<(typeof data2)['args']>().toEqualTypeOf<{ select: { email: boolean } }>()\n expectTypeOf<(typeof data2)['payload']>().toMatchTypeOf()\n expectTypeOf<(typeof data2)['payload']['scalars']>().toHaveProperty('email').toEqualTypeOf()\n expectTypeOf<(typeof data2)['result'] & {}>().toHaveProperty('email').toEqualTypeOf()\n expectTypeOf<(typeof data)['args']>().toEqualTypeOf<{ select: { email: true } }>()\n expectTypeOf<(typeof data)['payload']>().toMatchTypeOf()\n expectTypeOf<(typeof data)['payload']['scalars']>().toHaveProperty('email').toEqualTypeOf()\n expectTypeOf<(typeof data)['result'] & {}>().toHaveProperty('email').toEqualTypeOf()\n const data2 = xprisma.user.myGenericMethodViaDefault({\n select: {\n email: true as boolean,\n },\n })\n\n expectTypeOf<(typeof data1)['args']>().toEqualTypeOf<{ select: { email: true } }>()\n expectTypeOf<(typeof data1)['payload']>().toMatchTypeOf()\n expectTypeOf<(typeof data1)['payload']['scalars']>().toHaveProperty('email').toEqualTypeOf()\n expectTypeOf<(typeof data1)['result'] & {}>().toHaveProperty('email').toEqualTypeOf()\n\n expectTypeOf<(typeof data2)['args']>().toEqualTypeOf<{ select: { email: boolean } }>()\n expectTypeOf<(typeof data2)['payload']>().toMatchTypeOf()\n expectTypeOf<(typeof data2)['payload']['scalars']>().toHaveProperty('email').toEqualTypeOf()\n expectTypeOf<(typeof data2)['result'] & {}>().toHaveProperty('email').toEqualTypeOf()\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/prisma/prisma/commit/e52af84989c33a359a2bbc0d69c35e07b797f206", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " const nomalizedRange = ([start, end]: [number, number]) =>\n const normalizedRange = ([start, end]: [number, number]) =>\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/toeverything/AFFiNE/commit/ef7ba273ab6ee6812db0ed496187ab3bf3d1476b", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " .flatMap(match => match.indices.map(nomalizedRange));\n .flatMap(match => match.indices.map(normalizedRange));\n const nomalizedRange = ([start, end]: [number, number]) =>\n const normalizedRange = ([start, end]: [number, number]) =>\n .flatMap(match => match.indices.map(nomalizedRange));\n .flatMap(match => match.indices.map(normalizedRange));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/toeverything/AFFiNE/commit/ef7ba273ab6ee6812db0ed496187ab3bf3d1476b", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " .flatMap(match => match.indices.map(nomalizedRange));\n .flatMap(match => match.indices.map(normalizedRange));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/toeverything/AFFiNE/commit/ef7ba273ab6ee6812db0ed496187ab3bf3d1476b", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " showWhen: experimentalImageActionsShowWhen,\n showWhen: imageOnlyShowWhen,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/toeverything/AFFiNE/commit/ce9a3c82ee4367af13dc529f873d005c7239ce3d", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " get collectionsYArray() {\n if (!this.setting.has(COLLECTIONS_KEY)) {\n this.setting.set(COLLECTIONS_KEY, new YArray());\n }\n get collectionsYArray(): YArray | undefined {\n get collectionsTrashYArray() {\n if (!this.setting.has(COLLECTIONS_TRASH_KEY)) {\n this.setting.set(COLLECTIONS_TRASH_KEY, new YArray());\n }\n get collectionsTrashYArray(): YArray | undefined {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/toeverything/AFFiNE/commit/b9345e8d2143427d7d7200dfcc471d2c6c5b6161", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " return this.collectionsYArray.toArray() ?? [];\n return this.collectionsYArray?.toArray() ?? [];\n return this.collectionsTrashYArray.toArray() ?? [];\n return this.collectionsTrashYArray?.toArray() ?? [];\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/toeverything/AFFiNE/commit/b9345e8d2143427d7d7200dfcc471d2c6c5b6161", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " this._db?.close();\n this.sqliteDB?.close();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/toeverything/AFFiNE/commit/ab8669882ab68a7590ee1a091acb0d594bae256b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " if (this._db) {\n this._db.close();\n if (this.sqliteDB) {\n this.sqliteDB.close();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/toeverything/AFFiNE/commit/ab8669882ab68a7590ee1a091acb0d594bae256b", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " this._db = db;\n this.sqliteDB = db;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/toeverything/AFFiNE/commit/ab8669882ab68a7590ee1a091acb0d594bae256b", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " right: right ? right : horizontal ? 'auto' : 'auto',\n bottom: bottom ? bottom : vertical ? 'auto' : 'auto',\n right: right ? right : 'auto',\n bottom: bottom ? bottom : 'auto',\n right: right ? right : horizontal ? 'auto' : 'auto',\n bottom: bottom ? bottom : vertical ? 'auto' : 'auto',\n right: right ? right : 'auto',\n bottom: bottom ? bottom : 'auto',\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/toeverything/AFFiNE/commit/2bde086e2831b7a26033863c3d0a68c8a1184f18", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " \n \n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/toeverything/AFFiNE/commit/727c7428890bf855634973bbe386b4d71521ef96", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " this.filteredPackages = filterPackages(packages, { include, exclude }, this.options.private);\n this.filteredPackages = filterPackages(packages, include, exclude, this.options.private);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/lerna/lerna/commit/47e1c86a10020dfdcb62e13da4460eb1e4db6b29", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "function filterPackages(packagesToFilter, { include = [], exclude = [] }, showPrivate) {\nfunction filterPackages(packagesToFilter, include = [], exclude = [], showPrivate) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/lerna/lerna/commit/47e1c86a10020dfdcb62e13da4460eb1e4db6b29", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " NpmUtilities.publishTaggedInDir(\"published-tag\", directory, {}, callback);\n const npmClient = \"npm\";\n NpmUtilities.publishTaggedInDir(\"published-tag\", pkg, { npmClient }, callback);\n NpmUtilities.publishTaggedInDir(\"trailing-tag \", directory, {}, callback);\n NpmUtilities.publishTaggedInDir(\"trailing-tag \", pkg, { npmClient: \"npm\" }, callback);\n NpmUtilities.publishTaggedInDir(\"published-tag\", directory, { registry }, callback);\n NpmUtilities.publishTaggedInDir(\"custom-registry\", pkg, { npmClient, registry }, callback);\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/lerna/lerna/commit/4dabc7f5e1ab73065d93bf2e79166ccf1203eca2", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 10 ] }, { "input": " ].sort();\n ].sort((a, b) => a - b);\n ].sort();\n ].sort((a, b) => a - b);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/date-fns/date-fns/commit/ad2c654a6a97ebc93961e860760ea1d956fc7cba", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " ].sort();\n ].sort((a, b) => a - b);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/date-fns/date-fns/commit/ad2c654a6a97ebc93961e860760ea1d956fc7cba", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " var year = currentYear > 0 ? value.year : 1 - value.year\n var year =\n !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year\n var year = currentYear > 0 ? value.year : 1 - value.year\n var year =\n !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/date-fns/date-fns/commit/14286ede84cc6bd7164e066d93a1733aaa7a6bf1", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " var result = endOfHour('2014-12-01T13:00:00.000Z')\n expect(result).to.be.eql(new Date(Date.UTC(2014, 11, 1, 13, 59, 59, 999)))\n var date = new Date(2014, 11, 1, 13).toISOString()\n var result = endOfHour(date)\n expect(result).to.be.eql(new Date(2014, 11, 1, 13, 59, 59, 999))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/date-fns/date-fns/commit/dad70b19858fa57e2dd2c7dde709b41fb7b5a730", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7 ] }, { "input": " var date = new Date('2014-09-02T11:55:00')\n var date = new Date(2014, 8 /* Sep */, 2, 11, 55)\n var result = endOfHour('2014-12-01T13:00:00.000Z')\n expect(result).to.be.eql(new Date(Date.UTC(2014, 11, 1, 13, 59, 59, 999)))\n var date = new Date(2014, 11, 1, 13).toISOString()\n var result = endOfHour(date)\n expect(result).to.be.eql(new Date(2014, 11, 1, 13, 59, 59, 999))\n expect(result).to.be.eql(\n new Date('2014-09-02T11:00:00')\n )\n expect(result).to.be.eql(new Date(2014, 8 /* Sep */, 2, 11))\n var date = new Date('2014-09-02T11:55:00')\n var date = new Date(2014, 8 /* Sep */, 2, 11, 55)\n expect(date).to.be.eql(new Date('2014-09-02T11:55:00'))\n expect(date).to.be.eql(new Date(2014, 8 /* Sep */, 2, 11, 55))\n var date = new Date('2014-09-02T11:55:00').getTime()\n var date = new Date(2014, 8 /* Sep */, 2, 11, 55).getTime()\n expect(result).to.be.eql(new Date('2014-09-02T11:00:00'))\n expect(result).to.be.eql(new Date(2014, 8 /* Sep */, 2, 11))\n var date = startOfHour('2014-12-01T12:35:00')\n // We use Date.UTC here, because string '2014-12-01T12:35:00' is in UTC format\n expect(date).to.be.eql(new Date(Date.UTC(2014, 11, 1, 12, 0)))\n var date = new Date(2014, 11 /* Dec */, 1, 12, 45).toISOString()\n var result = startOfHour(date)\n expect(result).to.be.eql(new Date(2014, 11, 1, 12, 0))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3684210526315789, "commit_url": "https://github.com/date-fns/date-fns/commit/dad70b19858fa57e2dd2c7dde709b41fb7b5a730", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7 ] }, { "input": " expect(result).to.be.eql(\n new Date('2014-09-02T11:00:00')\n )\n expect(result).to.be.eql(new Date(2014, 8 /* Sep */, 2, 11))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3684210526315789, "commit_url": "https://github.com/date-fns/date-fns/commit/dad70b19858fa57e2dd2c7dde709b41fb7b5a730", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7 ] }, { "input": " var date = new Date('2014-09-02T11:55:00')\n var date = new Date(2014, 8 /* Sep */, 2, 11, 55)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3684210526315789, "commit_url": "https://github.com/date-fns/date-fns/commit/dad70b19858fa57e2dd2c7dde709b41fb7b5a730", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7 ] }, { "input": " expect(date).to.be.eql(new Date('2014-09-02T11:55:00'))\n expect(date).to.be.eql(new Date(2014, 8 /* Sep */, 2, 11, 55))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3684210526315789, "commit_url": "https://github.com/date-fns/date-fns/commit/dad70b19858fa57e2dd2c7dde709b41fb7b5a730", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7 ] }, { "input": " var date = new Date('2014-09-02T11:55:00').getTime()\n var date = new Date(2014, 8 /* Sep */, 2, 11, 55).getTime()\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3684210526315789, "commit_url": "https://github.com/date-fns/date-fns/commit/dad70b19858fa57e2dd2c7dde709b41fb7b5a730", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7 ] }, { "input": " var date = startOfHour('2014-12-01T12:35:00')\n // We use Date.UTC here, because string '2014-12-01T12:35:00' is in UTC format\n expect(date).to.be.eql(new Date(Date.UTC(2014, 11, 1, 12, 0)))\n var date = new Date(2014, 11 /* Dec */, 1, 12, 45).toISOString()\n var result = startOfHour(date)\n expect(result).to.be.eql(new Date(2014, 11, 1, 12, 0))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3157894736842105, "commit_url": "https://github.com/date-fns/date-fns/commit/dad70b19858fa57e2dd2c7dde709b41fb7b5a730", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6 ] }, { "input": " }, [navigate, addItem, themeIcon, toggleColorScheme]);\n }, [navigate, addItem, Icon, toggleColorScheme]);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/novuhq/novu/commit/aee24296a7085c61a67231538a32c79d0a288c79", "target_edit_idx": 8, "propagatable_edit_idx": [ 4 ] }, { "input": " const { login, currentUser, organizations } = useAuth();\n const { login, currentUser, currentOrganization } = useAuth();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/novuhq/novu/commit/fdca8992fbb16b69028dcf437e24dd042cd3e8aa", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " if (organizations) {\n if (currentOrganization) {\n const { login, currentUser, organizations } = useAuth();\n const { login, currentUser, currentOrganization } = useAuth();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/novuhq/novu/commit/fdca8992fbb16b69028dcf437e24dd042cd3e8aa", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " const unit = watch(`${stepFormPath}.digestMetadata.timed.unit`);\n const unit = watch(`${path}.digestMetadata.timed.unit`);\n const amount = watch(`${stepFormPath}.digestMetadata.timed.minutes.amount`);\n const amount = watch(`${path}.digestMetadata.timed.minutes.amount`);\n const amount = watch(`${stepFormPath}.digestMetadata.timed.hours.amount`);\n const amount = watch(`${path}.digestMetadata.timed.hours.amount`);\n const amount = watch(`${stepFormPath}.digestMetadata.timed.days.amount`);\n const atTime = watch(`${stepFormPath}.digestMetadata.timed.days.atTime`);\n const amount = watch(`${path}.digestMetadata.timed.days.amount`);\n const atTime = watch(`${path}.digestMetadata.timed.days.atTime`);\n const amount = watch(`${stepFormPath}.digestMetadata.timed.weeks.amount`);\n const atTime = watch(`${stepFormPath}.digestMetadata.timed.weeks.atTime`);\n const weekDays = watch(`${stepFormPath}.digestMetadata.timed.weeks.weekDays`) || [];\n const amount = watch(`${path}.digestMetadata.timed.weeks.amount`);\n const atTime = watch(`${path}.digestMetadata.timed.weeks.atTime`);\n const weekDays = watch(`${path}.digestMetadata.timed.weeks.weekDays`) || [];\n const amount = watch(`${stepFormPath}.digestMetadata.timed.months.amount`);\n const monthlyType = watch(`${stepFormPath}.digestMetadata.timed.months.monthlyType`);\n const atTime = watch(`${stepFormPath}.digestMetadata.timed.months.atTime`);\n const monthDays = watch(`${stepFormPath}.digestMetadata.timed.months.monthDays`) || [];\n const amount = watch(`${path}.digestMetadata.timed.months.amount`);\n const monthlyType = watch(`${path}.digestMetadata.timed.months.monthlyType`);\n const atTime = watch(`${path}.digestMetadata.timed.months.atTime`);\n const monthDays = watch(`${path}.digestMetadata.timed.months.monthDays`) || [];\n const ordinal = watch(`${stepFormPath}.digestMetadata.timed.months.ordinal`);\n const ordinalValue = watch(`${stepFormPath}.digestMetadata.timed.months.ordinalValue`);\n const ordinal = watch(`${path}.digestMetadata.timed.months.ordinal`);\n const ordinalValue = watch(`${path}.digestMetadata.timed.months.ordinalValue`);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/novuhq/novu/commit/a953866ba407ae6ca41bd33cc210cfaa4ca01ce9", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7, 8, 9 ] }, { "input": " const amount = watch(`${stepFormPath}.digestMetadata.timed.minutes.amount`);\n const amount = watch(`${path}.digestMetadata.timed.minutes.amount`);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/novuhq/novu/commit/a953866ba407ae6ca41bd33cc210cfaa4ca01ce9", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5, 6, 7, 8, 9 ] }, { "input": " background: `${colors.errorGradient}, ${colors.B17}`,\n background: theme.colorScheme === 'dark' ? `${colors.errorGradient}, ${colors.B17}` : colors.white,\n background: `${colors.errorGradient}, ${colors.B17}`,\n background: theme.colorScheme === 'dark' ? `${colors.errorGradient}, ${colors.B17}` : colors.white,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/novuhq/novu/commit/c90fdc8556280b3bd10ecb5e0ad1a9db4fc21f7c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " background: ${({ count, warningLimit }) => (count > warningLimit ? colors.success : colors.error)};\n background: ${({ limitLeft, warningLimit }) => (limitLeft > warningLimit ? colors.success : colors.error)};\n \n \nconst ProgressBar = styled.div<{ count: number; limit: number; warningLimit: number }>`\nconst ProgressBar = styled.div<{ limitLeft: number; limit: number; warningLimit: number }>`\n width: ${({ count, limit }) => (100 * count) / limit}%;\n width: ${({ limitLeft, limit }) => (100 * limitLeft) / limit}%;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/novuhq/novu/commit/37ca942666af01ab8b86ee31df967e9f447381b5", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4, 6 ] }, { "input": "import { Collapse, UnstyledButton, useMantineTheme } from '@mantine/core';\nimport { ActionIcon, Collapse, Tooltip, UnstyledButton, useMantineTheme } from '@mantine/core';\nimport { UnstyledButton, useMantineTheme } from '@mantine/core';\nimport { ActionIcon, UnstyledButton, useMantineTheme } from '@mantine/core';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/novuhq/novu/commit/9c08fdeb9bc862462df95020254e88cd0684fcc3", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " {Object.keys(type).map((key, ind) => {\n {Object.keys(type).map((key, index) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/novuhq/novu/commit/5ac647eb412802ee06315e36fd276fb451b27ae4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " return ;\n return ;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/novuhq/novu/commit/5ac647eb412802ee06315e36fd276fb451b27ae4", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " return ;\n return ;\n {Object.keys(type).map((key, ind) => {\n {Object.keys(type).map((key, index) => {\n return ;\n return ;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/novuhq/novu/commit/5ac647eb412802ee06315e36fd276fb451b27ae4", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " return ;\n return ;\n return ;\n return ;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/novuhq/novu/commit/5ac647eb412802ee06315e36fd276fb451b27ae4", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "import { JobStatusEnum, StepTypeEnum } from '@novu/shared';\nimport { ExecutionDetailsStatusEnum, StepTypeEnum } from '@novu/shared';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/novuhq/novu/commit/0de79ddbb3a54e0b404ecba021e83519e7bd3f8c", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "export const getColorByStatus = (theme: MantineTheme, status: JobStatusEnum): string => {\n if (status === JobStatusEnum.FAILED) {\nexport const getColorByStatus = (theme: MantineTheme, status: ExecutionDetailsStatusEnum): string => {\n if (status === ExecutionDetailsStatusEnum.FAILED) {\nimport { JobStatusEnum, StepTypeEnum } from '@novu/shared';\nimport { ExecutionDetailsStatusEnum, StepTypeEnum } from '@novu/shared';\n if (status === JobStatusEnum.COMPLETED) {\n if (status === ExecutionDetailsStatusEnum.SUCCESS) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/novuhq/novu/commit/0de79ddbb3a54e0b404ecba021e83519e7bd3f8c", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "import { ColorScheme, ListItem } from '../../index';\nimport { ColorScheme, ITab, ListItem } from '../../index';\nimport { ColorScheme, ListItem } from '../../index';\nimport { ColorScheme, ListItem, ITab } from '../../index';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/novuhq/novu/commit/a8a4df3f00eef1944363e6753658a987b3fc9886", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " return message.template.type === ChannelTypeEnum.SMS &&\n (activeStep === message._id || activeStep === message.id) ? (\n return message.template.type === ChannelTypeEnum.SMS && activeStep === index ? (\n return message.template.type === ChannelTypeEnum.EMAIL &&\n (activeStep === message._id || activeStep === message.id) ? (\n return message.template.type === ChannelTypeEnum.EMAIL && activeStep === index ? (\n return message.template.type === ChannelTypeEnum.IN_APP &&\n (activeStep === message._id || activeStep === message.id) ? (\n return message.template.type === ChannelTypeEnum.IN_APP && activeStep === index ? (\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/novuhq/novu/commit/95e0aea70e68623204c97902c79aa19e07d438d4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " const isEnabled = getTypeOrmConfig().some(conf => conf.type === \"sqlite\" && conf.skip === false)\n if (!isEnabled) return\n const isEnabled = getTypeOrmConfig().some(conf => conf.type === \"sqlite\" && conf.skip === false);\n if (!isEnabled) return;\n const isEnabled = getTypeOrmConfig().some(conf => conf.type === \"better-sqlite3\" && conf.skip === false)\n if (!isEnabled) return\n const isEnabled = getTypeOrmConfig().some(conf => conf.type === \"better-sqlite3\" && conf.skip === false);\n if (!isEnabled) return;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/typeorm/typeorm/commit/a24d48a623ee23523202d8e1db83b14c859b8c4c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " async createSchema(schema: string, ifNotExist?: boolean): Promise {\n async createSchema(schemaPath: string, ifNotExist?: boolean): Promise {\n const schema = schemaPath.indexOf(\".\") === -1 ? schemaPath : schemaPath.split(\".\")[1];\n\n async createSchema(schema: string, ifNotExist?: boolean): Promise {\n async createSchema(schemaPath: string, ifNotExist?: boolean): Promise {\n async createSchema(schema: string, ifNotExist?: boolean): Promise {\n async createSchema(schemaPath: string, ifNotExist?: boolean): Promise {\n async createSchema(schema: string, ifNotExist?: boolean): Promise {\n async createSchema(schemaPath: string, ifNotExist?: boolean): Promise {\n async createSchema(schema: string, ifNotExist?: boolean): Promise {\n async createSchema(schemaPath: string, ifNotExist?: boolean): Promise {\n const schema = schemaPath.indexOf(\".\") === -1 ? schemaPath : schemaPath.split(\".\")[1];\n\n async createSchema(schema: string, ifNotExist?: boolean): Promise {\n async createSchema(schemaPath: string, ifNotExist?: boolean): Promise {\n const schema = schemaPath.indexOf(\".\") === -1 ? schemaPath : schemaPath.split(\".\")[1];\n\n async createSchema(schema: string, ifNotExist?: boolean): Promise {\n async createSchema(schemaPath: string, ifNotExist?: boolean): Promise {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/typeorm/typeorm/commit/94edd12ca450d4dbcd2e4902e1009fcd27136490", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 6, 8, 9 ] }, { "input": " const schema = schemaPath.indexOf(\".\") === -1 ? schemaPath : schemaPath.split(\".\")[0];\n const schema = schemaPath.indexOf(\".\") === -1 ? schemaPath : schemaPath.split(\".\")[1];\n\n const schema = schemaPath.indexOf(\".\") === -1 ? schemaPath : schemaPath.split(\".\")[0];\n const schema = schemaPath.indexOf(\".\") === -1 ? schemaPath : schemaPath.split(\".\")[1];\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/typeorm/typeorm/commit/94edd12ca450d4dbcd2e4902e1009fcd27136490", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " async createSchema(schema: string, ifNotExist?: boolean): Promise {\n async createSchema(schemaPath: string, ifNotExist?: boolean): Promise {\n const schema = schemaPath.indexOf(\".\") === -1 ? schemaPath : schemaPath.split(\".\")[1];\n\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/typeorm/typeorm/commit/94edd12ca450d4dbcd2e4902e1009fcd27136490", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 3, 4, 8, 9 ] }, { "input": " let directory = args.dir;\n let directory = args.dir as string;\n let directory = args.dir;\n let directory = args.dir as string;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/typeorm/typeorm/commit/d9a76e91bed06037ff28ec132893f40c09004438", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " const path = process.cwd() + \"/\" + (directory ? (directory + \"/\") : \"\") + filename;\n const path = (directory.startsWith(\"/\") ? \"\" : process.cwd() + \"/\") + (directory ? (directory + \"/\") : \"\") + filename;\n const path = process.cwd() + \"/\" + (directory ? (directory + \"/\") : \"\") + filename;\n const path = (directory.startsWith(\"/\") ? \"\" : process.cwd() + \"/\") + (directory ? (directory + \"/\") : \"\") + filename;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/typeorm/typeorm/commit/d9a76e91bed06037ff28ec132893f40c09004438", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " upSqls.push(\" await queryRunner.query(\\\"\" + upQuery.query.replace(new RegExp(`\"`, \"g\"), `\\\\\"`) + \"\\\");\");\n upSqls.push(\" await queryRunner.query(\\\"\" + upQuery.query.replace(new RegExp(`\"`, \"g\"), `\\\\\"`) + \"\\\", \" + JSON.stringify(upQuery.parameters) + \");\");\n downSqls.push(\" await queryRunner.query(\\\"\" + downQuery.query.replace(new RegExp(`\"`, \"g\"), `\\\\\"`) + \"\\\");\");\n downSqls.push(\" await queryRunner.query(\\\"\" + downQuery.query.replace(new RegExp(`\"`, \"g\"), `\\\\\"`) + \"\\\", \" + JSON.stringify(downQuery.parameters) + \");\");\n upSqls.push(\" await queryRunner.query(`\" + upQuery.query.replace(new RegExp(\"`\", \"g\"), \"\\\\`\") + \"`);\");\n upSqls.push(\" await queryRunner.query(`\" + upQuery.query.replace(new RegExp(\"`\", \"g\"), \"\\\\`\") + \"`, \" + JSON.stringify(upQuery.parameters) + \");\");\n downSqls.push(\" await queryRunner.query(`\" + downQuery.query.replace(new RegExp(\"`\", \"g\"), \"\\\\`\") + \"`);\");\n downSqls.push(\" await queryRunner.query(`\" + downQuery.query.replace(new RegExp(\"`\", \"g\"), \"\\\\`\") + \"`, \" + JSON.stringify(downQuery.parameters) + \");\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/typeorm/typeorm/commit/c52b3d225c1b4a621f3239f5e3babd4a70ccc0a5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " connection = (await createTestingConnections({\n connections = (await createTestingConnections({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/typeorm/typeorm/commit/3e09cb7df5804f14b1acaf8712e089999e6ea6c7", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " return DateUtils.mixedDateToDate(value, true, false);\n return DateUtils.mixedDateToDate(value, false, false);\n return DateUtils.mixedDateToDate(value, true, true);\n return DateUtils.mixedDateToDate(value, false, true);\n", "class": "clone", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/typeorm/typeorm/commit/145212a77aedfeaf908f9d398699d668f26ad074", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " const newColumnSchema = ColumnSchema.create(columnMetadata!, this.connection.driver.normalizeType(columnMetadata!), this.connection.driver.normalizeDefault(columnMetadata!));\n const newColumnSchema = ColumnSchema.create(columnMetadata!, \n this.connection.driver.normalizeType(columnMetadata!), \n this.connection.driver.normalizeDefault(columnMetadata!),\n this.connection.driver.getColumnLength(columnMetadata!));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/typeorm/typeorm/commit/99dfeb7647cc4f1659116ca5c263be5ec9eb9290", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " tableSchema.columns.push(ColumnSchema.create(column, driver.normalizeType(column), driver.normalizeDefault(column)));\n const columnSchema = ColumnSchema.create(column, \n driver.normalizeType(column), \n driver.normalizeDefault(column),\n driver.getColumnLength(column)); \n tableSchema.columns.push(columnSchema);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/typeorm/typeorm/commit/99dfeb7647cc4f1659116ca5c263be5ec9eb9290", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " const jsArguments = js.actionConfiguration.jsArguments;\n const jsArguments = js.actionConfiguration?.jsArguments;\n const jsArguments = js.actionConfiguration.jsArguments;\n const jsArguments = js.actionConfiguration?.jsArguments;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/appsmithorg/appsmith/commit/047134d7ce2ef6d26511fd3b4ed21dbdd28d6413", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return queryAll(List.of(contextIdAndContextTypeCriteria), Optional.of(permission));\n return queryAll(List.of(contextIdAndContextTypeCriteria), Optional.ofNullable(permission));\n return queryAll(List.of(contextIdAndContextTypeCriteria), Optional.of(permission));\n return queryAll(List.of(contextIdAndContextTypeCriteria), Optional.ofNullable(permission));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/appsmithorg/appsmith/commit/6470a9456b6a566da4bce274dccab64c9d9a721f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " checkRampLink(\"app_settings\");\n checkRampLink();\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/9b595e07758f2f1cf97153ec30a3d596e1089f26", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " checkRampLink(\"share_modal\");\n checkRampLink();\n checkRampLink(\"app_settings\");\n checkRampLink();\n function checkRampLink(section: string) {\n const escapedSection = section.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, \"\\\\$&\");\n const regexPattern = new RegExp(\n `https:\\\\/\\\\/www\\\\.appsmith\\\\.com\\\\/pricing\\\\?source=CE&instance=.+&feature=private_embeds§ion=${escapedSection}`,\n );\n\n function checkRampLink() {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/9b595e07758f2f1cf97153ec30a3d596e1089f26", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " function checkRampLink(section: string) {\n const escapedSection = section.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, \"\\\\$&\");\n const regexPattern = new RegExp(\n `https:\\\\/\\\\/www\\\\.appsmith\\\\.com\\\\/pricing\\\\?source=CE&instance=.+&feature=private_embeds§ion=${escapedSection}`,\n );\n\n function checkRampLink() {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/9b595e07758f2f1cf97153ec30a3d596e1089f26", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " \n \n \n \n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/265832d17fafd14866ff735ffaf31e3a38080d5f", "target_edit_idx": 5, "propagatable_edit_idx": [ 9 ] }, { "input": " margin-right: ${(props) => props.theme.spaces[10]}px;\n margin-left: ${(props) => props.theme.spaces[10]}px;\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/appsmithorg/appsmith/commit/bdcc99b53b56e46e38bdbe66ea763e533f805ec4", "target_edit_idx": 0, "propagatable_edit_idx": [ 12 ] }, { "input": " expiresAt = Instant.ofEpochSecond(Long.valueOf((Integer) expiresAtResponse));\n expiresAt = Instant.ofEpochSecond(Long.parseLong(String.valueOf(expiresAtResponse)));\n expiresAt = Instant.ofEpochSecond(Long.valueOf((Integer) expiresAtResponse));\n expiresAt = Instant.ofEpochSecond(Long.parseLong(String.valueOf(expiresAtResponse)));\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/appsmithorg/appsmith/commit/e36b352a42882a4dfe9d91d497aab8b5a792a6d6", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " expiresAt = issuedAt.plusSeconds(Long.valueOf((Integer) expiresInResponse));\n expiresAt = issuedAt.plusSeconds(Long.parseLong(String.valueOf(expiresInResponse)));\n expiresAt = issuedAt.plusSeconds(Long.valueOf((Integer) expiresInResponse));\n expiresAt = issuedAt.plusSeconds(Long.parseLong(String.valueOf(expiresInResponse)));\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/appsmithorg/appsmith/commit/e36b352a42882a4dfe9d91d497aab8b5a792a6d6", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " {!disableSignup && (\n {!disableLoginForm && (\nconst { disableSignup, googleRecaptchaSiteKey } = getAppsmithConfigs();\nconst { disableLoginForm, googleRecaptchaSiteKey } = getAppsmithConfigs();\n if (disableSignup) {\n if (disableLoginForm) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/d4483f4a5aea556a5eba592a4730a427e8af45b5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "const { disableSignup, googleRecaptchaSiteKey } = getAppsmithConfigs();\nconst { disableLoginForm, googleRecaptchaSiteKey } = getAppsmithConfigs();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/d4483f4a5aea556a5eba592a4730a427e8af45b5", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " if (disableSignup) {\n if (disableLoginForm) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/d4483f4a5aea556a5eba592a4730a427e8af45b5", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " .filter(newAction -> !PluginType.JS.equals(newAction.getPluginType()))\n .filter(newAction -> !PluginType.JS.equals(newAction.getPluginType()))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/appsmithorg/appsmith/commit/bc93a1d4131bc0090960900578ed82282a29b391", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " collabStopSharingPointerEvent: () => void;\n collabStopSharingPointerEvent: (pageId?: string) => void;\n collabStopSharingPointerEvent: () =>\n dispatch(collabStopSharingPointerEvent()),\n collabStopSharingPointerEvent: (pageId?: string) =>\n dispatch(collabStopSharingPointerEvent(pageId)),\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/c6c805a1855ba05979205d967b3004cccf7240ce", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " collabStopSharingPointerEvent: () => void;\n collabStopSharingPointerEvent: (pageId?: string) => void;\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/c43854677f20f2570a417a516b6a0b05f3d8872a", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " INTEGRATION_EDITOR_URL(applicationId, pageId, INTEGRATION_TABS.NEW),\n INTEGRATION_EDITOR_URL(\n applicationId,\n pageId,\n INTEGRATION_TABS.NEW,\n INTEGRATION_EDITOR_MODES.AUTO,\n ),\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/b3d7f08d4ee82a3a69fe9a63e32caee5332759c6", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " .flatMap(applicationService::createDefault)\n .zipWith(userMono)\n .flatMap(tuple -> {\n Application application1 = tuple.getT1();\n application1.setModifiedBy(tuple.getT2().getUsername()); // setting modified by to current user\n return applicationService.createDefault(application1);\n })\n .flatMap(applicationService::createDefault)\n .zipWith(userMono)\n .flatMap(applicationUserTuple2 -> {\n Application application1 = applicationUserTuple2.getT1();\n application1.setModifiedBy(applicationUserTuple2.getT2().getUsername()); // setting modified by to current user\n return applicationService.createDefault(application1);\n })\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/appsmithorg/appsmith/commit/28adc4e9286bbd7f2179d3e9e4136c46acf46c5e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "import { getCanManage } from \"utils/helpers\";\nimport { getCanCreateApplications } from \"utils/helpers\";\n const canManage = getCanManage(currentOrg);\n const canManage = getCanCreateApplications(currentOrg);\nimport { getCanManage } from \"utils/helpers\";\nimport { getCanCreateApplications } from \"utils/helpers\";\n const canManage = getCanManage(currentOrg);\n const canManage = getCanCreateApplications(currentOrg);\nexport const getCanManage = (currentOrg: Org) => {\n// Can be used to check if the user has developer role access to org\nexport const getCanCreateApplications = (currentOrg: Org) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/d6c10b75f80f73f632f59c9381a4c2656a05b6b2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " const canManage = getCanManage(currentOrg);\n const canManage = getCanCreateApplications(currentOrg);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/d6c10b75f80f73f632f59c9381a4c2656a05b6b2", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": " assertTrue(page.getOrder() == 0);\n assertThat(page.getOrder()).isEqualTo(0);\n assertTrue(page.getOrder() == 1);\n assertThat(page.getOrder()).isEqualTo(1);\n assertTrue(page.getOrder() == 0);\n assertThat(page.getOrder()).isEqualTo(0);\n assertTrue(page.getOrder() == 2);\n assertThat(page.getOrder()).isEqualTo(2);\n assertTrue(page.getOrder() == 1);\n assertThat(page.getOrder()).isEqualTo(1);\n assertTrue(page.getOrder() == 1);\n assertThat(page.getOrder()).isEqualTo(1);\n assertTrue(page.getOrder() == 0);\n assertThat(page.getOrder()).isEqualTo(0);\n assertTrue(page.getOrder() == 2);\n assertThat(page.getOrder()).isEqualTo(2);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/appsmithorg/appsmith/commit/9932f918f9471f0799e5a74b1a41c8c4369922ed", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " assertEquals(Map.of(\"id\", \"one\", \"path\", \"initial/one\"), first.remove(\"$ref\"));\n assertEquals(Map.of(\"id\", \"one\", \"path\", \"initial/one\"), first.remove(\"_ref\"));\n assertEquals(Map.of(\"id\", \"two\", \"path\", \"initial/two\"), doc.remove(\"$ref\"));\n assertEquals(Map.of(\"id\", \"two\", \"path\", \"initial/two\"), doc.remove(\"_ref\"));\n assertEquals(Map.of(\"id\", \"one\", \"path\", \"initial/one\"), first.remove(\"$ref\"));\n assertEquals(Map.of(\"id\", \"one\", \"path\", \"initial/one\"), first.remove(\"_ref\"));\n assertEquals(Map.of(\"id\", \"two\", \"path\", \"initial/two\"), second.remove(\"$ref\"));\n assertEquals(Map.of(\"id\", \"two\", \"path\", \"initial/two\"), second.remove(\"_ref\"));\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/appsmithorg/appsmith/commit/198abbf37d2885baaa8cf2b34babd8e05073ac89", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4, 5 ] }, { "input": " assertEquals(Map.of(\"id\", \"inner-ref\", \"path\", \"initial/inner-ref\"), doc.remove(\"$ref\"));\n assertEquals(Map.of(\"id\", \"inner-ref\", \"path\", \"initial/inner-ref\"), doc.remove(\"_ref\"));\n assertEquals(Map.of(\"id\", \"inner-ref\", \"path\", \"initial/inner-ref\"), third.remove(\"$ref\"));\n assertEquals(Map.of(\"id\", \"inner-ref\", \"path\", \"initial/inner-ref\"), third.remove(\"_ref\"));\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/appsmithorg/appsmith/commit/198abbf37d2885baaa8cf2b34babd8e05073ac89", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": "import { Action } from \"entities/Action\";\nimport { Action, ActionViewMode } from \"entities/Action\";\nimport { Action } from \"entities/Action\";\nimport { Action, ActionViewMode } from \"entities/Action\";\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/40e42b296dcc106955b41a1709262e0dc106f52d", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " ): AxiosPromise> {\n ): AxiosPromise> {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/appsmithorg/appsmith/commit/40e42b296dcc106955b41a1709262e0dc106f52d", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " const response: GenericApiResponse = yield ActionAPI.fetchActionsForViewMode(\n const response: GenericApiResponse = yield ActionAPI.fetchActionsForViewMode(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/appsmithorg/appsmith/commit/40e42b296dcc106955b41a1709262e0dc106f52d", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": " ", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/appsmithorg/appsmith/commit/527b7b613ef9fd6d815d6183a95b181c103fabd5", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " public Flux executeQuery(String id, CommandQueryParams params) {\n log.debug(\"Going to execute query with id: {}\", id);\n public Flux executeQuery(String name, CommandQueryParams params) {\n log.debug(\"Going to execute query with name: {}\", name);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/appsmithorg/appsmith/commit/2a5656afbb29ad8a7b1cfa37bfd6e0e2bb396289", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " Mono queryMono = repository.findById(id)\n .switchIfEmpty(Mono.defer(() -> Mono.error(new MobtoolsException(\"Unable to find query by id: \" + id))));\n Mono queryMono = repository.findByName(name)\n .switchIfEmpty(Mono.defer(() -> Mono.error(new MobtoolsException(\"Unable to find query by id: \" + name))));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/appsmithorg/appsmith/commit/2a5656afbb29ad8a7b1cfa37bfd6e0e2bb396289", "target_edit_idx": 8, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " packageUsername\n username\n packageUsername\n username\n packageUsername\n username\n packageUsername\n username\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/expo/expo/commit/17ceb8e628d63eb9d44be969e89f3966e2a1098c", "target_edit_idx": 8, "propagatable_edit_idx": [ 10, 11, 12 ] }, { "input": " initializeFlipper(this, getReactNativeHost().getReactInstanceManager());\n initializeFlipper(this, getReactNativeHost().getReactInstanceManager());\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/expo/expo/commit/9ce589594ce7f219907ba85e2998f96e302e2198", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " /* WHEN_DISTRIBUTING_REMOVE_FROM_HERE\n // WHEN_DISTRIBUTING_REMOVE_FROM_HERE\n /* WHEN_DISTRIBUTING_REMOVE_FROM_HERE\n // WHEN_DISTRIBUTING_REMOVE_FROM_HERE\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/expo/expo/commit/b69c5097ac7acc231e104b3b9212896726e4f6c0", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " WHEN_DISTRIBUTING_REMOVE_TO_HERE */\n // WHEN_DISTRIBUTING_REMOVE_TO_HERE\n WHEN_DISTRIBUTING_REMOVE_TO_HERE */\n // WHEN_DISTRIBUTING_REMOVE_TO_HERE\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/expo/expo/commit/b69c5097ac7acc231e104b3b9212896726e4f6c0", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " hasCachedBundle = Exponent.getInstance().loadJSBundle(bundleUrl, id, mSDKVersion,\n hasCachedBundle = Exponent.getInstance().loadJSBundle(manifest, bundleUrl, id, mSDKVersion,\n hasCachedBundle = Exponent.getInstance().loadJSBundle(bundleUrl, id, mSDKVersion,\n hasCachedBundle = Exponent.getInstance().loadJSBundle(mManifest, bundleUrl, id, mSDKVersion,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/expo/expo/commit/10824c3cc94c07167bed37be9893920e81ae26d2", "target_edit_idx": 0, "propagatable_edit_idx": [ 9 ] }, { "input": " mapped[j] = createRoot(mapper);\n mapped[j] = createRoot(mapper, ctx);\n } else mapped[j] = createRoot(mapper);\n } else mapped[j] = createRoot(mapper, ctx);\n mapped[i] = createRoot(mapper);\n mapped[i] = createRoot(mapper, ctx);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/solidjs/solid/commit/1d8c557944114cec5f969cb70cdacec9d35d12d1", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 7 ] }, { "input": "import { COMPUTED_COLUMNS_SUPPORT } from '../../../helpers/versionUtils';\nimport { COMPUTED_FIELDS_SUPPORT } from '../../../helpers/versionUtils';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hasura/graphql-engine/commit/a8fe0b6619e273d103db2056cb6e7c7facf44080", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5 ] }, { "input": " globals.featuresCompatibility[COMPUTED_COLUMNS_SUPPORT];\n globals.featuresCompatibility[COMPUTED_FIELDS_SUPPORT];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hasura/graphql-engine/commit/a8fe0b6619e273d103db2056cb6e7c7facf44080", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 5 ] }, { "input": "import { COMPUTED_COLUMNS_SUPPORT } from '../../../../helpers/versionUtils';\nimport { COMPUTED_FIELDS_SUPPORT } from '../../../../helpers/versionUtils';\nimport { COMPUTED_COLUMNS_SUPPORT } from '../../../helpers/versionUtils';\nimport { COMPUTED_FIELDS_SUPPORT } from '../../../helpers/versionUtils';\n globals.featuresCompatibility[COMPUTED_COLUMNS_SUPPORT];\n globals.featuresCompatibility[COMPUTED_FIELDS_SUPPORT];\n globals.featuresCompatibility[COMPUTED_COLUMNS_SUPPORT]\n globals.featuresCompatibility[COMPUTED_FIELDS_SUPPORT]\n [COMPUTED_COLUMNS_SUPPORT]: 'v1.0.0-beta.8',\n [COMPUTED_FIELDS_SUPPORT]: 'v1.0.0-beta.8',\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hasura/graphql-engine/commit/a8fe0b6619e273d103db2056cb6e7c7facf44080", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 5 ] }, { "input": " [COMPUTED_COLUMNS_SUPPORT]: 'v1.0.0-beta.8',\n [COMPUTED_FIELDS_SUPPORT]: 'v1.0.0-beta.8',\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/hasura/graphql-engine/commit/a8fe0b6619e273d103db2056cb6e7c7facf44080", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " {\n type: 'run_sql',\n args: {\n sql: columnChangesUpQuery,\n {\n type: 'run_sql',\n args: {\n sql: columnChangesUpQuery,\n },\n {\n type: 'run_sql',\n args: {\n sql: columnChangesDownQuery,\n {\n type: 'run_sql',\n args: {\n sql: columnChangesDownQuery,\n },\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/hasura/graphql-engine/commit/5a8a34b8cf7674037532f624b9c234e92ca8ee26", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " const searchParams = useSearchParams();\n const teamId = Number(searchParams?.get(\"id\"));\n const params = useParamsWithFallback();\n const teamId = Number(params.id);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/calcom/cal.com/commit/ada0ef242b7665dfea7014e6f9365dc2032eb444", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "export async function getDynamicEventType(input: TGetScheduleInputSchema) {\nexport async function getDynamicEventType(\n input: TGetScheduleInputSchema,\n organizationDetails: { currentOrgDomain: string | null; isValidOrgDomain: boolean }\n) {\n const { currentOrgDomain, isValidOrgDomain } = organizationDetails;\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/calcom/cal.com/commit/7154349e9ef09aa8d26fd6493dd68ef6a46c31dc", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " return isDynamicBooking ? getDynamicEventType(input) : getEventType(input, organizationDetails);\n return isDynamicBooking\n ? getDynamicEventType(input, organizationDetails)\n : getEventType(input, organizationDetails);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/calcom/cal.com/commit/7154349e9ef09aa8d26fd6493dd68ef6a46c31dc", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " if (!unscheduledReminders.length) res.json({ ok: true });\n if (!unscheduledReminders.length) {\n res.json({ ok: true });\n return;\n }\n if (!unscheduledReminders.length) res.json({ ok: true });\n if (!unscheduledReminders.length) {\n res.json({ ok: true });\n return;\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/calcom/cal.com/commit/879bc3f1699ebd44852e1065a29d52e405fce83a", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " return Promise.reject(\"No suitable credentials given for the requested integration name.\");\n return Promise.reject(\n `No suitable credentials given for the requested integration name:${event.location}`\n );\n return Promise.reject(\"No suitable credentials given for the requested integration name.\");\n return Promise.reject(\n `No suitable credentials given for the requested integration name:${event.location}`\n );\n return Promise.reject(\"No suitable credentials given for the requested integration name.\");\n return Promise.reject(\n `No suitable credentials given for the requested integration name:${event.location}`\n );\n return Promise.reject(\"No suitable credentials given for the requested integration name.\");\n return Promise.reject(\n `No suitable credentials given for the requested integration name:${event.location}`\n );\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/calcom/cal.com/commit/01fdbaa990a26950a9d61f8d234c9679496bbe46", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "import { from } from '../observable/from';\nimport { innerFrom } from '../observable/innerFrom';\nimport { from } from '../observable/from';\nimport { innerFrom } from '../observable/innerFrom';\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ReactiveX/rxjs/commit/9948dc2f5577eaa4013de234f3552508918518c7", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " from(selector(fromSubscribable(subject))).subscribe(subscriber);\n innerFrom(selector(fromSubscribable(subject))).subscribe(subscriber);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ReactiveX/rxjs/commit/9948dc2f5577eaa4013de234f3552508918518c7", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " from(source).subscribe(connection);\n innerFrom(source).subscribe(connection);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ReactiveX/rxjs/commit/9948dc2f5577eaa4013de234f3552508918518c7", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": "import { empty } from './observable/empty';\nimport { EMPTY } from './observable/empty';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ReactiveX/rxjs/commit/d4396072fa28a848a729b4c6565ab084109ed36c", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 6 ] }, { "input": " return empty();\n return EMPTY;\n return empty();\n return EMPTY;\n return empty();\n return EMPTY;\n return empty();\n return EMPTY;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ReactiveX/rxjs/commit/d4396072fa28a848a729b4c6565ab084109ed36c", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 7 ] }, { "input": "import { empty } from '../observable/empty';\nimport { EMPTY } from '../observable/empty';\nimport { empty } from './observable/empty';\nimport { EMPTY } from './observable/empty';\nimport { empty } from '../observable/empty';\nimport { EMPTY } from '../observable/empty';\nimport { empty } from '../observable/empty';\nimport { EMPTY } from '../observable/empty';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ReactiveX/rxjs/commit/d4396072fa28a848a729b4c6565ab084109ed36c", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": "import { Observable } from '../Observable';\nimport { Observable, ObservableInput } from '../Observable';\nimport { Observable } from '../Observable';\nimport { Observable, ObservableInput } from '../Observable';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ReactiveX/rxjs/commit/23fe17dd98fda5f1b485e301d7c18955a8068f9b", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " accumulator: (acc: R, value: T) => Observable,\n accumulator: (acc: R, value: T) => ObservableInput,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/ReactiveX/rxjs/commit/23fe17dd98fda5f1b485e301d7c18955a8068f9b", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "export function mergeScan(accumulator: (acc: R, value: T) => Observable,\nexport function mergeScan(accumulator: (acc: R, value: T) => ObservableInput,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ReactiveX/rxjs/commit/23fe17dd98fda5f1b485e301d7c18955a8068f9b", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": " constructor(private accumulator: (acc: R, value: T) => Observable,\n constructor(private accumulator: (acc: R, value: T) => ObservableInput,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ReactiveX/rxjs/commit/23fe17dd98fda5f1b485e301d7c18955a8068f9b", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": " private accumulator: (acc: R, value: T) => Observable,\n private accumulator: (acc: R, value: T) => ObservableInput,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ReactiveX/rxjs/commit/23fe17dd98fda5f1b485e301d7c18955a8068f9b", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": " it('should extend Subject', (done: MochaDone) => {\n it('should extend Subject', () => {\n it('should extend Subject', (done: MochaDone) => {\n it('should extend Subject', () => {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ReactiveX/rxjs/commit/e061a046305d35fce25cb864878c0b13bd2970f0", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " expect(subject instanceof Rx.Subject).to.be.true;\n done();\n expect(subject).to.be.instanceof(Rx.Subject);\n expect(subject instanceof Rx.Subject).to.be.true;\n done();\n expect(subject).to.be.instanceof(Rx.Subject);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ReactiveX/rxjs/commit/e061a046305d35fce25cb864878c0b13bd2970f0", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " return this._getSubject().subscribe(subscriber);\n return this.getSubject().subscribe(subscriber);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ReactiveX/rxjs/commit/3c43c84ae49d7ab514a974483749c904238f3f1f", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " subscription = source.subscribe(this._getSubject());\n subscription = source.subscribe(this.getSubject());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ReactiveX/rxjs/commit/3c43c84ae49d7ab514a974483749c904238f3f1f", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " _unsubscribe() {\n protected _unsubscribe() {\n _unsubscribe() {\n protected _unsubscribe() {\n _unsubscribe() {\n protected _unsubscribe() {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ReactiveX/rxjs/commit/3c43c84ae49d7ab514a974483749c904238f3f1f", "target_edit_idx": 6, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " var objectTypes = {\n 'boolean': false,\n 'function': true,\n 'object': true,\n 'number': false,\n 'string': false,\n 'undefined': false\n };\n\n var objectTypes = {\n 'boolean': false,\n 'function': true,\n 'object': true,\n 'number': false,\n 'string': false,\n 'undefined': false\n };\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ReactiveX/rxjs/commit/d5adbd46a7ebf1c8cf93229b1b52b3dabbf60bc1", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " var _root = (objectTypes[typeof self] && self) || (objectTypes[typeof window] && window);\n\n var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;\n var freeModule = objectTypes[typeof module] && module && !module.nodeType && module;\n var freeGlobal = objectTypes[typeof global] && global;\n\n if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) {\n _root = freeGlobal;\n }\n\n global.__root__ = _root;\n global.__root__ = root;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ReactiveX/rxjs/commit/d5adbd46a7ebf1c8cf93229b1b52b3dabbf60bc1", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " var _root = (objectTypes[typeof self] && self) || (objectTypes[typeof window] && window);\n\n var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;\n var freeModule = objectTypes[typeof module] && module && !module.nodeType && module;\n var freeGlobal = objectTypes[typeof global] && global;\n\n if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) {\n _root = freeGlobal;\n }\n\n global.__root__ = _root;\n global.__root__ = root;\n var _root = (objectTypes[typeof self] && self) || (objectTypes[typeof window] && window);\n\n var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;\n var freeModule = objectTypes[typeof module] && module && !module.nodeType && module;\n var freeGlobal = objectTypes[typeof global] && global;\n\n if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) {\n _root = freeGlobal;\n }\n\n global.__root__ = _root;\n global.__root__ = root;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/ReactiveX/rxjs/commit/d5adbd46a7ebf1c8cf93229b1b52b3dabbf60bc1", "target_edit_idx": 7, "propagatable_edit_idx": [ 2 ] }, { "input": " results = tryCatch(selector).apply(ctx, innerArgs);\n results = tryCatch(selector).apply(this, innerArgs);\n results = tryCatch(selector).apply(ctx, innerArgs);\n results = tryCatch(selector).apply(this, innerArgs);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ReactiveX/rxjs/commit/feea9a11f1d40a70b2927167f7cabcdb9ed84979", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "\tuseShortcut('explorerEscape', () => {\n\t\tif (!explorerView.selectable || explorer.selectedItems.size === 0) return;\n\t\tif (explorerStore.isCMDPOpen) return;\n\t\texplorer.resetSelectedItems([]);\n\t\tsetRanges([]);\n\t});\n\n\tuseShortcut('explorerEscape', () => {\n\t\tif (!selectable || explorer.selectedItems.size === 0) return;\n\t\tif (explorerStore.isCMDPOpen) return;\n\t\texplorer.resetSelectedItems([]);\n\tuseShortcut('explorerEscape', () => explorer.resetSelectedItems([]), {\n\t\tdisabled: !selectable || explorer.selectedItems.size === 0\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spacedriveapp/spacedrive/commit/13e4ff6107d7835b553ecbd4b2b824ac273aa58e", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": "\tuseLayoutEffect(() => handleWindowResize(), []);\n\tuseEffect(() => handleWindowResize(), []);\n\tuseLayoutEffect(() => {\n\tuseEffect(() => {\n\tuseLayoutEffect(() => handleWindowResize(), []);\n\tuseEffect(() => handleWindowResize(), []);\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spacedriveapp/spacedrive/commit/d8aa70cca42a4b5a7ce6540cb30de6180f85ac2b", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "\tuseLayoutEffect(() => {\n\tuseEffect(() => {\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spacedriveapp/spacedrive/commit/d8aa70cca42a4b5a7ce6540cb30de6180f85ac2b", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 5 ] }, { "input": "\tuseLayoutEffect(() => handleWindowResize(), []);\n\tuseEffect(() => handleWindowResize(), []);\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/spacedriveapp/spacedrive/commit/d8aa70cca42a4b5a7ce6540cb30de6180f85ac2b", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " unscubscibe = () => {\n unsubscribe = () => {\n return [provider, mutate, unscubscibe]\n return [provider, mutate, unsubscribe]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/swr/commit/a9c6d79b2377a21a8782143a56d243cf71995418", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " return [provider, mutate, unscubscibe]\n return [provider, mutate, unsubscribe]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/swr/commit/a9c6d79b2377a21a8782143a56d243cf71995418", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " const [cacheHandle] = useState(() =>\n const [cacheContext] = useState(() =>\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/swr/commit/a9c6d79b2377a21a8782143a56d243cf71995418", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " if (cacheHandle) {\n extendedConfig.cache = cacheHandle[0]\n extendedConfig.mutate = cacheHandle[1]\n if (cacheContext) {\n extendedConfig.cache = cacheContext[0]\n extendedConfig.mutate = cacheContext[1]\n const [cacheHandle] = useState(() =>\n const [cacheContext] = useState(() =>\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/vercel/swr/commit/a9c6d79b2377a21a8782143a56d243cf71995418", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": "type ExtendedConfigInterface = ConfigInterface<\ntype SWRInfiniteConfigInterface = ConfigInterface<\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/swr/commit/8b24c46670c4617e252ee69e4d15a085af85749e", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 5, 7 ] }, { "input": "type ExtendedResponseInterface = responseInterface<\ntype SWRInfiniteResponseInterface = responseInterface<\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/swr/commit/8b24c46670c4617e252ee69e4d15a085af85749e", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 3, 6 ] }, { "input": "): ExtendedResponseInterface\n): SWRInfiniteResponseInterface\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/swr/commit/8b24c46670c4617e252ee69e4d15a085af85749e", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 2, 6 ] }, { "input": " config?: ExtendedConfigInterface\n): ExtendedResponseInterface\n config?: SWRInfiniteConfigInterface\n): SWRInfiniteResponseInterface\ntype ExtendedConfigInterface = ConfigInterface<\ntype SWRInfiniteConfigInterface = ConfigInterface<\n config?: ExtendedConfigInterface\n): ExtendedResponseInterface\n config?: SWRInfiniteConfigInterface\n): SWRInfiniteResponseInterface\n config: ExtendedConfigInterface = {}\n config: SWRInfiniteConfigInterface = {}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/swr/commit/8b24c46670c4617e252ee69e4d15a085af85749e", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 5, 7 ] }, { "input": " config?: ExtendedConfigInterface\n): ExtendedResponseInterface\n config?: SWRInfiniteConfigInterface\n): SWRInfiniteResponseInterface\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/swr/commit/8b24c46670c4617e252ee69e4d15a085af85749e", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 4, 7 ] }, { "input": " const swr: ExtendedResponseInterface = useSWR(\n const swr: SWRInfiniteResponseInterface = useSWR(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vercel/swr/commit/8b24c46670c4617e252ee69e4d15a085af85749e", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 3, 6 ] }, { "input": "\t\treturn errors.New(\"cannot open a tunnel for non-edge environments\")\n\t\treturn ErrNonEdgeEnv\n\t\treturn errors.New(\"cannot open a tunnel for async edge environments\")\n\t\treturn ErrAsyncEnv\n\t}\n\n\tif endpoint.ID == 0 || endpoint.EdgeID == \"\" {\n\t\treturn ErrInvalidEnv\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/portainer/portainer/commit/220fe2883057ef98943aea5b91606148b8197c39", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " const { authorized: isEnvironmentAdmin } = useIsEnvironmentAdmin();\n const { authorized: isEnvironmentAdmin } = useIsEnvironmentAdmin({\n adminOnlyCE: true,\n });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/portainer/portainer/commit/c622f6da4e62cc929b7345637bc9d8962de5bb71", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " const isEnvironmentAdminQuery = useIsEnvironmentAdmin();\n const isEnvironmentAdminQuery = useIsEnvironmentAdmin({ adminOnlyCE: true });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/portainer/portainer/commit/c622f6da4e62cc929b7345637bc9d8962de5bb71", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " dataCyType: 'config' | 'secret';\n configurationType: ConfigurationType;\n dataCyType: 'config' | 'secret';\n configurationType: ConfigurationType;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/portainer/portainer/commit/cb7efd8601f961ded065f127557321fd07a0b025", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": " userNotifications?.length > 0 ? notificationStyles.badge : ''\n reducedNotifications?.length > 0 ? notificationStyles.badge : ''\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/portainer/portainer/commit/07df4b15912aab10ed911a68d8869985fea580e2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " const columns = useColumns(isHostColumnVisible);\n const isGPUsColumnVisible = useShowGPUsColumn(environment.Id);\n const columns = useColumns(isHostColumnVisible, isGPUsColumnVisible);\n const columns = useColumns(false);\n const isGPUsColumnVisible = useShowGPUsColumn(environment.Id);\n const columns = useColumns(false, isGPUsColumnVisible);\nexport function useColumns(isHostColumnVisible: boolean) {\nexport function useColumns(\n isHostColumnVisible: boolean,\n isGPUsColumnVisible: boolean\n) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/portainer/portainer/commit/e2789ab354f7ddf84c54807015ffbee00e4de556", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 3 ] }, { "input": " return ResourceControlService.applyResourceControl('stack', name, userId, accessControlData, [])\n .then(function success() {\n $state.go('docker.stacks');\n })\n .catch(function error(err) {\n Notifications.error('Failure', err, 'Unable to apply resource control on the stack');\n });\n $state.go('docker.stacks');\n ResourceControlService.applyResourceControl('stack', stackName, userId, accessControlData, [])\n .then(function success() {\n $state.go('docker.stacks');\n })\n .catch(function error(err) {\n Notifications.error('Failure', err, 'Unable to apply resource control on the stack');\n });\n $state.go('docker.stacks');\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/portainer/portainer/commit/c267f8bf57a4c463f9981a794b5918431831f888", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " $q.when(!$scope.formValues.alwaysPull || ImageService.pullImage($scope.config.Image, $scope.formValues.Registry))\n $q.when(!$scope.formValues.alwaysPull || ImageService.pullImage($scope.config.Image, $scope.formValues.Registry, true))\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/portainer/portainer/commit/6d401dcd5904cab671f87bd0b62d621f00835f41", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\t\t\treturn ImageService.pullImage(repository, registry);\n\t\t\treturn ImageService.pullImage(repository, registry, false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/portainer/portainer/commit/6d401dcd5904cab671f87bd0b62d621f00835f41", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " ImageService.pullImage(image, registry)\n ImageService.pullImage(image, registry, false)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/portainer/portainer/commit/6d401dcd5904cab671f87bd0b62d621f00835f41", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " return ImageService.pullImage(template.Image, template.Registry);\n return ImageService.pullImage(template.Image, { URL: template.Registry }, true);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/portainer/portainer/commit/6d401dcd5904cab671f87bd0b62d621f00835f41", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " function createImageConfig(imageName, registry) {\n var imageNameAndTag = imageName.split(':');\n var image = imageNameAndTag[0];\n if (registry) {\n image = registry + '/' + imageNameAndTag[0];\n }\n var imageConfig = {\n fromImage: image,\n tag: imageNameAndTag[1] ? imageNameAndTag[1] : 'latest'\n };\n return imageConfig;\n }\n\n function createImageConfig(imageName, registry) {\n var imageNameAndTag = imageName.split(':');\n var image = imageNameAndTag[0];\n if (registry) {\n image = registry + '/' + imageNameAndTag[0];\n }\n var imageConfig = {\n fromImage: image,\n tag: imageNameAndTag[1] ? imageNameAndTag[1] : 'latest'\n };\n return imageConfig;\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/portainer/portainer/commit/b5bf7cdeade5bab4da403f3192377531fba7c91d", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " var imageConfig = createImageConfig(image, registry);\n var imageConfig = ImageHelper.createImageConfigForContainer(image, registry);\n var imageConfig = createImageConfig(image, registry);\n var imageConfig = ImageHelper.createImageConfigForContainer(image, registry);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/portainer/portainer/commit/b5bf7cdeade5bab4da403f3192377531fba7c91d", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " \\n\n \\u200B\n \\n\n \\u200B\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ianstormtaylor/slate/commit/40def34e5bf836143e11460953f71325aa3684cb", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "const debug = Debug('slate:core:after')\nconst debug = Debug('slate:after')\nconst debug = Debug('slate:core:before')\nconst debug = Debug('slate:before')\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ianstormtaylor/slate/commit/56a9db53f44a1c229cfa15b021f53455757c6bf7", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " .map((n, i) => {\n .map((child, i) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ianstormtaylor/slate/commit/13d7cb07c6715a7027c6604e2b384711de919737", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " if (n.kind !== 'text' || !next || next.kind !== 'text') {\n if (child.kind !== 'text' || !next || next.kind !== 'text') {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ianstormtaylor/slate/commit/13d7cb07c6715a7027c6604e2b384711de919737", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " return [n, next]\n return [child, next]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ianstormtaylor/slate/commit/13d7cb07c6715a7027c6604e2b384711de919737", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " if (properties.anchorKey) {\n properties.anchorPath = document.getPath(properties.anchorKey)\n delete properties.anchorKey\n if (props.anchorKey) {\n props.anchorPath = document.getPath(props.anchorKey)\n delete props.anchorKey\n if (properties.focusKey) {\n properties.focusPath = document.getPath(properties.focusKey)\n delete properties.focusKey\n if (props.focusKey) {\n props.focusPath = document.getPath(props.focusKey)\n delete props.focusKey\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ianstormtaylor/slate/commit/16ae0790f6a1c615b336f825b151a8ee5a313903", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " if (properties.focusKey) {\n properties.focusPath = document.getPath(properties.focusKey)\n delete properties.focusKey\n if (props.focusKey) {\n props.focusPath = document.getPath(props.focusKey)\n delete props.focusKey\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ianstormtaylor/slate/commit/16ae0790f6a1c615b336f825b151a8ee5a313903", "target_edit_idx": 11, "propagatable_edit_idx": [ 10 ] }, { "input": "function getTrueOffsetParent(element: Element): Element | null {\ntype Polyfill = (element: HTMLElement) => Element | null;\n\nfunction getTrueOffsetParent(\n element: Element,\n polyfill?: Polyfill\n): Element | null {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/floating-ui/floating-ui/commit/d1654bfe1be322c94fd1d9e677a522cd5e17358e", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " let offsetParent = getTrueOffsetParent(element);\n let offsetParent = getTrueOffsetParent(element, polyfill);\nfunction getTrueOffsetParent(element: Element): Element | null {\ntype Polyfill = (element: HTMLElement) => Element | null;\n\nfunction getTrueOffsetParent(\n element: Element,\n polyfill?: Polyfill\n): Element | null {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/floating-ui/floating-ui/commit/d1654bfe1be322c94fd1d9e677a522cd5e17358e", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": " const endReferenceOffset =\n const startReferenceOffset =\n const endArrowDiff = endReferenceOffset > 0 ? endReferenceOffset : 0;\n const startArrowDiff = startReferenceOffset < 0 ? startReferenceOffset : 0;\n const startArrowOffset = startReferenceOffset > 0 ? startReferenceOffset : 0;\n const endArrowOffset = endReferenceOffset < 0 ? endReferenceOffset : 0;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/floating-ui/floating-ui/commit/d2470e2f93930ce7a29f37ddfc4ae82b2feb3499", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " const endArrowDiff = endReferenceOffset > 0 ? endReferenceOffset : 0;\n const startArrowDiff = startReferenceOffset < 0 ? startReferenceOffset : 0;\n const startArrowOffset = startReferenceOffset > 0 ? startReferenceOffset : 0;\n const endArrowOffset = endReferenceOffset < 0 ? endReferenceOffset : 0;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/floating-ui/floating-ui/commit/d2470e2f93930ce7a29f37ddfc4ae82b2feb3499", "target_edit_idx": 7, "propagatable_edit_idx": [ 4 ] }, { "input": "var RANGE = function (subtype) {\nvar RANGE = function (Subtype) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/sequelize/sequelize/commit/ed60554acd3f3b86d1ac28483fdd1c859eb16000", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " if(typeof subtype === 'function') { // if subtype passed - instantiate object of this subtype and return new function\n options.subtype = new subtype();\n if(typeof Subtype === 'function') { // if subtype passed - instantiate object of this subtype and return new function\n options.subtype = new Subtype();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/sequelize/sequelize/commit/ed60554acd3f3b86d1ac28483fdd1c859eb16000", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " else if(typeof subtype === 'object' && subtype.hasOwnProperty('subtype'))\n options = subtype;\n else if(typeof Subtype === 'object' && Subtype.hasOwnProperty('subtype'))\n options = Subtype;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/sequelize/sequelize/commit/ed60554acd3f3b86d1ac28483fdd1c859eb16000", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " parse: function (value, attrType) {\n parse: function (value, AttributeType) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.46153846153846156, "commit_url": "https://github.com/sequelize/sequelize/commit/ed60554acd3f3b86d1ac28483fdd1c859eb16000", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " if(typeof attrType === 'function') attrType = new attrType();\n attrType = attrType || '';\n if(typeof AttributeType === 'function') AttributeType = new AttributeType();\n AttributeType = AttributeType || '';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/sequelize/sequelize/commit/ed60554acd3f3b86d1ac28483fdd1c859eb16000", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " switch (attrType.toString()) {\n switch (AttributeType.toString()) {\n parse: function (value, attrType) {\n parse: function (value, AttributeType) {\n if(typeof attrType === 'function') attrType = new attrType();\n attrType = attrType || '';\n if(typeof AttributeType === 'function') AttributeType = new AttributeType();\n AttributeType = AttributeType || '';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/sequelize/sequelize/commit/ed60554acd3f3b86d1ac28483fdd1c859eb16000", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "logger.service('LoggerService', function() {\nlogger.service('LoggerService', function($log) {\nlogger.service('LoggerService', function() {\nlogger.service('LoggerService', function($log) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/balena-io/etcher/commit/238c459d018559252c21f71b5091f5af9f9e0cd5", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\tstatus, resp := th.Client.GetPing()\n\t\t\tstatus, resp := client.GetPing()\n\t\t\tstatus, resp := th.Client.GetPing()\n\t\t\tstatus, resp := client.GetPing()\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/mattermost/mattermost/commit/8113279460e4544a4dd9d8029eb4557ba4838698", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\tstatus, resp := th.Client.GetPingWithServerStatus()\n\t\t\tstatus, resp := client.GetPingWithServerStatus()\n\n\t\t\tstatus, resp := th.Client.GetPingWithServerStatus()\n\t\t\tstatus, resp := client.GetPingWithServerStatus()\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mattermost/mattermost/commit/8113279460e4544a4dd9d8029eb4557ba4838698", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": "\n\tsession, err := th.App.CreateSession(&model.Session{UserId: th.BasicUser.Id, Roles: th.BasicUser.GetRawRoles()})\n\tsession, err := th.App.CreateSession(&model.Session{UserId: th.BasicUser.Id, Roles: th.BasicUser.GetRawRoles(), TeamMembers: []*model.TeamMember{\n\t\t{\n\t\t\tUserId: th.BasicUser.Id,\n\t\t\tTeamId: th.BasicTeam.Id,\n\t\t\tRoles: model.TEAM_USER_ROLE_ID,\n\t\t},\n\t}})\n\tsession2, err := th.App.CreateSession(&model.Session{UserId: th.BasicUser2.Id, Roles: th.BasicUser2.GetRawRoles()})\n\tsession2, err := th.App.CreateSession(&model.Session{UserId: th.BasicUser2.Id, Roles: th.BasicUser2.GetRawRoles(), TeamMembers: []*model.TeamMember{\n\t\t{\n\t\t\tUserId: th.BasicUser2.Id,\n\t\t\tTeamId: th.BasicTeam.Id,\n\t\t\tRoles: model.TEAM_ADMIN_ROLE_ID,\n\t\t},\n\t}})\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/mattermost/mattermost/commit/fb4d27d596408841ee33d58b91bd4b0d70af02ec", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\tt.Run(\"first call not cached, second force no cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force not cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force no cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force not cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force no cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force not cached\", func(t *testing.T) {\n\tt.Run(\"first call by id not cached, second force no cached\", func(t *testing.T) {\n\tt.Run(\"first call by id not cached, second force not cached\", func(t *testing.T) {\n\tt.Run(\"first call by name not cached, second force no cached\", func(t *testing.T) {\n\tt.Run(\"first call by name not cached, second force not cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force no cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force not cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force no cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force not cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force no cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force not cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force no cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force not cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force no cached\", func(t *testing.T) {\n\tt.Run(\"first call not cached, second force not cached\", func(t *testing.T) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/mattermost/mattermost/commit/0ffe199928f171cc4af2d45f4cdbd19132b44154", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 6, 7, 10, 11, 12, 13, 14 ] }, { "input": "\tt.Run(\"first call force no cached, second not cached, third cached\", func(t *testing.T) {\n\tt.Run(\"first call force not cached, second not cached, third cached\", func(t *testing.T) {\n\tt.Run(\"first call by id force no cached, second not cached, third cached\", func(t *testing.T) {\n\tt.Run(\"first call by id force not cached, second not cached, third cached\", func(t *testing.T) {\n\tt.Run(\"first call by name force no cached, second not cached, third cached\", func(t *testing.T) {\n\tt.Run(\"first call by name force not cached, second not cached, third cached\", func(t *testing.T) {\n\tt.Run(\"first call force no cached, second not cached, third cached\", func(t *testing.T) {\n\tt.Run(\"first call force not cached, second not cached, third cached\", func(t *testing.T) {\n\tt.Run(\"first call force no cached, second not cached, third cached\", func(t *testing.T) {\n\tt.Run(\"first call force not cached, second not cached, third cached\", func(t *testing.T) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.26666666666666666, "commit_url": "https://github.com/mattermost/mattermost/commit/0ffe199928f171cc4af2d45f4cdbd19132b44154", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 9, 3, 5 ] }, { "input": "func (b *LocalFileBackend) Reader(path string) (io.ReadCloser, *model.AppError) {\nfunc (b *LocalFileBackend) Reader(path string) (ReadCloseSeeker, *model.AppError) {\nfunc (b *S3FileBackend) Reader(path string) (io.ReadCloser, *model.AppError) {\nfunc (b *S3FileBackend) Reader(path string) (ReadCloseSeeker, *model.AppError) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mattermost/mattermost/commit/edd3cc890f0a70d161bac12fa15029a717b909e8", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": "\tfirstPost, _ := th.App.CreatePost(&model.Post{\n\tth.App.CreatePost(&model.Post{\n\tfirstPost, _ := th.App.CreatePost(&model.Post{\n\tth.App.CreatePost(&model.Post{\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mattermost/mattermost/commit/f23eeb56c7ab228952583800d2806b41c304e198", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": "\t\tautoResponderIsComment := false\n\t\tautoResponderIsComment := false\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/mattermost/mattermost/commit/f23eeb56c7ab228952583800d2806b41c304e198", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\t\t\tautoResponderIsComment = post.RootId == firstPost.Id\n\t\t\t\tautoResponderIsComment = post.RootId == firstPost.Id\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mattermost/mattermost/commit/f23eeb56c7ab228952583800d2806b41c304e198", "target_edit_idx": 5, "propagatable_edit_idx": [ 10 ] }, { "input": "\t\tassert.True(t, autoResponderIsComment)\n\t\tassert.False(t, autoResponderIsComment)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mattermost/mattermost/commit/f23eeb56c7ab228952583800d2806b41c304e198", "target_edit_idx": 6, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\t\tRange: Range{absPos, 1},\n\t\t\tRange: Range{absPos, absPos + 1},\n\t\t\tRange: Range{absPos, 1},\n\t\t\tRange: Range{absPos, absPos + 1},\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/mattermost/mattermost/commit/a575411f159d3e63b91fd4a03b448d3f52862747", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tCommandPrintErrorln(err)\n\t\treturn\n\t\treturn err\n\t\tCommandPrintErrorln(err)\n\t\treturn\n\t\treturn err\n\t\tCommandPrintErrorln(err)\n\t\treturn\n\t\treturn err\n\t\tCommandPrintErrorln(err)\n\t\treturn\n\t\treturn err\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mattermost/mattermost/commit/065d8e97313b9c8ffad37862665186668c88499f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "\tif _, err := th.BasicClient.UpdateUserRoles(data); err == nil {\n\tif _, err := th.BasicClient.UpdateUserRoles(data); err != nil {\n\tif _, err := th.BasicClient.UpdateUserRoles(data); err == nil {\n\tif _, err := th.BasicClient.UpdateUserRoles(data); err != nil {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mattermost/mattermost/commit/9d0f9169df42f4652cde4dfacc6b502f44aa49b1", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\t\tuser.Username)}\n\t\t\t\tuser.Username), Type: model.POST_JOIN_LEAVE}\n\t\t\tuser.Username)}\n\t\t\tuser.Username), Type: model.POST_JOIN_LEAVE}\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mattermost/mattermost/commit/23e527978ed3e889bebe5c879de2d4835509626a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " const { cafsHas } = assertStore(opts.storeDir)\n const { cafsHasNot } = assertStore(opts.storeDir)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/053fc12f5a2e201b4f70c9be379960b2ca0281f7", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 4, 5, 7 ] }, { "input": " cafsHas('@pnpm.e2e/pkg-with-1-dep', '100.0.0')\n cafsHasNot('@pnpm.e2e/pkg-with-1-dep', '100.0.0')\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/053fc12f5a2e201b4f70c9be379960b2ca0281f7", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 3, 5, 7 ] }, { "input": " cafsHas('@pnpm.e2e/dep-of-pkg-with-1-dep', '100.1.0')\n cafsHasNot('@pnpm.e2e/dep-of-pkg-with-1-dep', '100.1.0')\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/053fc12f5a2e201b4f70c9be379960b2ca0281f7", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 3, 4, 7 ] }, { "input": "| 'fetchRetryMintimeout'\n| 'fetchRetryMintimeout'\n", "class": "clone", "binary_label": 1, "regression_label": 0.07692307692307693, "commit_url": "https://github.com/pnpm/pnpm/commit/d50240f3704f5e71ef5f91e2ba5ecafd51f41c36", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " opts.warn(`Cannot link bin \"${cmd.name}\" of \"${cmd.pkgName}\" to \"${binsDir}\". A package called \"${usedNames[cmd.name]}\" already has its bin linked.`)\n opts.warn(`Cannot link binary '${cmd.name}' of '${cmd.pkgName}' to '${binsDir}': binary of '${usedNames[cmd.name]}' is already linked`, 'BINARIES_CONFLICT')\n opts.warn(`Package in ${target} must have a non-empty bin field to get bin linked.`)\n opts.warn(`Package in ${target} must have a non-empty bin field to get bin linked.`, 'EMPTY_BIN')\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pnpm/pnpm/commit/3130bf712bb082e1c24055ba8f93faf1d2cb5da8", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " t.ok(warn.calledWith(`Cannot link bin \"bar\" of \"foo\" to \"${binTarget}\". A package called \"bar\" already has its bin linked.`))\n t.equal(warn.args[0][0], `Cannot link binary 'bar' of 'foo' to '${binTarget}': binary of 'bar' is already linked`)\n t.ok(warn.calledWith(`Cannot link bin \"bar\" of \"foo\" to \"${binTarget}\". A package called \"bar\" already has its bin linked.`))\n t.equal(warn.args[0][0], `Cannot link binary 'bar' of 'foo' to '${binTarget}': binary of 'bar' is already linked`)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/3130bf712bb082e1c24055ba8f93faf1d2cb5da8", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " modulesPath: string,\n modulesDir: string,\n modulesPath: opts.modulesPath,\n modulesPath: opts.modulesDir,\n checkCompatibility(modules, { storePath: opts.store, modulesPath: importer.modulesDir })\n checkCompatibility(modules, { storePath: opts.store, modulesDir: importer.modulesDir })\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/0fc38ec372ef8a8fa4d2fc3e14bd218e57f7f0fe", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " modulesPath: opts.modulesPath,\n modulesPath: opts.modulesDir,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/0fc38ec372ef8a8fa4d2fc3e14bd218e57f7f0fe", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 6 ] }, { "input": " message: 'Performing headless installation',\n message: 'Lockfile is up-to-date, resolution step is skipped',\n message: 'Performing headless installation',\n message: 'Lockfile is up-to-date, resolution step is skipped',\n message: 'Performing headless installation',\n message: 'Lockfile is up-to-date, resolution step is skipped',\n message: 'Performing headless installation',\n message: 'Lockfile is up-to-date, resolution step is skipped',\n message: 'Performing headless installation',\n message: 'Lockfile is up-to-date, resolution step is skipped',\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/2a5e71f06f57c9295b6837d96952bce692b8e94e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": " msg: autozoom(opts.cwd, log['prefix'], `${chalk.magentaBright(log['hook'])}: ${log['message']}`),\n msg: autozoom(\n opts.cwd,\n log['prefix'],\n `${chalk.magentaBright(log['hook'])}: ${log['message']}`,\n {\n zoomOutCurrent: opts.isRecursive,\n },\n ),\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/69380932f82aba0d6525d86cf27c0d2d1b0e448c", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 4, 6, 7 ] }, { "input": " return autozoom(opts.cwd, obj.prefix, formatWarn(obj.message))\n return autozoom(opts.cwd, obj.prefix, formatWarn(obj.message), opts)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/69380932f82aba0d6525d86cf27c0d2d1b0e448c", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 2, 6, 7 ] }, { "input": " return autozoom(currentPrefix, logObj['prefix'], formatWarn(`Unsupported system. Skipping dependency ${logObj.pkgId}`))\n return autozoom(\n currentPrefix,\n logObj['prefix'],\n formatWarn(`Unsupported system. Skipping dependency ${logObj.pkgId}`),\n opts,\n )\nfunction autozoom (currentPrefix: string, logPrefix: string | undefined, line: string) {\n if (!logPrefix || currentPrefix === logPrefix) {\nfunction autozoom (\n currentPrefix: string,\n logPrefix: string | undefined,\n line: string,\n opts: {\n zoomOutCurrent: boolean,\n },\n) {\n if (!logPrefix || !opts.zoomOutCurrent && currentPrefix === logPrefix) {\n msg: autozoom(opts.cwd, log['prefix'], `${chalk.magentaBright(log['hook'])}: ${log['message']}`),\n msg: autozoom(\n opts.cwd,\n log['prefix'],\n `${chalk.magentaBright(log['hook'])}: ${log['message']}`,\n {\n zoomOutCurrent: opts.isRecursive,\n },\n ),\n return autozoom(opts.cwd, obj.prefix, formatWarn(obj.message))\n return autozoom(opts.cwd, obj.prefix, formatWarn(obj.message), opts)\n return autozoom(currentPrefix, logObj['prefix'], logObj.toString())\n return autozoom(currentPrefix, logObj['prefix'], logObj.toString(), opts)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/69380932f82aba0d6525d86cf27c0d2d1b0e448c", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 2, 4, 7 ] }, { "input": " return autozoom(currentPrefix, logObj['prefix'], logObj.toString())\n return autozoom(currentPrefix, logObj['prefix'], logObj.toString(), opts)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/69380932f82aba0d6525d86cf27c0d2d1b0e448c", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 2, 4, 6 ] }, { "input": "function autozoom (currentPrefix: string, logPrefix: string | undefined, line: string) {\n if (!logPrefix || currentPrefix === logPrefix) {\nfunction autozoom (\n currentPrefix: string,\n logPrefix: string | undefined,\n line: string,\n opts: {\n zoomOutCurrent: boolean,\n },\n) {\n if (!logPrefix || !opts.zoomOutCurrent && currentPrefix === logPrefix) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/69380932f82aba0d6525d86cf27c0d2d1b0e448c", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 4, 6, 7 ] }, { "input": " t.equal(err['code'], 'E404')\n t.equal(err['code'], 'ERR_PNPM_REGISTRY_RESPONSE_404')\n t.equal(err['code'], 'E403')\n t.equal(err['code'], 'ERR_PNPM_REGISTRY_RESPONSE_403')\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pnpm/pnpm/commit/14c9ec632fe41969526790498f8a30730a5f4848", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " level: 'warn',\n message: 'Skipping failed optional dependency not-compatible-with-any-os@1.0.0',\n id: 'localhost+4873/not-compatible-with-any-os/1.0.0',\n name: 'not-compatible-with-any-os',\n parents: [],\n reason: 'incompatible_engine',\n version: '1.0.0',\n level: 'warn',\n message: 'pkg-with-optional: Skipping failed optional dependency not-compatible-with-any-os@1.0.0',\n id: 'localhost+4873/not-compatible-with-any-os/1.0.0',\n name: 'not-compatible-with-any-os',\n parents: [\n {\n id: 'localhost+4873/pkg-with-optional/1.0.0',\n name: 'pkg-with-optional',\n version: '1.0.0',\n },\n ],\n reason: 'incompatible_engine',\n version: '1.0.0',\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/ad2bb8a2d9bb74adfbcecd8ee38da635f373c194", "target_edit_idx": 11, "propagatable_edit_idx": [ 14 ] }, { "input": " level: 'warn',\n message: 'Skipping failed optional dependency for-legacy-node@1.0.0',\n id: 'localhost+4873/for-legacy-node/1.0.0',\n name: 'for-legacy-node',\n parents: [],\n reason: 'incompatible_engine',\n version: '1.0.0',\n level: 'warn',\n message: 'Skipping failed optional dependency for-legacy-pnpm@1.0.0',\n id: 'localhost+4873/for-legacy-pnpm/1.0.0',\n name: 'for-legacy-pnpm',\n parents: [],\n reason: 'incompatible_engine',\n version: '1.0.0',\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/ad2bb8a2d9bb74adfbcecd8ee38da635f373c194", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": " const isPositive = require(path.join(globalPrefix, 'node_modules', 'is-positive'))\n const isPositive = require(path.join(globalPrefix, LAYOUT_VERSION, 'node_modules', 'is-positive'))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/pnpm/pnpm/commit/eb5219b3906f40e22361ca71afd658ae5adc69d3", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " const isNegative = require(path.join(globalPrefix, 'node_modules', 'is-negative'))\n const isNegative = require(path.join(globalPrefix, LAYOUT_VERSION, 'node_modules', 'is-negative'))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/pnpm/pnpm/commit/eb5219b3906f40e22361ca71afd658ae5adc69d3", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " await installInContext(installType, specs, optionalDeps, ctx, installCtx, opts)\n await installInContext(installType, specs, optionalDeps, [], ctx, installCtx, opts)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pnpm/pnpm/commit/b36c9febc02e4ca2987b6af28967dea4967e15bd", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " () => installInContext(installType, packagesToInstall, optionalDependencies, ctx, installCtx, opts),\n () => installInContext(\n installType,\n R.uniqBy(spec => spec.name, packagesToInstall.concat(currentSpecs)),\n R.uniq(optionalDependencies.concat(R.keys(ctx.pkg && ctx.pkg.optionalDependencies))),\n packagesToInstall.map(spec => spec.name),\n ctx,\n installCtx,\n opts),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pnpm/pnpm/commit/b36c9febc02e4ca2987b6af28967dea4967e15bd", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " escapedName: string,\n name: string,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/067d5b44d110c1fbf3a7d668e5dc9b3f24752bfc", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 10, 4, 5 ] }, { "input": " escapedName: spec.escapedName,\n name: spec.name,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pnpm/pnpm/commit/067d5b44d110c1fbf3a7d668e5dc9b3f24752bfc", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 10, 3, 5 ] }, { "input": " return this.#sendCompletionRequest(file, { key, uploadId, parts, signal })\n return this.#sendCompletionRequest(file, { key, uploadId, parts, signal }).abortOn(signal)\n return this.#sendCompletionRequest(file, { key, uploadId, parts, signal })\n return this.#sendCompletionRequest(file, { key, uploadId, parts, signal }).abortOn(signal)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/transloadit/uppy/commit/0375a490b5925bf1cc31dc1c90eba7de031e7c4e", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "function createCancelError () {\n return new Error('Cancelled')\nfunction createCancelError (cause) {\n return new Error('Cancelled', { cause })\n}\n\nfunction abortOn (signal) {\n if (signal != null) {\n const abortPromise = () => this.abort(signal.reason)\n signal.addEventListener('abort', abortPromise, { once: true })\n const removeAbortListener = () => { signal.removeEventListener('abort', abortPromise) }\n this.then(removeAbortListener, removeAbortListener)\n }\n\n return this\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/transloadit/uppy/commit/0375a490b5925bf1cc31dc1c90eba7de031e7c4e", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": " return () => {\n cancelError = createCancelError()\n return (cause) => {\n cancelError = createCancelError(cause)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/transloadit/uppy/commit/0375a490b5925bf1cc31dc1c90eba7de031e7c4e", "target_edit_idx": 11, "propagatable_edit_idx": [ 8 ] }, { "input": " if (item.file_type && item.file_type === 'TIMELINE') {\n return `${encodeURIComponent(item.meeting_id)}__TIMELINE`\n if (item.file_type && item.file_type === 'CC') {\n return `${encodeURIComponent(item.meeting_id)}__CC__${encodeURIComponent(item.recording_start)}`\n if (item.file_type && item.file_type === 'TIMELINE') {\n return `${encodeURIComponent(item.meeting_id)}?recordingId=TIMELINE`\n if (item.file_type && item.file_type === 'CC') {\n return `${encodeURIComponent(item.meeting_id)}?recordingId=CC&recordingStart=${encodeURIComponent(item.recording_start)}`\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/transloadit/uppy/commit/276a7eb2d5751fbff3d05b3936f9059641717215", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "class Dashboard extends React.Component {\n/**\n * React Component that renders a Dashboard for an Uppy instance in a Modal\n * dialog. Visibility of the Modal is toggled using the `open` prop.\n */\n\nclass DashboardModal extends React.Component {\nDashboard.propTypes = {\nDashboardModal.propTypes = {\nmodule.exports = Dashboard\nmodule.exports = DashboardModal", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/transloadit/uppy/commit/82960df150401a54f643d2674caa0266926cad91", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "Dashboard.propTypes = {\nDashboardModal.propTypes = {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/transloadit/uppy/commit/82960df150401a54f643d2674caa0266926cad91", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "module.exports = Dashboard\nmodule.exports = DashboardModal", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/transloadit/uppy/commit/82960df150401a54f643d2674caa0266926cad91", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "import type { V2_MetaFunction } from \"@remix-run/react\";\nimport type { V2_MetaFunction } from \"@remix-run/node\";\nimport type { V2_MetaFunction } from \"@remix-run/react\";\nimport type { V2_MetaFunction } from \"@remix-run/cloudflare\";\nimport type { V2_MetaFunction } from \"@remix-run/react\";\nimport type { V2_MetaFunction } from \"@remix-run/cloudflare\";\nimport type { V2_MetaFunction } from \"@remix-run/react\";\nimport type { V2_MetaFunction } from \"@remix-run/deno\";\nimport type { V2_MetaFunction } from \"@remix-run/react\";\nimport type { V2_MetaFunction } from \"@remix-run/node\";\nimport type { V2_MetaFunction } from \"@remix-run/react\";\nimport type { V2_MetaFunction } from \"@remix-run/node\";\nimport type { V2_MetaFunction } from \"@remix-run/react\";\nimport type { V2_MetaFunction } from \"@remix-run/node\";\nimport type { V2_MetaFunction } from \"@remix-run/react\";\nimport type { V2_MetaFunction } from \"@remix-run/node\";\nimport type { V2_MetaFunction } from \"@remix-run/react\";\nimport type { V2_MetaFunction } from \"@remix-run/node\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/remix-run/remix/commit/605b58052ab02f776a5796fb0541d0dd01661087", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " path.resolve(__dirname, \"..\", \"magicExports\"),\n { [packageJson.name]: packageJson.version }\n { [packageJson.name]: packageJson.version },\n path.resolve(__dirname, \"..\", \"magicExports\")\n path.resolve(__dirname, \"..\", \"magicExports\"),\n { [packageJson.name]: packageJson.version }\n { [packageJson.name]: packageJson.version },\n path.resolve(__dirname, \"..\", \"magicExports\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/remix-run/remix/commit/0c6033a06634ea51cbcfc585f24fde1672357113", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " loader = requireLoader(config, \"global\");\n loader = requireLoader(loadersDirectory, \"global\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/remix-run/remix/commit/c5a3ee724a05eb39c60e5077661b3a9dc7f8de7a", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " let loader = requireLoader(config, route.loaderFile);\n let loader = requireLoader(loadersDirectory, route.loaderFile);\n loader = requireLoader(config, \"global\");\n loader = requireLoader(loadersDirectory, \"global\");\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/remix-run/remix/commit/c5a3ee724a05eb39c60e5077661b3a9dc7f8de7a", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": "import { inferTo, flush, isDefaultProp } from './helpers'\nimport { inferTo, flush, hasDefaultProp } from './helpers'\n else if (isDefaultProp(props, 'cancel')) {\n else if (hasDefaultProp(props, 'cancel')) {\nexport const isDefaultProp = (props: T, key: keyof T) =>\n !is.und(\n props.default === true ? props[key] : props.default && props.default[key]\n )\nexport const hasDefaultProp = (props: T, key: keyof T) =>\n !is.und(getDefaultProp(props, key))\n\n/** Get the default value being set for the given `key` */\nexport const getDefaultProp = (props: T, key: keyof T) =>\n props.default === true\n ? props[key]\n : props.default\n ? props.default[key]\n : undefined\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pmndrs/react-spring/commit/d5adac20fdf7637e4280ad88a6cb78b0dd281899", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 7 ] }, { "input": " else if (isDefaultProp(props, 'cancel')) {\n else if (hasDefaultProp(props, 'cancel')) {\nimport { inferTo, flush, isDefaultProp } from './helpers'\nimport { inferTo, flush, hasDefaultProp } from './helpers'\nexport const isDefaultProp = (props: T, key: keyof T) =>\n !is.und(\n props.default === true ? props[key] : props.default && props.default[key]\n )\nexport const hasDefaultProp = (props: T, key: keyof T) =>\n !is.und(getDefaultProp(props, key))\n\n/** Get the default value being set for the given `key` */\nexport const getDefaultProp = (props: T, key: keyof T) =>\n props.default === true\n ? props[key]\n : props.default\n ? props.default[key]\n : undefined\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pmndrs/react-spring/commit/d5adac20fdf7637e4280ad88a6cb78b0dd281899", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 7 ] }, { "input": " mergeDefaultProps(defaultProps, props)\n mergeDefaultProps(defaultProps, props, ['pause', 'cancel'])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/pmndrs/react-spring/commit/d5adac20fdf7637e4280ad88a6cb78b0dd281899", "target_edit_idx": 6, "propagatable_edit_idx": [ 11 ] }, { "input": "export const isDefaultProp = (props: T, key: keyof T) =>\n !is.und(\n props.default === true ? props[key] : props.default && props.default[key]\n )\nexport const hasDefaultProp = (props: T, key: keyof T) =>\n !is.und(getDefaultProp(props, key))\n\n/** Get the default value being set for the given `key` */\nexport const getDefaultProp = (props: T, key: keyof T) =>\n props.default === true\n ? props[key]\n : props.default\n ? props.default[key]\n : undefined\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pmndrs/react-spring/commit/d5adac20fdf7637e4280ad88a6cb78b0dd281899", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " if (!is.und(value)) {\n if (!is.und(value) && !omitKeys.includes(key)) {\n if (!is.und(value)) {\n if (!is.und(value) && !omitKeys.includes(key)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/pmndrs/react-spring/commit/d5adac20fdf7637e4280ad88a6cb78b0dd281899", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " mergeDefaultProps(defaultProps, props)\n\n // The `onRest` prop is for `runAsync` to call.\n defaultProps.onRest = undefined\n mergeDefaultProps(defaultProps, props, ['onRest'])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/pmndrs/react-spring/commit/d5adac20fdf7637e4280ad88a6cb78b0dd281899", "target_edit_idx": 11, "propagatable_edit_idx": [ 6 ] }, { "input": " UnknownPartial,\n UnknownPartial,\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/pmndrs/react-spring/commit/3596c9f68e5eeccc92c737eead9ac296d47ed17b", "target_edit_idx": 0, "propagatable_edit_idx": [ 9 ] }, { "input": " Partial> &\n FluidProps> &\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pmndrs/react-spring/commit/3596c9f68e5eeccc92c737eead9ac296d47ed17b", "target_edit_idx": 2, "propagatable_edit_idx": [ 12 ] }, { "input": " : UnknownPartial>\n : FluidProps>\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/pmndrs/react-spring/commit/3596c9f68e5eeccc92c737eead9ac296d47ed17b", "target_edit_idx": 12, "propagatable_edit_idx": [ 2 ] }, { "input": " ): SpringsHandle\n ): SpringHandle\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pmndrs/react-spring/commit/f5a4039722802aec0110fcb7ab90885cdddee022", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 9, 3, 7 ] }, { "input": "export interface SpringsHandle {\nexport interface SpringHandle {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pmndrs/react-spring/commit/f5a4039722802aec0110fcb7ab90885cdddee022", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 1, 9, 7 ] }, { "input": " normalizedScrollTo,\n scrollTo,\n normalizedScrollTo(\n scrollTo(\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/JedWatson/react-select/commit/1d5563d12065d6fbccdddaf8547bbb5c67f6ce5d", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " normalizedScrollTo(scrollParent, scrollDown);\n scrollTo(scrollParent, scrollDown);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JedWatson/react-select/commit/1d5563d12065d6fbccdddaf8547bbb5c67f6ce5d", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5, 7 ] }, { "input": "export function normalizedScrollTo(el: Element, top: number): void {\nexport function scrollTo(el: Element, top: number): void {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JedWatson/react-select/commit/1d5563d12065d6fbccdddaf8547bbb5c67f6ce5d", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 5, 7 ] }, { "input": " normalizedScrollTo(element, val);\n scrollTo(element, val);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JedWatson/react-select/commit/1d5563d12065d6fbccdddaf8547bbb5c67f6ce5d", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 7 ] }, { "input": " normalizedScrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));\n scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/JedWatson/react-select/commit/1d5563d12065d6fbccdddaf8547bbb5c67f6ce5d", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": " `\" [MobX] Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an \\`runInAction\\` if this change is intended. Tried to modify: ObservableMap@72.keys()\"`\n `\" [MobX] Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ObservableMap@72.keys()\"`\n `\" [MobX] Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an \\`runInAction\\` if this change is intended. Tried to modify: ObservableMap@72.x\"`\n `\" [MobX] Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ObservableMap@72.x\"`\n `\" [MobX] Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an \\`runInAction\\` if this change is intended. Tried to modify: ObservableMap@72.keys()\"`\n `\" [MobX] Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ObservableMap@72.keys()\"`\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mobxjs/mobx/commit/7db8afdff88859382d3b7ae17818a0b52c8c6a50", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "export type IObjectDidChange =\nexport type IObjectDidChange =\nexport type IObjectWillChange =\nexport type IObjectWillChange =\nexport type IObjectWillChange =\nexport type IObjectWillChange =\nexport type IObjectDidChange =\nexport type IObjectDidChange =\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/mobxjs/mobx/commit/8a964336ae67c3256a257543dae9835abcf43876", "target_edit_idx": 0, "propagatable_edit_idx": [ 11, 4, 7 ] }, { "input": "\tTreeNode.prototype.transform = function(iter, memo) {\n\t\tif (this.parent && state.collapsed.has(this.parent.path())) return memo || []; // not visible\n\tTreeNode.prototype.transform = function(iteratee, results) {\n\t\tif (this.parent && state.collapsed.has(this.parent.path())) return results || []; // not visible\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/mobxjs/mobx/commit/be7ed2663a179eecdbcad72342af68e3288405ad", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": "\t\tmemo = memo || [];\n\t\tmemo.push(iter(this));\n\t\tthis.children.forEach(function(child) { child.transform(iter, memo); });\n\t\treturn memo;\n\t\tresults = results || [];\n\t\tresults.push(iteratee(this));\n\t\tthis.children.forEach(function(child) { child.transform(iteratee, results); });\n\t\treturn results;\n\tTreeNode.prototype.transform = function(iter, memo) {\n\t\tif (this.parent && state.collapsed.has(this.parent.path())) return memo || []; // not visible\n\tTreeNode.prototype.transform = function(iteratee, results) {\n\t\tif (this.parent && state.collapsed.has(this.parent.path())) return results || []; // not visible\n\tTreeNode.prototype.transform = function(iter, memo) {\n\tTreeNode.prototype.transform = function(iteratee, results) {\n\t\tmemo = memo || [];\n\t\tmemo.push(iter(this));\n\t\tthis.children.forEach(function(child) { child.transform(iter, memo); });\n\t\treturn memo;\n\t\tresults = results || [];\n\t\tresults.push(iteratee(this));\n\t\tthis.children.forEach(function(child) { child.transform(iteratee, results); });\n\t\treturn results;\n\tTreeNode.prototype.transform = function(iter, memo) {\n\t\tmemo = memo || [];\n\t\tif (!state.tags.length || intersection(state.tags, this.tags).length) memo.push(iter(this));\n\t\tthis.children.forEach(function(child) { child.transform(iter, memo); });\n\t\treturn memo;\n\tTreeNode.prototype.transform = function(iteratee, results) {\n\t\tresults = results || [];\n\t\tif (!state.tags.length || intersection(state.tags, this.tags).length) results.push(iteratee(this));\n\t\tthis.children.forEach(function(child) { child.transform(iteratee, results); });\n\t\treturn results;\n\tTreeNode.prototype.transform = function(iter, memo) {\n\t\tmemo = memo || [];\n\t\tif (!state.tags.length || intersection(state.tags, this.tags).length) memo.push(iter(this));\n\t\tthis.children.forEach(function(child) { child.transform(iter, memo); });\n\t\treturn memo;\n\tTreeNode.prototype.transform = function(iteratee, results) {\n\t\tresults = results || [];\n\t\tif (!state.tags.length || intersection(state.tags, this.tags).length) results.push(iteratee(this));\n\t\tthis.children.forEach(function(child) { child.transform(iteratee, results); });\n\t\treturn results;\n TreeNode.prototype.map = function(iter, memo) {\n memo = memo || [];\n memo.push(iter(this));\n this.children.forEach(function(child) { child.map(iter, memo); });\n return memo;\n TreeNode.prototype.map = function(iteratee, results) {\n results = results || [];\n results.push(iteratee(this));\n this.children.forEach(function(child) { child.map(iteratee, results); });\n return results;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/mobxjs/mobx/commit/be7ed2663a179eecdbcad72342af68e3288405ad", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6 ] }, { "input": "\tTreeNode.prototype.transform = function(iter, memo) {\n\tTreeNode.prototype.transform = function(iteratee, results) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mobxjs/mobx/commit/be7ed2663a179eecdbcad72342af68e3288405ad", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6 ] }, { "input": "\tTreeNode.prototype.transform = function(iter, memo) {\n\t\tmemo = memo || [];\n\t\tif (!state.tags.length || intersection(state.tags, this.tags).length) memo.push(iter(this));\n\t\tthis.children.forEach(function(child) { child.transform(iter, memo); });\n\t\treturn memo;\n\tTreeNode.prototype.transform = function(iteratee, results) {\n\t\tresults = results || [];\n\t\tif (!state.tags.length || intersection(state.tags, this.tags).length) results.push(iteratee(this));\n\t\tthis.children.forEach(function(child) { child.transform(iteratee, results); });\n\t\treturn results;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mobxjs/mobx/commit/be7ed2663a179eecdbcad72342af68e3288405ad", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6 ] }, { "input": " TreeNode.prototype.map = function(iter, memo) {\n memo = memo || [];\n memo.push(iter(this));\n this.children.forEach(function(child) { child.map(iter, memo); });\n return memo;\n TreeNode.prototype.map = function(iteratee, results) {\n results = results || [];\n results.push(iteratee(this));\n this.children.forEach(function(child) { child.map(iteratee, results); });\n return results;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mobxjs/mobx/commit/be7ed2663a179eecdbcad72342af68e3288405ad", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5 ] }, { "input": " TreeNode.prototype.find = function(iter) {\n if (iter(this)) return this;\n TreeNode.prototype.find = function(predicate) {\n if (predicate(this)) return this;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mobxjs/mobx/commit/be7ed2663a179eecdbcad72342af68e3288405ad", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " result = this.children[i].find(iter);\n result = this.children[i].find(predicate);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mobxjs/mobx/commit/be7ed2663a179eecdbcad72342af68e3288405ad", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": " var ts = __mobservableTrackingStack, l = ts.length;\n var ts = __mobservableViewStack, l = ts.length;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mobxjs/mobx/commit/5759dc5460ceda2efdd8287e4a3e74bb737a135b", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " return __mobservableTrackingStack.length;\n return __mobservableViewStack.length;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mobxjs/mobx/commit/5759dc5460ceda2efdd8287e4a3e74bb737a135b", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 2 ] }, { "input": " return __mobservableTrackingStack.length > 0;\n return __mobservableViewStack.length > 0;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mobxjs/mobx/commit/5759dc5460ceda2efdd8287e4a3e74bb737a135b", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " const discoveryApi = SingleHostDiscovery.fromConfig(this.config);\n const discoveryApi = SingleHostDiscovery.fromConfig(config);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/backstage/backstage/commit/38469b66bf22d08af3a7a177563ef8fa208daab0", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " docPath?: string;\n additionalInfo?: string;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/backstage/backstage/commit/cc905069d10566c80c2875a24d082abc9d1703ee", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " \n \n \n \n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/backstage/backstage/commit/90794fcb59a5ec62c687909f6f72b907eb3731f3", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": "import { useLocalStorage } from 'react-use';\nimport { useLocalStorage } from 'react-use';\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/backstage/backstage/commit/a676da3a6b3fb0d8644dfcd714005a138c4c7ade", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " const theme = resolveTheme(\n const appTheme = resolveTheme(\n if (!theme) {\n if (!appTheme) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/backstage/backstage/commit/77d989f3835d79889f800874b7cf472ebb547af1", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " if (!theme) {\n if (!appTheme) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/backstage/backstage/commit/77d989f3835d79889f800874b7cf472ebb547af1", "target_edit_idx": 8, "propagatable_edit_idx": [ 7 ] }, { "input": "export default createPlugin({\nexport const plugin = createPlugin({\nexport default createPlugin({\nexport const plugin = createPlugin({\nexport default createPlugin({\nexport const plugin = createPlugin({\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/backstage/backstage/commit/0feee2b1a96302c35e5e64f07002d266ff5cd786", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " const inputs = cmd.input.map(argTransformer) as string[];\nexport async function parseOptions(cmd: Command): Promise {\n const inputs = cmd.input.map(transformPath) as string[];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/backstage/backstage/commit/98dea870e6d148caa1fb5b1ffc3f3466b4aec791", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " inputs.push(argTransformer('.'));\n inputs.push(transformPath('.'));\n const inputs = cmd.input.map(argTransformer) as string[];\nexport async function parseOptions(cmd: Command): Promise {\n const inputs = cmd.input.map(transformPath) as string[];\n const output = argTransformer(cmd.output);\n const cacheDir = argTransformer(\n const output = transformPath(cmd.output);\n const cacheDir = transformPath(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/backstage/backstage/commit/98dea870e6d148caa1fb5b1ffc3f3466b4aec791", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 11 ] }, { "input": " const output = argTransformer(cmd.output);\n const cacheDir = argTransformer(\n const output = transformPath(cmd.output);\n const cacheDir = transformPath(\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/backstage/backstage/commit/98dea870e6d148caa1fb5b1ffc3f3466b4aec791", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " const handlers = (eventObject as unknown as Instance).__r3f.handlers\n const handlers = (eventObject as unknown as Instance).__r3f?.handlers\n const handlers = (eventObject as unknown as Instance).__r3f.handlers\n const handlers = (eventObject as unknown as Instance).__r3f?.handlers\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pmndrs/react-three-fiber/commit/51e6fc95367f78807832c942e7820352f6c65de0", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " Array.from(hovered.values()).forEach((data) => {\n Array.from(hovered.values()).forEach((hoveredObj) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pmndrs/react-three-fiber/commit/40a79c7db2e1fc8a5a43387874c3c9f436c1d934", "target_edit_idx": 4, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " hovered.delete(makeId(data))\n hovered.delete(makeId(hoveredObj))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pmndrs/react-three-fiber/commit/40a79c7db2e1fc8a5a43387874c3c9f436c1d934", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " if (handlers.pointerOut) handlers.pointerOut({ ...data, type: 'pointerout' })\n if (handlers.pointerLeave) handlers.pointerLeave({ ...data, type: 'pointerleave' })\n if (handlers.pointerOut) handlers.pointerOut({ ...hoveredObj, type: 'pointerout' })\n if (handlers.pointerLeave) handlers.pointerLeave({ ...hoveredObj, type: 'pointerleave' })\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/pmndrs/react-three-fiber/commit/40a79c7db2e1fc8a5a43387874c3c9f436c1d934", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " {slugError && Workspace URL is already taken!}\n {slugError &&

    Workspace URL is already taken!

    }\n
    {slugError && Workspace URL is already taken!}\n {slugError &&

    Workspace URL is already taken!

    }\n
    ", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/makeplane/plane/commit/3ef67acb920a28eefa4f93b3b660531753652d0c", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " disabled={disabled || is_archived}\n disabled={is_archived}\n disabled={disabled || is_archived}\n disabled={is_archived}\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/makeplane/plane/commit/086d14609c7926b5d1684dba13d82443f6887fbb", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " @invalidate_cache(path=\"/api/users/me/workspaces/\")\n @invalidate_cache(path=\"/api/users/me/workspaces/\", multiple=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/makeplane/plane/commit/cb9fda8557308b41ab40a6e17124aacc3e933322", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4 ] }, { "input": "import { getGroupByColumns } from \"../utils\";\nimport { getGroupByColumns, isWorkspaceLevel } from \"../utils\";\nimport { getGroupByColumns } from \"../utils\";\nimport { getGroupByColumns, isWorkspaceLevel } from \"../utils\";\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/makeplane/plane/commit/86ae79f851da001433c428086fc27df12d70f860", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "import { BarChart2, Briefcase, CheckCircle, LayoutGrid } from \"lucide-react\";\nimport { BarChart2, Briefcase, CheckCircle, Home } from \"lucide-react\";\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/makeplane/plane/commit/e05bc3965c6641509d7cafb8875137ac410bcc23", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " Icon: LayoutGrid,\n Icon: Home,\nimport { BarChart2, Briefcase, CheckCircle, LayoutGrid } from \"lucide-react\";\nimport { BarChart2, Briefcase, CheckCircle, Home } from \"lucide-react\";\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/makeplane/plane/commit/e05bc3965c6641509d7cafb8875137ac410bcc23", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " ? \"border-red-500/20 bg-red-500/20 text-red-500\"\n ? \"border-red-500/20 bg-red-500/20\"\n ? \"border-green-500/20 bg-green-500/20 text-green-500\"\n ? \"border-green-500/20 bg-green-500/20\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/makeplane/plane/commit/2748133bd0c57429c760e8222824cdc12f176df3", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " message: \"Some error occurred. Please try again.\",\n message: error || \"Some error occurred. Please try again.\",\n message: \"Some error occurred. Please try again.\",\n message: error || \"Some error occurred. Please try again.\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/makeplane/plane/commit/0b8608016693aad1cc9800d34c5b1ebf6c10def7", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t__aliasFor: collection,\n\t\t__aliasFor: alias,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/directus/directus/commit/e961e71ec66304a4d497436b5814270b81bc0d48", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\tformattedQuery.__aliasFor = collection + '_aggregated';\n\t\tformattedQuery.__aliasFor = alias + '_aggregated';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/directus/directus/commit/e961e71ec66304a4d497436b5814270b81bc0d48", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\t\treturn validatePayload(subObj, payload);\n\t\t\t\treturn validatePayload(subObj, payload, options);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/directus/directus/commit/a4767f80abc7c202978abacbdf2d1d244012697e", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tsubValidation.map((subObj: Record) => validatePayload(subObj, payload))\n\t\t\tsubValidation.map((subObj: Record) => validatePayload(subObj, payload, options))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/directus/directus/commit/a4767f80abc7c202978abacbdf2d1d244012697e", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": "const path = require('path/posix');\nconst path = require('path');\nconst path = require('path/posix');\nconst path = require('path');\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/directus/directus/commit/a65c3d3df9cee981073c28c947955d5409b835ff", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": "const projectPackageJSON = {\nconst projectPackageJson = {\n\tprojectPackageJSON.dependencies[package.name] = `file:${tarName}`;\n\tconst packageJSON = require(path.join(package.location, 'package.json'));\n\tObject.keys(packageJSON.dependencies || {}).forEach((dependencyName) => {\n\t\tif (!projectPackageJSON.dependencies[dependencyName]) {\n\tprojectPackageJson.dependencies[package.name] = `file:${tarName}`;\n\tconst packageJson = require(path.posix.join(package.location, 'package.json'));\n\tObject.keys(packageJson.dependencies || {}).forEach((dependencyName) => {\n\t\tif (!projectPackageJson.dependencies[dependencyName]) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/directus/directus/commit/a65c3d3df9cee981073c28c947955d5409b835ff", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\tawait applyQuery(table, dbQuery, queryCopy);\n\tawait applyQuery(knex, table, dbQuery, queryCopy);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/directus/directus/commit/8b601c5b60e679679a8127f7c61f31c1c41ef503", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tawait applyFilter(dbQuery, query.filter, collection);\n\t\t\tawait applyFilter(this.knex, dbQuery, query.filter, collection);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/directus/directus/commit/8b601c5b60e679679a8127f7c61f31c1c41ef503", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\t\tawait applyFilter(dbQuery, query.filter, collection);\n\t\tawait applyFilter(knex, dbQuery, query.filter, collection);\n\t\t\tawait applyFilter(dbQuery, query.filter, collection);\n\t\t\tawait applyFilter(this.knex, dbQuery, query.filter, collection);\nexport async function applyFilter(rootQuery: QueryBuilder, rootFilter: Filter, collection: string) {\n\tconst relations = await database.select('*').from('directus_relations');\nexport async function applyFilter(\n\tknex: Knex,\n\trootQuery: QueryBuilder,\n\trootFilter: Filter,\n\tcollection: string\n) {\n\tconst relations = await knex.select('*').from('directus_relations');\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/directus/directus/commit/8b601c5b60e679679a8127f7c61f31c1c41ef503", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 5 ] }, { "input": "export async function applyFilter(rootQuery: QueryBuilder, rootFilter: Filter, collection: string) {\n\tconst relations = await database.select('*').from('directus_relations');\nexport async function applyFilter(\n\tknex: Knex,\n\trootQuery: QueryBuilder,\n\trootFilter: Filter,\n\tcollection: string\n) {\n\tconst relations = await knex.select('*').from('directus_relations');\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/directus/directus/commit/8b601c5b60e679679a8127f7c61f31c1c41ef503", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 4 ] }, { "input": "\t\t\t\ttype: column ? getLocalType(column.type) : 'alias',\n\t\t\t\ttype: column ? getLocalType(column.type, field?.special) : 'alias',\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/directus/directus/commit/68e05a208aa07c9ead3f41c05405fc1bf3b09582", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 5 ] }, { "input": "\t\t\ttype: column ? getLocalType(column.type) : 'alias',\n\t\t\ttype: column ? getLocalType(column.type, fieldInfo?.special) : 'alias',\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/directus/directus/commit/68e05a208aa07c9ead3f41c05405fc1bf3b09582", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 5 ] }, { "input": " if (name === getVisitorAuthCookieName(urlBasePath)) {\n if (name === getVisitorAuthCookieName(basePath)) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/GitbookIO/gitbook/commit/76d6a2009e424e33ea0a1e16dbc0bd175873bed9", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " if (value.basePath === urlBasePath) {\n if (value.basePath === basePath) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/GitbookIO/gitbook/commit/76d6a2009e424e33ea0a1e16dbc0bd175873bed9", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " model: model && (await presentDocument(undefined, model)),\n model:\n model &&\n (await presentDocument(undefined, model, {\n includeData: true,\n includeText: true,\n })),\n document: model && (await presentDocument(undefined, model.document!)),\n document:\n model &&\n (await presentDocument(undefined, model.document!, {\n includeData: true,\n includeText: true,\n })),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/outline/outline/commit/63cfa6e25a3088349bb877ac452091755a016de5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " document: model && (await presentDocument(undefined, model.document!)),\n document:\n model &&\n (await presentDocument(undefined, model.document!, {\n includeData: true,\n includeText: true,\n })),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/outline/outline/commit/63cfa6e25a3088349bb877ac452091755a016de5", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " documents: NavigationNode[],\n nodes: NavigationNode[],\n return documents;\n return nodes;\n const orderedDocs = naturalSort(documents, sort.field, {\n const orderedDocs = naturalSort(nodes, sort.field, {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/outline/outline/commit/733bd39ae4a93b11aa6482846db68a2ad6aa1455", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " return documents;\n return nodes;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/outline/outline/commit/733bd39ae4a93b11aa6482846db68a2ad6aa1455", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " const orderedDocs = naturalSort(documents, sort.field, {\n const orderedDocs = naturalSort(nodes, sort.field, {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/outline/outline/commit/733bd39ae4a93b11aa6482846db68a2ad6aa1455", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " return orderedDocs.map((document) => ({\n ...document,\n return orderedDocs.map((node) => ({\n ...node,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/outline/outline/commit/733bd39ae4a93b11aa6482846db68a2ad6aa1455", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " ? sortNavigationNodes(document.children, sort, sortChildren)\n : document.children,\n ? sortNavigationNodes(node.children, sort, sortChildren)\n : node.children,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/outline/outline/commit/733bd39ae4a93b11aa6482846db68a2ad6aa1455", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "import snakeCase from \"lodash/snakeCase\";\nimport snakeCase from \"lodash/snakeCase\";\n\nconst gemojiToEmojiMart = {\n thumbs_up: \"+1\",\n thumbs_down: \"-1\",\n};\n\nexport const snakeCase = (str: string) =>\n str.replace(/(\\w)(-)(\\w)/g, \"$1_$2\").toLowerCase();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/outline/outline/commit/76845a33082058718f9bfbe5d14078a59d304278", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " const blocks: { node: Node; pos: number }[] = findBlockNodes(doc).filter(\n (item) => item.node.type.name === name\n );\n const blocks: { node: Node; pos: number }[] = findBlockNodes(\n doc,\n true\n ).filter((item) => item.node.type.name === name);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/outline/outline/commit/0047384d707fe729315437f43da76635d7ae053d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " perform: () => window.open(mailToUrl()),\n perform: () => window.open(feedbackUrl()),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/outline/outline/commit/ff49c507db17c4fd0467ca68483cbd75102b7f1d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "// @ts-expect-error ts-migrate(7006) FIXME: Parameter 'documentId' implicitly has an 'any' typ... Remove this comment to see the full error message\nView.findByDocument = async (documentId) => {\nView.findByDocument = async (documentId: string) => {\n// @ts-expect-error ts-migrate(7006) FIXME: Parameter 'documentId' implicitly has an 'any' typ... Remove this comment to see the full error message\nView.findRecentlyEditingByDocument = async (documentId) => {\nView.findRecentlyEditingByDocument = async (documentId: string) => {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/outline/outline/commit/e7c3028ef2336fa33fc89fbeb7783b2d5798b2f0", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\n background-color: #03a9f4;\n background-color: #03a9f4;\n background-color: ${(props) => props.theme.primary};\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/outline/outline/commit/ad1eaa52108e383469a8ada174953522f2a85e3c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " ", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/outline/outline/commit/b44487494472ac79a852e45ba170ee80187a40af", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " @observable recentlyEditedIds: string[] = [];\n @observable recentlyUpdatedIds: string[] = [];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/outline/outline/commit/76924e70f5f9eaded6bf154db94b2135971031d4", "target_edit_idx": 4, "propagatable_edit_idx": [ 11 ] }, { "input": " this.recentlyEditedInCollection(collectionId),\n this.recentlyUpdatedInCollection(collectionId),\n recentlyEditedInCollection(collectionId: string): Document[] {\n recentlyUpdatedInCollection(collectionId: string): Document[] {\n ? this.props.documents.recentlyEditedInCollection(this.collection.id)\n ? this.props.documents.recentlyUpdatedInCollection(this.collection.id)\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/outline/outline/commit/76924e70f5f9eaded6bf154db94b2135971031d4", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 1 ] }, { "input": " recentlyEditedInCollection(collectionId: string): Document[] {\n recentlyUpdatedInCollection(collectionId: string): Document[] {\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/outline/outline/commit/76924e70f5f9eaded6bf154db94b2135971031d4", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 7 ] }, { "input": " fetchRecentlyEdited = async (options: ?PaginationParams): Promise<*> => {\n fetchRecentlyUpdated = async (options: ?PaginationParams): Promise<*> => {\n this.props.documents.fetchRecentlyEdited({\n this.props.documents.fetchRecentlyUpdated({\n this.fetchRecentlyEdited();\n this.fetchRecentlyUpdated();\n this.fetchRecentlyEdited();\n this.fetchRecentlyUpdated();\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/outline/outline/commit/76924e70f5f9eaded6bf154db94b2135971031d4", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 12, 13 ] }, { "input": " this.recentlyEditedIds.replace(\n uniq(this.recentlyEditedIds.concat(map(data, 'id')))\n this.recentlyUpdatedIds.replace(\n uniq(this.recentlyUpdatedIds.concat(map(data, 'id')))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/outline/outline/commit/76924e70f5f9eaded6bf154db94b2135971031d4", "target_edit_idx": 11, "propagatable_edit_idx": [ 4 ] }, { "input": "router.get('slack.commands', async ctx => {\nrouter.get('slack.commands', auth(), async ctx => {\nrouter.get('slack.post', async ctx => {\nrouter.get('slack.post', auth(), async ctx => {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/outline/outline/commit/662f908c7662ce671db0074f6d2e667de363fd77", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " const user = await User.find({\n where: {\n service: 'slack',\n serviceId: data.user_id,\n },\n });\n const user = ctx.state.user;\n\n const user = await User.find({\n where: {\n service: 'slack',\n serviceId: data.user_id,\n },\n });\n const user = ctx.state.user;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/outline/outline/commit/662f908c7662ce671db0074f6d2e667de363fd77", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " current: TEmitted;\n initial: TEmitted;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/statelyai/xstate/commit/9f7a759ddc9f4e7b488496f500d0891bb7a702dc", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 7 ] }, { "input": " current: undefined\n initial: undefined\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/statelyai/xstate/commit/9f7a759ddc9f4e7b488496f500d0891bb7a702dc", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5, 7 ] }, { "input": " current: service.state\n initial: service.state\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/statelyai/xstate/commit/9f7a759ddc9f4e7b488496f500d0891bb7a702dc", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": " public machine: XSMachine,\n public machine: StateMachine,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/statelyai/xstate/commit/3787a717c056f58e32d7a03f1ca931f9299400d5", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " machine: XSMachine,\n machine: StateMachine,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/statelyai/xstate/commit/3787a717c056f58e32d7a03f1ca931f9299400d5", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " machine: XSMachine,\n machine: StateMachine,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/statelyai/xstate/commit/3787a717c056f58e32d7a03f1ca931f9299400d5", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " src: string | Machine | InvokeCreator;\n src: string | StateMachine | InvokeCreator;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/statelyai/xstate/commit/3787a717c056f58e32d7a03f1ca931f9299400d5", "target_edit_idx": 10, "propagatable_edit_idx": [ 1, 2, 4, 5, 11, 12, 13 ] }, { "input": " | Machine;\n | StateMachine;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/statelyai/xstate/commit/3787a717c056f58e32d7a03f1ca931f9299400d5", "target_edit_idx": 12, "propagatable_edit_idx": [ 1, 2, 4, 5, 10, 11, 13 ] }, { "input": "export interface Machine<\nexport interface StateMachine<\n): Machine {\n): StateMachine {\n ) as Machine;\n ) as StateMachine;\n | Machine,\n | StateMachine,\n const machine = invokeConfig as Machine;\n const machine = invokeConfig as StateMachine;\n src: string | Machine | InvokeCreator;\n src: string | StateMachine | InvokeCreator;\n src: string | Machine | InvokeCreator;\n src: string | StateMachine | InvokeCreator;\n | Machine;\n | StateMachine;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/statelyai/xstate/commit/3787a717c056f58e32d7a03f1ca931f9299400d5", "target_edit_idx": 13, "propagatable_edit_idx": [ 1, 2, 4, 5, 10, 11, 12 ] }, { "input": " linkTags.push(``);\n headerLinkTags.push(``);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/461e78f3ee15e7097bd7f2c975dc460d844f277f", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 6, 7 ] }, { "input": " for (const linkTag of linkTags) {\n for (const linkTag of headerLinkTags) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/461e78f3ee15e7097bd7f2c975dc460d844f277f", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 4, 6, 7 ] }, { "input": " linkTags = [];\n headerLinkTags = [];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/461e78f3ee15e7097bd7f2c975dc460d844f277f", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3, 6, 7 ] }, { "input": " linkTags.length || scriptTags.length\n headerLinkTags.length || scriptTags.length\n linkTags.push(``);\n headerLinkTags.push(``);\n for (const linkTag of linkTags) {\n for (const linkTag of headerLinkTags) {\n linkTags = [];\n headerLinkTags = [];\n linkTags.join('') + scriptTags.join('') + content\n headerLinkTags.join('') + scriptTags.join('') + content\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/461e78f3ee15e7097bd7f2c975dc460d844f277f", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 3, 4, 7 ] }, { "input": " linkTags.join('') + scriptTags.join('') + content\n headerLinkTags.join('') + scriptTags.join('') + content\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/461e78f3ee15e7097bd7f2c975dc460d844f277f", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 3, 4, 6 ] }, { "input": " \n \n \n \n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular-cli/commit/461e78f3ee15e7097bd7f2c975dc460d844f277f", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " const isUsingApplicationBuilder =\n project?.targets?.get('build')?.builder === Builders.Application;\n const isUsingApplicationBuilder = usingApplicationBuilder(project);\n const isUsingApplicationBuilder =\n clientProject.targets.get('build')?.builder === Builders.Application;\n\n const isUsingApplicationBuilder = usingApplicationBuilder(clientProject);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/3107ad7b8385ae505a8428c351b77c69d9453c78", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " logger: logging.LoggerApi;\n logger: BuilderContext['logger'];\n logger: logging.LoggerApi,\n logger: BuilderContext['logger'],\n logger: logging.LoggerApi,\n logger: BuilderContext['logger'],\n logger: logging.LoggerApi,\n logger: BuilderContext['logger'],\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/560ec400c0906ace2dadf2e2b8a825b9691e93e5", "target_edit_idx": 1, "propagatable_edit_idx": [ 5, 3, 13 ] }, { "input": "import { logging } from '@angular-devkit/core';\nimport { BuilderContext } from '@angular-devkit/architect';\nimport { logging } from '@angular-devkit/core';\nimport { logging } from '@angular-devkit/core';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/560ec400c0906ace2dadf2e2b8a825b9691e93e5", "target_edit_idx": 4, "propagatable_edit_idx": [ 10, 12 ] }, { "input": "import { BaseException } from '@angular-devkit/core';\nimport { BaseException } from '@angular-devkit/core';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/560ec400c0906ace2dadf2e2b8a825b9691e93e5", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": "export class MissingAssetSourceRootException extends BaseException {\nexport class MissingAssetSourceRootException extends Error {\nexport class MissingFileReplacementException extends BaseException {\nexport class MissingFileReplacementException extends Error {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/560ec400c0906ace2dadf2e2b8a825b9691e93e5", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " `Node packages may not be installed\\. Try installing with '${getActivePackageManager()} install'\\.`,\n `Node packages may not be installed\\\\. Try installing with '${getActivePackageManager()} install'\\\\.`,\n `Node packages may not be installed\\. Try installing with '${getActivePackageManager()} install'\\.`,\n `Node packages may not be installed\\\\. Try installing with '${getActivePackageManager()} install'\\\\.`,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular-cli/commit/0d789b75bbed5897259c4e3d885812db81226a41", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " .then(() =>\n expectFileToMatch(modulePath, /import { Test1Module } from '.\\/test1\\/test1.module'/),\n )\n .then(() => expectFileToMatch(modulePath, /imports: \\[(.|\\s)*Test1Module(.|\\s)*\\]/m))\n .then(() => expectFileToMatch(modulePath, `import { Test1Module } from './test1/test1.module'`))\n .then(() => expectFileToMatch(modulePath, /imports: \\[.*?Test1Module.*?\\]/s))\n .then(() =>\n expectFileToMatch(modulePath, /import { Test2Module } from '.\\/test2\\/test2.module'/),\n )\n .then(() => expectFileToMatch(modulePath, /imports: \\[(.|\\s)*Test2Module(.|\\s)*\\]/m))\n .then(() => expectFileToMatch(modulePath, `import { Test2Module } from './test2/test2.module'`))\n .then(() => expectFileToMatch(modulePath, /imports: \\[.*?Test2Module.*?\\]/s))\n .then(() =>\n expectFileToMatch(modulePath, /import { Test3Module } from '.\\/test3\\/test3.module'/),\n )\n .then(() => expectFileToMatch(modulePath, /imports: \\[(.|\\s)*Test3Module(.|\\s)*\\]/m))\n .then(() => expectFileToMatch(modulePath, `import { Test3Module } from './test3/test3.module'`))\n .then(() => expectFileToMatch(modulePath, /imports: \\[.*?Test3Module.*?\\]/s))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular-cli/commit/0d789b75bbed5897259c4e3d885812db81226a41", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " .then(() => expectFileToMatch(modulePath, /imports: \\[(.|\\s)*Test4Module(.|\\s)*\\]/m))\n .then(() => expectFileToMatch(modulePath, /imports: \\[.*?Test4Module.*?\\]/s))\n .then(() => expectFileToMatch(subModulePath, /imports: \\[(.|\\s)*Test5Module(.|\\s)*\\]/m))\n .then(() => expectFileToMatch(subModulePath, /imports: \\[.*?Test5Module.*?\\]/s))\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/angular/angular-cli/commit/0d789b75bbed5897259c4e3d885812db81226a41", "target_edit_idx": 5, "propagatable_edit_idx": [ 9 ] }, { "input": " ): Promise<{ affectedFiles: ReadonlySet; compilerOptions: ng.CompilerOptions }>;\n ): Promise<{\n affectedFiles: ReadonlySet;\n compilerOptions: ng.CompilerOptions;\n referencedFiles: readonly string[];\n }>;\n ): Promise<{ affectedFiles: ReadonlySet; compilerOptions: ng.CompilerOptions }> {\n ): Promise<{\n affectedFiles: ReadonlySet;\n compilerOptions: ng.CompilerOptions;\n referencedFiles: readonly string[];\n }> {\n ): Promise<{ affectedFiles: ReadonlySet; compilerOptions: ng.CompilerOptions }> {\n ): Promise<{\n affectedFiles: ReadonlySet;\n compilerOptions: ng.CompilerOptions;\n referencedFiles: readonly string[];\n }> {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/angular/angular-cli/commit/5cacd34a222eea16c18caa63dbe4448b81e106f3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 6 ] }, { "input": " return { affectedFiles, compilerOptions };\n const referencedFiles = typeScriptProgram\n .getSourceFiles()\n .filter((sourceFile) => !angularCompiler.ignoreForEmit.has(sourceFile))\n .map((sourceFile) => sourceFile.fileName);\n\n return { affectedFiles, compilerOptions, referencedFiles };\n return { affectedFiles, compilerOptions };\n const referencedFiles = typeScriptProgram\n .getSourceFiles()\n .map((sourceFile) => sourceFile.fileName);\n\n return { affectedFiles, compilerOptions, referencedFiles };\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular-cli/commit/5cacd34a222eea16c18caa63dbe4448b81e106f3", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " execAndWaitForOutputToMatch('ng', ['build'], /Node packages may not be installed\\./),\n execAndWaitForOutputToMatch(\n 'ng',\n ['build'],\n new RegExp(\n `Node packages may not be installed\\. Try installing with '${getActivePackageManager()} install'\\.`,\n ),\n ),\n await execAndWaitForOutputToMatch('ng', ['build'], /Node packages may not be installed\\./);\n await execAndWaitForOutputToMatch(\n 'ng',\n ['build'],\n new RegExp(\n `Node packages may not be installed\\. Try installing with '${getActivePackageManager()} install'\\.`,\n ),\n );\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/f1dbdb95e035ed22e7bba0cf9e5355f56580c6e9", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " const { status, tempPath } = await installTempPackage(\n const { status, tempNodeModules } = await installTempPackage(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/6e34d1bf897dcbf76d8edd40a3d70e4d3f190312", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4, 5 ] }, { "input": " paths: [tempPath],\n paths: [tempNodeModules],\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/6e34d1bf897dcbf76d8edd40a3d70e4d3f190312", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 4, 5 ] }, { "input": " tempPath: string;\n tempNodeModules: string;\n const { status, tempPath } = await installTempPackage(\n const { status, tempNodeModules } = await installTempPackage(\n paths: [tempPath],\n paths: [tempNodeModules],\n const { status: code, tempPath } = await installTempPackage(packageName, packageManager);\n const { status: code, tempNodeModules } = await installTempPackage(packageName, packageManager);\n const pkgLocation = join(tempPath, packageNameNoVersion);\n const pkgLocation = join(tempNodeModules, packageNameNoVersion);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/6e34d1bf897dcbf76d8edd40a3d70e4d3f190312", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 4, 5 ] }, { "input": " .then(() => expectFileToMatch(modulePath, /exports: \\[\\n(\\s*) TestComponentComponent\\n\\1\\]/))\n .then(() => expectFileToMatch(modulePath, /exports: \\[\\r?\\n(\\s*) TestComponentComponent\\r?\\n\\1\\]/))\n .then(() => expectFileToMatch(modulePath, /exports: \\[\\n(\\s*) TestDirectiveDirective\\n\\1\\]/))\n .then(() => expectFileToMatch(modulePath, /exports: \\[\\r?\\n(\\s*) TestDirectiveDirective\\r?\\n\\1\\]/))\n .then(() => expectFileToMatch(modulePath, /exports: \\[\\n(\\s*) TestPipePipe\\n\\1\\]/))\n .then(() => expectFileToMatch(modulePath, /exports: \\[\\r?\\n(\\s*) TestPipePipe\\r?\\n\\1\\]/))\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/angular/angular-cli/commit/2a6bda2fce8a0f3d95d98feabe3a781eca7ff8ec", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " allowedDepedencies?: string[];\n allowedDependencies?: string[];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/eb8872aeee2a6c4d0037cb97936268e7bab716a9", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 8, 5, 6 ] }, { "input": " private allowedDepedencies = new Set(['webpack/hot/dev-server']);\n private allowedDependencies = new Set(['webpack/hot/dev-server']);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/eb8872aeee2a6c4d0037cb97936268e7bab716a9", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 8, 3, 6 ] }, { "input": " this.options.allowedDepedencies?.forEach(d => this.allowedDepedencies.add(d));\n this.options.allowedDependencies?.forEach(d => this.allowedDependencies.add(d));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/eb8872aeee2a6c4d0037cb97936268e7bab716a9", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 8, 3, 5 ] }, { "input": " this.allowedDepedencies.has(rawRequest) ||\n this.allowedDepedencies.has(this.rawRequestToPackageName(rawRequest)) ||\n this.allowedDependencies.has(rawRequest) ||\n this.allowedDependencies.has(this.rawRequestToPackageName(rawRequest)) ||\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/angular/angular-cli/commit/eb8872aeee2a6c4d0037cb97936268e7bab716a9", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 3, 5, 6 ] }, { "input": " if (this.hasCommonJsDependencies(dependencies)) {\n if (this.hasCommonJsDependencies(compilation, dependencies)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/eb8872aeee2a6c4d0037cb97936268e7bab716a9", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 12 ] }, { "input": " if (parentDependencies && this.hasCommonJsDependencies(parentDependencies, true)) {\n if (parentDependencies && this.hasCommonJsDependencies(compilation, parentDependencies, true)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/eb8872aeee2a6c4d0037cb97936268e7bab716a9", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 12 ] }, { "input": " if (checkParentModules && dep.module && this.hasCommonJsDependencies(dep.module.dependencies)) {\n return true;\n if (checkParentModules) {\n const module = getWebpackModule(compilation, dep);\n if (module && this.hasCommonJsDependencies(compilation, module.dependencies)) {\n return true;\n }\n if (this.hasCommonJsDependencies(dependencies)) {\n if (this.hasCommonJsDependencies(compilation, dependencies)) {\n if (parentDependencies && this.hasCommonJsDependencies(parentDependencies, true)) {\n if (parentDependencies && this.hasCommonJsDependencies(compilation, parentDependencies, true)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/eb8872aeee2a6c4d0037cb97936268e7bab716a9", "target_edit_idx": 12, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " .filter(node => node.kind === ts.SyntaxKind.ImportDeclaration)\n .filter(ts.isImportDeclaration)\n .filter(node => node.kind === ts.SyntaxKind.ImportDeclaration)\n .filter(ts.isImportDeclaration)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular-cli/commit/994aab7485ce4abd194f8366818ca72981df039a", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " .map((imp: ts.ImportDeclaration) => {\n .map(imp => {\n .map((imp: ts.ImportDeclaration) => {\n .map(imp => {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/994aab7485ce4abd194f8366818ca72981df039a", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " const cachedUrl = resourceCache.get(inputUrl);\n const cacheKey = path.resolve(context, inputUrl);\n const cachedUrl = resourceCache.get(cacheKey);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0625, "commit_url": "https://github.com/angular/angular-cli/commit/0cfd5737ac8519fbbecc0ebd634ccd1f6abb1f8d", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " resourceCache.set(inputUrl, outputUrl);\n resourceCache.set(cacheKey, outputUrl);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1875, "commit_url": "https://github.com/angular/angular-cli/commit/0cfd5737ac8519fbbecc0ebd634ccd1f6abb1f8d", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 5 ] }, { "input": " resourceCache.set(inputUrl, outputUrl);\n resourceCache.set(cacheKey, outputUrl);\n const cachedUrl = resourceCache.get(inputUrl);\n const cacheKey = path.resolve(context, inputUrl);\n const cachedUrl = resourceCache.get(cacheKey);\n resourceCache.set(inputUrl, outputUrl);\n resourceCache.set(cacheKey, outputUrl);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.1875, "commit_url": "https://github.com/angular/angular-cli/commit/0cfd5737ac8519fbbecc0ebd634ccd1f6abb1f8d", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " fn();\n fn(i);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/ae9695a1b7ea6f8f95aff66c5e4876d5e056bc97", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " if (schema.default !== undefined) {\n if (current.default !== undefined) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7777777777777778, "commit_url": "https://github.com/angular/angular-cli/commit/d10c9e31048eca3f798533484e65071460d20b9d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " if (typeof schema.default == 'string') {\n defaultValue = schema.default;\n if (typeof current.default == 'string') {\n defaultValue = current.default;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/angular/angular-cli/commit/d10c9e31048eca3f798533484e65071460d20b9d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " if (typeof schema.default == 'number') {\n defaultValue = schema.default;\n if (typeof current.default == 'number') {\n defaultValue = current.default;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/angular/angular-cli/commit/d10c9e31048eca3f798533484e65071460d20b9d", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " if (typeof schema.default == 'boolean') {\n defaultValue = schema.default;\n if (typeof current.default == 'boolean') {\n defaultValue = current.default;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/angular/angular-cli/commit/d10c9e31048eca3f798533484e65071460d20b9d", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " const architect = config.projects.bar.architect;\n const targets = config.projects.bar.targets;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/dcdb937e41ec5955d7d0503ffa131134fcc801b1", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " expect(architect[target].options.assets).toContain('projects/bar/src/manifest.json');\n expect(targets[target].options.assets).toContain('projects/bar/src/manifest.json');\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/dcdb937e41ec5955d7d0503ffa131134fcc801b1", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " return git('status', '--porcelain')\n return silentGit('status', '--porcelain')\n .then(() => git('status', '--porcelain'))\n .then(() => silentGit('status', '--porcelain'))\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/angular/angular-cli/commit/0bd1f61736db10e4711b3fc1debf11e673dd7cfd", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " name: 'sourcemap',\n name: 'sourcemaps',\n name: 'sourcemap',\n name: 'sourcemaps',\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular-cli/commit/d94040b2de8165d97a218953ff0b2f98d4025cee", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " sourcemap?: boolean;\n sourcemaps?: boolean;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular-cli/commit/d94040b2de8165d97a218953ff0b2f98d4025cee", "target_edit_idx": 2, "propagatable_edit_idx": [ 5, 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " sourcemap: true,\n sourcemaps: true,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular-cli/commit/d94040b2de8165d97a218953ff0b2f98d4025cee", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 5, 8, 9, 10, 11, 12, 13, 14 ] }, { "input": " sourcemap: false,\n sourcemaps: false,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular-cli/commit/d94040b2de8165d97a218953ff0b2f98d4025cee", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 5, 7, 9, 10, 11, 12, 13, 14 ] }, { "input": " devtool: buildOptions.sourcemap ? 'source-map' : false,\n devtool: buildOptions.sourcemaps ? 'source-map' : false,\n sourcemap?: boolean;\n sourcemaps?: boolean;\n sourcemap?: boolean;\n sourcemaps?: boolean;\n sourcemap: true,\n sourcemaps: true,\n sourcemap: false,\n sourcemaps: false,\n sourceMap: buildOptions.sourcemap\n sourceMap: buildOptions.sourcemaps\n const cssSourceMap = buildOptions.extractCss && buildOptions.sourcemap;\n const cssSourceMap = buildOptions.extractCss && buildOptions.sourcemaps;\n devtool: testConfig.sourcemap ? 'inline-source-map' : 'eval',\n devtool: testConfig.sourcemaps ? 'inline-source-map' : 'eval',\n sourcemap: true,\n sourcemaps: true,\n sourcemap: options.sourcemap,\n sourcemap: options.sourcemaps,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular-cli/commit/d94040b2de8165d97a218953ff0b2f98d4025cee", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 5, 7, 8, 10, 11, 12, 13, 14 ] }, { "input": " sourceMap: buildOptions.sourcemap\n sourceMap: buildOptions.sourcemaps\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular-cli/commit/d94040b2de8165d97a218953ff0b2f98d4025cee", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 5, 7, 8, 9, 11, 12, 13, 14 ] }, { "input": " const cssSourceMap = buildOptions.extractCss && buildOptions.sourcemap;\n const cssSourceMap = buildOptions.extractCss && buildOptions.sourcemaps;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular-cli/commit/d94040b2de8165d97a218953ff0b2f98d4025cee", "target_edit_idx": 11, "propagatable_edit_idx": [ 2, 5, 7, 8, 9, 10, 12, 13, 14 ] }, { "input": " devtool: testConfig.sourcemap ? 'inline-source-map' : 'eval',\n devtool: testConfig.sourcemaps ? 'inline-source-map' : 'eval',\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular-cli/commit/d94040b2de8165d97a218953ff0b2f98d4025cee", "target_edit_idx": 12, "propagatable_edit_idx": [ 2, 5, 7, 8, 9, 10, 11, 13, 14 ] }, { "input": " sourcemap: options.sourcemap,\n sourcemap: options.sourcemaps,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/angular/angular-cli/commit/d94040b2de8165d97a218953ff0b2f98d4025cee", "target_edit_idx": 14, "propagatable_edit_idx": [ 2, 5, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": "const githubPagesDeployCommand = Command.extend({\nconst GithubPagesDeployCommand = Command.extend({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/26dc4ce4976fb60b742c76ca684aeafe440340d5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "export default githubPagesDeployCommand;\nexport default GithubPagesDeployCommand;", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/26dc4ce4976fb60b742c76ca684aeafe440340d5", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "const TestCommand = require('../ember-cli/lib/commands/test');\nconst EmberTestCommand = require('../ember-cli/lib/commands/test');\nconst NgCliTestCommand = TestCommand.extend({\nconst TestCommand = EmberTestCommand.extend({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/26dc4ce4976fb60b742c76ca684aeafe440340d5", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "const NgCliTestCommand = TestCommand.extend({\nconst TestCommand = EmberTestCommand.extend({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/angular/angular-cli/commit/26dc4ce4976fb60b742c76ca684aeafe440340d5", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "NgCliTestCommand.overrideCore = true;\nexport default NgCliTestCommand;\nTestCommand.overrideCore = true;\nexport default TestCommand;", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/angular/angular-cli/commit/26dc4ce4976fb60b742c76ca684aeafe440340d5", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " this.options.editor.on('focus', ({ view }) => {\n this.focusHandler = ({ view }) => {\n this.options.editor.on('focus', ({ view }) => {\n this.focusHandler = ({ view }) => {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ueberdosis/tiptap/commit/91f75e5305f752c102943322d1e3623d6a247d3a", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": " this.options.editor.on('blur', ({ event }) => {\n this.blurHandler = ({ event }) => {\n this.options.editor.on('blur', ({ event }) => {\n this.blurHandler = ({ event }) => {\n this.options.editor.on('blur', () => {\n this.blurHandler = () => {\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/ueberdosis/tiptap/commit/91f75e5305f752c102943322d1e3623d6a247d3a", "target_edit_idx": 2, "propagatable_edit_idx": [ 10, 5 ] }, { "input": "import { wrappingInputRule, wrapInList, toggleList } from 'tiptap-commands'\nimport { wrappingInputRule, toggleList } from 'tiptap-commands'\nimport { wrappingInputRule, wrapInList, toggleList } from 'tiptap-commands'\nimport { wrappingInputRule, toggleList } from 'tiptap-commands'\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/ueberdosis/tiptap/commit/92515e2ee42e5c8809afd5bb7e9e64911a1382f2", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": "\tkeys({ type }) {\n\tkeys({ type, schema }) {\n\tkeys({ type }) {\n\tkeys({ type, schema }) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/ueberdosis/tiptap/commit/92515e2ee42e5c8809afd5bb7e9e64911a1382f2", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "export type AppShellFooterVariant = string;\nexport type AppShellFooterCssVariables = {\n root: '--test';\n};\nexport type AppShellHeaderVariant = string;\nexport type AppShellHeaderCssVariables = {\n root: '--test';\n};\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mantinedev/mantine/commit/d6789d736422c97c0b9cc74f830e0be1de43d6a7", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "export async function publishPackage({\n path,\n name,\n tag,\n}: {\n path: string;\ninterface PublishPackage {\n packagePath: string;\n publishPackage({ path: p!.path, name: p!.packageJson.name!, tag: argv.tag })\n publishPackage({ packagePath: p!.path, name: p!.packageJson.name!, tag: argv.tag })\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mantinedev/mantine/commit/be6a9d7231212ef51d72304084c76a4813f87a85", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "export interface UseFormInput {\nexport interface UseFormInput {\nexport interface UseFormReturnType {\nexport interface UseFormReturnType {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mantinedev/mantine/commit/93434256fe8465614cab9c344a020f687f4557c1", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " \n \n \n \n \n \n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mantinedev/mantine/commit/edc5ae7eda8b757c14a9cfec88c2c1691c61cc41", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " \n
    \n
    \n
    \n
    \n
    \n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/mantinedev/mantine/commit/edc5ae7eda8b757c14a9cfec88c2c1691c61cc41", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "import { Avatar, Badge, Table, Group, Text, NativeSelect, ScrollArea } from '@mantine/core';\nimport { Avatar, Badge, Table, Group, Text, Select, ScrollArea } from '@mantine/core';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mantinedev/mantine/commit/a4605060de20729ec86b9a9b305abbb213df7702", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " \n \n \n \n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/mantinedev/mantine/commit/a4605060de20729ec86b9a9b305abbb213df7702", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " \n