| [ |
| { |
| "task_id": "scribejava_scribejava-scribejava-8.3.3__12297f7_36c1c71__Base64Test_3e0e2362", |
| "project_name": "scribejava_scribejava-scribejava-8.3.3", |
| "git_clone_url": "https://github.com/scribejava/scribejava.git", |
| "rev1": "12297f702d5e511704f5c069578dc83691c56197", |
| "rev2": "36c1c71c789e1d9336c683b688376e380ca61858", |
| "rev1_date": "2021-02-24T12:19:12Z", |
| "rev2_date": "2021-02-24T12:19:24Z", |
| "git_diff_url": "https://github.com/scribejava/scribejava/compare/12297f702d5e511704f5c069578dc83691c56197...36c1c71c789e1d9336c683b688376e380ca61858", |
| "test_file": "scribejava-core/src/test/java/com/github/scribejava/core/base64/Base64Test.java", |
| "test_changes": [ |
| { |
| "change_id": "15_scribejava_scribejava-scribejava-8.3.3_12297f7_36c1c71_Base64Test", |
| "test_sign": "com/github/scribejava/core/base64/Base64Test.testEncodeUrlWithoutPadding:()V", |
| "class": "Base64Test", |
| "method": "testEncodeUrlWithoutPadding", |
| "module": "scribejava-core", |
| "junit_selector": "com.github.scribejava.core.base64.Base64Test#testEncodeUrlWithoutPadding", |
| "old_test_code": "@Test\npublic void testEncodeUrlWithoutPadding() {\n final String helloWorldEncoded = \"SGVsbG8gV29ybGQ\";\n final String helloWorldTwoLinesEncoded = \"SGVsbG8gV29ybGQNCk5ldyBMaW5lMg\";\n final String helloWorldTwoLinesAndNewLineEncoded = \"SGVsbG8gV29ybGQNClNlY29uZCBMaW5lDQo\";\n final String helloWorldDifferentCharsEncoded = \"YDEyMzQ1Njc4OTAtPX4hQCMkJV4mKigpXyvRkdCBIuKEljs6P3F3ZXJ0eXVpb3B\" + \"bXWFzZGZnaGprbDsnenhjdmJubSwuL1FXRVJUWVVJT1B7fXxBU0RGR0hKS0w6WlhDVkJOTTw-P9C50YTRj9GG0YvRh9GD0LLRgdC\" + \"60LDQvNC10L_QuNC90YDRgtCz0L7RjNGI0LvQsdGJ0LTRjtC30LYu0YXRjdGKXNCZ0KTQr9Cm0KvQp9Cj0JLQodCa0JDQnNCV0J_\" + \"QmNCd0KDQotCT0J7QrNCo0JvQkdCp0JTQrtCX0JYs0KXQrdCqLw0JDCcICg\";\n final String str = \"MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAMPQ5BCMxlUq2TYy\" + \"iRIoEUsz6HGTJhHuasS2nx1Se4Co3lxwxyubVdFj8AuhHNJSmJvjlpbTsGOjLZpr\" + \"HyDEDdJmf1Fensh1MhUnBZ4a7uLrZrKzFHHJdamX9pxapB89vLeHlCot9hVXdrZH\" + \"nNtg6FdmRKH_8gbs8iDyIayFvzYDAgMBAAECgYA-c9MpTBy9cQsR9BAvkEPjvkx2\" + \"XL4ZnfbDgpNA4Nuu7yzsQrPjPomiXMNkkiAFHH67yVxwAlgRjyuuQlgNNTpKvyQt\" + \"XcHxffnU0820VmE23M-L7jg2TlB3-rUnEDmDvCoyjlwGDR6lNb7t7Fgg2iR-iaov\" + \"0iVzz-l9w0slRlyGsQJBAPWXW2m3NmFgqfDxtw8fsKC2y8o17_cnPjozRGtWb8LQ\" + \"g3VCb8kbOFHOYNGazq3M7-wD1qILF2h_HecgK9eQrZ0CQQDMHXoJMfKKbrFrTKgE\" + \"zyggO1gtuT5OXYeFewMEb5AbDI2FfSc2YP7SHij8iQ2HdukBrbTmi6qxh3HmIR58\" + \"I_AfAkEA0Y9vr0tombsUB8cZv0v5OYoBZvCTbMANtzfb4AOHpiKqqbohDOevLQ7_\" + \"SpvgVCmVaDz2PptcRAyEBZ5MCssneQJAB2pmvaDH7Ambfod5bztLfOhLCtY5EkXJ\" + \"n6rZcDbRaHorRhdG7m3VtDKOUKZ2DF7glkQGV33phKukErVPUzlHBwJAScD9TqaG\" + \"wJ3juUsVtujV23SnH43iMggXT7m82STpPGam1hPfmqu2Z0niePFo927ogQ7H1EMJ\" + \"UHgqXmuvk2X_Ww\";\n assertEquals(helloWorldEncoded, java8Base64.internalEncodeUrlWithoutPadding(helloWorldBytes));\n assertEquals(helloWorldTwoLinesEncoded, java8Base64.internalEncodeUrlWithoutPadding(helloWorldTwoLinesBytes));\n assertEquals(helloWorldTwoLinesAndNewLineEncoded, java8Base64.internalEncodeUrlWithoutPadding(helloWorldTwoLinesAndNewLineBytes));\n assertEquals(helloWorldDifferentCharsEncoded, java8Base64.internalEncodeUrlWithoutPadding(helloWorldDifferentCharsBytes));\n assertEquals(str, java8Base64.internalEncodeUrlWithoutPadding(bytes));\n assertEquals(helloWorldEncoded, commonsCodecBase64.internalEncodeUrlWithoutPadding(helloWorldBytes));\n assertEquals(helloWorldTwoLinesEncoded, commonsCodecBase64.internalEncodeUrlWithoutPadding(helloWorldTwoLinesBytes));\n assertEquals(helloWorldTwoLinesAndNewLineEncoded, commonsCodecBase64.internalEncodeUrlWithoutPadding(helloWorldTwoLinesAndNewLineBytes));\n assertEquals(helloWorldDifferentCharsEncoded, commonsCodecBase64.internalEncodeUrlWithoutPadding(helloWorldDifferentCharsBytes));\n assertEquals(str, commonsCodecBase64.internalEncodeUrlWithoutPadding(bytes));\n}", |
| "new_test_code": "@Test\npublic void testEncodeUrlWithoutPadding() {\n final String helloWorldEncoded = \"SGVsbG8gV29ybGQ\";\n final String helloWorldTwoLinesEncoded = \"SGVsbG8gV29ybGQNCk5ldyBMaW5lMg\";\n final String helloWorldTwoLinesAndNewLineEncoded = \"SGVsbG8gV29ybGQNClNlY29uZCBMaW5lDQo\";\n final String helloWorldDifferentCharsEncoded = \"YDEyMzQ1Njc4OTAtPX4hQCMkJV4mKigpXyvRkdCBIuKEljs6P3F3ZXJ0eXVpb3B\" + \"bXWFzZGZnaGprbDsnenhjdmJubSwuL1FXRVJUWVVJT1B7fXxBU0RGR0hKS0w6WlhDVkJOTTw-P9C50YTRj9GG0YvRh9GD0LLRgdC\" + \"60LDQvNC10L_QuNC90YDRgtCz0L7RjNGI0LvQsdGJ0LTRjtC30LYu0YXRjdGKXNCZ0KTQr9Cm0KvQp9Cj0JLQodCa0JDQnNCV0J_\" + \"QmNCd0KDQotCT0J7QrNCo0JvQkdCp0JTQrtCX0JYs0KXQrdCqLw0JDCcICg\";\n final String str = \"MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAMPQ5BCMxlUq2TYy\" + \"iRIoEUsz6HGTJhHuasS2nx1Se4Co3lxwxyubVdFj8AuhHNJSmJvjlpbTsGOjLZpr\" + \"HyDEDdJmf1Fensh1MhUnBZ4a7uLrZrKzFHHJdamX9pxapB89vLeHlCot9hVXdrZH\" + \"nNtg6FdmRKH_8gbs8iDyIayFvzYDAgMBAAECgYA-c9MpTBy9cQsR9BAvkEPjvkx2\" + \"XL4ZnfbDgpNA4Nuu7yzsQrPjPomiXMNkkiAFHH67yVxwAlgRjyuuQlgNNTpKvyQt\" + \"XcHxffnU0820VmE23M-L7jg2TlB3-rUnEDmDvCoyjlwGDR6lNb7t7Fgg2iR-iaov\" + \"0iVzz-l9w0slRlyGsQJBAPWXW2m3NmFgqfDxtw8fsKC2y8o17_cnPjozRGtWb8LQ\" + \"g3VCb8kbOFHOYNGazq3M7-wD1qILF2h_HecgK9eQrZ0CQQDMHXoJMfKKbrFrTKgE\" + \"zyggO1gtuT5OXYeFewMEb5AbDI2FfSc2YP7SHij8iQ2HdukBrbTmi6qxh3HmIR58\" + \"I_AfAkEA0Y9vr0tombsUB8cZv0v5OYoBZvCTbMANtzfb4AOHpiKqqbohDOevLQ7_\" + \"SpvgVCmVaDz2PptcRAyEBZ5MCssneQJAB2pmvaDH7Ambfod5bztLfOhLCtY5EkXJ\" + \"n6rZcDbRaHorRhdG7m3VtDKOUKZ2DF7glkQGV33phKukErVPUzlHBwJAScD9TqaG\" + \"wJ3juUsVtujV23SnH43iMggXT7m82STpPGam1hPfmqu2Z0niePFo927ogQ7H1EMJ\" + \"UHgqXmuvk2X_Ww\";\n assertEquals(helloWorldEncoded, java8Base64.internalEncodeUrlWithoutPadding(helloWorldBytes));\n assertEquals(helloWorldTwoLinesEncoded, java8Base64.internalEncodeUrlWithoutPadding(helloWorldTwoLinesBytes));\n assertEquals(helloWorldTwoLinesAndNewLineEncoded, java8Base64.internalEncodeUrlWithoutPadding(helloWorldTwoLinesAndNewLineBytes));\n assertEquals(helloWorldDifferentCharsEncoded, java8Base64.internalEncodeUrlWithoutPadding(helloWorldDifferentCharsBytes));\n assertEquals(str, java8Base64.internalEncodeUrlWithoutPadding(bytes));\n assertEquals(helloWorldEncoded, commonsCodecBase64.internalEncodeUrlWithoutPadding(helloWorldBytes));\n assertEquals(helloWorldTwoLinesEncoded, commonsCodecBase64.internalEncodeUrlWithoutPadding(helloWorldTwoLinesBytes));\n assertEquals(helloWorldTwoLinesAndNewLineEncoded, commonsCodecBase64.internalEncodeUrlWithoutPadding(helloWorldTwoLinesAndNewLineBytes));\n assertEquals(helloWorldDifferentCharsEncoded, commonsCodecBase64.internalEncodeUrlWithoutPadding(helloWorldDifferentCharsBytes));\n assertEquals(str, commonsCodecBase64.internalEncodeUrlWithoutPadding(bytes));\n assertEquals(helloWorldEncoded, jaxbBase64.internalEncodeUrlWithoutPadding(helloWorldBytes));\n assertEquals(helloWorldTwoLinesEncoded, jaxbBase64.internalEncodeUrlWithoutPadding(helloWorldTwoLinesBytes));\n assertEquals(helloWorldTwoLinesAndNewLineEncoded, jaxbBase64.internalEncodeUrlWithoutPadding(helloWorldTwoLinesAndNewLineBytes));\n assertEquals(helloWorldDifferentCharsEncoded, jaxbBase64.internalEncodeUrlWithoutPadding(helloWorldDifferentCharsBytes));\n assertEquals(str, jaxbBase64.internalEncodeUrlWithoutPadding(bytes));\n}", |
| "old_test_file_path": [ |
| "scribejava-core/src/test/java/com/github/scribejava/core/base64/Base64Test.java" |
| ], |
| "old_test_lnum": [ |
| "105-145" |
| ], |
| "new_test_lnum": [ |
| "114-162" |
| ], |
| "old_production_code": "", |
| "new_production_code": "@Override\nprotected String internalEncodeUrlWithoutPadding(byte[] bytes) {\n String string = DatatypeConverter.printBase64Binary(bytes);\n while (string.endsWith(\"=\")) {\n string = string.substring(0, string.length() - 1);\n }\n return string.replace('+', '-').replace('/', '_');\n}", |
| "focal_file_path": "scribejava-core/src/main/java/com/github/scribejava/core/base64/JaxbBase64.java", |
| "focal_method_sign": "com/github/scribejava/core/base64/JaxbBase64.internalEncodeUrlWithoutPadding:([B)Ljava/lang/String", |
| "focal_all_deps_scored": [ |
| { |
| "dep_id": 0, |
| "method_sign": "com/github/scribejava/core/base64/JaxbBase64.internalEncodeUrlWithoutPadding:([B)Ljava/lang/String", |
| "file_path_old": null, |
| "line_nums_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/base64/JaxbBase64.java", |
| "line_nums_new": "12-19", |
| "dependency_updated": "inserted", |
| "score": null, |
| "signal_scores": {} |
| } |
| ], |
| "coverage_gold": 1.0, |
| "branch_coverage_gold": 0.4405, |
| "method_coverage_gold": 1.6043, |
| "line_coverage_gold": 0.8228, |
| "is_traceback": false, |
| "commit_gap": { |
| "count": 0, |
| "skipped_commits": [] |
| }, |
| "test_is_refactoring_only": false, |
| "has_test_dep_change": false, |
| "all_deps_new": [ |
| "com/github/scribejava/core/base64/CommonsCodecBase64.internalEncodeUrlWithoutPadding:([B)Ljava/lang/String", |
| "com/github/scribejava/core/base64/Java8Base64.internalEncodeUrlWithoutPadding:([B)Ljava/lang/String", |
| "com/github/scribejava/core/base64/JaxbBase64.internalEncodeUrlWithoutPadding:([B)Ljava/lang/String" |
| ], |
| "all_deps_old": [ |
| "com/github/scribejava/core/base64/Java8Base64.internalEncodeUrlWithoutPadding:([B)Ljava/lang/String", |
| "com/github/scribejava/core/base64/CommonsCodecBase64.internalEncodeUrlWithoutPadding:([B)Ljava/lang/String" |
| ], |
| "deps_changes": [ |
| { |
| "method_sign": "com/github/scribejava/core/base64/JaxbBase64.internalEncodeUrlWithoutPadding:([B)Ljava/lang/String", |
| "change_type": "ADD", |
| "file_path_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/base64/JaxbBase64.java", |
| "source": "production", |
| "is_test_dependency": false, |
| "is_refactoring_only": false |
| } |
| ], |
| "variant_result": { |
| "old_on_old": "pass", |
| "old_on_new": "error", |
| "new_on_old": "error", |
| "new_on_new": "pass" |
| } |
| }, |
| { |
| "change_id": "17_scribejava_scribejava-scribejava-8.3.3_12297f7_36c1c71_Base64Test", |
| "test_sign": "com/github/scribejava/core/base64/Base64Test.testEncode:()V", |
| "class": "Base64Test", |
| "method": "testEncode", |
| "module": "scribejava-core", |
| "junit_selector": "com.github.scribejava.core.base64.Base64Test#testEncode", |
| "old_test_code": "@Test\npublic void testEncode() {\n final String helloWorldEncoded = \"SGVsbG8gV29ybGQ=\";\n final String helloWorldTwoLinesEncoded = \"SGVsbG8gV29ybGQNCk5ldyBMaW5lMg==\";\n final String helloWorldTwoLinesAndNewLineEncoded = \"SGVsbG8gV29ybGQNClNlY29uZCBMaW5lDQo=\";\n final String helloWorldDifferentCharsEncoded = \"YDEyMzQ1Njc4OTAtPX4hQCMkJV4mKigpXyvRkdCBIuKEljs6P3F3ZXJ0eXVpb3B\" + \"bXWFzZGZnaGprbDsnenhjdmJubSwuL1FXRVJUWVVJT1B7fXxBU0RGR0hKS0w6WlhDVkJOTTw+P9C50YTRj9GG0YvRh9GD0LLRgdC\" + \"60LDQvNC10L/QuNC90YDRgtCz0L7RjNGI0LvQsdGJ0LTRjtC30LYu0YXRjdGKXNCZ0KTQr9Cm0KvQp9Cj0JLQodCa0JDQnNCV0J/\" + \"QmNCd0KDQotCT0J7QrNCo0JvQkdCp0JTQrtCX0JYs0KXQrdCqLw0JDCcICg==\";\n final String str = \"MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAMPQ5BCMxlUq2TYy\" + \"iRIoEUsz6HGTJhHuasS2nx1Se4Co3lxwxyubVdFj8AuhHNJSmJvjlpbTsGOjLZpr\" + \"HyDEDdJmf1Fensh1MhUnBZ4a7uLrZrKzFHHJdamX9pxapB89vLeHlCot9hVXdrZH\" + \"nNtg6FdmRKH/8gbs8iDyIayFvzYDAgMBAAECgYA+c9MpTBy9cQsR9BAvkEPjvkx2\" + \"XL4ZnfbDgpNA4Nuu7yzsQrPjPomiXMNkkiAFHH67yVxwAlgRjyuuQlgNNTpKvyQt\" + \"XcHxffnU0820VmE23M+L7jg2TlB3+rUnEDmDvCoyjlwGDR6lNb7t7Fgg2iR+iaov\" + \"0iVzz+l9w0slRlyGsQJBAPWXW2m3NmFgqfDxtw8fsKC2y8o17/cnPjozRGtWb8LQ\" + \"g3VCb8kbOFHOYNGazq3M7+wD1qILF2h/HecgK9eQrZ0CQQDMHXoJMfKKbrFrTKgE\" + \"zyggO1gtuT5OXYeFewMEb5AbDI2FfSc2YP7SHij8iQ2HdukBrbTmi6qxh3HmIR58\" + \"I/AfAkEA0Y9vr0tombsUB8cZv0v5OYoBZvCTbMANtzfb4AOHpiKqqbohDOevLQ7/\" + \"SpvgVCmVaDz2PptcRAyEBZ5MCssneQJAB2pmvaDH7Ambfod5bztLfOhLCtY5EkXJ\" + \"n6rZcDbRaHorRhdG7m3VtDKOUKZ2DF7glkQGV33phKukErVPUzlHBwJAScD9TqaG\" + \"wJ3juUsVtujV23SnH43iMggXT7m82STpPGam1hPfmqu2Z0niePFo927ogQ7H1EMJ\" + \"UHgqXmuvk2X/Ww==\";\n assertEquals(helloWorldEncoded, java8Base64.internalEncode(helloWorldBytes));\n assertEquals(helloWorldTwoLinesEncoded, java8Base64.internalEncode(helloWorldTwoLinesBytes));\n assertEquals(helloWorldTwoLinesAndNewLineEncoded, java8Base64.internalEncode(helloWorldTwoLinesAndNewLineBytes));\n assertEquals(helloWorldDifferentCharsEncoded, java8Base64.internalEncode(helloWorldDifferentCharsBytes));\n assertEquals(str, java8Base64.internalEncode(bytes));\n assertEquals(helloWorldEncoded, commonsCodecBase64.internalEncode(helloWorldBytes));\n assertEquals(helloWorldTwoLinesEncoded, commonsCodecBase64.internalEncode(helloWorldTwoLinesBytes));\n assertEquals(helloWorldTwoLinesAndNewLineEncoded, commonsCodecBase64.internalEncode(helloWorldTwoLinesAndNewLineBytes));\n assertEquals(helloWorldDifferentCharsEncoded, commonsCodecBase64.internalEncode(helloWorldDifferentCharsBytes));\n assertEquals(str, commonsCodecBase64.internalEncode(bytes));\n}", |
| "new_test_code": "@Test\npublic void testEncode() {\n final String helloWorldEncoded = \"SGVsbG8gV29ybGQ=\";\n final String helloWorldTwoLinesEncoded = \"SGVsbG8gV29ybGQNCk5ldyBMaW5lMg==\";\n final String helloWorldTwoLinesAndNewLineEncoded = \"SGVsbG8gV29ybGQNClNlY29uZCBMaW5lDQo=\";\n final String helloWorldDifferentCharsEncoded = \"YDEyMzQ1Njc4OTAtPX4hQCMkJV4mKigpXyvRkdCBIuKEljs6P3F3ZXJ0eXVpb3B\" + \"bXWFzZGZnaGprbDsnenhjdmJubSwuL1FXRVJUWVVJT1B7fXxBU0RGR0hKS0w6WlhDVkJOTTw+P9C50YTRj9GG0YvRh9GD0LLRgdC\" + \"60LDQvNC10L/QuNC90YDRgtCz0L7RjNGI0LvQsdGJ0LTRjtC30LYu0YXRjdGKXNCZ0KTQr9Cm0KvQp9Cj0JLQodCa0JDQnNCV0J/\" + \"QmNCd0KDQotCT0J7QrNCo0JvQkdCp0JTQrtCX0JYs0KXQrdCqLw0JDCcICg==\";\n final String str = \"MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAMPQ5BCMxlUq2TYy\" + \"iRIoEUsz6HGTJhHuasS2nx1Se4Co3lxwxyubVdFj8AuhHNJSmJvjlpbTsGOjLZpr\" + \"HyDEDdJmf1Fensh1MhUnBZ4a7uLrZrKzFHHJdamX9pxapB89vLeHlCot9hVXdrZH\" + \"nNtg6FdmRKH/8gbs8iDyIayFvzYDAgMBAAECgYA+c9MpTBy9cQsR9BAvkEPjvkx2\" + \"XL4ZnfbDgpNA4Nuu7yzsQrPjPomiXMNkkiAFHH67yVxwAlgRjyuuQlgNNTpKvyQt\" + \"XcHxffnU0820VmE23M+L7jg2TlB3+rUnEDmDvCoyjlwGDR6lNb7t7Fgg2iR+iaov\" + \"0iVzz+l9w0slRlyGsQJBAPWXW2m3NmFgqfDxtw8fsKC2y8o17/cnPjozRGtWb8LQ\" + \"g3VCb8kbOFHOYNGazq3M7+wD1qILF2h/HecgK9eQrZ0CQQDMHXoJMfKKbrFrTKgE\" + \"zyggO1gtuT5OXYeFewMEb5AbDI2FfSc2YP7SHij8iQ2HdukBrbTmi6qxh3HmIR58\" + \"I/AfAkEA0Y9vr0tombsUB8cZv0v5OYoBZvCTbMANtzfb4AOHpiKqqbohDOevLQ7/\" + \"SpvgVCmVaDz2PptcRAyEBZ5MCssneQJAB2pmvaDH7Ambfod5bztLfOhLCtY5EkXJ\" + \"n6rZcDbRaHorRhdG7m3VtDKOUKZ2DF7glkQGV33phKukErVPUzlHBwJAScD9TqaG\" + \"wJ3juUsVtujV23SnH43iMggXT7m82STpPGam1hPfmqu2Z0niePFo927ogQ7H1EMJ\" + \"UHgqXmuvk2X/Ww==\";\n assertEquals(helloWorldEncoded, java8Base64.internalEncode(helloWorldBytes));\n assertEquals(helloWorldTwoLinesEncoded, java8Base64.internalEncode(helloWorldTwoLinesBytes));\n assertEquals(helloWorldTwoLinesAndNewLineEncoded, java8Base64.internalEncode(helloWorldTwoLinesAndNewLineBytes));\n assertEquals(helloWorldDifferentCharsEncoded, java8Base64.internalEncode(helloWorldDifferentCharsBytes));\n assertEquals(str, java8Base64.internalEncode(bytes));\n assertEquals(helloWorldEncoded, commonsCodecBase64.internalEncode(helloWorldBytes));\n assertEquals(helloWorldTwoLinesEncoded, commonsCodecBase64.internalEncode(helloWorldTwoLinesBytes));\n assertEquals(helloWorldTwoLinesAndNewLineEncoded, commonsCodecBase64.internalEncode(helloWorldTwoLinesAndNewLineBytes));\n assertEquals(helloWorldDifferentCharsEncoded, commonsCodecBase64.internalEncode(helloWorldDifferentCharsBytes));\n assertEquals(str, commonsCodecBase64.internalEncode(bytes));\n assertEquals(helloWorldEncoded, jaxbBase64.internalEncode(helloWorldBytes));\n assertEquals(helloWorldTwoLinesEncoded, jaxbBase64.internalEncode(helloWorldTwoLinesBytes));\n assertEquals(helloWorldTwoLinesAndNewLineEncoded, jaxbBase64.internalEncode(helloWorldTwoLinesAndNewLineBytes));\n assertEquals(helloWorldDifferentCharsEncoded, jaxbBase64.internalEncode(helloWorldDifferentCharsBytes));\n assertEquals(str, jaxbBase64.internalEncode(bytes));\n}", |
| "old_test_file_path": [ |
| "scribejava-core/src/test/java/com/github/scribejava/core/base64/Base64Test.java" |
| ], |
| "old_test_lnum": [ |
| "66-103" |
| ], |
| "new_test_lnum": [ |
| "69-112" |
| ], |
| "old_production_code": "", |
| "new_production_code": "@Override\nprotected String internalEncode(byte[] bytes) {\n return DatatypeConverter.printBase64Binary(bytes);\n}", |
| "focal_file_path": "scribejava-core/src/main/java/com/github/scribejava/core/base64/JaxbBase64.java", |
| "focal_method_sign": "com/github/scribejava/core/base64/JaxbBase64.internalEncode:([B)Ljava/lang/String", |
| "focal_all_deps_scored": [ |
| { |
| "dep_id": 0, |
| "method_sign": "com/github/scribejava/core/base64/JaxbBase64.internalEncode:([B)Ljava/lang/String", |
| "file_path_old": null, |
| "line_nums_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/base64/JaxbBase64.java", |
| "line_nums_new": "7-10", |
| "dependency_updated": "inserted", |
| "score": null, |
| "signal_scores": {} |
| } |
| ], |
| "coverage_gold": 1.0, |
| "branch_coverage_gold": 0.0, |
| "method_coverage_gold": 1.6043, |
| "line_coverage_gold": 0.6329, |
| "is_traceback": false, |
| "commit_gap": { |
| "count": 0, |
| "skipped_commits": [] |
| }, |
| "test_is_refactoring_only": false, |
| "has_test_dep_change": false, |
| "all_deps_new": [ |
| "com/github/scribejava/core/base64/JaxbBase64.internalEncode:([B)Ljava/lang/String", |
| "com/github/scribejava/core/base64/Java8Base64.internalEncode:([B)Ljava/lang/String", |
| "com/github/scribejava/core/base64/CommonsCodecBase64.internalEncode:([B)Ljava/lang/String" |
| ], |
| "all_deps_old": [ |
| "com/github/scribejava/core/base64/CommonsCodecBase64.internalEncode:([B)Ljava/lang/String", |
| "com/github/scribejava/core/base64/Java8Base64.internalEncode:([B)Ljava/lang/String" |
| ], |
| "deps_changes": [ |
| { |
| "method_sign": "com/github/scribejava/core/base64/JaxbBase64.internalEncode:([B)Ljava/lang/String", |
| "change_type": "ADD", |
| "file_path_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/base64/JaxbBase64.java", |
| "source": "production", |
| "is_test_dependency": false, |
| "is_refactoring_only": false |
| } |
| ], |
| "variant_result": { |
| "old_on_old": "pass", |
| "old_on_new": "error", |
| "new_on_old": "error", |
| "new_on_new": "pass" |
| } |
| } |
| ], |
| "version": "scribejava-8.3.3", |
| "java_version": 11 |
| }, |
| { |
| "task_id": "scribejava_scribejava-scribejava-8.3.3__3ec1be2_ccf4d52__OAuth1AccessTokenExtractorTest_589320d8", |
| "project_name": "scribejava_scribejava-scribejava-8.3.3", |
| "git_clone_url": "https://github.com/scribejava/scribejava.git", |
| "rev1": "3ec1be264e5aea1cbacd462c4a29ec1f6376d69d", |
| "rev2": "ccf4d52121dc00bb05d6283e2f7c266b01ecf44a", |
| "rev1_date": "2019-08-19T09:01:42Z", |
| "rev2_date": "2019-08-19T10:39:55Z", |
| "git_diff_url": "https://github.com/scribejava/scribejava/compare/3ec1be264e5aea1cbacd462c4a29ec1f6376d69d...ccf4d52121dc00bb05d6283e2f7c266b01ecf44a", |
| "test_file": "scribejava-core/src/test/java/com/github/scribejava/core/extractors/OAuth1AccessTokenExtractorTest.java", |
| "test_changes": [ |
| { |
| "change_id": "29_scribejava_scribejava-scribejava-8.3.3_3ec1be2_ccf4d52_OAuth1AccessTokenExtractorTest", |
| "test_sign": "com/github/scribejava/core/extractors/OAuth1AccessTokenExtractorTest.shouldExtractTokenFromResponseWithCallbackConfirmed:()V", |
| "class": "OAuth1AccessTokenExtractorTest", |
| "method": "shouldExtractTokenFromResponseWithCallbackConfirmed", |
| "module": "scribejava-core", |
| "junit_selector": "com.github.scribejava.core.extractors.OAuth1AccessTokenExtractorTest#shouldExtractTokenFromResponseWithCallbackConfirmed", |
| "old_test_code": "@Test\npublic void shouldExtractTokenFromResponseWithCallbackConfirmed() throws IOException {\n final String response = \"oauth_token=hh5s93j4hdidpola&oauth_token_secret=hdhd0244k9j7ao03\" + \"&callback_confirmed=true\";\n final OAuth1Token extracted = extractor.extract(ok(response));\n assertEquals(\"hh5s93j4hdidpola\", extracted.getToken());\n assertEquals(\"hdhd0244k9j7ao03\", extracted.getTokenSecret());\n}", |
| "new_test_code": "@Test\npublic void shouldExtractTokenFromResponseWithCallbackConfirmed() throws IOException {\n final String responseBody = \"oauth_token=hh5s93j4hdidpola&oauth_token_secret=hdhd0244k9j7ao03\" + \"&callback_confirmed=true\";\n final OAuth1Token extracted;\n try (Response response = ok(responseBody)) {\n extracted = extractor.extract(response);\n }\n assertEquals(\"hh5s93j4hdidpola\", extracted.getToken());\n assertEquals(\"hdhd0244k9j7ao03\", extracted.getTokenSecret());\n}", |
| "old_test_file_path": [ |
| "scribejava-core/src/test/java/com/github/scribejava/core/extractors/OAuth1AccessTokenExtractorTest.java" |
| ], |
| "old_test_lnum": [ |
| "39-46" |
| ], |
| "new_test_lnum": [ |
| "45-55" |
| ], |
| "old_production_code": "", |
| "new_production_code": "@Override\npublic void close() throws IOException {\n if (stream != null) {\n stream.close();\n }\n}", |
| "focal_file_path": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "focal_method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "focal_all_deps_scored": [ |
| { |
| "dep_id": 0, |
| "method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "file_path_old": null, |
| "line_nums_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "line_nums_new": "122-127", |
| "dependency_updated": "inserted", |
| "score": null, |
| "signal_scores": {} |
| } |
| ], |
| "coverage_gold": 0.9, |
| "branch_coverage_gold": 1.5773, |
| "method_coverage_gold": 4.6729, |
| "line_coverage_gold": 3.4328, |
| "is_traceback": false, |
| "commit_gap": { |
| "count": 0, |
| "skipped_commits": [] |
| }, |
| "test_is_refactoring_only": false, |
| "has_test_dep_change": false, |
| "all_deps_new": [ |
| "com/github/scribejava/core/model/OAuth1AccessToken.getToken:()Ljava/lang/String", |
| "com/github/scribejava/core/model/OAuth1AccessToken.getTokenSecret:()Ljava/lang/String", |
| "com/github/scribejava/core/extractors/OAuth1AccessTokenExtractorTest.ok:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/model/Response.close:()V", |
| "com/github/scribejava/core/extractors/AbstractOAuth1TokenExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth1Token" |
| ], |
| "all_deps_old": [ |
| "com/github/scribejava/core/model/OAuth1AccessToken.getTokenSecret:()Ljava/lang/String", |
| "com/github/scribejava/core/extractors/OAuth1AccessTokenExtractorTest.ok:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/model/OAuth1AccessToken.getToken:()Ljava/lang/String", |
| "com/github/scribejava/core/extractors/AbstractOAuth1TokenExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth1Token" |
| ], |
| "deps_changes": [ |
| { |
| "method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "change_type": "ADD", |
| "file_path_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "source": "production", |
| "is_test_dependency": false, |
| "is_refactoring_only": false |
| } |
| ], |
| "variant_result": { |
| "old_on_old": "pass", |
| "old_on_new": "error", |
| "new_on_old": "error", |
| "new_on_new": "pass" |
| } |
| } |
| ], |
| "version": "scribejava-8.3.3", |
| "java_version": 11 |
| }, |
| { |
| "task_id": "scribejava_scribejava-scribejava-8.3.3__3ec1be2_ccf4d52__OAuth2AccessTokenExtractorTest_10bd750e", |
| "project_name": "scribejava_scribejava-scribejava-8.3.3", |
| "git_clone_url": "https://github.com/scribejava/scribejava.git", |
| "rev1": "3ec1be264e5aea1cbacd462c4a29ec1f6376d69d", |
| "rev2": "ccf4d52121dc00bb05d6283e2f7c266b01ecf44a", |
| "rev1_date": "2019-08-19T09:01:42Z", |
| "rev2_date": "2019-08-19T10:39:55Z", |
| "git_diff_url": "https://github.com/scribejava/scribejava/compare/3ec1be264e5aea1cbacd462c4a29ec1f6376d69d...ccf4d52121dc00bb05d6283e2f7c266b01ecf44a", |
| "test_file": "scribejava-core/src/test/java/com/github/scribejava/core/extractors/OAuth2AccessTokenExtractorTest.java", |
| "test_changes": [ |
| { |
| "change_id": "27_scribejava_scribejava-scribejava-8.3.3_3ec1be2_ccf4d52_OAuth2AccessTokenExtractorTest", |
| "test_sign": "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractorTest.shouldExtractTokenFromResponseWithExpiresParam:()V", |
| "class": "OAuth2AccessTokenExtractorTest", |
| "method": "shouldExtractTokenFromResponseWithExpiresParam", |
| "module": "scribejava-core", |
| "junit_selector": "com.github.scribejava.core.extractors.OAuth2AccessTokenExtractorTest#shouldExtractTokenFromResponseWithExpiresParam", |
| "old_test_code": "@Test\npublic void shouldExtractTokenFromResponseWithExpiresParam() throws IOException {\n final String response = \"access_token=166942940015970|2.2ltzWXYNDjCtg5ZDVVJJeg__.3600.1295816400-548517159\" + \"|RsXNdKrpxg8L6QNLWcs2TVTmcaE&expires_in=5108\";\n final OAuth2AccessToken extracted = extractor.extract(ok(response));\n assertEquals(\"166942940015970|2.2ltzWXYNDjCtg5ZDVVJJeg__.3600.1295816400-548517159|RsXNdKrpxg8L6QNLWcs2TVTmcaE\", extracted.getAccessToken());\n assertEquals(Integer.valueOf(5108), extracted.getExpiresIn());\n}", |
| "new_test_code": "@Test\npublic void shouldExtractTokenFromResponseWithExpiresParam() throws IOException {\n final String responseBody = \"access_token=166942940015970|2.2ltzWXYNDjCtg5ZDVVJJeg__.3600.1295816400-548517159\" + \"|RsXNdKrpxg8L6QNLWcs2TVTmcaE&expires_in=5108\";\n final OAuth2AccessToken extracted;\n try (Response response = ok(responseBody)) {\n extracted = extractor.extract(response);\n }\n assertEquals(\"166942940015970|2.2ltzWXYNDjCtg5ZDVVJJeg__.3600.1295816400-548517159|RsXNdKrpxg8L6QNLWcs2TVTmcaE\", extracted.getAccessToken());\n assertEquals(Integer.valueOf(5108), extracted.getExpiresIn());\n}", |
| "old_test_file_path": [ |
| "scribejava-core/src/test/java/com/github/scribejava/core/extractors/OAuth2AccessTokenExtractorTest.java" |
| ], |
| "old_test_lnum": [ |
| "32-40" |
| ], |
| "new_test_lnum": [ |
| "35-46" |
| ], |
| "old_production_code": "", |
| "new_production_code": "@Override\npublic void close() throws IOException {\n if (stream != null) {\n stream.close();\n }\n}", |
| "focal_file_path": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "focal_method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "focal_all_deps_scored": [ |
| { |
| "dep_id": 0, |
| "method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "file_path_old": null, |
| "line_nums_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "line_nums_new": "122-127", |
| "dependency_updated": "inserted", |
| "score": null, |
| "signal_scores": {} |
| } |
| ], |
| "coverage_gold": 0.7894736842105263, |
| "branch_coverage_gold": 2.0505, |
| "method_coverage_gold": 3.9252, |
| "line_coverage_gold": 3.8829, |
| "is_traceback": false, |
| "commit_gap": { |
| "count": 0, |
| "skipped_commits": [] |
| }, |
| "test_is_refactoring_only": false, |
| "has_test_dep_change": false, |
| "all_deps_new": [ |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractorTest.ok:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getExpiresIn:()Ljava/lang/Integer", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth2AccessToken", |
| "com/github/scribejava/core/model/Response.close:()V", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getAccessToken:()Ljava/lang/String" |
| ], |
| "all_deps_old": [ |
| "com/github/scribejava/core/model/OAuth2AccessToken.getExpiresIn:()Ljava/lang/Integer", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractorTest.ok:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth2AccessToken", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getAccessToken:()Ljava/lang/String" |
| ], |
| "deps_changes": [ |
| { |
| "method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "change_type": "ADD", |
| "file_path_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "source": "production", |
| "is_test_dependency": false, |
| "is_refactoring_only": false |
| } |
| ], |
| "variant_result": { |
| "old_on_old": "pass", |
| "old_on_new": "error", |
| "new_on_old": "error", |
| "new_on_new": "pass" |
| } |
| }, |
| { |
| "change_id": "36_scribejava_scribejava-scribejava-8.3.3_3ec1be2_ccf4d52_OAuth2AccessTokenExtractorTest", |
| "test_sign": "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractorTest.shouldExtractTokenFromResponseWithExpiresAndRefreshParam:()V", |
| "class": "OAuth2AccessTokenExtractorTest", |
| "method": "shouldExtractTokenFromResponseWithExpiresAndRefreshParam", |
| "module": "scribejava-core", |
| "junit_selector": "com.github.scribejava.core.extractors.OAuth2AccessTokenExtractorTest#shouldExtractTokenFromResponseWithExpiresAndRefreshParam", |
| "old_test_code": "@Test\npublic void shouldExtractTokenFromResponseWithExpiresAndRefreshParam() throws IOException {\n final String response = \"access_token=166942940015970|2.2ltzWXYNDjCtg5ZDVVJJeg__.3600.1295816400-548517159\" + \"|RsXNdKrpxg8L6QNLWcs2TVTmcaE&expires_in=5108&token_type=bearer&refresh_token=166942940015970\";\n final OAuth2AccessToken extracted = extractor.extract(ok(response));\n assertEquals(\"166942940015970|2.2ltzWXYNDjCtg5ZDVVJJeg__.3600.1295816400-548517159|RsXNdKrpxg8L6QNLWcs2TVTmcaE\", extracted.getAccessToken());\n assertEquals(Integer.valueOf(5108), extracted.getExpiresIn());\n assertEquals(\"bearer\", extracted.getTokenType());\n assertEquals(\"166942940015970\", extracted.getRefreshToken());\n}", |
| "new_test_code": "@Test\npublic void shouldExtractTokenFromResponseWithExpiresAndRefreshParam() throws IOException {\n final String responseBody = \"access_token=166942940015970|2.2ltzWXYNDjCtg5ZDVVJJeg__.3600.1295816400-548517159\" + \"|RsXNdKrpxg8L6QNLWcs2TVTmcaE&expires_in=5108&token_type=bearer&refresh_token=166942940015970\";\n final OAuth2AccessToken extracted;\n try (Response response = ok(responseBody)) {\n extracted = extractor.extract(response);\n }\n assertEquals(\"166942940015970|2.2ltzWXYNDjCtg5ZDVVJJeg__.3600.1295816400-548517159|RsXNdKrpxg8L6QNLWcs2TVTmcaE\", extracted.getAccessToken());\n assertEquals(Integer.valueOf(5108), extracted.getExpiresIn());\n assertEquals(\"bearer\", extracted.getTokenType());\n assertEquals(\"166942940015970\", extracted.getRefreshToken());\n}", |
| "old_test_file_path": [ |
| "scribejava-core/src/test/java/com/github/scribejava/core/extractors/OAuth2AccessTokenExtractorTest.java" |
| ], |
| "old_test_lnum": [ |
| "42-52" |
| ], |
| "new_test_lnum": [ |
| "48-61" |
| ], |
| "old_production_code": "", |
| "new_production_code": "@Override\npublic void close() throws IOException {\n if (stream != null) {\n stream.close();\n }\n}", |
| "focal_file_path": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "focal_method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "focal_all_deps_scored": [ |
| { |
| "dep_id": 0, |
| "method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "file_path_old": null, |
| "line_nums_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "line_nums_new": "122-127", |
| "dependency_updated": "inserted", |
| "score": null, |
| "signal_scores": {} |
| } |
| ], |
| "coverage_gold": 0.8095238095238095, |
| "branch_coverage_gold": 2.0505, |
| "method_coverage_gold": 4.2991, |
| "line_coverage_gold": 3.9955, |
| "is_traceback": false, |
| "commit_gap": { |
| "count": 0, |
| "skipped_commits": [] |
| }, |
| "test_is_refactoring_only": false, |
| "has_test_dep_change": false, |
| "all_deps_new": [ |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractorTest.ok:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getExpiresIn:()Ljava/lang/Integer", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getRefreshToken:()Ljava/lang/String", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth2AccessToken", |
| "com/github/scribejava/core/model/Response.close:()V", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getAccessToken:()Ljava/lang/String", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getTokenType:()Ljava/lang/String" |
| ], |
| "all_deps_old": [ |
| "com/github/scribejava/core/model/OAuth2AccessToken.getExpiresIn:()Ljava/lang/Integer", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getTokenType:()Ljava/lang/String", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractorTest.ok:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth2AccessToken", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getAccessToken:()Ljava/lang/String", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getRefreshToken:()Ljava/lang/String" |
| ], |
| "deps_changes": [ |
| { |
| "method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "change_type": "ADD", |
| "file_path_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "source": "production", |
| "is_test_dependency": false, |
| "is_refactoring_only": false |
| } |
| ], |
| "variant_result": { |
| "old_on_old": "pass", |
| "old_on_new": "error", |
| "new_on_old": "error", |
| "new_on_new": "pass" |
| } |
| }, |
| { |
| "change_id": "37_scribejava_scribejava-scribejava-8.3.3_3ec1be2_ccf4d52_OAuth2AccessTokenExtractorTest", |
| "test_sign": "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractorTest.shouldExtractTokenFromOAuthStandardResponse:()V", |
| "class": "OAuth2AccessTokenExtractorTest", |
| "method": "shouldExtractTokenFromOAuthStandardResponse", |
| "module": "scribejava-core", |
| "junit_selector": "com.github.scribejava.core.extractors.OAuth2AccessTokenExtractorTest#shouldExtractTokenFromOAuthStandardResponse", |
| "old_test_code": "@Test\npublic void shouldExtractTokenFromOAuthStandardResponse() throws IOException {\n final String response = \"access_token=166942940015970|2.2ltzWXYNDjCtg5ZDVVJJeg__.3600.1295816400-548517159\" + \"|RsXNdKrpxg8L6QNLWcs2TVTmcaE\";\n final OAuth2AccessToken extracted = extractor.extract(ok(response));\n assertEquals(\"166942940015970|2.2ltzWXYNDjCtg5ZDVVJJeg__.3600.1295816400-548517159|RsXNdKrpxg8L6QNLWcs2TVTmcaE\", extracted.getAccessToken());\n}", |
| "new_test_code": "@Test\npublic void shouldExtractTokenFromOAuthStandardResponse() throws IOException {\n final String responseBody = \"access_token=166942940015970|2.2ltzWXYNDjCtg5ZDVVJJeg__.3600.1295816400-548517159\" + \"|RsXNdKrpxg8L6QNLWcs2TVTmcaE\";\n final OAuth2AccessToken extracted;\n try (Response response = ok(responseBody)) {\n extracted = extractor.extract(response);\n }\n assertEquals(\"166942940015970|2.2ltzWXYNDjCtg5ZDVVJJeg__.3600.1295816400-548517159|RsXNdKrpxg8L6QNLWcs2TVTmcaE\", extracted.getAccessToken());\n}", |
| "old_test_file_path": [ |
| "scribejava-core/src/test/java/com/github/scribejava/core/extractors/OAuth2AccessTokenExtractorTest.java" |
| ], |
| "old_test_lnum": [ |
| "23-30" |
| ], |
| "new_test_lnum": [ |
| "23-33" |
| ], |
| "old_production_code": "", |
| "new_production_code": "@Override\npublic void close() throws IOException {\n if (stream != null) {\n stream.close();\n }\n}", |
| "focal_file_path": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "focal_method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "focal_all_deps_scored": [ |
| { |
| "dep_id": 0, |
| "method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "file_path_old": null, |
| "line_nums_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "line_nums_new": "122-127", |
| "dependency_updated": "inserted", |
| "score": null, |
| "signal_scores": {} |
| } |
| ], |
| "coverage_gold": 0.7777777777777778, |
| "branch_coverage_gold": 2.0505, |
| "method_coverage_gold": 3.7383, |
| "line_coverage_gold": 3.8267, |
| "is_traceback": false, |
| "commit_gap": { |
| "count": 0, |
| "skipped_commits": [] |
| }, |
| "test_is_refactoring_only": false, |
| "has_test_dep_change": false, |
| "all_deps_new": [ |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractorTest.ok:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth2AccessToken", |
| "com/github/scribejava/core/model/Response.close:()V", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getAccessToken:()Ljava/lang/String" |
| ], |
| "all_deps_old": [ |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractorTest.ok:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth2AccessToken", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getAccessToken:()Ljava/lang/String" |
| ], |
| "deps_changes": [ |
| { |
| "method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "change_type": "ADD", |
| "file_path_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "source": "production", |
| "is_test_dependency": false, |
| "is_refactoring_only": false |
| } |
| ], |
| "variant_result": { |
| "old_on_old": "pass", |
| "old_on_new": "error", |
| "new_on_old": "error", |
| "new_on_new": "pass" |
| } |
| } |
| ], |
| "version": "scribejava-8.3.3", |
| "java_version": 11 |
| }, |
| { |
| "task_id": "scribejava_scribejava-scribejava-8.3.3__3ec1be2_ccf4d52__OAuth2AccessTokenJsonExtractorTest_1ad2450f", |
| "project_name": "scribejava_scribejava-scribejava-8.3.3", |
| "git_clone_url": "https://github.com/scribejava/scribejava.git", |
| "rev1": "3ec1be264e5aea1cbacd462c4a29ec1f6376d69d", |
| "rev2": "ccf4d52121dc00bb05d6283e2f7c266b01ecf44a", |
| "rev1_date": "2019-08-19T09:01:42Z", |
| "rev2_date": "2019-08-19T10:39:55Z", |
| "git_diff_url": "https://github.com/scribejava/scribejava/compare/3ec1be264e5aea1cbacd462c4a29ec1f6376d69d...ccf4d52121dc00bb05d6283e2f7c266b01ecf44a", |
| "test_file": "scribejava-core/src/test/java/com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.java", |
| "test_changes": [ |
| { |
| "change_id": "34_scribejava_scribejava-scribejava-8.3.3_3ec1be2_ccf4d52_OAuth2AccessTokenJsonExtractorTest", |
| "test_sign": "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.testEscapedJsonInResponse:()V", |
| "class": "OAuth2AccessTokenJsonExtractorTest", |
| "method": "testEscapedJsonInResponse", |
| "module": "scribejava-core", |
| "junit_selector": "com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractorTest#testEscapedJsonInResponse", |
| "old_test_code": "@Test\npublic void testEscapedJsonInResponse() throws IOException {\n final OAuth2AccessToken token = extractor.extract(ok(\"{ \\\"access_token\\\":\\\"I0122HKLEM2\\\\/MV3ABKFTDT3T5X\\\",\" + \"\\\"token_type\\\":\\\"example\\\"}\"));\n assertEquals(\"I0122HKLEM2/MV3ABKFTDT3T5X\", token.getAccessToken());\n}", |
| "new_test_code": "@Test\npublic void testEscapedJsonInResponse() throws IOException {\n final String responseBody = \"{ \\\"access_token\\\":\\\"I0122HKLEM2\\\\/MV3ABKFTDT3T5X\\\",\" + \"\\\"token_type\\\":\\\"example\\\"}\";\n final OAuth2AccessToken token;\n try (Response response = ok(responseBody)) {\n token = extractor.extract(response);\n }\n assertEquals(\"I0122HKLEM2/MV3ABKFTDT3T5X\", token.getAccessToken());\n}", |
| "old_test_file_path": [ |
| "scribejava-core/src/test/java/com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.java" |
| ], |
| "old_test_lnum": [ |
| "78-83" |
| ], |
| "new_test_lnum": [ |
| "95-104" |
| ], |
| "old_production_code": "", |
| "new_production_code": "@Override\npublic void close() throws IOException {\n if (stream != null) {\n stream.close();\n }\n}", |
| "focal_file_path": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "focal_method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "focal_all_deps_scored": [ |
| { |
| "dep_id": 0, |
| "method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "file_path_old": null, |
| "line_nums_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "line_nums_new": "122-127", |
| "dependency_updated": "inserted", |
| "score": null, |
| "signal_scores": {} |
| } |
| ], |
| "coverage_gold": 0.7777777777777778, |
| "branch_coverage_gold": 2.2082, |
| "method_coverage_gold": 3.7383, |
| "line_coverage_gold": 3.1514, |
| "is_traceback": false, |
| "commit_gap": { |
| "count": 0, |
| "skipped_commits": [] |
| }, |
| "test_is_refactoring_only": false, |
| "has_test_dep_change": false, |
| "all_deps_new": [ |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth2AccessToken", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.ok:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/model/Response.close:()V", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getAccessToken:()Ljava/lang/String" |
| ], |
| "all_deps_old": [ |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth2AccessToken", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.ok:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getAccessToken:()Ljava/lang/String" |
| ], |
| "deps_changes": [ |
| { |
| "method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "change_type": "ADD", |
| "file_path_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "source": "production", |
| "is_test_dependency": false, |
| "is_refactoring_only": false |
| } |
| ], |
| "variant_result": { |
| "old_on_old": "pass", |
| "old_on_new": "error", |
| "new_on_old": "error", |
| "new_on_new": "pass" |
| } |
| }, |
| { |
| "change_id": "44_scribejava_scribejava-scribejava-8.3.3_3ec1be2_ccf4d52_OAuth2AccessTokenJsonExtractorTest", |
| "test_sign": "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.shouldParseResponse:()V", |
| "class": "OAuth2AccessTokenJsonExtractorTest", |
| "method": "shouldParseResponse", |
| "module": "scribejava-core", |
| "junit_selector": "com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractorTest#shouldParseResponse", |
| "old_test_code": "@Test\npublic void shouldParseResponse() throws IOException {\n final OAuth2AccessToken token = extractor.extract(ok(\"{ \\\"access_token\\\":\\\"I0122HHJKLEM21F3WLPYHDKGKZULAUO4SGMV3ABKFTDT3T3X\\\", \" + \"\\\"token_type\\\":\\\"example\\\"}\"));\n assertEquals(\"I0122HHJKLEM21F3WLPYHDKGKZULAUO4SGMV3ABKFTDT3T3X\", token.getAccessToken());\n}", |
| "new_test_code": "@Test\npublic void shouldParseResponse() throws IOException {\n final String responseBody = \"{ \\\"access_token\\\":\\\"I0122HHJKLEM21F3WLPYHDKGKZULAUO4SGMV3ABKFTDT3T3X\\\", \" + \"\\\"token_type\\\":\\\"example\\\"}\";\n final OAuth2AccessToken token;\n try (Response response = ok(responseBody)) {\n token = extractor.extract(response);\n }\n assertEquals(\"I0122HHJKLEM21F3WLPYHDKGKZULAUO4SGMV3ABKFTDT3T3X\", token.getAccessToken());\n}", |
| "old_test_file_path": [ |
| "scribejava-core/src/test/java/com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.java" |
| ], |
| "old_test_lnum": [ |
| "19-25" |
| ], |
| "new_test_lnum": [ |
| "19-28" |
| ], |
| "old_production_code": "", |
| "new_production_code": "@Override\npublic void close() throws IOException {\n if (stream != null) {\n stream.close();\n }\n}", |
| "focal_file_path": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "focal_method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "focal_all_deps_scored": [ |
| { |
| "dep_id": 0, |
| "method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "file_path_old": null, |
| "line_nums_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "line_nums_new": "122-127", |
| "dependency_updated": "inserted", |
| "score": null, |
| "signal_scores": {} |
| } |
| ], |
| "coverage_gold": 0.7777777777777778, |
| "branch_coverage_gold": 2.2082, |
| "method_coverage_gold": 3.7383, |
| "line_coverage_gold": 3.1514, |
| "is_traceback": false, |
| "commit_gap": { |
| "count": 0, |
| "skipped_commits": [] |
| }, |
| "test_is_refactoring_only": false, |
| "has_test_dep_change": false, |
| "all_deps_new": [ |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth2AccessToken", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.ok:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/model/Response.close:()V", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getAccessToken:()Ljava/lang/String" |
| ], |
| "all_deps_old": [ |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth2AccessToken", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.ok:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/model/OAuth2AccessToken.getAccessToken:()Ljava/lang/String" |
| ], |
| "deps_changes": [ |
| { |
| "method_sign": "com/github/scribejava/core/model/Response.close:()V", |
| "change_type": "ADD", |
| "file_path_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java", |
| "source": "production", |
| "is_test_dependency": false, |
| "is_refactoring_only": false |
| } |
| ], |
| "variant_result": { |
| "old_on_old": "pass", |
| "old_on_new": "error", |
| "new_on_old": "error", |
| "new_on_new": "pass" |
| } |
| } |
| ], |
| "version": "scribejava-8.3.3", |
| "java_version": 11 |
| }, |
| { |
| "task_id": "scribejava_scribejava-scribejava-8.3.3__bc796e4_030d768__OAuth2AccessTokenJsonExtractorTest_3c98cd6d", |
| "project_name": "scribejava_scribejava-scribejava-8.3.3", |
| "git_clone_url": "https://github.com/scribejava/scribejava.git", |
| "rev1": "bc796e4c43d0323c151f7472fb079c22c7a09e58", |
| "rev2": "030d76872fe371a84b5d05c6c3c33c34e8f611f1", |
| "rev1_date": "2019-04-11T16:06:08Z", |
| "rev2_date": "2019-04-11T17:21:58Z", |
| "git_diff_url": "https://github.com/scribejava/scribejava/compare/bc796e4c43d0323c151f7472fb079c22c7a09e58...030d76872fe371a84b5d05c6c3c33c34e8f611f1", |
| "test_file": "scribejava-core/src/test/java/com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.java", |
| "test_changes": [ |
| { |
| "change_id": "14_scribejava_scribejava-scribejava-8.3.3_bc796e4_030d768_OAuth2AccessTokenJsonExtractorTest", |
| "test_sign": "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.shouldThrowExceptionIfResponseIsError:()V", |
| "class": "OAuth2AccessTokenJsonExtractorTest", |
| "method": "shouldThrowExceptionIfResponseIsError", |
| "module": "scribejava-core", |
| "junit_selector": "com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractorTest#shouldThrowExceptionIfResponseIsError", |
| "old_test_code": "@Test\npublic void shouldThrowExceptionIfResponseIsError() throws IOException {\n final String body = \"{\" + \"\\\"error_description\\\":\\\"unknown, invalid, or expired refresh token\\\",\" + \"\\\"error\\\":\\\"invalid_grant\\\"\" + \"}\";\n try {\n extractor.extract(error(body));\n fail();\n } catch (OAuth2AccessTokenErrorResponse oaer) {\n assertEquals(OAuth2AccessTokenErrorResponse.ErrorCode.INVALID_GRANT, oaer.getErrorCode());\n assertEquals(\"unknown, invalid, or expired refresh token\", oaer.getErrorDescription());\n }\n}", |
| "new_test_code": "@Test\npublic void shouldThrowExceptionIfResponseIsError() throws IOException {\n final String body = \"{\" + \"\\\"error_description\\\":\\\"unknown, invalid, or expired refresh token\\\",\" + \"\\\"error\\\":\\\"invalid_grant\\\"\" + \"}\";\n try {\n extractor.extract(error(body));\n fail();\n } catch (OAuth2AccessTokenErrorResponse oaer) {\n assertEquals(OAuth2AccessTokenErrorResponse.ErrorCode.INVALID_GRANT, oaer.getErrorCode());\n assertEquals(OAuth2Error.INVALID_GRANT, oaer.getError());\n assertEquals(\"unknown, invalid, or expired refresh token\", oaer.getErrorDescription());\n }\n}", |
| "old_test_file_path": [ |
| "scribejava-core/src/test/java/com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.java" |
| ], |
| "old_test_lnum": [ |
| "58-71" |
| ], |
| "new_test_lnum": [ |
| "59-73" |
| ], |
| "old_production_code": "", |
| "new_production_code": "public OAuth2Error getError() {\n return error;\n}", |
| "focal_file_path": "scribejava-core/src/main/java/com/github/scribejava/core/model/OAuth2AccessTokenErrorResponse.java", |
| "focal_method_sign": "com/github/scribejava/core/model/OAuth2AccessTokenErrorResponse.getError:()Lcom/github/scribejava/core/oauth2/OAuth2Error", |
| "focal_all_deps_scored": [ |
| { |
| "dep_id": 0, |
| "method_sign": "com/github/scribejava/core/model/OAuth2AccessTokenErrorResponse.getError:()Lcom/github/scribejava/core/oauth2/OAuth2Error", |
| "file_path_old": null, |
| "line_nums_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/OAuth2AccessTokenErrorResponse.java", |
| "line_nums_new": "88-90", |
| "dependency_updated": "inserted", |
| "score": null, |
| "signal_scores": {} |
| } |
| ], |
| "coverage_gold": 0.75, |
| "branch_coverage_gold": 2.911, |
| "method_coverage_gold": 4.8237, |
| "line_coverage_gold": 5.5114, |
| "is_traceback": false, |
| "commit_gap": { |
| "count": 0, |
| "skipped_commits": [] |
| }, |
| "test_is_refactoring_only": false, |
| "has_test_dep_change": false, |
| "all_deps_new": [ |
| "com/github/scribejava/core/model/OAuth2AccessTokenErrorResponse.getErrorCode:()Lcom/github/scribejava/core/model/OAuth2AccessTokenErrorResponse$ErrorCode", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.error:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth2AccessToken", |
| "com/github/scribejava/core/model/OAuth2AccessTokenErrorResponse.getError:()Lcom/github/scribejava/core/oauth2/OAuth2Error", |
| "com/github/scribejava/core/model/OAuth2AccessTokenErrorResponse.getErrorDescription:()Ljava/lang/String" |
| ], |
| "all_deps_old": [ |
| "com/github/scribejava/core/model/OAuth2AccessTokenErrorResponse.getErrorDescription:()Ljava/lang/String", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractorTest.error:(Ljava/lang/String;)Lcom/github/scribejava/core/model/Response", |
| "com/github/scribejava/core/extractors/OAuth2AccessTokenJsonExtractor.extract:(Lcom/github/scribejava/core/model/Response;)Lcom/github/scribejava/core/model/OAuth2AccessToken", |
| "com/github/scribejava/core/model/OAuth2AccessTokenErrorResponse.getErrorCode:()Lcom/github/scribejava/core/model/OAuth2AccessTokenErrorResponse$ErrorCode" |
| ], |
| "deps_changes": [ |
| { |
| "method_sign": "com/github/scribejava/core/model/OAuth2AccessTokenErrorResponse.getError:()Lcom/github/scribejava/core/oauth2/OAuth2Error", |
| "change_type": "ADD", |
| "file_path_old": null, |
| "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/model/OAuth2AccessTokenErrorResponse.java", |
| "source": "production", |
| "is_test_dependency": false, |
| "is_refactoring_only": false |
| } |
| ], |
| "variant_result": { |
| "old_on_old": "pass", |
| "old_on_new": "error", |
| "new_on_old": "error", |
| "new_on_new": "pass" |
| } |
| } |
| ], |
| "version": "scribejava-8.3.3", |
| "java_version": 11 |
| }, |
| { |
| "task_id": "scribejava_scribejava-scribejava-8.3.3__ea5f7ea_d67a7a6__FitBitJsonTokenExtractorTest_e846d674", |
| "project_name": "scribejava_scribejava-scribejava-8.3.3", |
| "git_clone_url": "https://github.com/scribejava/scribejava.git", |
| "rev1": "ea5f7ea08945fac7a65e9b857e161fbe45144112", |
| "rev2": "d67a7a69014b0c9bf8225914020741b7a0885ec0", |
| "rev1_date": "2019-03-29T14:53:36Z", |
| "rev2_date": "2019-03-29T15:21:34Z", |
| "git_diff_url": "https://github.com/scribejava/scribejava/compare/ea5f7ea08945fac7a65e9b857e161fbe45144112...d67a7a69014b0c9bf8225914020741b7a0885ec0", |
| "test_file": "scribejava-apis/src/test/java/com/github/scribejava/apis/fitbit/FitBitJsonTokenExtractorTest.java", |
| "test_changes": [ |
| { |
| "change_id": "56_scribejava_scribejava-scribejava-8.3.3_ea5f7ea_d67a7a6_FitBitJsonTokenExtractorTest", |
| "test_sign": "com/github/scribejava/apis/fitbit/FitBitJsonTokenExtractorTest.testErrorExtraction:()V", |
| "class": "FitBitJsonTokenExtractorTest", |
| "method": "testErrorExtraction", |
| "module": "scribejava-apis", |
| "junit_selector": "com.github.scribejava.apis.fitbit.FitBitJsonTokenExtractorTest#testErrorExtraction", |
| "old_test_code": "@Test\npublic void testErrorExtraction() {\n final FitBitJsonTokenExtractor extractor = new FitBitJsonTokenExtractor();\n thrown.expect(OAuth2AccessTokenErrorResponse.class);\n thrown.expect(new ErrorCodeFeatureMatcher(ErrorCode.invalid_grant));\n thrown.expect(new ErrorDescriptionFeatureMatcher(ERROR_DESCRIPTION));\n extractor.generateError(ERROR_JSON);\n}", |
| "new_test_code": "@Test\npublic void testErrorExtraction() {\n final FitBitJsonTokenExtractor extractor = new FitBitJsonTokenExtractor();\n thrown.expect(OAuth2AccessTokenErrorResponse.class);\n thrown.expect(new ErrorCodeFeatureMatcher(ErrorCode.INVALID_GRANT));\n thrown.expect(new ErrorDescriptionFeatureMatcher(ERROR_DESCRIPTION));\n extractor.generateError(ERROR_JSON);\n}", |
| "old_test_file_path": [ |
| "scribejava-apis/src/test/java/com/github/scribejava/apis/fitbit/FitBitJsonTokenExtractorTest.java" |
| ], |
| "old_test_lnum": [ |
| "25-35" |
| ], |
| "new_test_lnum": [ |
| "25-35" |
| ], |
| "old_production_code": "@Override\npublic void generateError(String response) {\n final String errorInString = extractParameter(response, ERROR_REGEX_PATTERN, true);\n final String errorDescription = extractParameter(response, ERROR_DESCRIPTION_REGEX_PATTERN, false);\n OAuth2AccessTokenErrorResponse.ErrorCode errorCode;\n try {\n errorCode = OAuth2AccessTokenErrorResponse.ErrorCode.valueOf(errorInString);\n } catch (IllegalArgumentException iaE) {\n errorCode = null;\n }\n throw new OAuth2AccessTokenErrorResponse(errorCode, errorDescription, null, response);\n}", |
| "new_production_code": "@Override\npublic void generateError(String response) {\n final String errorInString = extractParameter(response, ERROR_REGEX_PATTERN, true);\n final String errorDescription = extractParameter(response, ERROR_DESCRIPTION_REGEX_PATTERN, false);\n OAuth2AccessTokenErrorResponse.ErrorCode errorCode;\n try {\n errorCode = OAuth2AccessTokenErrorResponse.ErrorCode.parseFrom(errorInString);\n } catch (IllegalArgumentException iaE) {\n errorCode = null;\n }\n throw new OAuth2AccessTokenErrorResponse(errorCode, errorDescription, null, response);\n}", |
| "focal_file_path": "scribejava-apis/src/main/java/com/github/scribejava/apis/fitbit/FitBitJsonTokenExtractor.java", |
| "focal_method_sign": "com/github/scribejava/apis/fitbit/FitBitJsonTokenExtractor.generateError:(Ljava/lang/String;)V", |
| "focal_all_deps_scored": [ |
| { |
| "dep_id": 0, |
| "method_sign": "com/github/scribejava/apis/fitbit/FitBitJsonTokenExtractor.generateError:(Ljava/lang/String;)V", |
| "file_path_old": "scribejava-apis/src/main/java/com/github/scribejava/apis/fitbit/FitBitJsonTokenExtractor.java", |
| "line_nums_old": "35-49", |
| "file_path_new": "scribejava-apis/src/main/java/com/github/scribejava/apis/fitbit/FitBitJsonTokenExtractor.java", |
| "line_nums_new": "35-49", |
| "dependency_updated": "updated", |
| "score": null, |
| "signal_scores": {} |
| } |
| ], |
| "coverage_gold": 0.7142857142857143, |
| "branch_coverage_gold": 0.0, |
| "method_coverage_gold": 0.6369, |
| "line_coverage_gold": 1.2563, |
| "is_traceback": false, |
| "commit_gap": { |
| "count": 0, |
| "skipped_commits": [] |
| }, |
| "test_is_refactoring_only": false, |
| "has_test_dep_change": false, |
| "all_deps_new": [ |
| "com/github/scribejava/apis/fitbit/FitBitJsonTokenExtractor.generateError:(Ljava/lang/String;)V" |
| ], |
| "all_deps_old": [ |
| "com/github/scribejava/apis/fitbit/FitBitJsonTokenExtractor.generateError:(Ljava/lang/String;)V" |
| ], |
| "deps_changes": [ |
| { |
| "method_sign": "com/github/scribejava/apis/fitbit/FitBitJsonTokenExtractor.generateError:(Ljava/lang/String;)V", |
| "change_type": "UPDATE", |
| "file_path_old": "scribejava-apis/src/main/java/com/github/scribejava/apis/fitbit/FitBitJsonTokenExtractor.java", |
| "file_path_new": "scribejava-apis/src/main/java/com/github/scribejava/apis/fitbit/FitBitJsonTokenExtractor.java", |
| "source": "production", |
| "is_test_dependency": false, |
| "is_refactoring_only": false |
| } |
| ], |
| "variant_result": { |
| "old_on_old": "pass", |
| "old_on_new": "error", |
| "new_on_old": "error", |
| "new_on_new": "pass" |
| } |
| } |
| ], |
| "version": "scribejava-8.3.3", |
| "java_version": 11 |
| } |
| ] |